Crate jesse

Source

Structs§

SignedKeyRequestMetadata
to encode to eip712 data, for add parameters
Transfer

Constants§

ID_GATEWAY_ADDRESS
KEY_GATEWAY_ADDRESS

Functions§

add_key
Add a key to the user’s fid calling the [IKeyGateway]’s add(uint32 keyType, bytes calldata key, uint8 metadataType, bytes calldata metadata) function
add_key_for
Same as add_key except designed to be called from a provider signer of a different account, letting you add a key for someone that doesn’t want to pay TX fees, the key gateway companion to register_fid_for
build_add_key_for
Builds the transaction request for add_key_for
build_register_fid_for
Build the actual registerFor call, used by register_fid_for, could be used to extract and sign externally
default_provider
fid_of
get the owner’s fid that they are registered as, or none if 0x0
fname_sign_hash
Generate the signature hash to be signed by an alloy alloy::signers::Signer instance
get_nonce
Get the current nonce for a given address and user, address being probably [KeyGateway] or [IdGateway]
get_transfers_for_fid
Get the list of username transfers for a specific fid if they exist
get_transfers_for_username
Get the list of username transfers for a specific name if they exist
key_add_sign_hash
Generate the EIP-712 signing hash of an [Add] typehash to be signed and passed into the addFor parameter of the [KeyGateway]
one_hour_deadline
public_provider
register_fid
sign and broadcast a register transaction, returning the signer’s new fid Errors here could indicate any of the [IIdRegistryErrors] (currently unaccounted for)
register_fid_for
Same as register_fid except designed to be called from a provider signer of a different account, letting you register for someone that doesn’t want to pay TX fees, the id gateway companion to add_key_for
register_fname
Register the name with Warpcast’s server, before submitting a username update to ‘claim’ the name by updating your user profile data
register_sign_hash
Generates the Register signing hash
sign_key_metadata
Generates bytes of a SignedKeyRequest to include as the metadata signature parameter
sign_key_request_metadata
Designed to be used by wrapping / proving a SignedKeyRequest’s hash has been signed by the request_signer which owns request_fid deadlines must match signed data and this metadata and be in the future from when the block is confirmed
sign_key_request_sign_hash
Generate the EIP-712 signing hash of a SignedKeyRequest to be signed and wrapped into a SignedKeyRequestMetadata object via sign_key_request_metadata
transfer_fname
Transfer the fname using Warpcast’s server, letting the new user ‘claim’ the name by updating their user profile data