Expand description
Note: The tests are located in the stellar-axelar-std package instead of stellar-axelar-std-derive
This ensures compatibility and prevents cyclic dependency issues during testing and release.
Attribute Macros§
- contractimpl
- Designates functions in an
implblock as contract entrypoints. - contractstorage
- Implements a storage interface for a Stellar contract storage enum.
- only_
operator - Ensures that only a contract’s operator can execute the attributed function.
- only_
owner - Ensures that only a contract’s owner can execute the attributed function.
- when_
not_ paused - Ensure that the Stellar contract is not paused before executing the function.
Derive Macros§
- Axelar
Executable - Interchain
Token Executable - Into
Event - Implements the Event trait for a Stellar contract event.
- Operatable
- Implements the Operatable interface for a Soroban contract.
- Ownable
- Implements the Ownable interface for a Soroban contract.
- Pausable
- Implements the Pausable interface for a Soroban contract.
- Upgradable
- Implements the Upgradable and Migratable interfaces for a Soroban contract.