Expand description
Generated by the following Solidity interface…
library IRewardsCoordinator {
struct OperatorDirectedRewardsSubmission {
StrategyAndMultiplier[] strategiesAndMultipliers;
address token;
OperatorReward[] operatorRewards;
uint32 startTimestamp;
uint32 duration;
string description;
}
struct OperatorReward {
address operator;
uint256 amount;
}
struct RewardsSubmission {
StrategyAndMultiplier[] strategiesAndMultipliers;
address token;
uint256 amount;
uint32 startTimestamp;
uint32 duration;
}
struct StrategyAndMultiplier {
address strategy;
uint96 multiplier;
}
}
library ISignatureUtils {
struct SignatureWithSaltAndExpiry {
bytes signature;
bytes32 salt;
uint256 expiry;
}
}
interface ServiceManagerBase {
event Initialized(uint8 version);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event RewardsInitiatorUpdated(address prevRewardsInitiator, address newRewardsInitiator);
function avsDirectory() external view returns (address);
function createAVSRewardsSubmission(IRewardsCoordinator.RewardsSubmission[] memory rewardsSubmissions) external;
function createOperatorDirectedAVSRewardsSubmission(IRewardsCoordinator.OperatorDirectedRewardsSubmission[] memory operatorDirectedRewardsSubmissions) external;
function deregisterOperatorFromAVS(address operator) external;
function getOperatorRestakedStrategies(address operator) external view returns (address[] memory);
function getRestakeableStrategies() external view returns (address[] memory);
function owner() external view returns (address);
function registerOperatorToAVS(address operator, ISignatureUtils.SignatureWithSaltAndExpiry memory operatorSignature) external;
function renounceOwnership() external;
function rewardsInitiator() external view returns (address);
function setClaimerFor(address claimer) external;
function setRewardsInitiator(address newRewardsInitiator) external;
function transferOwnership(address newOwner) external;
function updateAVSMetadataURI(string memory _metadataURI) external;
}
…which was generated by the following JSON ABI:
[
{
"type": "function",
"name": "avsDirectory",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "createAVSRewardsSubmission",
"inputs": [
{
"name": "rewardsSubmissions",
"type": "tuple[]",
"internalType": "struct IRewardsCoordinator.RewardsSubmission[]",
"components": [
{
"name": "strategiesAndMultipliers",
"type": "tuple[]",
"internalType": "struct IRewardsCoordinator.StrategyAndMultiplier[]",
"components": [
{
"name": "strategy",
"type": "address",
"internalType": "contract IStrategy"
},
{
"name": "multiplier",
"type": "uint96",
"internalType": "uint96"
}
]
},
{
"name": "token",
"type": "address",
"internalType": "contract IERC20"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "startTimestamp",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "createOperatorDirectedAVSRewardsSubmission",
"inputs": [
{
"name": "operatorDirectedRewardsSubmissions",
"type": "tuple[]",
"internalType": "struct IRewardsCoordinator.OperatorDirectedRewardsSubmission[]",
"components": [
{
"name": "strategiesAndMultipliers",
"type": "tuple[]",
"internalType": "struct IRewardsCoordinator.StrategyAndMultiplier[]",
"components": [
{
"name": "strategy",
"type": "address",
"internalType": "contract IStrategy"
},
{
"name": "multiplier",
"type": "uint96",
"internalType": "uint96"
}
]
},
{
"name": "token",
"type": "address",
"internalType": "contract IERC20"
},
{
"name": "operatorRewards",
"type": "tuple[]",
"internalType": "struct IRewardsCoordinator.OperatorReward[]",
"components": [
{
"name": "operator",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
]
},
{
"name": "startTimestamp",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "description",
"type": "string",
"internalType": "string"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "deregisterOperatorFromAVS",
"inputs": [
{
"name": "operator",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getOperatorRestakedStrategies",
"inputs": [
{
"name": "operator",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "address[]",
"internalType": "address[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getRestakeableStrategies",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address[]",
"internalType": "address[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "registerOperatorToAVS",
"inputs": [
{
"name": "operator",
"type": "address",
"internalType": "address"
},
{
"name": "operatorSignature",
"type": "tuple",
"internalType": "struct ISignatureUtils.SignatureWithSaltAndExpiry",
"components": [
{
"name": "signature",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "salt",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "expiry",
"type": "uint256",
"internalType": "uint256"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "renounceOwnership",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "rewardsInitiator",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "setClaimerFor",
"inputs": [
{
"name": "claimer",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setRewardsInitiator",
"inputs": [
{
"name": "newRewardsInitiator",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferOwnership",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateAVSMetadataURI",
"inputs": [
{
"name": "_metadataURI",
"type": "string",
"internalType": "string"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Initialized",
"inputs": [
{
"name": "version",
"type": "uint8",
"indexed": false,
"internalType": "uint8"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferred",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RewardsInitiatorUpdated",
"inputs": [
{
"name": "prevRewardsInitiator",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "newRewardsInitiator",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
}
]
Structs§
- Initialized
- Event with signature
Initialized(uint8)
and selector0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498
.solidity event Initialized(uint8 version);
- Ownership
Transferred - Event with signature
OwnershipTransferred(address,address)
and selector0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0
.solidity event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
- Rewards
Initiator Updated - Event with signature
RewardsInitiatorUpdated(address,address)
and selector0xe11cddf1816a43318ca175bbc52cd0185436e9cbead7c83acc54a73e461717e3
.solidity event RewardsInitiatorUpdated(address prevRewardsInitiator, address newRewardsInitiator);
- Service
Manager Base Instance - A
ServiceManagerBase
instance. - avsDirectory
Call - Function with signature
avsDirectory()
and selector0x6b3aa72e
.solidity function avsDirectory() external view returns (address);
- avsDirectory
Return - Container type for the return parameters of the
avsDirectory()
function. - createAVS
Rewards Submission Call - Function with signature
createAVSRewardsSubmission(((address,uint96)[],address,uint256,uint32,uint32)[])
and selector0xfce36c7d
.solidity function createAVSRewardsSubmission(IRewardsCoordinator.RewardsSubmission[] memory rewardsSubmissions) external;
- createAVS
Rewards Submission Return - Container type for the return parameters of the
createAVSRewardsSubmission(((address,uint96)[],address,uint256,uint32,uint32)[])
function. - create
Operator DirectedAVS Rewards Submission Call - Function with signature
createOperatorDirectedAVSRewardsSubmission(((address,uint96)[],address,(address,uint256)[],uint32,uint32,string)[])
and selector0xa20b99bf
.solidity function createOperatorDirectedAVSRewardsSubmission(IRewardsCoordinator.OperatorDirectedRewardsSubmission[] memory operatorDirectedRewardsSubmissions) external;
- create
Operator DirectedAVS Rewards Submission Return - Container type for the return parameters of the
createOperatorDirectedAVSRewardsSubmission(((address,uint96)[],address,(address,uint256)[],uint32,uint32,string)[])
function. - deregister
Operator FromAVS Call - Function with signature
deregisterOperatorFromAVS(address)
and selector0xa364f4da
.solidity function deregisterOperatorFromAVS(address operator) external;
- deregister
Operator FromAVS Return - Container type for the return parameters of the
deregisterOperatorFromAVS(address)
function. - getOperator
Restaked Strategies Call - Function with signature
getOperatorRestakedStrategies(address)
and selector0x33cfb7b7
.solidity function getOperatorRestakedStrategies(address operator) external view returns (address[] memory);
- getOperator
Restaked Strategies Return - Container type for the return parameters of the
getOperatorRestakedStrategies(address)
function. - getRestakeable
Strategies Call - Function with signature
getRestakeableStrategies()
and selector0xe481af9d
.solidity function getRestakeableStrategies() external view returns (address[] memory);
- getRestakeable
Strategies Return - Container type for the return parameters of the
getRestakeableStrategies()
function. - owner
Call - Function with signature
owner()
and selector0x8da5cb5b
.solidity function owner() external view returns (address);
- owner
Return - Container type for the return parameters of the
owner()
function. - register
Operator ToAVS Call - Function with signature
registerOperatorToAVS(address,(bytes,bytes32,uint256))
and selector0x9926ee7d
.solidity function registerOperatorToAVS(address operator, ISignatureUtils.SignatureWithSaltAndExpiry memory operatorSignature) external;
- register
Operator ToAVS Return - Container type for the return parameters of the
registerOperatorToAVS(address,(bytes,bytes32,uint256))
function. - renounce
Ownership Call - Function with signature
renounceOwnership()
and selector0x715018a6
.solidity function renounceOwnership() external;
- renounce
Ownership Return - Container type for the return parameters of the
renounceOwnership()
function. - rewards
Initiator Call - Function with signature
rewardsInitiator()
and selector0xfc299dee
.solidity function rewardsInitiator() external view returns (address);
- rewards
Initiator Return - Container type for the return parameters of the
rewardsInitiator()
function. - setClaimer
ForCall - Function with signature
setClaimerFor(address)
and selector0xa0169ddd
.solidity function setClaimerFor(address claimer) external;
- setClaimer
ForReturn - Container type for the return parameters of the
setClaimerFor(address)
function. - setRewards
Initiator Call - Function with signature
setRewardsInitiator(address)
and selector0x3bc28c8c
.solidity function setRewardsInitiator(address newRewardsInitiator) external;
- setRewards
Initiator Return - Container type for the return parameters of the
setRewardsInitiator(address)
function. - transfer
Ownership Call - Function with signature
transferOwnership(address)
and selector0xf2fde38b
.solidity function transferOwnership(address newOwner) external;
- transfer
Ownership Return - Container type for the return parameters of the
transferOwnership(address)
function. - updateAVS
MetadataURI Call - Function with signature
updateAVSMetadataURI(string)
and selector0xa98fb355
.solidity function updateAVSMetadataURI(string memory _metadataURI) external;
- updateAVS
MetadataURI Return - Container type for the return parameters of the
updateAVSMetadataURI(string)
function.
Enums§
- Service
Manager Base Calls - Container for all the
ServiceManagerBase
function calls. - Service
Manager Base Events - Container for all the
ServiceManagerBase
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
ServiceManagerBase
contract instance.