quotaContract top-level constant
Contract
const quotaContract
Implementation
const quotaContract = Contract(
contractAddress: stakingContractAddress,
abi: [
// Stake for quota
{
"type": "function",
"name": "StakeForQuota",
"inputs": [
{"name": "beneficiary", "type": "address"}
]
},
// Cancel staking
{
"type": "function",
"name": "CancelQuotaStaking",
"inputs": [
{"name": "id", "type": "bytes32"}
]
},
// Stake for quota with callback
{
"type": "function",
"name": "StakeForQuotaWithCallback",
"inputs": [
{"name": "beneficiary", "type": "address"},
{"name": "stakeHeight", "type": "uint64"}
]
},
// Cancel quota staking with callback
{
"type": "function",
"name": "CancelQuotaStakingWithCallback",
"inputs": [
{"name": "id", "type": "bytes32"}
]
}
],
callbacks: [
// Callback function for stake for quota
{
"type": "function",
"name": "StakeForQuotaWithCallbackCallback",
"inputs": [
{"name": "id", "type": "bytes32"},
{"name": "success", "type": "bool"}
]
},
// Callback function for cancel quota staking
{
"type": "function",
"name": "CancelQuotaStakingWithCallbackCallback",
"inputs": [
{"name": "id", "type": "bytes32"},
{"name": "success", "type": "bool"}
]
}
],
);