Expand description
Generated by the following Solidity interface…
interface ContractResolver {
type Env is uint8;
error AdminRoleRequired();
event AllowedEnvAdded(Env env);
event AllowedEnvRemoved(Env env);
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);
event SetContract(bytes32 typ, Env env, address addr);
constructor(Env env);
function ADMIN_ROLE() external view returns (bytes32);
function ALLOWLIST_CONTRACT() external view returns (bytes32);
function BACKUP_RECOVERY_CONTRACT() external view returns (bytes32);
function CLONE_NET_CONTRACT() external view returns (bytes32);
function DEFAULT_ADMIN_ROLE() external view returns (bytes32);
function DOMAIN_WALLET_REGISTRY() external view returns (bytes32);
function HD_KEY_DERIVER_CONTRACT() external view returns (bytes32);
function HOST_COMMANDS_CONTRACT() external view returns (bytes32);
function LIT_TOKEN_CONTRACT() external view returns (bytes32);
function MULTI_SENDER_CONTRACT() external view returns (bytes32);
function PAYMENT_DELEGATION_CONTRACT() external view returns (bytes32);
function PKP_HELPER_CONTRACT() external view returns (bytes32);
function PKP_HELPER_V2_CONTRACT() external view returns (bytes32);
function PKP_NFT_CONTRACT() external view returns (bytes32);
function PKP_NFT_METADATA_CONTRACT() external view returns (bytes32);
function PKP_PERMISSIONS_CONTRACT() external view returns (bytes32);
function PUB_KEY_ROUTER_CONTRACT() external view returns (bytes32);
function RATE_LIMIT_NFT_CONTRACT() external view returns (bytes32);
function RELEASE_REGISTER_CONTRACT() external view returns (bytes32);
function STAKING_BALANCES_CONTRACT() external view returns (bytes32);
function STAKING_CONTRACT() external view returns (bytes32);
function addAdmin(address newAdmin) external;
function addAllowedEnv(Env env) external;
function getContract(bytes32 typ, Env env) external view returns (address);
function getRoleAdmin(bytes32 role) external view returns (bytes32);
function grantRole(bytes32 role, address account) external;
function hasRole(bytes32 role, address account) external view returns (bool);
function removeAdmin(address adminBeingRemoved) external;
function removeAllowedEnv(Env env) external;
function renounceRole(bytes32 role, address account) external;
function revokeRole(bytes32 role, address account) external;
function setContract(bytes32 typ, Env env, address addr) external;
function supportsInterface(bytes4 interfaceId) external view returns (bool);
function typeAddresses(bytes32, Env) external view returns (address);
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "env",
"type": "uint8",
"internalType": "enum ContractResolver.Env"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "ADMIN_ROLE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "ALLOWLIST_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "BACKUP_RECOVERY_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "CLONE_NET_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "DEFAULT_ADMIN_ROLE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "DOMAIN_WALLET_REGISTRY",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "HD_KEY_DERIVER_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "HOST_COMMANDS_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "LIT_TOKEN_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "MULTI_SENDER_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "PAYMENT_DELEGATION_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "PKP_HELPER_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "PKP_HELPER_V2_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "PKP_NFT_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "PKP_NFT_METADATA_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "PKP_PERMISSIONS_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "PUB_KEY_ROUTER_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "RATE_LIMIT_NFT_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "RELEASE_REGISTER_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKING_BALANCES_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "STAKING_CONTRACT",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "addAdmin",
"inputs": [
{
"name": "newAdmin",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "addAllowedEnv",
"inputs": [
{
"name": "env",
"type": "uint8",
"internalType": "enum ContractResolver.Env"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getContract",
"inputs": [
{
"name": "typ",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "env",
"type": "uint8",
"internalType": "enum ContractResolver.Env"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getRoleAdmin",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "grantRole",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "hasRole",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "removeAdmin",
"inputs": [
{
"name": "adminBeingRemoved",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "removeAllowedEnv",
"inputs": [
{
"name": "env",
"type": "uint8",
"internalType": "enum ContractResolver.Env"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "renounceRole",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "revokeRole",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setContract",
"inputs": [
{
"name": "typ",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "env",
"type": "uint8",
"internalType": "enum ContractResolver.Env"
},
{
"name": "addr",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "supportsInterface",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "typeAddresses",
"inputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "",
"type": "uint8",
"internalType": "enum ContractResolver.Env"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "AllowedEnvAdded",
"inputs": [
{
"name": "env",
"type": "uint8",
"indexed": false,
"internalType": "enum ContractResolver.Env"
}
],
"anonymous": false
},
{
"type": "event",
"name": "AllowedEnvRemoved",
"inputs": [
{
"name": "env",
"type": "uint8",
"indexed": false,
"internalType": "enum ContractResolver.Env"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RoleAdminChanged",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "previousAdminRole",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "newAdminRole",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RoleGranted",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RoleRevoked",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "SetContract",
"inputs": [
{
"name": "typ",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
},
{
"name": "env",
"type": "uint8",
"indexed": false,
"internalType": "enum ContractResolver.Env"
},
{
"name": "addr",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "AdminRoleRequired",
"inputs": []
}
]
Structs§
- ADMIN_
ROLE Call - Function with signature
ADMIN_ROLE()
and selector0x75b238fc
. - ADMIN_
ROLE Return - Container type for the return parameters of the
ADMIN_ROLE()
function. - ALLOWLIST_
CONTRACT Call - Function with signature
ALLOWLIST_CONTRACT()
and selector0x7cadf69f
. - ALLOWLIST_
CONTRACT Return - Container type for the return parameters of the
ALLOWLIST_CONTRACT()
function. - Admin
Role Required - Custom error with signature
AdminRoleRequired()
and selector0xc890f84a
. - Allowed
EnvAdded - Event with signature
AllowedEnvAdded(uint8)
and selector0x839ad2743d4062df579edf3818f642b71ee0688a35d6bc4438ef5314cece8015
. - Allowed
EnvRemoved - Event with signature
AllowedEnvRemoved(uint8)
and selector0x3f178f17dae6caf8ca09c4857502baf7744e8597de42d6596476fe9e06b8ad47
. - BACKUP_
RECOVERY_ CONTRACT Call - Function with signature
BACKUP_RECOVERY_CONTRACT()
and selector0x7d4a03bd
. - BACKUP_
RECOVERY_ CONTRACT Return - Container type for the return parameters of the
BACKUP_RECOVERY_CONTRACT()
function. - CLONE_
NET_ CONTRACT Call - Function with signature
CLONE_NET_CONTRACT()
and selector0x193b983d
. - CLONE_
NET_ CONTRACT Return - Container type for the return parameters of the
CLONE_NET_CONTRACT()
function. - Contract
Resolver Instance - A
ContractResolver
instance. - DEFAULT_
ADMIN_ ROLE Call - Function with signature
DEFAULT_ADMIN_ROLE()
and selector0xa217fddf
. - DEFAULT_
ADMIN_ ROLE Return - Container type for the return parameters of the
DEFAULT_ADMIN_ROLE()
function. - DOMAIN_
WALLET_ REGISTRY Call - Function with signature
DOMAIN_WALLET_REGISTRY()
and selector0x4216e73a
. - DOMAIN_
WALLET_ REGISTRY Return - Container type for the return parameters of the
DOMAIN_WALLET_REGISTRY()
function. - Env
- HD_
KEY_ DERIVER_ CONTRACT Call - Function with signature
HD_KEY_DERIVER_CONTRACT()
and selector0x85cb1191
. - HD_
KEY_ DERIVER_ CONTRACT Return - Container type for the return parameters of the
HD_KEY_DERIVER_CONTRACT()
function. - HOST_
COMMANDS_ CONTRACT Call - Function with signature
HOST_COMMANDS_CONTRACT()
and selector0x5af27f79
. - HOST_
COMMANDS_ CONTRACT Return - Container type for the return parameters of the
HOST_COMMANDS_CONTRACT()
function. - LIT_
TOKEN_ CONTRACT Call - Function with signature
LIT_TOKEN_CONTRACT()
and selector0xdf380693
. - LIT_
TOKEN_ CONTRACT Return - Container type for the return parameters of the
LIT_TOKEN_CONTRACT()
function. - MULTI_
SENDER_ CONTRACT Call - Function with signature
MULTI_SENDER_CONTRACT()
and selector0xf8ae93b4
. - MULTI_
SENDER_ CONTRACT Return - Container type for the return parameters of the
MULTI_SENDER_CONTRACT()
function. - PAYMENT_
DELEGATION_ CONTRACT Call - Function with signature
PAYMENT_DELEGATION_CONTRACT()
and selector0x7f90209f
. - PAYMENT_
DELEGATION_ CONTRACT Return - Container type for the return parameters of the
PAYMENT_DELEGATION_CONTRACT()
function. - PKP_
HELPER_ CONTRACT Call - Function with signature
PKP_HELPER_CONTRACT()
and selector0x977a8070
. - PKP_
HELPER_ CONTRACT Return - Container type for the return parameters of the
PKP_HELPER_CONTRACT()
function. - PKP_
HELPER_ V2_ CONTRACT Call - Function with signature
PKP_HELPER_V2_CONTRACT()
and selector0x11ee8ff7
. - PKP_
HELPER_ V2_ CONTRACT Return - Container type for the return parameters of the
PKP_HELPER_V2_CONTRACT()
function. - PKP_
NFT_ CONTRACT Call - Function with signature
PKP_NFT_CONTRACT()
and selector0x2c0b8bf7
. - PKP_
NFT_ CONTRACT Return - Container type for the return parameters of the
PKP_NFT_CONTRACT()
function. - PKP_
NFT_ METADATA_ CONTRACT Call - Function with signature
PKP_NFT_METADATA_CONTRACT()
and selector0x16f76bbf
. - PKP_
NFT_ METADATA_ CONTRACT Return - Container type for the return parameters of the
PKP_NFT_METADATA_CONTRACT()
function. - PKP_
PERMISSIONS_ CONTRACT Call - Function with signature
PKP_PERMISSIONS_CONTRACT()
and selector0x9072f838
. - PKP_
PERMISSIONS_ CONTRACT Return - Container type for the return parameters of the
PKP_PERMISSIONS_CONTRACT()
function. - PUB_
KEY_ ROUTER_ CONTRACT Call - Function with signature
PUB_KEY_ROUTER_CONTRACT()
and selector0x2668f305
. - PUB_
KEY_ ROUTER_ CONTRACT Return - Container type for the return parameters of the
PUB_KEY_ROUTER_CONTRACT()
function. - RATE_
LIMIT_ NFT_ CONTRACT Call - Function with signature
RATE_LIMIT_NFT_CONTRACT()
and selector0x2e4885e8
. - RATE_
LIMIT_ NFT_ CONTRACT Return - Container type for the return parameters of the
RATE_LIMIT_NFT_CONTRACT()
function. - RELEASE_
REGISTER_ CONTRACT Call - Function with signature
RELEASE_REGISTER_CONTRACT()
and selector0xad1c8a86
. - RELEASE_
REGISTER_ CONTRACT Return - Container type for the return parameters of the
RELEASE_REGISTER_CONTRACT()
function. - Role
Admin Changed - Event with signature
RoleAdminChanged(bytes32,bytes32,bytes32)
and selector0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff
. - Role
Granted - Event with signature
RoleGranted(bytes32,address,address)
and selector0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d
. - Role
Revoked - Event with signature
RoleRevoked(bytes32,address,address)
and selector0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b
. - STAKING_
BALANCES_ CONTRACT Call - Function with signature
STAKING_BALANCES_CONTRACT()
and selector0x8c1536df
. - STAKING_
BALANCES_ CONTRACT Return - Container type for the return parameters of the
STAKING_BALANCES_CONTRACT()
function. - STAKING_
CONTRACT Call - Function with signature
STAKING_CONTRACT()
and selector0xda19ddfb
. - STAKING_
CONTRACT Return - Container type for the return parameters of the
STAKING_CONTRACT()
function. - SetContract
- Event with signature
SetContract(bytes32,uint8,address)
and selector0x33f014890f109229bbcf8dd47204c153a2c0ff1c572a61de220d10336530f53d
. - addAdmin
Call - Function with signature
addAdmin(address)
and selector0x70480275
. - addAdmin
Return - Container type for the return parameters of the
addAdmin(address)
function. - addAllowed
EnvCall - Function with signature
addAllowedEnv(uint8)
and selector0x74bc8139
. - addAllowed
EnvReturn - Container type for the return parameters of the
addAllowedEnv(uint8)
function. - constructor
Call - Constructor`.
- getContract
Call - Function with signature
getContract(bytes32,uint8)
and selector0x8e8dfd16
. - getContract
Return - Container type for the return parameters of the
getContract(bytes32,uint8)
function. - getRole
Admin Call - Function with signature
getRoleAdmin(bytes32)
and selector0x248a9ca3
. - getRole
Admin Return - Container type for the return parameters of the
getRoleAdmin(bytes32)
function. - grant
Role Call - Function with signature
grantRole(bytes32,address)
and selector0x2f2ff15d
. - grant
Role Return - Container type for the return parameters of the
grantRole(bytes32,address)
function. - hasRole
Call - Function with signature
hasRole(bytes32,address)
and selector0x91d14854
. - hasRole
Return - Container type for the return parameters of the
hasRole(bytes32,address)
function. - remove
Admin Call - Function with signature
removeAdmin(address)
and selector0x1785f53c
. - remove
Admin Return - Container type for the return parameters of the
removeAdmin(address)
function. - remove
Allowed EnvCall - Function with signature
removeAllowedEnv(uint8)
and selector0x8deb3893
. - remove
Allowed EnvReturn - Container type for the return parameters of the
removeAllowedEnv(uint8)
function. - renounce
Role Call - Function with signature
renounceRole(bytes32,address)
and selector0x36568abe
. - renounce
Role Return - Container type for the return parameters of the
renounceRole(bytes32,address)
function. - revoke
Role Call - Function with signature
revokeRole(bytes32,address)
and selector0xd547741f
. - revoke
Role Return - Container type for the return parameters of the
revokeRole(bytes32,address)
function. - setContract
Call - Function with signature
setContract(bytes32,uint8,address)
and selector0x51ad0a80
. - setContract
Return - Container type for the return parameters of the
setContract(bytes32,uint8,address)
function. - supports
Interface Call - Function with signature
supportsInterface(bytes4)
and selector0x01ffc9a7
. - supports
Interface Return - Container type for the return parameters of the
supportsInterface(bytes4)
function. - type
Addresses Call - Function with signature
typeAddresses(bytes32,uint8)
and selector0x3ebf7985
. - type
Addresses Return - Container type for the return parameters of the
typeAddresses(bytes32,uint8)
function.
Enums§
- Contract
Resolver Calls - Container for all the
ContractResolver
function calls. - Contract
Resolver Errors - Container for all the
ContractResolver
custom errors. - Contract
Resolver Events - Container for all the
ContractResolver
events.
Statics§
- BYTECODE
- The creation / init bytecode of the contract.
- DEPLOYED_
BYTECODE - The runtime bytecode of the contract, as deployed on the network.
Functions§
- deploy
- Deploys this contract using the given
provider
and constructor arguments, if any. - deploy_
builder - Creates a
RawCallBuilder
for deploying this contract using the givenprovider
and constructor arguments, if any. - new
- Creates a new wrapper around an on-chain
ContractResolver
contract instance.