Provide Solana/Rust types to the user's TypeScript code
Provide helper functions that are useful for developing Solana programs
Types
Since Axolotl programs are written with TypeScript, we can provide types to the users. For Seahorse programs, the types are included in a static file next to your Anchor program.
Anchor has defined JavaScript --> Rust types. We'll be taking as much inspiration from their implementation as possible. Integers greater than 32 bytes will utilize bn.js, common for both Anchor and Solana.
The Axolotl TypeScript library will be used to:
Types
Since Axolotl programs are written with TypeScript, we can provide types to the users. For Seahorse programs, the types are included in a static file next to your Anchor program.
Rust data types
Refer to the Rust documentation for data types.
Anchor has defined JavaScript --> Rust types. We'll be taking as much inspiration from their implementation as possible. Integers greater than 32 bytes will utilize
bn.js
, common for both Anchor and Solana.Solana types
Pubkey
AccountInfo
Signer
Program
Clock
TokenAccount
TokenMint
@solana/web3.js
has a lot of classes and types that we will likely be able to utilize/export from Axolotl.Anchor types
Helper functions
declare_id
/ ID helpers.env
or something similarRelease
@axolotl/sol