Expand description
Generated by the following Solidity interface…
interface HoprSafeProxyForNetworkRegistry {
error SameValue();
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 SnapshotUpdated(uint128 indexed blockNumber);
event ThresholdUpdated(uint256 indexed threshold);
event TokenAndRegistryUpdated(address indexed token, address indexed nodeSafeRegistry);
constructor(address _owner, address _manager, uint256 _stakeThreshold, uint128 _snapshotBlockNumber, address _token, address _nodeSafeRegistry);
function DEFAULT_ADMIN_ROLE() external view returns (bytes32);
function MANAGER_ROLE() external view returns (bytes32);
function canOperateFor(address stakingAccount, address nodeAddress) external view returns (bool eligiblity);
function getRoleAdmin(bytes32 role) external view returns (bytes32);
function getRoleMember(bytes32 role, uint256 index) external view returns (address);
function getRoleMemberCount(bytes32 role) external view returns (uint256);
function grantRole(bytes32 role, address account) external;
function hasRole(bytes32 role, address account) external view returns (bool);
function maxAllowedRegistrations(address safeAddress) external view returns (uint256);
function nodeSafeRegistry() external view returns (address);
function renounceRole(bytes32 role, address account) external;
function revokeRole(bytes32 role, address account) external;
function snapshotBlockNumber() external view returns (uint128);
function stakeThreshold() external view returns (uint256);
function supportsInterface(bytes4 interfaceId) external view returns (bool);
function token() external view returns (address);
function updateSnapshotBlockNumber(uint128 newSnapshotBlock) external;
function updateStakeThreshold(uint256 newThreshold) external;
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "_owner",
"type": "address",
"internalType": "address"
},
{
"name": "_manager",
"type": "address",
"internalType": "address"
},
{
"name": "_stakeThreshold",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_snapshotBlockNumber",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "_token",
"type": "address",
"internalType": "address"
},
{
"name": "_nodeSafeRegistry",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "DEFAULT_ADMIN_ROLE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "MANAGER_ROLE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "canOperateFor",
"inputs": [
{
"name": "stakingAccount",
"type": "address",
"internalType": "address"
},
{
"name": "nodeAddress",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "eligiblity",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getRoleAdmin",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getRoleMember",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "index",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getRoleMemberCount",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"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": "maxAllowedRegistrations",
"inputs": [
{
"name": "safeAddress",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "nodeSafeRegistry",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract HoprNodeSafeRegistry"
}
],
"stateMutability": "view"
},
{
"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": "snapshotBlockNumber",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint128",
"internalType": "uint128"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "stakeThreshold",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "supportsInterface",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "token",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IERC777Snapshot"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "updateSnapshotBlockNumber",
"inputs": [
{
"name": "newSnapshotBlock",
"type": "uint128",
"internalType": "uint128"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateStakeThreshold",
"inputs": [
{
"name": "newThreshold",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"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": "SnapshotUpdated",
"inputs": [
{
"name": "blockNumber",
"type": "uint128",
"indexed": true,
"internalType": "uint128"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ThresholdUpdated",
"inputs": [
{
"name": "threshold",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "TokenAndRegistryUpdated",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "nodeSafeRegistry",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "SameValue",
"inputs": []
}
]
Structs§
- 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. - Hopr
Safe Proxy ForNetwork Registry Instance - A
HoprSafeProxyForNetworkRegistry
instance. - MANAGER_
ROLE Call - Function with signature
MANAGER_ROLE()
and selector0xec87621c
. - MANAGER_
ROLE Return - Container type for the return parameters of the
MANAGER_ROLE()
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
. - Same
Value - Custom error with signature
SameValue()
and selector0xc23f6ccb
. - Snapshot
Updated - Event with signature
SnapshotUpdated(uint128)
and selector0xaf1d1599b5c7da9a2004b57ac14784199718a90364ae47f27ac894926f0655fc
. - Threshold
Updated - Event with signature
ThresholdUpdated(uint256)
and selector0xadfa8ecb21b6962ebcd0adbd9ab985b7b4c5b5eb3b0dead683171565c7bfe171
. - Token
AndRegistry Updated - Event with signature
TokenAndRegistryUpdated(address,address)
and selector0x77b9cb4f87feab1ebd814bb694b7d514ee2dc1f0abd4c3957f46829c2e249dff
. - canOperate
ForCall - Function with signature
canOperateFor(address,address)
and selector0xd85ad044
. - canOperate
ForReturn - Container type for the return parameters of the
canOperateFor(address,address)
function. - constructor
Call - Constructor`.
- getRole
Admin Call - Function with signature
getRoleAdmin(bytes32)
and selector0x248a9ca3
. - getRole
Admin Return - Container type for the return parameters of the
getRoleAdmin(bytes32)
function. - getRole
Member Call - Function with signature
getRoleMember(bytes32,uint256)
and selector0x9010d07c
. - getRole
Member Count Call - Function with signature
getRoleMemberCount(bytes32)
and selector0xca15c873
. - getRole
Member Count Return - Container type for the return parameters of the
getRoleMemberCount(bytes32)
function. - getRole
Member Return - Container type for the return parameters of the
getRoleMember(bytes32,uint256)
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. - maxAllowed
Registrations Call - Function with signature
maxAllowedRegistrations(address)
and selector0xb3544e82
. - maxAllowed
Registrations Return - Container type for the return parameters of the
maxAllowedRegistrations(address)
function. - node
Safe Registry Call - Function with signature
nodeSafeRegistry()
and selector0x6a4a4041
. - node
Safe Registry Return - Container type for the return parameters of the
nodeSafeRegistry()
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. - snapshot
Block Number Call - Function with signature
snapshotBlockNumber()
and selector0xf25e7108
. - snapshot
Block Number Return - Container type for the return parameters of the
snapshotBlockNumber()
function. - stake
Threshold Call - Function with signature
stakeThreshold()
and selector0xf11f77f9
. - stake
Threshold Return - Container type for the return parameters of the
stakeThreshold()
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. - token
Call - Function with signature
token()
and selector0xfc0c546a
. - token
Return - Container type for the return parameters of the
token()
function. - update
Snapshot Block Number Call - Function with signature
updateSnapshotBlockNumber(uint128)
and selector0x5abe5308
. - update
Snapshot Block Number Return - Container type for the return parameters of the
updateSnapshotBlockNumber(uint128)
function. - update
Stake Threshold Call - Function with signature
updateStakeThreshold(uint256)
and selector0x5ef53329
. - update
Stake Threshold Return - Container type for the return parameters of the
updateStakeThreshold(uint256)
function.
Enums§
- Hopr
Safe Proxy ForNetwork Registry Calls - Container for all the
HoprSafeProxyForNetworkRegistry
function calls. - Hopr
Safe Proxy ForNetwork Registry Errors - Container for all the
HoprSafeProxyForNetworkRegistry
custom errors. - Hopr
Safe Proxy ForNetwork Registry Events - Container for all the
HoprSafeProxyForNetworkRegistry
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
HoprSafeProxyForNetworkRegistry
contract instance.