@broxus/js-core
Version:
MobX-based JavaScript Core library
225 lines (224 loc) • 5.92 kB
JavaScript
/**
* **StakingAccount ABI v2.2**
*
* This ABI is used for interacting with the `StakingAccount` contract on the TVM blockchain.
* @see [StakingAccount](https://github.com/broxus/stEver-contracts/blob/controllers/build/StEverAccount.abi.json)
*/
export const StakingAccountAbi = {
'ABI version': 2,
version: '2.2',
header: ['time', 'expire'],
functions: [
{
name: 'constructor',
inputs: [],
outputs: [],
},
{
name: 'getDetails',
inputs: [
{
name: 'answerId',
type: 'uint32',
},
],
outputs: [
{
components: [
{
name: 'user',
type: 'address',
},
{
name: 'vault',
type: 'address',
},
{
name: 'version',
type: 'uint32',
},
],
name: 'value0',
type: 'tuple',
},
],
},
{
name: 'addPendingValue',
inputs: [
{
name: '_nonce',
type: 'uint64',
},
{
name: '_amount',
type: 'uint128',
},
{
name: '_unlockTime',
type: 'uint64',
},
{
name: '_remainingGasTo',
type: 'address',
},
],
outputs: [],
},
{
name: 'resetPendingValues',
inputs: [
{
components: [
{
name: 'amount',
type: 'uint128',
},
{
name: 'timestamp',
type: 'uint64',
},
{
name: 'unlockTime',
type: 'uint64',
},
],
name: 'rejectedWithdrawals',
type: 'map(uint64,tuple)',
},
{
name: '_sendGasTo',
type: 'address',
},
],
outputs: [],
},
{
name: 'removePendingWithdraw',
inputs: [
{
name: '_nonce',
type: 'uint64',
},
],
outputs: [],
},
{
name: 'processWithdraw',
inputs: [
{
name: '_satisfiedWithdrawRequests',
type: 'uint64[]',
},
],
outputs: [],
},
{
name: 'onEmergencyWithdrawToUser',
inputs: [],
outputs: [],
},
{
name: 'onStartEmergency',
inputs: [
{
name: '_proofNonce',
type: 'uint64',
},
{
name: '_timeAfterEmergencyCanBeActivated',
type: 'uint64',
},
],
outputs: [],
},
{
name: 'upgrade',
inputs: [
{
name: '_newCode',
type: 'cell',
},
{
name: '_newVersion',
type: 'uint32',
},
{
name: '_sendGasTo',
type: 'address',
},
],
outputs: [],
},
{
name: 'withdrawRequests',
inputs: [],
outputs: [
{
components: [
{
name: 'amount',
type: 'uint128',
},
{
name: 'timestamp',
type: 'uint64',
},
{
name: 'unlockTime',
type: 'uint64',
},
],
name: 'withdrawRequests',
type: 'map(uint64,tuple)',
},
],
},
],
data: [],
events: [],
fields: [
{
name: '_pubkey',
type: 'uint256',
},
{
name: '_timestamp',
type: 'uint64',
},
{
name: '_constructorFlag',
type: 'bool',
},
{
name: 'vault',
type: 'address',
},
{
name: 'user',
type: 'address',
},
{
name: 'currentVersion',
type: 'uint32',
},
{
components: [
{
name: 'amount',
type: 'uint128',
},
{
name: 'timestamp',
type: 'uint64',
},
{
name: 'unlockTime',
type: 'uint64',
},
],
name: 'withdrawRequests',
type: 'map(uint64,tuple)',
},
],
};