Skip to content

Commit

Permalink
update: types
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Dec 3, 2019
1 parent 1159719 commit b39f937
Showing 1 changed file with 81 additions and 60 deletions.
141 changes: 81 additions & 60 deletions types.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,11 @@
{
"EpochDuration": "u64",
"EraIndex": "u32",
"TimeStamp": "u64",
"RingBalanceOf": "u128",
"KtonBalanceOf": "u128",
"ExtendedBalance": "u128",
"Address": "H160",
"EthBlockNumber": "u64",
"StakingBalance": {
"_enum": {
"Ring": "RingBalanceOf",
"Kton": "KtonBalanceOf"
}
},
"IndividualExposure": {
"who": "AccountId",
"value": "ExtendedBalance"
},
"Exposure": {
"total": "ExtendedBalance",
"own": "ExtendedBalance",
"others": "Vec<IndividualExposure>"
},
"ValidatorPrefs": {
"node_name": "Vec<u8>",
"unstake_threshold": "Compact<u32>",
"validator_payment_ratio": "Compact<u32>"
},
"StakingLedger": {
"stash": "AccountId",
"active_ring": "Compact<RingBalanceOf>",
"active_deposit_ring": "Compact<RingBalanceOf>",
"active_kton": "Compact<KtonBalanceOf>",
"deposit_items": "Vec<TimeDepositItem>",
"ring_staking_lock": "StakingLock",
"kton_staking_lock": "StakingLock"
},
"TimeDepositItem": {
"value": "Compact<RingBalanceOf>",
"start_time": "Compact<Moment>",
"expire_time": "Compact<Moment>"
},
"BalanceLock": {
"id": "LockIdentifier",
"withdraw_lock": "WithdrawLock",
"reasons": "WithdrawReasons"
},
"WithdrawLock": {
"_enum": {
"Normal": "NormalLock",
"WithStaking": "StakingLock"
}
},
"NormalLock": {
"amount": "u128",
"until": "Moment"
Expand All @@ -60,6 +14,32 @@
"staking_amount": "u128",
"unbondings": "Vec<NormalLock>"
},
"WithdrawLock": {
"_enum": {
"Normal": "NormalLock",
"WithStaking": "StakingLock"
}
},
"ActionRecord": {
"index": "u64",
"proof": "Vec<u8>",
"header_hash": "H256"
},
"Address": "H160",
"BestBlock": {
"height": "EthBlockNumber",
"hash": "H256",
"total_difficulty": "U256"
},
"BlockDetails": {
"height": "EthBlockNumber",
"hash": "H256",
"total_difficulty": "U256"
},
"Bloom": {
"_struct": "[u8; 256]"
},
"EthBlockNumber": "u64",
"EthHeader": {
"parent_hash": "H256",
"timestamp": "u64",
Expand All @@ -77,22 +57,63 @@
"seal": "Vec<Bytes>",
"hash": "Option<H256>"
},
"ActionRecord": {
"index": "u64",
"proof": "Vec<u8>",
"header_hash": "H256"
},
"BestBlock": {
"height": "EthBlockNumber",
"hash": "H256",
"total_difficulty": "U256"
},
"H64": {
"_struct": "[u8; 8]"
},
"BlockDetails": {
"height": "EthBlockNumber",
"hash": "H256",
"total_difficulty": "U256"
"LogEntry": {
"address": "Address",
"topics": "Vec<H256>",
"data": "Bytes"
},
"Receipt": {
"gas_used": "U256",
"log_bloom": "Bloom",
"logs": "Vec<LogEntry>",
"outcome": "TransactionOutcome"
},
"TransactionOutcome": {
"_enum": {
"Unknown": null,
"StateRoot": "H256",
"StatusCode": "u8"
}
},
"EraIndex": "u32",
"Exposure": {
"total": "ExtendedBalance",
"own": "ExtendedBalance",
"others": "Vec<IndividualExposure>"
},
"ExtendedBalance": "u128",
"IndividualExposure": {
"who": "AccountId",
"value": "ExtendedBalance"
},
"KtonBalanceOf": "u128",
"RingBalanceOf": "u128",
"StakingBalance": {
"_enum": {
"Ring": "RingBalanceOf",
"Kton": "KtonBalanceOf"
}
},
"StakingLedger": {
"stash": "AccountId",
"active_ring": "Compact<RingBalanceOf>",
"active_deposit_ring": "Compact<RingBalanceOf>",
"active_kton": "Compact<KtonBalanceOf>",
"deposit_items": "Vec<TimeDepositItem>",
"ring_staking_lock": "StakingLock",
"kton_staking_lock": "StakingLock"
},
"TimeDepositItem": {
"value": "Compact<RingBalanceOf>",
"start_time": "Compact<Moment>",
"expire_time": "Compact<Moment>"
},
"ValidatorPrefs": {
"node_name": "Vec<u8>",
"unstake_threshold": "Compact<u32>",
"validator_payment_ratio": "Compact<u32>"
}
}

0 comments on commit b39f937

Please sign in to comment.