Upgrade Crust Maxwell (#4494)

* Fix abnormal account type

* Fix crust logo invisible

* Add Crust Rococo V1 Endpoint

* Upgrade to Crust Maxwell
This commit is contained in:
Kun 2021-01-25 22:25:18 +08:00 committed by GitHub
parent db3e46fb25
commit a42e0f371d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 39 additions and 45 deletions

View File

@ -7,7 +7,18 @@
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>',
@ -16,61 +27,44 @@ export default {
},
IASSig: 'Vec<u8>',
Identity: {
pub_key: 'Vec<u8>',
code: 'Vec<u8>'
anchor: 'SworkerAnchor',
group: 'Option<AccountId>'
},
ISVBody: 'Vec<u8>',
LookupSource: 'AccountId',
MerchantInfo: {
address: 'Vec<u8>',
storage_price: 'Balance',
file_map: 'Vec<(Vec<u8>, Vec<Hash>)>'
},
MerchantPunishment: {
success: 'EraIndex',
failed: 'EraIndex',
value: 'Balance'
MerchantLedger: {
reward: 'Balance',
pledge: 'Balance'
},
MerkleRoot: 'Vec<u8>',
OrderStatus: {
_enum: ['Success', 'Failed', 'Pending']
},
PaymentLedger: {
total: 'Balance',
paid: 'Balance',
unreserved: 'Balance'
},
Pledge: {
total: 'Balance',
used: 'Balance'
},
ReportSlot: 'u64',
Releases: {
_enum: ['V1_0_0', 'V2_0_0']
Replica: {
who: 'AccountId',
valid_at: 'BlockNumber',
anchor: 'SworkerAnchor'
},
PKInfo: {
code: 'SworkerCode',
anchor: 'Option<SworkerAnchor>'
},
Status: {
_enum: ['Free', 'Reserved']
},
StorageOrder: {
file_identifier: 'Vec<u8>',
file_size: 'u64',
created_on: 'BlockNumber',
completed_on: 'BlockNumber',
expired_on: 'BlockNumber',
provider: 'AccountId',
client: 'AccountId',
amount: 'Balance',
order_status: 'OrderStatus'
},
SworkerAnchor: 'Vec<u8>',
SworkerCert: 'Vec<u8>',
SworkerCode: 'Vec<u8>',
SworkerPubKey: 'Vec<u8>',
SworkerSignature: 'Vec<u8>',
UsedInfo: {
used_size: 'u64',
groups: 'BTreeSet<SworkerAnchor>'
},
WorkReport: {
block_number: 'u64',
report_slot: 'u64',
used: 'u64',
reserved: 'u64',
cached_reserved: 'u64',
files: 'Vec<(Vec<u8>, u64)>'
free: 'u64',
reported_files_size: 'u64',
reported_srd_root: 'MerkleRoot',
reported_files_root: 'MerkleRoot'
}
};

View File

@ -64,7 +64,7 @@ export function createTesting (t: TFunction): LinkOption[] {
},
{
info: 'crust',
text: t('rpc.crust.network', 'Crust Maxwell CC2', { ns: 'apps-config' }),
text: t('rpc.crust.network', 'Crust Maxwell', { ns: 'apps-config' }),
providers: {
'Crust Network': 'wss://api.crust.network/'
}

View File

@ -11,7 +11,7 @@ export default {
'Bifrost Asgard Nightly': 'bitfrost',
'Centrifuge Mainnet': 'centrifuge',
ChainX: 'chainx',
'Crust Maxwell CC2': 'crust',
'Crust Maxwell': 'crust',
'Darwinia CC1': 'darwinia-cc1',
'Darwinia Crab': 'crab',
Edgeware: 'edgeware',

View File

@ -65,7 +65,7 @@ export const chainColors: Record<string, any> = [
['Bit.Country Tewai Chain', chainBitCountry],
['Bifrost PC1', chainRoccoBifrost],
['Darwinia Crab', chainCrab],
['crust maxwell cc2', chainCrust],
['crust maxwell', chainCrust],
['Crust PC1', chainCrust],
['darwinia cc1', chainDarwinia],
['Darwinia PC2', chainRoccoDarwinia],

View File

@ -8,7 +8,7 @@
"rpc.canvas": "Canvas",
"rpc.centrifuge": "Centrifuge",
"rpc.crab": "Darwinia Crab",
"rpc.crust.network": "Crust Maxwell CC2",
"rpc.crust.network": "Crust Maxwell",
"rpc.custom": "Custom environment",
"rpc.custom.entry": "Custom {{WS_URL}}",
"rpc.custom.own": "Custom",

View File

@ -1294,7 +1294,7 @@
"rpc.canvas": "Canvas",
"rpc.centrifuge": "Centrifuge",
"rpc.crab": "Darwinia Crab",
"rpc.crust.network": "Crust Maxwell CC2",
"rpc.crust.network": "Crust Maxwell",
"rpc.custom": "Environment personnalisé",
"rpc.custom.entry": "Personalisé {{WS_URL}}",
"rpc.custom.own": "Personalisé",