Expand description
TIP-1022 virtual address registry interface.
Allows EOAs and contracts to register as virtual-address masters via a 32-bit proof-of-work and provides resolution of virtual addresses back to their registered master.
interface IAddressRegistry {
function registerVirtualMaster(bytes32 salt) external returns (bytes4 masterId);
function getMaster(bytes4 masterId) external view returns (address);
function resolveRecipient(address to) external view returns (address effectiveRecipient);
function resolveVirtualAddress(address virtualAddr) external view returns (address master);
function isVirtualAddress(address addr) external pure returns (bool);
function decodeVirtualAddress(address addr) external pure returns (bool isVirtual, bytes4 masterId, bytes6 userTag);
event MasterRegistered(bytes4 indexed masterId, address indexed masterAddress);
error MasterIdCollision(address master);
error InvalidMasterAddress();
error ProofOfWorkFailed();
error VirtualAddressUnregistered();
}Modules§
- abi
- Contains dynamic ABI definitions for this contract.
Structs§
- IAddress
Registry Instance - A
IAddressRegistryinstance. - Invalid
Master Address - Custom error with signature
InvalidMasterAddress()and selector0x8a3563c0. - Master
IdCollision - Custom error with signature
MasterIdCollision(address)and selector0xd36e8de2. - Master
Registered - Event with signature
MasterRegistered(bytes4,address)and selector0xb5c59136d5edcbb78af73e696fa65a73a2856c847f832a8d7be05cff85629015. - Proof
OfWork Failed - Custom error with signature
ProofOfWorkFailed()and selector0x981d64be. - Virtual
Address Unregistered - Custom error with signature
VirtualAddressUnregistered()and selector0xda56842c. - decode
Virtual Address Call - Function with signature
decodeVirtualAddress(address)and selector0xb35d6fb9. - decode
Virtual Address Return - Container type for the return parameters of the
decodeVirtualAddress(address)function. - getMaster
Call - Function with signature
getMaster(bytes4)and selector0xd84ab166. - getMaster
Return - Container type for the return parameters of the
getMaster(bytes4)function. - isVirtual
Address Call - Function with signature
isVirtualAddress(address)and selector0xd501235a. - isVirtual
Address Return - Container type for the return parameters of the
isVirtualAddress(address)function. - register
Virtual Master Call - Function with signature
registerVirtualMaster(bytes32)and selector0x5c559d20. - register
Virtual Master Return - Container type for the return parameters of the
registerVirtualMaster(bytes32)function. - resolve
Recipient Call - Function with signature
resolveRecipient(address)and selector0xfbea9d67. - resolve
Recipient Return - Container type for the return parameters of the
resolveRecipient(address)function. - resolve
Virtual Address Call - Function with signature
resolveVirtualAddress(address)and selector0xe2fc56ef. - resolve
Virtual Address Return - Container type for the return parameters of the
resolveVirtualAddress(address)function.
Enums§
- IAddress
Registry Calls - Container for all the
IAddressRegistryfunction calls. - IAddress
Registry Errors - Container for all the
IAddressRegistrycustom errors. - IAddress
Registry Events - Container for all the
IAddressRegistryevents.
Functions§
- new
- Creates a new wrapper around an on-chain
IAddressRegistrycontract instance.