Skip to main content

Module precompiles

Module precompiles 

Source

Modules§

account_keychain
address_registry
common_errors
nonce
signature_verifier
stablecoin_dex
tip20
tip20_factory
tip403_registry
tip_fee_manager
validator_config
validator_config_v2

Structs§

UnknownFunctionSelector
Error returned when a function selector is not recognized Custom error with signature UnknownFunctionSelector(bytes4) and selector 0xaa4bc69a.
authorizeKeyCall
Authorize a new key for the caller’s account with T3 extensions. @param keyId The key identifier (address derived from public key) @param signatureType 0: secp256k1, 1: P256, 2: WebAuthn @param config Access-key expiry and optional limits / call restrictions Function with signature authorizeKey(address,uint8,(uint64,bool,(address,uint256,uint64)[],bool,(address,(bytes4,address[])[])[])) and selector 0x980a6025.
getAllowedCallsReturn
Returns whether an account key is call-scoped and, if so, the configured call scopes. @dev isScoped = false means unrestricted. isScoped = true && scopes.length == 0 means scoped deny-all. @dev Missing, revoked, or expired access keys also return scoped deny-all so callers do not observe stale persisted scope state. Container type for the return parameters of the getAllowedCalls(address,address) function.
getRemainingLimitReturn
Get remaining spending limit together with the active period end. @param account The account address @param publicKey The public key @param token The token address @return remaining Remaining spending amount @return periodEnd Period end timestamp for periodic limits (0 for one-time) Container type for the return parameters of the getRemainingLimitWithPeriod(address,address,address) function.
getRemainingLimitWithPeriodCall
Get remaining spending limit together with the active period end. @param account The account address @param publicKey The public key @param token The token address @return remaining Remaining spending amount @return periodEnd Period end timestamp for periodic limits (0 for one-time) Function with signature getRemainingLimitWithPeriod(address,address,address) and selector 0xa7f72cab.
legacyAuthorizeKeyCall
Legacy authorize-key entrypoint used before T3. Function with signature authorizeKey(address,uint8,uint64,bool,(address,uint256)[]) and selector 0x54063a55.

Enums§

AccountKeychainError
Container for all the IAccountKeychain custom errors.
AccountKeychainEvent
Container for all the IAccountKeychain events.
AddrRegistryError
Container for all the IAddressRegistry custom errors.
AddrRegistryEvent
Container for all the IAddressRegistry events.
FeeManagerError
Container for all the IFeeManager custom errors.
FeeManagerEvent
Container for all the IFeeManager events.
NonceError
Container for all the INonce custom errors.
NonceEvent
Container for all the INonce events.
RolesAuthError
Container for all the IRolesAuth custom errors.
RolesAuthEvent
Container for all the IRolesAuth events.
SignatureVerifierError
Container for all the ISignatureVerifier custom errors.
StablecoinDEXError
Container for all the IStablecoinDEX custom errors.
StablecoinDEXEvents
Container for all the IStablecoinDEX events.
TIP20Error
Container for all the ITIP20 custom errors.
TIP20Event
Container for all the ITIP20 events.
TIP20FactoryError
Container for all the ITIP20Factory custom errors.
TIP20FactoryEvent
Container for all the ITIP20Factory events.
TIP403RegistryError
Container for all the ITIP403Registry custom errors.
TIP403RegistryEvent
Container for all the ITIP403Registry events.
TIPFeeAMMError
Container for all the ITIPFeeAMM custom errors.
TIPFeeAMMEvent
Container for all the ITIPFeeAMM events.
ValidatorConfigError
Container for all the IValidatorConfig custom errors.
ValidatorConfigV2Error
Container for all the IValidatorConfigV2 custom errors.
ValidatorConfigV2Event
Container for all the IValidatorConfigV2 events.

Constants§

ACCOUNT_KEYCHAIN_ADDRESS
ADDRESS_REGISTRY_ADDRESS
DECIMALS
Decimal precision for all TIP-20 tokens.
DEFAULT_FEE_TOKEN
ISO4217_CODES
Full list of ISO 4217 currency codes.
MAX_TICK
Maximum tick value for the orderbook price grid.
MIN_TICK
Minimum tick value for the orderbook price grid.
NONCE_PRECOMPILE_ADDRESS
PATH_USD_ADDRESS
PRICE_SCALE
Price scale factor for tick-to-price conversions.
SIGNATURE_VERIFIER_ADDRESS
STABLECOIN_DEX_ADDRESS
TIP20_FACTORY_ADDRESS
TIP403_REGISTRY_ADDRESS
TIP_FEE_MANAGER_ADDRESS
USD_CURRENCY
USD currency string constant.
VALIDATOR_CONFIG_ADDRESS
VALIDATOR_CONFIG_V2_ADDRESS

Functions§

is_iso4217_currency
Returns true if the given code is a recognized ISO 4217 currency code.