ghost-portal/packages/apps-config/src/api/spec/crust.ts
Kun 4254e809e0
Apply Crust Maxwell new types (#4526)
* Fix abnormal account type

* Fix crust logo invisible

* Add Crust Rococo V1 Endpoint

* Upgrade to Crust Maxwell

* Apply Maxwell newest types
2021-01-29 08:59:20 +01:00

74 lines
1.7 KiB
TypeScript

// Copyright 2017-2021 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
// structs need to be in order
/* eslint-disable sort-keys */
export default {
Address: 'AccountId',
AddressInfo: 'Vec<u8>',
ETHAddress: 'Vec<u8>',
EthereumTxHash: 'H256',
FileAlias: 'Vec<u8>',
FileInfo: {
file_size: 'u64',
expired_on: 'BlockNumber',
claimed_at: 'BlockNumber',
amount: 'Balance',
expected_replica_count: 'u32',
reported_replica_count: 'u32',
replicas: 'Vec<Replica<AccountId>>'
},
Guarantee: {
targets: 'Vec<IndividualExposure<AccountId, Balance>>',
total: 'Compact<Balance>',
submitted_in: 'EraIndex',
suppressed: 'bool'
},
IASSig: 'Vec<u8>',
Identity: {
anchor: 'SworkerAnchor',
punishment_deadline: 'u64',
group: 'Option<AccountId>'
},
ISVBody: 'Vec<u8>',
LookupSource: 'AccountId',
MerchantLedger: {
reward: 'Balance',
pledge: 'Balance'
},
MerkleRoot: 'Vec<u8>',
ReportSlot: 'u64',
Replica: {
who: 'AccountId',
valid_at: 'BlockNumber',
anchor: 'SworkerAnchor',
is_reported: 'bool'
},
PKInfo: {
code: 'SworkerCode',
anchor: 'Option<SworkerAnchor>'
},
Status: {
_enum: ['Free', 'Reserved']
},
SworkerAnchor: 'Vec<u8>',
SworkerCert: 'Vec<u8>',
SworkerCode: 'Vec<u8>',
SworkerPubKey: 'Vec<u8>',
SworkerSignature: 'Vec<u8>',
UsedInfo: {
used_size: 'u64',
reported_group_count: 'u32',
groups: 'BTreeMap<SworkerAnchor, bool>'
},
WorkReport: {
report_slot: 'u64',
used: 'u64',
free: 'u64',
reported_files_size: 'u64',
reported_srd_root: 'MerkleRoot',
reported_files_root: 'MerkleRoot'
}
};