ghost-portal/packages/apps-config/src/api/spec/phala.ts
LusWar ad2e4813e7
Update Phala testnet (PoC2 => PoC3) (#4148)
* Update Phala testnet (PoC2 => PoC3)

* Update Phala logo and color

* Fix type

* Fix import order

* Fix logo
2020-12-03 10:50:20 +01:00

35 lines
709 B
TypeScript

// Copyright 2017-2020 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
// structs need to be in order
/* eslint-disable sort-keys */
export default {
EcdsaSignature: '[u8; 65]',
EthereumAddress: 'H160',
EthereumTxHash: 'H256',
MiningInfo: {
isMining: 'bool',
startBlock: 'Option<BlockNumber>'
},
PayoutPrefs: {
commission: 'u32',
target: 'AccountId'
},
Score: {
features: 'Vec<u32>',
overallScore: 'u32'
},
StashInfo: {
controller: 'AccountId',
payoutPrefs: 'PayoutPrefs'
},
WorkerInfo: {
machineId: 'Vec<u8>',
pubkey: 'Vec<u8>',
lastUpdated: 'u64',
score: 'Option<Score>',
status: 'i32'
}
};