Skip to main content

Module precompiles

Module precompiles 

Source

Modules§

account_keychain
address_registry
common_errors
nonce
receive_policy_guard
signature_verifier
stablecoin_dex
storage_credits
tip20
tip20_channel_reserve
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.
authorizeAdminKeyCall
Authorize a new admin key for the caller’s account. @dev The witness must not be burned for the caller’s account. bytes32(0) is valid. Function with signature authorizeAdminKey(address,uint8,bytes32) and selector 0x9a424307.
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.
authorizeKeyWithWitnessCall
Authorize a new key with a TIP-1053 witness. @dev The witness must not be burned for the caller’s account. bytes32(0) is valid. Function with signature authorizeKey(address,uint8,(uint64,bool,(address,uint256,uint64)[],bool,(address,(bytes4,address[])[])[]),bytes32) and selector 0xe3c154d2.
createTokenCall
Function with signature createToken(string,string,string,address,address,bytes32) and selector 0x68130445.
createTokenWithLogoCall
@notice Creates a token and sets its logoURI atomically (TIP-1026). @dev Solidity overload of createToken with an additional logoURI argument. Reverts with LogoURITooLong if bytes(logoURI).length > 256, or with InvalidLogoURI if logoURI is non-empty and either has no parseable scheme or its scheme is not in the allow-list. Function with signature createToken(string,string,string,address,address,bytes32,string) and selector 0x5323d222.
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.
ReceivePolicyGuardError
Container for all the IReceivePolicyGuard custom errors.
ReceivePolicyGuardEvent
Container for all the IReceivePolicyGuard 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.
StorageCreditsError
Container for all the IStorageCredits custom errors.
TIP20ChannelReserveError
Container for all the ITIP20ChannelReserve custom errors.
TIP20ChannelReserveEvent
Container for all the ITIP20ChannelReserve 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_PAYMENT_CALLDATA_LEN
TIP-1045 Maximum calldata length (in bytes) for payment-eligible calls with dynamic params.
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.
RECEIVE_POLICY_GUARD_ADDRESS
SIGNATURE_VERIFIER_ADDRESS
STABLECOIN_DEX_ADDRESS
STORAGE_CREDITS_ADDRESS
TIP20_CHANNEL_RESERVE_ADDRESS
Native TIP-1034 channel reserve precompile 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.