|
@@ -13,23 +13,23 @@
|
|
|
> [!NOTE]
|
|
> [!NOTE]
|
|
|
> Wait, wasn't this project called Kinobi before? We've [renamed this project to **Codama**](https://github.com/codama-idl/codama/pull/234).
|
|
> Wait, wasn't this project called Kinobi before? We've [renamed this project to **Codama**](https://github.com/codama-idl/codama/pull/234).
|
|
|
|
|
|
|
|
-Codama is a tool that describes any Solana program in a standardised format called a **Codama IDL**.
|
|
|
|
|
|
|
+Codama is a tool that describes any Solana program in a standardised format called a **Codama IDL**.
|
|
|
|
|
|
|
|
A Codama IDL can be used to:
|
|
A Codama IDL can be used to:
|
|
|
|
|
|
|
|
- - Create clients for your programs in various languages/frameworks
|
|
|
|
|
- - Make CLIs
|
|
|
|
|
- - Provide additional information to explorers
|
|
|
|
|
|
|
+- Create clients for your programs in various languages/frameworks
|
|
|
|
|
+- Make CLIs
|
|
|
|
|
+- Provide additional information to explorers
|
|
|
|
|
|
|
|

|
|

|
|
|
|
|
|
|
|
## I'm a busy Anchor developer. How do I use Codama?
|
|
## I'm a busy Anchor developer. How do I use Codama?
|
|
|
|
|
|
|
|
-If you're using [Anchor](https://www.anchor-lang.com/), Codama can be used to create a TypeScript client that works with [Solana Kit](https://github.com/anza-xyz/kit). This combination replaces the traditional `@coral-xyz/anchor` and `@solana/web3.js` packages, and can be used in both TypeScript tests, and the browser.
|
|
|
|
|
|
|
+If you're using [Anchor](https://www.anchor-lang.com/), Codama can be used to create a TypeScript client that works with [Solana Kit](https://github.com/anza-xyz/kit). This combination replaces the traditional `@coral-xyz/anchor` and `@solana/web3.js` packages, and can be used in both TypeScript tests, and the browser.
|
|
|
|
|
|
|
|
- - The `programClient` created by Codama will be used to create instructions for your Anchor program, and decode your Anchor program's data accounts.
|
|
|
|
|
- - [`@solana/kit`](https://github.com/anza-xyz/kit) will be used to connect to the network, send transactions, and do most tasks that aren't specific to your program.
|
|
|
|
|
- - [`@solana/react`](https://github.com/anza-xyz/kit/tree/main/packages/react) will be used to connect to Solana wallet apps like Phantom, Solflare, etc. in React.
|
|
|
|
|
|
|
+- The `programClient` created by Codama will be used to create instructions for your Anchor program, and decode your Anchor program's data accounts.
|
|
|
|
|
+- [`@solana/kit`](https://github.com/anza-xyz/kit) will be used to connect to the network, send transactions, and do most tasks that aren't specific to your program.
|
|
|
|
|
+- [`@solana/react`](https://github.com/anza-xyz/kit/tree/main/packages/react) will be used to connect to Solana wallet apps like Phantom, Solflare, etc. in React.
|
|
|
|
|
|
|
|
This Codama README shows you how to create the TypeScript client for your Anchor program, but if you're interested in the bigger picture, see QuickNode's video on [Anchor and Solana Kit](https://www.youtube.com/watch?v=2T3DOMv7iR4).
|
|
This Codama README shows you how to create the TypeScript client for your Anchor program, but if you're interested in the bigger picture, see QuickNode's video on [Anchor and Solana Kit](https://www.youtube.com/watch?v=2T3DOMv7iR4).
|
|
|
|
|
|
|
@@ -102,10 +102,10 @@ The Codama IDL is designed as a tree of nodes starting with the `RootNode,` whic
|
|
|
|
|
|
|
|

|
|

|
|
|
|
|
|
|
|
-Because everything is designed as a `Node`, we can transform the IDL, aggregate information, and output various utility tools using special objects that can traverse node trees known as visitors. [See this documentation to learn more about Codama visitors](./packages/visitors).
|
|
|
|
|
|
|
+Because everything is designed as a `Node`, we can transform the IDL, aggregate information, and output various utility tools using special objects that can traverse node trees known as visitors. [See this documentation to learn more about Codama visitors](./packages/visitors).
|
|
|
|
|
|
|
|

|
|

|
|
|
|
|
|
|
|
## Other Resources
|
|
## Other Resources
|
|
|
|
|
|
|
|
-['Codama' tag on Solana Stack Exchange](https://solana.stackexchange.com/questions/tagged/codama)
|
|
|
|
|
|
|
+['Codama' tag on Solana Stack Exchange](https://solana.stackexchange.com/questions/tagged/codama)
|