Expand description
An ERC20-like Token program for the Arch blockchain
Re-exports§
pub use arch_program;
Modules§
- error
- Error types
- instruction
- Instruction types
- processor
- Program state processor
- state
- State transition types
Functions§
- amount_
to_ ui_ amount - Convert a raw amount to its UI representation (using the decimals field defined in its mint)
- amount_
to_ ui_ amount_ string - Convert a raw amount to its UI representation (using the decimals field defined in its mint)
- amount_
to_ ui_ amount_ string_ trimmed - Convert a raw amount to its UI representation using the given decimals field Excess zeroes or unneeded decimal point are trimmed.
- check_
program_ account - Checks that the supplied program ID is the correct one for APL-token
- id
- The program ID for the APL-token program
- try_
ui_ amount_ into_ amount - Try to convert a UI representation of a token amount to its raw amount using the given decimals field
- ui_
amount_ to_ amount - Convert the UI representation of a token amount (using the decimals field defined in its mint) to the raw amount