@skalenetwork/fair-manager-types
Version:
TypeScript typings for SKALE Fair Manager smart contracts
862 lines • 16.6 kB
JSON
[
{
"inputs": [
{
"internalType": "address",
"name": "receiver",
"type": "address"
}
],
"name": "addAllowedReceiver",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
}
],
"name": "claimRequest",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "disable",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "enable",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "getDelegatorsToNode",
"outputs": [
{
"internalType": "address[]",
"name": "delegators",
"type": "address[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "getDelegatorsToNodeCount",
"outputs": [
{
"internalType": "uint256",
"name": "count",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "getEarnedFeeAmount",
"outputs": [
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
}
],
"name": "getExitRequest",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
},
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
},
{
"internalType": "Timestamp",
"name": "unlockDate",
"type": "uint256"
}
],
"internalType": "struct IStaking.ExitRequest",
"name": "request",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "getExitRequestAt",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
},
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
},
{
"internalType": "Timestamp",
"name": "unlockDate",
"type": "uint256"
}
],
"internalType": "struct IStaking.ExitRequest",
"name": "request",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getExitRequestsCountFor",
"outputs": [
{
"internalType": "uint256",
"name": "count",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getMyExitRequestsCount",
"outputs": [
{
"internalType": "uint256",
"name": "count",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getMyTotalInExitQueue",
"outputs": [
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "getNodeFeeRate",
"outputs": [
{
"internalType": "uint16",
"name": "feeRate",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "getNodeShare",
"outputs": [
{
"internalType": "uint256",
"name": "share",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "getNodeTotalStake",
"outputs": [
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getRetrievingDelay",
"outputs": [
{
"internalType": "Timestamp",
"name": "delay",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "getRewardWallet",
"outputs": [
{
"internalType": "contract IRewardWallet",
"name": "rewardWallet",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getStakedAmount",
"outputs": [
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "holder",
"type": "address"
}
],
"name": "getStakedAmountFor",
"outputs": [
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getStakedNodes",
"outputs": [
{
"internalType": "NodeId[]",
"name": "stakedNodes",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "holder",
"type": "address"
}
],
"name": "getStakedNodesFor",
"outputs": [
{
"internalType": "NodeId[]",
"name": "stakedNodes",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "getStakedToNodeAmount",
"outputs": [
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
},
{
"internalType": "address",
"name": "holder",
"type": "address"
}
],
"name": "getStakedToNodeAmountFor",
"outputs": [
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTotalInExitQueue",
"outputs": [
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "getTotalInExitQueueFor",
"outputs": [
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "uint256",
"name": "fromIndex",
"type": "uint256"
}
],
"name": "getUnlockedExitRequestFor",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
},
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "NodeId",
"name": "nodeId",
"type": "uint256"
},
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
},
{
"internalType": "Timestamp",
"name": "unlockDate",
"type": "uint256"
}
],
"internalType": "struct IStaking.ExitRequest",
"name": "request",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "initialAuthority",
"type": "address"
},
{
"internalType": "contract ICommittee",
"name": "committee",
"type": "address"
},
{
"internalType": "contract INodes",
"name": "nodes",
"type": "address"
},
{
"internalType": "contract IRewardWallet",
"name": "rewardWalletReference",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "isNodeEnabled",
"outputs": [
{
"internalType": "bool",
"name": "enabled",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "requestId",
"type": "uint256"
}
],
"name": "isRequestUnlocked",
"outputs": [
{
"internalType": "bool",
"name": "unlocked",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "isWithinStakeLimit",
"outputs": [
{
"internalType": "bool",
"name": "result",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
},
{
"internalType": "address",
"name": "nodeAddress",
"type": "address"
}
],
"name": "nodeCreated",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "nodeRemoved",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "payReward",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "receiver",
"type": "address"
}
],
"name": "removeAllowedReceiver",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "requestAllFees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
},
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
}
],
"name": "requestFees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
},
{
"internalType": "Fair",
"name": "value",
"type": "uint256"
}
],
"name": "requestRetrieve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "requestRetrieveAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "to",
"type": "address"
}
],
"name": "requestSendAllFees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "to",
"type": "address"
},
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
}
],
"name": "requestSendFees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "feeRate",
"type": "uint16"
}
],
"name": "setFeeRate",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "Timestamp",
"name": "delay",
"type": "uint256"
}
],
"name": "setRetrievingDelay",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IRewardWallet",
"name": "rewardWalletReference_",
"type": "address"
}
],
"name": "setRewardWalletReference",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
}
],
"name": "setSelfStakeRequirement",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "Fair",
"name": "limit",
"type": "uint256"
}
],
"name": "setStakeLimit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "NodeId",
"name": "node",
"type": "uint256"
}
],
"name": "stake",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "stakeLimit",
"outputs": [
{
"internalType": "Fair",
"name": "amount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]