Skip to content

orcfax/kupo-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kupo-ts

A ts client of kupo

Gen schema

Grab the yaml from kupo

  pnpm run update-schema

Manually patch the following:

  • Delete superfluous ["properties"] picked up by LSP
  • In paths, edit variables from kebab to snake case. For example:
    • datum-hash => datum_hash
    • script-hash => script_hash
    • slot-no => slot_no
  • spent and unspent have type boolean not string (see CardanoSolutions/kupo#179)

Troubleshooting

  • openapi zod generator using zodios had void() type for all returns. Switched back to openapi-typescript
  • node-ts seems to broke with node version > 20. Switched to tsx.
  • middleware needed to fix some disagreement between openapi-fetch and kupo

About

a kupo client in ts using openapi-ts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published