Bladeren bron

Use Codama v1.0.0 (#8)

See https://github.com/codama-idl/codama/pull/234
Loris Leiva 1 jaar geleden
bovenliggende
commit
d4d2abb313
50 gewijzigde bestanden met toevoegingen van 231 en 231 verwijderingen
  1. 3 3
      clients/js/src/generated/accounts/index.ts
  2. 3 3
      clients/js/src/generated/accounts/mint.ts
  3. 3 3
      clients/js/src/generated/accounts/multisig.ts
  4. 3 3
      clients/js/src/generated/accounts/token.ts
  5. 3 3
      clients/js/src/generated/errors/associatedToken.ts
  6. 3 3
      clients/js/src/generated/errors/index.ts
  7. 3 3
      clients/js/src/generated/errors/token.ts
  8. 3 3
      clients/js/src/generated/index.ts
  9. 3 3
      clients/js/src/generated/instructions/amountToUiAmount.ts
  10. 3 3
      clients/js/src/generated/instructions/approve.ts
  11. 3 3
      clients/js/src/generated/instructions/approveChecked.ts
  12. 3 3
      clients/js/src/generated/instructions/burn.ts
  13. 3 3
      clients/js/src/generated/instructions/burnChecked.ts
  14. 3 3
      clients/js/src/generated/instructions/closeAccount.ts
  15. 3 3
      clients/js/src/generated/instructions/createAssociatedToken.ts
  16. 3 3
      clients/js/src/generated/instructions/createAssociatedTokenIdempotent.ts
  17. 3 3
      clients/js/src/generated/instructions/freezeAccount.ts
  18. 3 3
      clients/js/src/generated/instructions/getAccountDataSize.ts
  19. 3 3
      clients/js/src/generated/instructions/index.ts
  20. 3 3
      clients/js/src/generated/instructions/initializeAccount.ts
  21. 3 3
      clients/js/src/generated/instructions/initializeAccount2.ts
  22. 3 3
      clients/js/src/generated/instructions/initializeAccount3.ts
  23. 3 3
      clients/js/src/generated/instructions/initializeImmutableOwner.ts
  24. 3 3
      clients/js/src/generated/instructions/initializeMint.ts
  25. 3 3
      clients/js/src/generated/instructions/initializeMint2.ts
  26. 3 3
      clients/js/src/generated/instructions/initializeMultisig.ts
  27. 3 3
      clients/js/src/generated/instructions/initializeMultisig2.ts
  28. 3 3
      clients/js/src/generated/instructions/mintTo.ts
  29. 3 3
      clients/js/src/generated/instructions/mintToChecked.ts
  30. 3 3
      clients/js/src/generated/instructions/recoverNestedAssociatedToken.ts
  31. 3 3
      clients/js/src/generated/instructions/revoke.ts
  32. 3 3
      clients/js/src/generated/instructions/setAuthority.ts
  33. 3 3
      clients/js/src/generated/instructions/syncNative.ts
  34. 3 3
      clients/js/src/generated/instructions/thawAccount.ts
  35. 3 3
      clients/js/src/generated/instructions/transfer.ts
  36. 3 3
      clients/js/src/generated/instructions/transferChecked.ts
  37. 3 3
      clients/js/src/generated/instructions/uiAmountToAmount.ts
  38. 3 3
      clients/js/src/generated/pdas/associatedToken.ts
  39. 3 3
      clients/js/src/generated/pdas/index.ts
  40. 3 3
      clients/js/src/generated/programs/associatedToken.ts
  41. 3 3
      clients/js/src/generated/programs/index.ts
  42. 3 3
      clients/js/src/generated/programs/token.ts
  43. 3 3
      clients/js/src/generated/shared/index.ts
  44. 3 3
      clients/js/src/generated/types/accountState.ts
  45. 3 3
      clients/js/src/generated/types/authorityType.ts
  46. 3 3
      clients/js/src/generated/types/index.ts
  47. 4 4
      package.json
  48. 80 80
      pnpm-lock.yaml
  49. 2 2
      program/idl.json
  50. 7 7
      scripts/generate-clients.mjs

+ 3 - 3
clients/js/src/generated/accounts/index.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 export * from './mint';

+ 3 - 3
clients/js/src/generated/accounts/mint.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/accounts/multisig.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/accounts/token.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/errors/associatedToken.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/errors/index.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 export * from './associatedToken';

+ 3 - 3
clients/js/src/generated/errors/token.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/index.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 export * from './accounts';

+ 3 - 3
clients/js/src/generated/instructions/amountToUiAmount.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/approve.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/approveChecked.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/burn.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/burnChecked.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/closeAccount.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/createAssociatedToken.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/createAssociatedTokenIdempotent.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/freezeAccount.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/getAccountDataSize.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/index.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 export * from './amountToUiAmount';

+ 3 - 3
clients/js/src/generated/instructions/initializeAccount.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/initializeAccount2.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/initializeAccount3.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/initializeImmutableOwner.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/initializeMint.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/initializeMint2.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/initializeMultisig.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/initializeMultisig2.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/mintTo.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/mintToChecked.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/recoverNestedAssociatedToken.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/revoke.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/setAuthority.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/syncNative.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/thawAccount.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/transfer.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/transferChecked.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/instructions/uiAmountToAmount.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/pdas/associatedToken.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/pdas/index.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 export * from './associatedToken';

+ 3 - 3
clients/js/src/generated/programs/associatedToken.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/programs/index.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 export * from './associatedToken';

+ 3 - 3
clients/js/src/generated/programs/token.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/shared/index.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/types/accountState.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/types/authorityType.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 import {

+ 3 - 3
clients/js/src/generated/types/index.ts

@@ -1,9 +1,9 @@
 /**
- * This code was AUTOGENERATED using the kinobi library.
+ * This code was AUTOGENERATED using the codama library.
  * Please DO NOT EDIT THIS FILE, instead use visitors
- * to add features, then rerun kinobi to update it.
+ * to add features, then rerun codama to update it.
  *
- * @see https://github.com/kinobi-so/kinobi
+ * @see https://github.com/codama-idl/codama
  */
 
 export * from './accountState';

+ 4 - 4
package.json

@@ -20,11 +20,11 @@
   },
   "devDependencies": {
     "@iarna/toml": "^2.2.5",
-    "@kinobi-so/renderers-js": "^0.21.9",
-    "@kinobi-so/renderers-rust": "^0.21.7",
-    "kinobi": "^0.21.5",
+    "@codama/renderers-js": "^1.0.0",
+    "@codama/renderers-rust": "^1.0.0",
+    "codama": "^1.0.0",
     "typescript": "^5.5.2",
     "zx": "^7.2.3"
   },
   "packageManager": "pnpm@9.1.0"
-}
+}

+ 80 - 80
pnpm-lock.yaml

@@ -8,18 +8,18 @@ importers:
 
   .:
     devDependencies:
+      '@codama/renderers-js':
+        specifier: ^1.0.0
+        version: 1.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)
+      '@codama/renderers-rust':
+        specifier: ^1.0.0
+        version: 1.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)
       '@iarna/toml':
         specifier: ^2.2.5
         version: 2.2.5
-      '@kinobi-so/renderers-js':
-        specifier: ^0.21.9
-        version: 0.21.9(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)
-      '@kinobi-so/renderers-rust':
-        specifier: ^0.21.7
-        version: 0.21.7(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)
-      kinobi:
-        specifier: ^0.21.5
-        version: 0.21.5
+      codama:
+        specifier: ^1.0.0
+        version: 1.0.0
       typescript:
         specifier: ^5.5.2
         version: 5.5.3
@@ -29,39 +29,39 @@ importers:
 
 packages:
 
-  '@iarna/toml@2.2.5':
-    resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==}
-
-  '@kinobi-so/errors@0.21.5':
-    resolution: {integrity: sha512-IqPMOe0qbmuBI8vux9HU+tvx+SaCVk32g5GnRvYxJh6OmpYOEuJRg02nT2XtYPeYWB2IFKJ1X2AnwTbEz9Vx8Q==}
+  '@codama/errors@1.0.0':
+    resolution: {integrity: sha512-XSdkNbCNJukhKO5TFJ5cFP7TfddxZwqHV7N/XyMbZ0meVPN1ymT94/d/9b8R+bvKuflj/SXImv527tGZWz6pGA==}
     hasBin: true
 
-  '@kinobi-so/node-types@0.21.5':
-    resolution: {integrity: sha512-OKpk08+nTsO25xSZBT+PXpjx2FOHfn7jr0CbnQZ+ulfRa+dr3eSf7zSn+0ipKjG+FFWUUGpizgSkgpTQMjAqLA==}
+  '@codama/node-types@1.0.0':
+    resolution: {integrity: sha512-UAc+0jprwHFOqtAPqqA//PkrnlUzuqs+N5E36bHhLV0m5qWMlqrfmPg/ffBwMYFJsLFWsRsisALrqPy7ARkUow==}
+
+  '@codama/nodes-from-anchor@1.0.0':
+    resolution: {integrity: sha512-urqFOV5K1oKBptgIFFLCPWrUsEeZsonml12ieP26ozX12aglGlN0tsxNsCvxJulRIjUxuONbH6xzv7uKt0xSYQ==}
 
-  '@kinobi-so/nodes-from-anchor@0.21.3':
-    resolution: {integrity: sha512-mar3UeJNx61k77NhucqYIwUXZvC0b6mhLYFksQY0Wz+gCFTWLr8exxB7KmgSycT+XuFNOydpYnEOeMa5lUywBQ==}
+  '@codama/nodes@1.0.0':
+    resolution: {integrity: sha512-btcnjDaOpEFvVq3uVzlQK4G2OxxyK3P9HkXw423GZaqYQzeSr1pDdTKjyVyg+QO578CGqIMySVlJ2UAdHVMytw==}
 
-  '@kinobi-so/nodes@0.21.5':
-    resolution: {integrity: sha512-6iu9/GXrVs14olVeUAAw73BK2js7RGefVGHBDF6PKcvw6i0DlxhPkZiNOSpzweaeTmZsowHO7xEJKov0446fbQ==}
+  '@codama/renderers-core@1.0.0':
+    resolution: {integrity: sha512-WYvOylIzcR0WOc7GlUvGi5ym8IwmslwyV8zfj7FR646bMqaROirFJc+naGEbZ1lMykOyxcackTKL0eDB7954Qw==}
 
-  '@kinobi-so/renderers-core@0.21.3':
-    resolution: {integrity: sha512-Ow1x0IaRmUlqQUAFTQZpq56wpkB6YKdnpNmfjM8IS/ssgz2IG5Jw3LREvNLvdXwpp/eyjSYOsux2RDFJkERl0g==}
+  '@codama/renderers-js@1.0.0':
+    resolution: {integrity: sha512-wi9eqrtLbTM49ELqKqxIgbTaf7xKMWT+HIqj6GN373G0OJnSKwUJPIXAGLO+RCls5DGjDuOE5svuThU0zBkfzA==}
 
-  '@kinobi-so/renderers-js@0.21.9':
-    resolution: {integrity: sha512-ZwN3UIYGZHu1V9TYsCPolVPdScR71r4PrLVVLsxixIxPBhdTMIgUbXK4OqHkzxaR5kn8Ssrvuq6+V2f7XFbVSg==}
+  '@codama/renderers-rust@1.0.0':
+    resolution: {integrity: sha512-2z+XN6KCTQFDfE30OQcRo2LW4+9dnYlqs8rSUhKO2YsRiCnOoMu/zrNSqLtjL84T2PAwReRq+vBifcE0zaOuRw==}
 
-  '@kinobi-so/renderers-rust@0.21.7':
-    resolution: {integrity: sha512-SXiUG1C/qL21F3bIeDzFmgLDtVXA53+2BDFaVEOx1tE7W7kcd4TkQGYvNw8o7EHNaa2S9paQB9KjQFyV+DsmqQ==}
+  '@codama/validators@1.0.0':
+    resolution: {integrity: sha512-jSfU5IrcGTvcqsJSBSzD3Ochig+hKKg2NKsT/vUfQ4jAw2cQrVUP5f4dMXyX779JYfHLHCwZnBYvgEdgi9gBZQ==}
 
-  '@kinobi-so/validators@0.21.5':
-    resolution: {integrity: sha512-JYZWHgma1TrnjhiUJn5/oYS9XfeirUBhwpuTPDRmRrSiHHv329gjWimzZO2uLAm5S5PgFyhLTz+S6jjxRsdNXg==}
+  '@codama/visitors-core@1.0.0':
+    resolution: {integrity: sha512-tDIfURVPf7ZokCFLOpKL6Au0ORiza1sPT4zmRSEjCC7iZp0Vb5K5FrdtUL13Wb+6jNM191e5GUFOmULRoavWug==}
 
-  '@kinobi-so/visitors-core@0.21.5':
-    resolution: {integrity: sha512-qNq9CcDh1P/A0BRR7zEdRpzeWL6ObAowMNWpkxZTT2BKqejK9oKWSh2/gzg6ehcn2Fn/J5DE8bnKZfAlEww95g==}
+  '@codama/visitors@1.0.0':
+    resolution: {integrity: sha512-JncE6wRJLxt0imlj+loGH6dLPEMK7ozlv9YjWgCQgUYUI7is66OFwhWP5SFO0iEFlVjtOzZLXVQwoe9LSDz8Gg==}
 
-  '@kinobi-so/visitors@0.21.5':
-    resolution: {integrity: sha512-RCJFaN1Q1f/MQW6PP3Oz0fgNXFVmfUEyErMzPM9CjBi1j2BJzTjff7IzEjbTpG7SbDY91eEyTDcl430ygcDBkA==}
+  '@iarna/toml@2.2.5':
+    resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==}
 
   '@noble/hashes@1.5.0':
     resolution: {integrity: sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA==}
@@ -137,6 +137,9 @@ packages:
     resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==}
     engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
 
+  codama@1.0.0:
+    resolution: {integrity: sha512-ttJ9n2THpqTD8fP8reec+Y2j4ZTBuonDJk8SiKuS6enZBXd67JF3b+GFKM2S5a0xtxN5Evof5aBlY3JyC+jujQ==}
+
   commander@12.1.0:
     resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==}
     engines: {node: '>=18'}
@@ -272,9 +275,6 @@ packages:
   jsonify@0.0.1:
     resolution: {integrity: sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==}
 
-  kinobi@0.21.5:
-    resolution: {integrity: sha512-1xgN00od8x4tokR1Xuqv5Gbg0Iqo9bzrEvA9o2rm63vXqoW7/C+TN1voPhj1SQE4h2VmpfM3MD1clTUvJK0J2g==}
-
   map-stream@0.1.0:
     resolution: {integrity: sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==}
 
@@ -400,41 +400,39 @@ packages:
 
 snapshots:
 
-  '@iarna/toml@2.2.5': {}
-
-  '@kinobi-so/errors@0.21.5':
+  '@codama/errors@1.0.0':
     dependencies:
-      '@kinobi-so/node-types': 0.21.5
+      '@codama/node-types': 1.0.0
       chalk: 5.3.0
       commander: 12.1.0
 
-  '@kinobi-so/node-types@0.21.5': {}
+  '@codama/node-types@1.0.0': {}
 
-  '@kinobi-so/nodes-from-anchor@0.21.3':
+  '@codama/nodes-from-anchor@1.0.0':
     dependencies:
-      '@kinobi-so/errors': 0.21.5
-      '@kinobi-so/nodes': 0.21.5
-      '@kinobi-so/visitors': 0.21.5
+      '@codama/errors': 1.0.0
+      '@codama/nodes': 1.0.0
+      '@codama/visitors': 1.0.0
       '@noble/hashes': 1.5.0
 
-  '@kinobi-so/nodes@0.21.5':
+  '@codama/nodes@1.0.0':
     dependencies:
-      '@kinobi-so/errors': 0.21.5
-      '@kinobi-so/node-types': 0.21.5
+      '@codama/errors': 1.0.0
+      '@codama/node-types': 1.0.0
 
-  '@kinobi-so/renderers-core@0.21.3':
+  '@codama/renderers-core@1.0.0':
     dependencies:
-      '@kinobi-so/errors': 0.21.5
-      '@kinobi-so/nodes': 0.21.5
-      '@kinobi-so/visitors-core': 0.21.5
+      '@codama/errors': 1.0.0
+      '@codama/nodes': 1.0.0
+      '@codama/visitors-core': 1.0.0
 
-  '@kinobi-so/renderers-js@0.21.9(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)':
+  '@codama/renderers-js@1.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)':
     dependencies:
-      '@kinobi-so/errors': 0.21.5
-      '@kinobi-so/nodes': 0.21.5
-      '@kinobi-so/nodes-from-anchor': 0.21.3
-      '@kinobi-so/renderers-core': 0.21.3
-      '@kinobi-so/visitors-core': 0.21.5
+      '@codama/errors': 1.0.0
+      '@codama/nodes': 1.0.0
+      '@codama/nodes-from-anchor': 1.0.0
+      '@codama/renderers-core': 1.0.0
+      '@codama/visitors-core': 1.0.0
       '@solana/codecs-strings': 2.0.0-rc.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)
       nunjucks: 3.2.4
       prettier: 3.3.3
@@ -443,12 +441,12 @@ snapshots:
       - fastestsmallesttextencoderdecoder
       - typescript
 
-  '@kinobi-so/renderers-rust@0.21.7(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)':
+  '@codama/renderers-rust@1.0.0(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)':
     dependencies:
-      '@kinobi-so/errors': 0.21.5
-      '@kinobi-so/nodes': 0.21.5
-      '@kinobi-so/renderers-core': 0.21.3
-      '@kinobi-so/visitors-core': 0.21.5
+      '@codama/errors': 1.0.0
+      '@codama/nodes': 1.0.0
+      '@codama/renderers-core': 1.0.0
+      '@codama/visitors-core': 1.0.0
       '@solana/codecs-strings': 2.0.0-rc.1(fastestsmallesttextencoderdecoder@1.0.22)(typescript@5.5.3)
       nunjucks: 3.2.4
     transitivePeerDependencies:
@@ -456,23 +454,25 @@ snapshots:
       - fastestsmallesttextencoderdecoder
       - typescript
 
-  '@kinobi-so/validators@0.21.5':
+  '@codama/validators@1.0.0':
     dependencies:
-      '@kinobi-so/errors': 0.21.5
-      '@kinobi-so/nodes': 0.21.5
-      '@kinobi-so/visitors-core': 0.21.5
+      '@codama/errors': 1.0.0
+      '@codama/nodes': 1.0.0
+      '@codama/visitors-core': 1.0.0
 
-  '@kinobi-so/visitors-core@0.21.5':
+  '@codama/visitors-core@1.0.0':
     dependencies:
-      '@kinobi-so/errors': 0.21.5
-      '@kinobi-so/nodes': 0.21.5
+      '@codama/errors': 1.0.0
+      '@codama/nodes': 1.0.0
       json-stable-stringify: 1.1.1
 
-  '@kinobi-so/visitors@0.21.5':
+  '@codama/visitors@1.0.0':
     dependencies:
-      '@kinobi-so/errors': 0.21.5
-      '@kinobi-so/nodes': 0.21.5
-      '@kinobi-so/visitors-core': 0.21.5
+      '@codama/errors': 1.0.0
+      '@codama/nodes': 1.0.0
+      '@codama/visitors-core': 1.0.0
+
+  '@iarna/toml@2.2.5': {}
 
   '@noble/hashes@1.5.0': {}
 
@@ -550,6 +550,13 @@ snapshots:
 
   chalk@5.3.0: {}
 
+  codama@1.0.0:
+    dependencies:
+      '@codama/errors': 1.0.0
+      '@codama/nodes': 1.0.0
+      '@codama/validators': 1.0.0
+      '@codama/visitors': 1.0.0
+
   commander@12.1.0: {}
 
   commander@5.1.0: {}
@@ -690,13 +697,6 @@ snapshots:
 
   jsonify@0.0.1: {}
 
-  kinobi@0.21.5:
-    dependencies:
-      '@kinobi-so/errors': 0.21.5
-      '@kinobi-so/nodes': 0.21.5
-      '@kinobi-so/validators': 0.21.5
-      '@kinobi-so/visitors': 0.21.5
-
   map-stream@0.1.0: {}
 
   merge2@1.4.1: {}

+ 2 - 2
program/idl.json

@@ -2758,6 +2758,6 @@
       "origin": "shank"
     }
   ],
-  "standard": "kinobi",
-  "version": "0.19.0"
+  "standard": "codama",
+  "version": "1.0.0"
 }

+ 7 - 7
scripts/generate-clients.mjs

@@ -1,18 +1,18 @@
 #!/usr/bin/env zx
 import 'zx/globals';
-import { createFromRoot } from 'kinobi';
-import { renderVisitor as renderJavaScriptVisitor } from '@kinobi-so/renderers-js';
-// import { renderVisitor as renderRustVisitor } from "@kinobi-so/renderers-rust";
+import { createFromRoot } from 'codama';
+import { renderVisitor as renderJavaScriptVisitor } from '@codama/renderers-js';
+// import { renderVisitor as renderRustVisitor } from "@codama/renderers-rust";
 import { workingDirectory } from './utils.mjs';
 
-// Instanciate Kinobi.
-const kinobi = createFromRoot(
+// Instanciate Codama.
+const codama = createFromRoot(
   require(path.join(workingDirectory, 'program', 'idl.json'))
 );
 
 // Render JavaScript.
 const jsClient = path.join(__dirname, '..', 'clients', 'js');
-kinobi.accept(
+codama.accept(
   renderJavaScriptVisitor(path.join(jsClient, 'src', 'generated'), {
     prettier: require(path.join(jsClient, '.prettierrc.json')),
   })
@@ -20,7 +20,7 @@ kinobi.accept(
 
 // Render Rust.
 // const rustClient = path.join(__dirname, "..", "clients", "rust");
-// kinobi.accept(
+// codama.accept(
 //   renderRustVisitor(path.join(rustClient, "src", "generated"), {
 //     formatCode: true,
 //     crateFolder: rustClient,