Expand description
An ERC20-like Token program for the Gemachain blockchain
Re-exports§
pub use gemachain_program;
Modules§
- error
- Error types
- instruction
- Instruction types
- native_
mint - The Mint that represents the native token
- processor
- Program state processor
- state
- State transition types
Statics§
- ID
- The static program ID
Functions§
- amount_
to_ ui_ amount - Convert a raw amount to its UI representation (using the decimals field defined in its mint)
- check_
id - Confirms that a given pubkey is equivalent to the program ID
- check_
program_ account - Checks that the supplied program ID is the correct one for SPL-token
- id
- Returns the program ID
- ui_
amount_ to_ amount - Convert the UI representation of a token amount (using the decimals field defined in its mint) to the raw amount