Crate tempo_precompiles

Crate tempo_precompiles 

Source
Expand description

Tempo precompile implementations.

Re-exportsยง

pub use error::Result;
pub use error::IntoPrecompileResult;
pub use account_keychain::AuthorizedKey;
pub use account_keychain::compute_keys_slot;

Modulesยง

account_keychain
error
nonce
path_usd
stablecoin_exchange
Stablecoin DEX types and utilities.
storage
tip20
tip20_factory
tip20_rewards_registry
tip403_registry
tip_account_registrar
tip_fee_manager
validator_config

Macrosยง

tempo_precompile ๐Ÿ”’

Structsยง

AccountKeychainPrecompile
DelegateCallNotAllowed
Custom error with signature DelegateCallNotAllowed() and selector 0x0d89438e.
NoncePrecompile
PathUSDPrecompile
StablecoinExchangePrecompile
TIP20FactoryPrecompile
TIP20Precompile
TIP20RewardsRegistryPrecompile
TIP403RegistryPrecompile
TipAccountRegistrarPrecompile
TipFeeManagerPrecompile
ValidatorConfigPrecompile

Constantsยง

ACCOUNT_KEYCHAIN_ADDRESS
DEFAULT_FEE_TOKEN_POST_ALLEGRETTO
Default fee token post allegretto hardfork (PathUSD)
DEFAULT_FEE_TOKEN_PRE_ALLEGRETTO
Default fee token pre allegretto hardfork
INPUT_PER_WORD_COST
Input per word cost. It covers abi decoding and cloning of input into call data.
NONCE_PRECOMPILE_ADDRESS
PATH_USD_ADDRESS
STABLECOIN_EXCHANGE_ADDRESS
TIP20_FACTORY_ADDRESS
TIP20_REWARDS_REGISTRY_ADDRESS
TIP403_REGISTRY_ADDRESS
TIP_ACCOUNT_REGISTRAR
TIP_FEE_MANAGER_ADDRESS
VALIDATOR_CONFIG_ADDRESS

Traitsยง

Precompile

Functionsยง

extend_tempo_precompiles
fill_precompile_output ๐Ÿ”’
input_cost
metadata ๐Ÿ”’
mutate
mutate_void ๐Ÿ”’
unknown_selector
Helper function to return an unknown function selector error
view ๐Ÿ”’