added plasm dusty type defs (#4114)

This commit is contained in:
Hoon Kim 2020-11-30 20:33:35 +09:00 committed by GitHub
parent 642beb1b57
commit e1ae1223a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 85 additions and 1 deletions

View File

@ -0,0 +1,83 @@
// Copyright 2017-2020 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
export default {
AuthorityId: 'AccountId',
AuthorityVote: 'u32',
ChallengeGameOf: {
challenges: 'Vec<Hash>',
createdBlock: 'BlockNumber',
decision: 'Decision',
propertyHash: 'Hash'
},
Claim: {
amount: 'u128',
approve: 'BTreeSet<AuthorityId>',
complete: 'bool',
decline: 'BTreeSet<AuthorityId>',
params: 'Lockdrop'
},
ClaimId: 'H256',
ClaimVote: {
approve: 'bool',
authority: 'u16',
claim_id: 'ClaimId'
},
Decision: {
_enum: ['Undecided', 'True', 'False']
},
DollarRate: 'u128',
EraIndex: 'u32',
EraStakingPoints: {
individual: 'BTreeMap<AccountId, Balance>',
total: 'Balance'
},
Keys: 'SessionKeys2',
Lockdrop: {
duration: 'u64',
public_key: '[u8; 33]',
transaction_hash: 'H256',
type: 'u8',
value: 'u128'
},
Parameters: {
canBeNominated: 'bool',
optionExpired: 'u128',
optionP: 'u32'
},
PredicateContractOf: {
inputs: 'Vec<u8>',
predicateHash: 'Hash'
},
PredicateHash: 'Hash',
PrefabOvmModule: {
code: 'Vec<u8>',
scheduleVersion: 'u32'
},
Property: {
inputs: 'Vec<Vec<u8>>',
predicateAddress: 'AccountId'
},
PropertyOf: {
inputs: 'Vec<Vec<u8>>',
predicateAddress: 'AccountId'
},
Schedule: {
putCodePerByteCost: 'Weight',
version: 'u32'
},
StakingParameters: {
canBeNominated: 'bool',
optionExpired: 'u128',
optionP: 'u32'
},
TickerRate: {
authority: 'u16',
btc: 'u128',
eth: 'u128'
},
VoteCounts: {
bad: 'u32',
good: 'u32'
}
};

View File

@ -21,6 +21,7 @@ import moonbeam from './moonbeam';
import nodeTemplate from './node-template';
import nodle from './nodle';
import plasm from './plasm';
import dusty from './dusty';
import robonomics from './robonomics';
import stablePoc from './stable-poc';
import stafi from './stafi';
@ -39,7 +40,7 @@ export default {
'darwinia-parachain': darwiniaParachain,
'dock-main-runtime': dock,
'dock-testnet': dock,
dusty3: plasm,
dusty3: dusty,
edgeware,
'encointer-node': encointerNodeNotee,
'encointer-node-notee': encointerNodeNotee,