@darwinia/types
Version:
Implementation of the Parity codec
193 lines (191 loc) • 4.63 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
// Copyright 2017-2022 @darwinia/types authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable sort-keys */
var _default = {
types: {
BalanceInfo: {},
BalanceLock: {
id: 'LockIdentifier',
lockFor: 'LockFor',
reasons: 'Reasons'
},
LockFor: {
_enum: {
Common: 'Common',
Staking: 'StakingLock'
}
},
Common: {
amount: 'Balance'
},
StakingLock: {
stakingAmount: 'Balance',
unbondings: 'Vec<Unbonding>'
},
// StakingLedgerT: {
// stash: 'AccountId',
// active: 'Balance',
// activeDepositRing: 'Balance',
// activeKton: 'Balance',
// depositItems: 'Vec<TimeDepositItem>',
// ringStakingLock: 'StakingLock',
// ktonStakingLock: 'StakingLock',
// claimedRewards: 'Vec<EraIndex>'
// },
Unbonding: {
amount: 'Balance',
until: 'BlockNumber'
},
RingBalance: 'Balance',
KtonBalance: 'Balance',
TsInMs: 'u64',
Power: 'u32',
DepositId: 'U256',
TimeDepositItem: {
value: 'Balance',
startTime: 'TsInMs',
expireTime: 'TsInMs'
},
ExposureT: {
ownRingBalance: 'Compact<Balance>',
ownKtonBalance: 'Compact<Balance>',
ownPower: 'Power',
totalPower: 'Power',
others: 'Vec<IndividualExposure>'
},
Exposure: 'ExposureT',
IndividualExposure: {
who: 'AccountId',
ringBalance: 'Compact<Balance>',
ktonBalance: 'Compact<Balance>',
power: 'Power'
},
ElectionResultT: {
electedStashes: 'Vec<AccountId>',
exposures: 'Vec<(AccountId, ExposureT)>',
compute: 'ElectionCompute'
},
RKT: {
r: 'Balance',
k: 'Balance'
},
SpanRecord: {
slashed: 'RKT',
paidOut: 'RKT'
},
UnappliedSlash: {
validator: 'AccountId',
own: 'RKT',
others: 'Vec<(AccountId, RKT)>',
reporters: 'Vec<AccountId>',
payout: 'RKT'
},
MappedRing: 'u128',
EthereumTransactionIndex: '(H256, u64)',
EthereumBlockNumber: 'u64',
Bloom: '[u8; 256; Bloom]',
EthashProof: {
dagNodes: '[H512; 2]',
proof: 'Vec<H128>'
},
LegacyReceipt: {
gas_used: 'U256',
log_bloom: 'Bloom',
logs: 'Vec<LogEntry>',
outcome: 'TransactionOutcome'
},
LogEntry: {
address: 'Address',
topics: 'Vec<H256>',
data: 'Bytes'
},
TransactionOutcome: {
_enum: {
Unknown: 'Null',
StateRoot: 'H256',
StatusCode: 'u8'
}
},
EthereumNetwork: {
_enum: {
Mainnet: null,
Ropsten: null
}
},
EthereumReceiptProof: {
index: 'u64',
proof: 'Bytes',
headerHash: 'H256'
},
MMRProof: {
memberLeafIndex: 'u64',
lastLeafIndex: 'u64',
proof: 'Vec<H256>'
},
// EthereumRelayHeaderParcel: {
// header: 'EthereumHeader',
// parentMmrRoot: 'H256'
// },
EcdsaSignature: '[u8; 65; EcdsaSignature]',
Signature: '[u8;65]',
TronAddress: 'EthereumAddress',
AddressT: '[u8; 20; AddressT]',
Address: '[u8; 20; Address]',
MerkleMountainRangeRootLog: {
prefix: '[u8; 4; Prefix]',
ParentMmrRoot: 'Hash'
},
ChainProperties: {
ss58Format: 'Option<u8>',
tokenDecimals: 'Option<Vec<u32>>',
tokenSymbol: 'Option<Vec<Text>>'
},
// AccountInfo: {
// nonce: 'Index',
// refcount: 'RefCount',
// data: 'DrmlCommonRuntimeImplsAccountData'
// },
Signer: 'EthereumAddress',
MMRRoot: 'Hash',
EcdsaAddress: 'EthereumAddress',
EcdsaMessage: 'H256',
RelayAuthoritySigner: 'EcdsaAddress',
RelayAuthorityMessage: 'EcdsaMessage',
RelayAuthoritySignature: 'EcdsaSignature',
Term: 'BlockNumber',
OpCode: '[u8; 4; OpCode]',
ElectionCompute: {
_enum: ['OnChain', 'Signed', 'Authority']
},
ValidatorPrefs: 'ValidatorPrefsWithBlocked',
PriorRelayer: {
id: 'AccountId',
fee: 'Balance',
validRange: 'BlockNumber'
},
TokenMessageId: '[u8; 16; TokenMessageId]',
EraIndex: 'u32',
RefCount: 'u32',
Reasons: {
_enum: ['Fee', 'Misc', 'All']
},
ValidatorPrefsWithBlocked: {
commission: 'Compact<Perbill>',
blocked: 'bool'
},
EthereumAddress: 'GenericEthereumAccountId',
RedeemFor: {
_enum: {
Token: null,
Deposit: null
}
}
},
rpc: {}
};
exports.default = _default;