Expand description
Generated by the following Solidity interface…
interface HoprCapabilityPermissions {
type GranularPermission is uint8;
type Target is uint256;
error AddressIsZero();
error ArrayTooLong();
error ArraysDifferentLength();
error CalldataOutOfBounds();
error DefaultPermissionRejected();
error DelegateCallNotAllowed();
error FunctionSignatureTooShort();
error GranularPermissionRejected();
error NoMembership();
error NodePermissionRejected();
error ParameterNotAllowed();
error PermissionNotConfigured();
error SendNotAllowed();
error TargetAddressNotAllowed();
error TargetIsNotScoped();
error TargetIsScoped();
error UnacceptableMultiSendOffset();
event RevokedTarget(address indexed targetAddress);
event ScopedGranularChannelCapability(address indexed targetAddress, bytes32 indexed channelId, bytes4 selector, GranularPermission permission);
event ScopedGranularSendCapability(address indexed nodeAddress, address indexed recipientAddress, GranularPermission permission);
event ScopedGranularTokenCapability(address indexed nodeAddress, address indexed targetAddress, address indexed recipientAddress, bytes4 selector, GranularPermission permission);
event ScopedTargetChannels(address indexed targetAddress, Target target);
event ScopedTargetSend(address indexed targetAddress, Target target);
event ScopedTargetToken(address indexed targetAddress, Target target);
function APPROVE_SELECTOR() external view returns (bytes4);
function CLOSE_INCOMING_CHANNEL_SELECTOR() external view returns (bytes4);
function FINALIZE_OUTGOING_CHANNEL_CLOSURE_SELECTOR() external view returns (bytes4);
function FUND_CHANNEL_SELECTOR() external view returns (bytes4);
function INITIATE_OUTGOING_CHANNEL_CLOSURE_SELECTOR() external view returns (bytes4);
function REDEEM_TICKET_SELECTOR() external view returns (bytes4);
function SEND_SELECTOR() external view returns (bytes4);
}…which was generated by the following JSON ABI:
[
{
"type": "function",
"name": "APPROVE_SELECTOR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "CLOSE_INCOMING_CHANNEL_SELECTOR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "FINALIZE_OUTGOING_CHANNEL_CLOSURE_SELECTOR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "FUND_CHANNEL_SELECTOR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "INITIATE_OUTGOING_CHANNEL_CLOSURE_SELECTOR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "REDEEM_TICKET_SELECTOR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "SEND_SELECTOR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "RevokedTarget",
"inputs": [
{
"name": "targetAddress",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ScopedGranularChannelCapability",
"inputs": [
{
"name": "targetAddress",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "channelId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "selector",
"type": "bytes4",
"indexed": false,
"internalType": "bytes4"
},
{
"name": "permission",
"type": "uint8",
"indexed": false,
"internalType": "enum GranularPermission"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ScopedGranularSendCapability",
"inputs": [
{
"name": "nodeAddress",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "recipientAddress",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "permission",
"type": "uint8",
"indexed": false,
"internalType": "enum GranularPermission"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ScopedGranularTokenCapability",
"inputs": [
{
"name": "nodeAddress",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "targetAddress",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "recipientAddress",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "selector",
"type": "bytes4",
"indexed": false,
"internalType": "bytes4"
},
{
"name": "permission",
"type": "uint8",
"indexed": false,
"internalType": "enum GranularPermission"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ScopedTargetChannels",
"inputs": [
{
"name": "targetAddress",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "target",
"type": "uint256",
"indexed": false,
"internalType": "Target"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ScopedTargetSend",
"inputs": [
{
"name": "targetAddress",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "target",
"type": "uint256",
"indexed": false,
"internalType": "Target"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ScopedTargetToken",
"inputs": [
{
"name": "targetAddress",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "target",
"type": "uint256",
"indexed": false,
"internalType": "Target"
}
],
"anonymous": false
},
{
"type": "error",
"name": "AddressIsZero",
"inputs": []
},
{
"type": "error",
"name": "ArrayTooLong",
"inputs": []
},
{
"type": "error",
"name": "ArraysDifferentLength",
"inputs": []
},
{
"type": "error",
"name": "CalldataOutOfBounds",
"inputs": []
},
{
"type": "error",
"name": "DefaultPermissionRejected",
"inputs": []
},
{
"type": "error",
"name": "DelegateCallNotAllowed",
"inputs": []
},
{
"type": "error",
"name": "FunctionSignatureTooShort",
"inputs": []
},
{
"type": "error",
"name": "GranularPermissionRejected",
"inputs": []
},
{
"type": "error",
"name": "NoMembership",
"inputs": []
},
{
"type": "error",
"name": "NodePermissionRejected",
"inputs": []
},
{
"type": "error",
"name": "ParameterNotAllowed",
"inputs": []
},
{
"type": "error",
"name": "PermissionNotConfigured",
"inputs": []
},
{
"type": "error",
"name": "SendNotAllowed",
"inputs": []
},
{
"type": "error",
"name": "TargetAddressNotAllowed",
"inputs": []
},
{
"type": "error",
"name": "TargetIsNotScoped",
"inputs": []
},
{
"type": "error",
"name": "TargetIsScoped",
"inputs": []
},
{
"type": "error",
"name": "UnacceptableMultiSendOffset",
"inputs": []
}
]Structs§
- APPROVE_
SELECTOR Call - Function with signature
APPROVE_SELECTOR()and selector0xa0865839. - APPROVE_
SELECTOR Return - Container type for the return parameters of the
APPROVE_SELECTOR()function. - Address
IsZero - Custom error with signature
AddressIsZero()and selector0x867915ab. - Array
TooLong - Custom error with signature
ArrayTooLong()and selector0xbd26cc38. - Arrays
Different Length - Custom error with signature
ArraysDifferentLength()and selector0x74f4d537. - CLOSE_
INCOMING_ CHANNEL_ SELECTOR Call - Function with signature
CLOSE_INCOMING_CHANNEL_SELECTOR()and selector0x678a5efb. - CLOSE_
INCOMING_ CHANNEL_ SELECTOR Return - Container type for the return parameters of the
CLOSE_INCOMING_CHANNEL_SELECTOR()function. - Calldata
OutOf Bounds - Custom error with signature
CalldataOutOfBounds()and selector0x742638b4. - Default
Permission Rejected - Custom error with signature
DefaultPermissionRejected()and selector0x58723037. - Delegate
Call NotAllowed - Custom error with signature
DelegateCallNotAllowed()and selector0x0d89438e. - FINALIZE_
OUTGOING_ CHANNEL_ CLOSURE_ SELECTOR Call - Function with signature
FINALIZE_OUTGOING_CHANNEL_CLOSURE_SELECTOR()and selector0x8167b67e. - FINALIZE_
OUTGOING_ CHANNEL_ CLOSURE_ SELECTOR Return - Container type for the return parameters of the
FINALIZE_OUTGOING_CHANNEL_CLOSURE_SELECTOR()function. - FUND_
CHANNEL_ SELECTOR Call - Function with signature
FUND_CHANNEL_SELECTOR()and selector0xb677a40f. - FUND_
CHANNEL_ SELECTOR Return - Container type for the return parameters of the
FUND_CHANNEL_SELECTOR()function. - Function
Signature TooShort - Custom error with signature
FunctionSignatureTooShort()and selector0x4684c122. - Granular
Permission - Granular
Permission Rejected - Custom error with signature
GranularPermissionRejected()and selector0x864dd1e7. - Hopr
Capability Permissions Instance - A
HoprCapabilityPermissionsinstance. - INITIATE_
OUTGOING_ CHANNEL_ CLOSURE_ SELECTOR Call - Function with signature
INITIATE_OUTGOING_CHANNEL_CLOSURE_SELECTOR()and selector0x5daa9e24. - INITIATE_
OUTGOING_ CHANNEL_ CLOSURE_ SELECTOR Return - Container type for the return parameters of the
INITIATE_OUTGOING_CHANNEL_CLOSURE_SELECTOR()function. - NoMembership
- Custom error with signature
NoMembership()and selector0xfd8e9f28. - Node
Permission Rejected - Custom error with signature
NodePermissionRejected()and selector0x6eb0315f. - Parameter
NotAllowed - Custom error with signature
ParameterNotAllowed()and selector0x31e98246. - Permission
NotConfigured - Custom error with signature
PermissionNotConfigured()and selector0x46ad4588. - REDEEM_
TICKET_ SELECTOR Call - Function with signature
REDEEM_TICKET_SELECTOR()and selector0x51d2614b. - REDEEM_
TICKET_ SELECTOR Return - Container type for the return parameters of the
REDEEM_TICKET_SELECTOR()function. - Revoked
Target - Event with signature
RevokedTarget(address)and selector0x0dfce1ea4ba1eeba891ffb2a066790fbc293a9e517fe61d49d156a30165f93f3. - SEND_
SELECTOR Call - Function with signature
SEND_SELECTOR()and selector0x7a757115. - SEND_
SELECTOR Return - Container type for the return parameters of the
SEND_SELECTOR()function. - Scoped
Granular Channel Capability - Event with signature
ScopedGranularChannelCapability(address,bytes32,bytes4,uint8)and selector0xf2ffd4f09d58d06824188033d3318d06eb957bfb1a8ffed9af78e1f19168b904. - Scoped
Granular Send Capability - Event with signature
ScopedGranularSendCapability(address,address,uint8)and selector0x7487530ddff120799505e52b1b19b6933f85a9eeae9220c80a7ad7c429b612ae. - Scoped
Granular Token Capability - Event with signature
ScopedGranularTokenCapability(address,address,address,bytes4,uint8)and selector0xa3df710420b01cc30ff300309abbc7fadd4630d4ab385b0f5a126fb4babe762b. - Scoped
Target Channels - Event with signature
ScopedTargetChannels(address,uint256)and selector0x5ffb06b0b0e8ad6a8f3c5831d499dfa612d9c9d4dc107bbd66f18f61a6492e71. - Scoped
Target Send - Event with signature
ScopedTargetSend(address,uint256)and selector0x1ee2791f2caf0e92a9dc32a37a9ea53ab6ac7a6fb8f2d090e53a067d3a43f6ac. - Scoped
Target Token - Event with signature
ScopedTargetToken(address,uint256)and selector0xaaf26bb12aa89ee96bbe19667a6a055727b75d3f6ed7b8b611ef6519180209d6. - Send
NotAllowed - Custom error with signature
SendNotAllowed()and selector0x09e9cd49. - Target
- Target
Address NotAllowed - Custom error with signature
TargetAddressNotAllowed()and selector0xef3440ac. - Target
IsNot Scoped - Custom error with signature
TargetIsNotScoped()and selector0x4a890321. - Target
IsScoped - Custom error with signature
TargetIsScoped()and selector0xe8c07d2a. - Unacceptable
Multi Send Offset - Custom error with signature
UnacceptableMultiSendOffset()and selector0x7ed11137.
Enums§
- Hopr
Capability Permissions Calls - Container for all the
HoprCapabilityPermissionsfunction calls. - Hopr
Capability Permissions Errors - Container for all the
HoprCapabilityPermissionscustom errors. - Hopr
Capability Permissions Events - Container for all the
HoprCapabilityPermissionsevents.
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
providerand constructor arguments, if any. - deploy_
builder - Creates a
RawCallBuilderfor deploying this contract using the givenproviderand constructor arguments, if any. - new
- Creates a new wrapper around an on-chain
HoprCapabilityPermissionscontract instance.