@exromany/lido-csm-sdk
Version:
[](https://github.com/lidofinance/lido-csm-sdk/blob/main/LICENSE.txt) [](h
1,060 lines • 24.8 kB
JavaScript
export const FeeDistributorAbi = [
{
type: 'constructor',
inputs: [
{
name: 'stETH',
type: 'address',
internalType: 'address'
},
{
name: 'accounting',
type: 'address',
internalType: 'address'
},
{
name: 'oracle',
type: 'address',
internalType: 'address'
}
],
stateMutability: 'nonpayable'
},
{
type: 'function',
name: 'ACCOUNTING',
inputs: [],
outputs: [
{
name: '',
type: 'address',
internalType: 'address'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'DEFAULT_ADMIN_ROLE',
inputs: [],
outputs: [
{
name: '',
type: 'bytes32',
internalType: 'bytes32'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'ORACLE',
inputs: [],
outputs: [
{
name: '',
type: 'address',
internalType: 'address'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'RECOVERER_ROLE',
inputs: [],
outputs: [
{
name: '',
type: 'bytes32',
internalType: 'bytes32'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'STETH',
inputs: [],
outputs: [
{
name: '',
type: 'address',
internalType: 'contract IStETH'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'distributeFees',
inputs: [
{
name: 'nodeOperatorId',
type: 'uint256',
internalType: 'uint256'
},
{
name: 'cumulativeFeeShares',
type: 'uint256',
internalType: 'uint256'
},
{
name: 'proof',
type: 'bytes32[]',
internalType: 'bytes32[]'
}
],
outputs: [
{
name: 'sharesToDistribute',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'nonpayable'
},
{
type: 'function',
name: 'distributedShares',
inputs: [
{
name: 'nodeOperatorId',
type: 'uint256',
internalType: 'uint256'
}
],
outputs: [
{
name: 'distributed',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'distributionDataHistoryCount',
inputs: [],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'finalizeUpgradeV3',
inputs: [],
outputs: [],
stateMutability: 'nonpayable'
},
{
type: 'function',
name: 'getFeesToDistribute',
inputs: [
{
name: 'nodeOperatorId',
type: 'uint256',
internalType: 'uint256'
},
{
name: 'cumulativeFeeShares',
type: 'uint256',
internalType: 'uint256'
},
{
name: 'proof',
type: 'bytes32[]',
internalType: 'bytes32[]'
}
],
outputs: [
{
name: 'sharesToDistribute',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'getHistoricalDistributionData',
inputs: [
{
name: 'index',
type: 'uint256',
internalType: 'uint256'
}
],
outputs: [
{
name: '',
type: 'tuple',
internalType: 'struct IFeeDistributor.DistributionData',
components: [
{
name: 'refSlot',
type: 'uint256',
internalType: 'uint256'
},
{
name: 'treeRoot',
type: 'bytes32',
internalType: 'bytes32'
},
{
name: 'treeCid',
type: 'string',
internalType: 'string'
},
{
name: 'logCid',
type: 'string',
internalType: 'string'
},
{
name: 'distributed',
type: 'uint256',
internalType: 'uint256'
},
{
name: 'rebate',
type: 'uint256',
internalType: 'uint256'
}
]
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'getInitializedVersion',
inputs: [],
outputs: [
{
name: '',
type: 'uint64',
internalType: 'uint64'
}
],
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: 'hashLeaf',
inputs: [
{
name: 'nodeOperatorId',
type: 'uint256',
internalType: 'uint256'
},
{
name: 'shares',
type: 'uint256',
internalType: 'uint256'
}
],
outputs: [
{
name: '',
type: 'bytes32',
internalType: 'bytes32'
}
],
stateMutability: 'pure'
},
{
type: 'function',
name: 'initialize',
inputs: [
{
name: 'admin',
type: 'address',
internalType: 'address'
},
{
name: '_rebateRecipient',
type: 'address',
internalType: 'address'
}
],
outputs: [],
stateMutability: 'nonpayable'
},
{
type: 'function',
name: 'logCid',
inputs: [],
outputs: [
{
name: '',
type: 'string',
internalType: 'string'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'pendingSharesToDistribute',
inputs: [],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'processOracleReport',
inputs: [
{
name: '_treeRoot',
type: 'bytes32',
internalType: 'bytes32'
},
{
name: '_treeCid',
type: 'string',
internalType: 'string'
},
{
name: '_logCid',
type: 'string',
internalType: 'string'
},
{
name: 'distributed',
type: 'uint256',
internalType: 'uint256'
},
{
name: 'rebate',
type: 'uint256',
internalType: 'uint256'
},
{
name: 'refSlot',
type: 'uint256',
internalType: 'uint256'
}
],
outputs: [],
stateMutability: 'nonpayable'
},
{
type: 'function',
name: 'rebateRecipient',
inputs: [],
outputs: [
{
name: '',
type: 'address',
internalType: 'address'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'recoverERC1155',
inputs: [
{
name: 'token',
type: 'address',
internalType: 'address'
},
{
name: 'tokenId',
type: 'uint256',
internalType: 'uint256'
}
],
outputs: [],
stateMutability: 'nonpayable'
},
{
type: 'function',
name: 'recoverERC20',
inputs: [
{
name: 'token',
type: 'address',
internalType: 'address'
},
{
name: 'amount',
type: 'uint256',
internalType: 'uint256'
}
],
outputs: [],
stateMutability: 'nonpayable'
},
{
type: 'function',
name: 'recoverERC721',
inputs: [
{
name: 'token',
type: 'address',
internalType: 'address'
},
{
name: 'tokenId',
type: 'uint256',
internalType: 'uint256'
}
],
outputs: [],
stateMutability: 'nonpayable'
},
{
type: 'function',
name: 'recoverEther',
inputs: [],
outputs: [],
stateMutability: 'nonpayable'
},
{
type: 'function',
name: 'renounceRole',
inputs: [
{
name: 'role',
type: 'bytes32',
internalType: 'bytes32'
},
{
name: 'callerConfirmation',
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: 'setRebateRecipient',
inputs: [
{
name: '_rebateRecipient',
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: 'totalClaimableShares',
inputs: [],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'treeCid',
inputs: [],
outputs: [
{
name: '',
type: 'string',
internalType: 'string'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'treeRoot',
inputs: [],
outputs: [
{
name: '',
type: 'bytes32',
internalType: 'bytes32'
}
],
stateMutability: 'view'
},
{
type: 'event',
name: 'DistributionDataUpdated',
inputs: [
{
name: 'totalClaimableShares',
type: 'uint256',
indexed: false,
internalType: 'uint256'
},
{
name: 'treeRoot',
type: 'bytes32',
indexed: false,
internalType: 'bytes32'
},
{
name: 'treeCid',
type: 'string',
indexed: false,
internalType: 'string'
}
],
anonymous: false
},
{
type: 'event',
name: 'DistributionLogUpdated',
inputs: [
{
name: 'logCid',
type: 'string',
indexed: false,
internalType: 'string'
}
],
anonymous: false
},
{
type: 'event',
name: 'ERC1155Recovered',
inputs: [
{
name: 'token',
type: 'address',
indexed: true,
internalType: 'address'
},
{
name: 'tokenId',
type: 'uint256',
indexed: false,
internalType: 'uint256'
},
{
name: 'recipient',
type: 'address',
indexed: true,
internalType: 'address'
},
{
name: 'amount',
type: 'uint256',
indexed: false,
internalType: 'uint256'
}
],
anonymous: false
},
{
type: 'event',
name: 'ERC20Recovered',
inputs: [
{
name: 'token',
type: 'address',
indexed: true,
internalType: 'address'
},
{
name: 'recipient',
type: 'address',
indexed: true,
internalType: 'address'
},
{
name: 'amount',
type: 'uint256',
indexed: false,
internalType: 'uint256'
}
],
anonymous: false
},
{
type: 'event',
name: 'ERC721Recovered',
inputs: [
{
name: 'token',
type: 'address',
indexed: true,
internalType: 'address'
},
{
name: 'tokenId',
type: 'uint256',
indexed: false,
internalType: 'uint256'
},
{
name: 'recipient',
type: 'address',
indexed: true,
internalType: 'address'
}
],
anonymous: false
},
{
type: 'event',
name: 'EtherRecovered',
inputs: [
{
name: 'recipient',
type: 'address',
indexed: true,
internalType: 'address'
},
{
name: 'amount',
type: 'uint256',
indexed: false,
internalType: 'uint256'
}
],
anonymous: false
},
{
type: 'event',
name: 'Initialized',
inputs: [
{
name: 'version',
type: 'uint64',
indexed: false,
internalType: 'uint64'
}
],
anonymous: false
},
{
type: 'event',
name: 'ModuleFeeDistributed',
inputs: [
{
name: 'shares',
type: 'uint256',
indexed: false,
internalType: 'uint256'
}
],
anonymous: false
},
{
type: 'event',
name: 'OperatorFeeDistributed',
inputs: [
{
name: 'nodeOperatorId',
type: 'uint256',
indexed: true,
internalType: 'uint256'
},
{
name: 'shares',
type: 'uint256',
indexed: false,
internalType: 'uint256'
}
],
anonymous: false
},
{
type: 'event',
name: 'RebateRecipientSet',
inputs: [
{
name: 'recipient',
type: 'address',
indexed: false,
internalType: 'address'
}
],
anonymous: false
},
{
type: 'event',
name: 'RebateTransferred',
inputs: [
{
name: 'shares',
type: 'uint256',
indexed: false,
internalType: 'uint256'
}
],
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: 'StETHSharesRecovered',
inputs: [
{
name: 'recipient',
type: 'address',
indexed: true,
internalType: 'address'
},
{
name: 'shares',
type: 'uint256',
indexed: false,
internalType: 'uint256'
}
],
anonymous: false
},
{
type: 'error',
name: 'AccessControlBadConfirmation',
inputs: []
},
{
type: 'error',
name: 'AccessControlUnauthorizedAccount',
inputs: [
{
name: 'account',
type: 'address',
internalType: 'address'
},
{
name: 'neededRole',
type: 'bytes32',
internalType: 'bytes32'
}
]
},
{
type: 'error',
name: 'FailedToSendEther',
inputs: []
},
{
type: 'error',
name: 'FeeSharesDecrease',
inputs: []
},
{
type: 'error',
name: 'InvalidInitialization',
inputs: []
},
{
type: 'error',
name: 'InvalidLogCID',
inputs: []
},
{
type: 'error',
name: 'InvalidProof',
inputs: []
},
{
type: 'error',
name: 'InvalidReportData',
inputs: []
},
{
type: 'error',
name: 'InvalidShares',
inputs: []
},
{
type: 'error',
name: 'InvalidTreeCid',
inputs: []
},
{
type: 'error',
name: 'InvalidTreeRoot',
inputs: []
},
{
type: 'error',
name: 'NotAllowedToRecover',
inputs: []
},
{
type: 'error',
name: 'NotEnoughShares',
inputs: []
},
{
type: 'error',
name: 'NotInitializing',
inputs: []
},
{
type: 'error',
name: 'SenderIsNotAccounting',
inputs: []
},
{
type: 'error',
name: 'SenderIsNotOracle',
inputs: []
},
{
type: 'error',
name: 'ZeroAccountingAddress',
inputs: []
},
{
type: 'error',
name: 'ZeroAdminAddress',
inputs: []
},
{
type: 'error',
name: 'ZeroOracleAddress',
inputs: []
},
{
type: 'error',
name: 'ZeroRebateRecipientAddress',
inputs: []
},
{
type: 'error',
name: 'ZeroStEthAddress',
inputs: []
},
];
//# sourceMappingURL=FeeDistributor.js.map