Skip to main content

Module keychain

Module keychain 

Source

Structsยง

CallScope
ExtTokenLimit
JsonCallScope ๐Ÿ”’
Represents a single scope entry in JSON format for --scopes.
KeyRestrictions
SelectorRule
authorizeKeyWithRestrictionsCall
Function with signature authorizeKeyWithRestrictions(address,uint8,(uint64,bool,(address,uint256)[],bool,(address,(bytes4,address[])[])[])) and selector 0x653cae4f.
authorizeKeyWithRestrictionsReturn
Container type for the return parameters of the authorizeKeyWithRestrictions(address,uint8,(uint64,bool,(address,uint256)[],bool,(address,(bytes4,address[])[])[])) function.
removeAllowedCallsCall
Function with signature removeAllowedCalls(address,address) and selector 0xf3941811.
removeAllowedCallsReturn
Container type for the return parameters of the removeAllowedCalls(address,address) function.
setAllowedCallsCall
Function with signature setAllowedCalls(address,(address,(bytes4,address[])[])[]) and selector 0xf5456703.
setAllowedCallsReturn
Container type for the return parameters of the setAllowedCalls(address,(address,(bytes4,address[])[])[]) function.

Enumsยง

JsonSelectorEntry ๐Ÿ”’
A selector entry can be either a plain string or an object with recipients.
KeychainSubcommand
Tempo keychain management commands.

Functionsยง

format_expiry ๐Ÿ”’
key_entry_to_json ๐Ÿ”’
key_type_name ๐Ÿ”’
load_keys_file ๐Ÿ”’
parse_limit ๐Ÿ”’
Parse a --limit TOKEN:AMOUNT flag value.
parse_scope ๐Ÿ”’
Parse a --scope TARGET[:SELECTORS[@RECIPIENTS]] flag value.
parse_scopes_json ๐Ÿ”’
Parse --scopes JSON flag value.
parse_selector_bytes ๐Ÿ”’
Parse a selector string: either a 4-byte hex (0xd09de08a) or a function name (computed as the first 4 bytes of keccak256 of name()).
parse_selector_rules ๐Ÿ”’
Parse comma-separated selectors, each optionally with @recipient1,recipient2,....
parse_signature_type ๐Ÿ”’
print_key_entry ๐Ÿ”’
run_authorize ๐Ÿ”’
cast keychain authorize / cast keychain auth โ€” authorize a key on-chain.
run_check ๐Ÿ”’
cast keychain check / cast keychain info โ€” query on-chain key status.
run_list ๐Ÿ”’
cast keychain list โ€” display all entries from keys.toml.
run_remaining_limit ๐Ÿ”’
cast keychain rl โ€” query remaining spending limit.
run_remove_scope ๐Ÿ”’
cast keychain rs โ€” remove call scope for a target.
run_revoke ๐Ÿ”’
cast keychain revoke / cast keychain rev โ€” revoke a key on-chain.
run_set_scope ๐Ÿ”’
cast keychain ss โ€” set allowed call scopes.
run_show ๐Ÿ”’
cast keychain show <wallet_address> โ€” show keys for a specific wallet.
run_update_limit ๐Ÿ”’
cast keychain ul โ€” update spending limit.
send_keychain_tx ๐Ÿ”’
Shared helper to send a keychain precompile transaction.
signature_type_name ๐Ÿ”’
wallet_type_name ๐Ÿ”’