Skip to content

Commit

Permalink
Updated Crust network type registry #75
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanz committed Aug 14, 2022
1 parent d2f5758 commit 6c897a0
Showing 1 changed file with 163 additions and 15 deletions.
178 changes: 163 additions & 15 deletions scalecodec/type_registry/crust.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,152 @@
["active_era", "EraIndex"]
]
},
"FundsType": {
"type": "enum",
"value_list": ["SWORK", "MARKET"]
},
"FundsUnlockChunk": {
"type": "struct",
"type_mapping": [
["value", "Compact<Balance>"],
["era", "Compact<EraIndex>"]
]
},
"MarketBenefit": {
"type": "struct",
"type_mapping": [
["total_funds", "Compact<Balance>"],
["active_funds", "Compact<Balance>"],
["used_fee_reduction_quota", "Compact<Balance>"],
["file_reward", "Compact<Balance>"],
["refreshed_at", "Compact<EraIndex>"],
["unlocking_funds", "Vec<FundsUnlockChunk<Balance>>"]
]
},
"SworkBenefit": {
"type": "struct",
"type_mapping": [
["total_funds", "Compact<Balance>"],
["active_funds", "Compact<Balance>"],
["total_fee_reduction_count", "u32"],
["used_fee_reduction_count", "u32"],
["refreshed_at", "Compact<EraIndex>"],
["unlocking_funds", "Vec<FundsUnlockChunk<Balance>>"]
]
},
"BridgeChainId": "u8",
"ChainId": "u8",
"ResourceId": "H256",
"DepositNonce": "u64",
"ProposalStatus": {
"type": "enum",
"value_list": ["Initiated", "Approved", "Rejected"]
},
"ProposalVotes": {
"type": "struct",
"type_mapping": [
["votes_for", "Vec<AccountId>"],
["votes_against", "Vec<AccountId>"],
["status", "ProposalStatus"],
["expiry", "BlockNumber"]
]
},
"Erc721Token": {
"type": "struct",
"type_mapping": [
["id", "TokenId"],
["metadata", "Vec<u8>"]
]
},
"TokenId": "U256",
"ETHAddress": "Vec<u8>",
"EthereumTxHash": "H256",
"Lock": {
"type": "struct",
"type_mapping": [
["total", "Compact<Balance>"],
["last_unlock_at", "BlockNumber"],
["lock_type", "LockType"]
]
},
"LockType": {
"type": "struct",
"type_mapping": [
["delay", "BlockNumber"],
["lock_period", "u32"]
]
},
"FileInfoV2": {
"type": "struct",
"type_mapping": [
["file_size", "u64"],
["spower", "u64"],
["expired_at", "BlockNumber"],
["calculated_at", "BlockNumber"],
["amount", "Compact<Balance>"],
["prepaid", "Compact<Balance>"],
["reported_replica_count", "u32"],
["remaining_paid_count", "u32"],
["replicas", "BTreeMap<AccountId, Replica<AccountId>>"]
]
},
"Guarantee": {
"type": "struct",
"type_mapping": [
["targets", "Vec<IndividualExposure<AccountId, Balance>>"],
["total", "Compact<Balance>"],
["submitted_in", "EraIndex"],
["suppressed", "bool"]
]
},
"ValidatorPrefs": {
"type": "struct",
"type_mapping": [
["guarantee_fee", "Compact<Perbill>"]
]
},
"Group": {
"type": "struct",
"type_mapping": [
["members", "BTreeSet<AccountId>"],
["allowlist", "BTreeSet<AccountId>"]
]
},
"IASSig": "Vec<u8>",
"Identity": {
"type": "struct",
"type_mapping": [
["anchor", "SworkerAnchor"],
["punishment_deadline", "u64"],
["group", "Option<AccountId>"]
]
},
"ISVBody": "Vec<u8>",
"MerkleRoot": "Vec<u8>",
"ReportSlot": "u64",
"PKInfo": {
"type": "struct",
"type_mapping": [
["code", "SworkerCode"],
["anchor", "Option<SworkerAnchor>"]
]
},
"SworkerAnchor": "Vec<u8>",
"SworkerCert": "Vec<u8>",
"SworkerCode": "Vec<u8>",
"SworkerPubKey": "Vec<u8>",
"SworkerSignature": "Vec<u8>",
"WorkReport": {
"type": "struct",
"type_mapping": [
["report_slot", "u64"],
["spower", "u64"],
["free", "u64"],
["reported_files_size", "u64"],
["reported_srd_root", "MerkleRoot"],
["reported_files_root", "MerkleRoot"]
]
},
"FeeReductionBenefit": {
"type": "struct",
"type_mapping": [
Expand Down Expand Up @@ -45,15 +191,16 @@
},
"FileInfo": {
"type": "struct",
"type_mapping": [
["file_size", "u64"],
["expired_on", "BlockNumber"],
["calculated_at", "BlockNumber"],
["amount", "Balance"],
["prepaid", "Balance"],
["reported_replica_count", "u32"],
["replicas", "Vec<Replica<AccountId>>"]
]
"type_mapping": [
["file_size", "u64"],
["spower", "u64"],
["expired_at", "BlockNumber"],
["calculated_at", "BlockNumber"],
["amount", "Compact<Balance>"],
["prepaid", "Compact<Balance>"],
["reported_replica_count", "u32"],
["replicas", "Vec<Replica<AccountId>>"]
]
},
"MerchantLedger": {
"type": "struct",
Expand All @@ -68,12 +215,13 @@
},
"Replica": {
"type": "struct",
"type_mapping": [
["who", "AccountId"],
["valid_at", "BlockNumber"],
["anchor", "SworkerAnchor"],
["is_reported", "bool"]
]
"type_mapping": [
["who", "AccountId"],
["valid_at", "BlockNumber"],
["anchor", "SworkerAnchor"],
["is_reported", "bool"],
["created_at", "Option<BlockNumber>"]
]
},
"Status": {
"type": "enum",
Expand Down

0 comments on commit 6c897a0

Please sign in to comment.