@acala-network/type-definitions
Version:
Polkadot.js type definations for Acala Network
62 lines (61 loc) • 1.8 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
rpc: {
getAvailableUnbonded: {
description: 'Get Available Unbonded',
params: [
{
name: 'account',
type: 'AccountId'
}
],
type: 'BalanceInfo'
},
getLiquidStakingExchangeRate: {
description: 'get liquid staking exchange rate',
params: [],
type: 'ExchangeRate'
}
},
types: {
SubAccountStatus: {
bonded: 'Balance',
available: 'Balance',
unbonding: 'Vec<(EraIndex,Balance)>',
mockRewardRate: 'Rate'
},
Params: {
targetMaxFreeUnbondedRatio: 'Ratio',
targetMinFreeUnbondedRatio: 'Ratio',
targetUnbondingToFreeRatio: 'Ratio',
unbondingToFreeAdjustment: 'Ratio',
baseFeeRate: 'Rate'
},
StakingPoolPhase: {
_enum: ['Started', 'RelaychainUpdated', 'LedgerUpdated', 'Finished']
},
Ledger: {
bonded: 'Balance',
unbondingToFree: 'Balance',
freePool: 'Balance',
toUnbondNextEra: '(Balance, Balance)'
},
ChangeRate: {
_enum: {
NoChange: 'Null',
NewValue: 'Rate'
}
},
ChangeRatio: {
_enum: {
NoChange: 'Null',
NewValue: 'Ratio'
}
},
BalanceInfo: { amount: 'Balance' },
PolkadotAccountId: 'AccountId',
PolkadotAccountIdOf: 'PolkadotAccountId'
},
typesAlias: { stakingPool: { Phase: 'StakingPoolPhase' } }
};