diff --git a/Avail/avail-starter/types.json b/Avail/avail-starter/types.json index c558302..bd8e40a 100644 --- a/Avail/avail-starter/types.json +++ b/Avail/avail-starter/types.json @@ -1,205 +1,211 @@ { - "types": { - "AppId": "Compact", - "DataLookupIndexItem": { - "appId": "AppId", - "start": "Compact" - }, - "DataLookup": { - "size": "Compact", - "index": "Vec" - }, - "KateCommitment": { - "rows": "Compact", - "cols": "Compact", - "commitment": "Vec", - "dataRoot": "H256" - }, - "V1HeaderExtension": { - "appLookup": "DataLookup", - "commitment": "KateCommitment" - }, - "V2HeaderExtension": { - "appLookup": "DataLookup", - "commitment": "KateCommitment" - }, - "V3HeaderExtension": { - "appLookup": "DataLookup", - "commitment": "KateCommitment" - }, - "HeaderExtension": { - "_enum": { - "V1": "V1HeaderExtension", - "V2": "V2HeaderExtension", - "V3": "V3HeaderExtension" - } - }, - "DaHeader": { - "parentHash": "Hash", - "number": "Compact", - "stateRoot": "Hash", - "extrinsicsRoot": "Hash", - "digest": "Digest", - "extension": "HeaderExtension" - }, - "Header": "DaHeader", - "CheckAppIdExtra": { - "appId": "AppId" - }, - "CheckAppIdTypes": {}, - "CheckAppId": { - "extra": "CheckAppIdExtra", - "types": "CheckAppIdTypes" - }, - "BlockLengthColumns": "Compact", - "BlockLengthRows": "Compact", - "BlockLength": { - "max": "PerDispatchClass", - "cols": "BlockLengthColumns", - "rows": "BlockLengthRows", - "chunkSize": "Compact" - }, - "PerDispatchClass": { - "normal": "u32", - "operational": "u32", - "mandatory": "u32" - }, - "DataProof": { - "root": "H256", - "proof": "Vec", - "numberOfLeaves": "Compact", - "leaf_index": "Compact", - "leaf": "H256" - }, - "DataProofV2": { - "dataRoot": "H256", - "blobRoot": "H256", - "bridgeRoot": "H256", - "proof": "Vec", - "numberOfLeaves": "Compact", - "leafIndex": "Compact", - "leaf": "H256" - }, - "ProofResponse": { - "dataProof": "DataProofV2", - "message": "Option" - }, - "Message": { - "messageType": "MessageType", - "from": "H256", - "to": "H256", - "originDomain": "u32", - "destinationDomain": "u32", - "data": "Vec", - "id": "u64" - }, - "MessageType": { - "_enum": [ - "ArbitraryMessage", - "FungibleToken" - ] - }, - "Cell": { - "row": "u32", - "col": "u32" - } - }, - "rpc": { - "kate": { - "blockLength": { - "description": "Get Block Length", - "params": [ - { - "name": "at", - "type": "Hash", - "isOptional": true - } - ], - "type": "BlockLength" - }, - "queryProof": { - "description": "Generate the kate proof for the given `cells`", - "params": [ - { - "name": "cells", - "type": "Vec" - }, - { - "name": "at", - "type": "Hash", - "isOptional": true - } - ], - "type": "Vec" - }, - "queryDataProof": { - "description": "Generate the data proof for the given `transaction_index`", - "params": [ - { - "name": "transaction_index", - "type": "u32" - }, - { - "name": "at", - "type": "Hash", - "isOptional": true - } - ], - "type": "DataProof" - }, - "queryDataProofV2": { - "description": "Generate the data proof for the given `transaction_index`", - "params": [ - { - "name": "transaction_index", - "type": "u32" - }, - { - "name": "at", - "type": "Hash", - "isOptional": true + "typesBundle":{ + "spec": { + "data-avail": { + "types": { + "AppId": "Compact", + "DataLookupIndexItem": { + "appId": "AppId", + "start": "Compact" + }, + "DataLookup": { + "size": "Compact", + "index": "Vec" + }, + "KateCommitment": { + "rows": "Compact", + "cols": "Compact", + "commitment": "Vec", + "dataRoot": "H256" + }, + "V1HeaderExtension": { + "appLookup": "DataLookup", + "commitment": "KateCommitment" + }, + "V2HeaderExtension": { + "appLookup": "DataLookup", + "commitment": "KateCommitment" + }, + "V3HeaderExtension": { + "appLookup": "DataLookup", + "commitment": "KateCommitment" + }, + "HeaderExtension": { + "_enum": { + "V1": "V1HeaderExtension", + "V2": "V2HeaderExtension", + "V3": "V3HeaderExtension" + } + }, + "DaHeader": { + "parentHash": "Hash", + "number": "Compact", + "stateRoot": "Hash", + "extrinsicsRoot": "Hash", + "digest": "Digest", + "extension": "HeaderExtension" + }, + "Header": "DaHeader", + "CheckAppIdExtra": { + "appId": "AppId" + }, + "CheckAppIdTypes": {}, + "CheckAppId": { + "extra": "CheckAppIdExtra", + "types": "CheckAppIdTypes" + }, + "BlockLengthColumns": "Compact", + "BlockLengthRows": "Compact", + "BlockLength": { + "max": "PerDispatchClass", + "cols": "BlockLengthColumns", + "rows": "BlockLengthRows", + "chunkSize": "Compact" + }, + "PerDispatchClass": { + "normal": "u32", + "operational": "u32", + "mandatory": "u32" + }, + "DataProof": { + "root": "H256", + "proof": "Vec", + "numberOfLeaves": "Compact", + "leaf_index": "Compact", + "leaf": "H256" + }, + "DataProofV2": { + "dataRoot": "H256", + "blobRoot": "H256", + "bridgeRoot": "H256", + "proof": "Vec", + "numberOfLeaves": "Compact", + "leafIndex": "Compact", + "leaf": "H256" + }, + "ProofResponse": { + "dataProof": "DataProofV2", + "message": "Option" + }, + "Message": { + "messageType": "MessageType", + "from": "H256", + "to": "H256", + "originDomain": "u32", + "destinationDomain": "u32", + "data": "Vec", + "id": "u64" + }, + "MessageType": { + "_enum": [ + "ArbitraryMessage", + "FungibleToken" + ] + }, + "Cell": { + "row": "u32", + "col": "u32" } - ], - "type": "ProofResponse" - }, - "queryAppData": { - "description": "Fetches app data rows for the given app", - "params": [ - { - "name": "app_id", - "type": "AppId" - }, - { - "name": "at", - "type": "Hash", - "isOptional": true + }, + "rpc": { + "kate": { + "blockLength": { + "description": "Get Block Length", + "params": [ + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "BlockLength" + }, + "queryProof": { + "description": "Generate the kate proof for the given `cells`", + "params": [ + { + "name": "cells", + "type": "Vec" + }, + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "Vec" + }, + "queryDataProof": { + "description": "Generate the data proof for the given `transaction_index`", + "params": [ + { + "name": "transaction_index", + "type": "u32" + }, + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "DataProof" + }, + "queryDataProofV2": { + "description": "Generate the data proof for the given `transaction_index`", + "params": [ + { + "name": "transaction_index", + "type": "u32" + }, + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "ProofResponse" + }, + "queryAppData": { + "description": "Fetches app data rows for the given app", + "params": [ + { + "name": "app_id", + "type": "AppId" + }, + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "Vec>>" + }, + "queryRows": { + "description": "Query rows based on their indices", + "params": [ + { + "name": "rows", + "type": "Vec" + }, + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "Vec>" + } } - ], - "type": "Vec>>" - }, - "queryRows": { - "description": "Query rows based on their indices", - "params": [ - { - "name": "rows", - "type": "Vec" - }, - { - "name": "at", - "type": "Hash", - "isOptional": true + }, + "signedExtensions": { + "CheckAppId": { + "extrinsic": { + "appId": "AppId" + }, + "payload": {} } - ], - "type": "Vec>" + } } } - }, - "signedExtensions": { - "CheckAppId": { - "extrinsic": { - "appId": "AppId" - }, - "payload": {} - } } } \ No newline at end of file