From 0d42ae1b3eb7be6e13ce633e86ffc5fe74db1516 Mon Sep 17 00:00:00 2001 From: Leouarz Date: Wed, 10 Apr 2024 16:21:52 +0200 Subject: [PATCH] update types --- packages/apps-config/src/api/spec/avail.ts | 23 ++++----------------- packages/apps-config/src/api/typesBundle.ts | 23 ++++----------------- 2 files changed, 8 insertions(+), 38 deletions(-) diff --git a/packages/apps-config/src/api/spec/avail.ts b/packages/apps-config/src/api/spec/avail.ts index d90838a82e70..018f6d106d5c 100644 --- a/packages/apps-config/src/api/spec/avail.ts +++ b/packages/apps-config/src/api/spec/avail.ts @@ -35,21 +35,6 @@ const definitions: OverrideBundleDefinition = { ], type: 'Vec<(U256, [u8; 48])>' }, - queryAppData: { - description: 'Fetches app data rows for the given app', - params: [ - { - name: 'app_id', - type: 'AppId' - }, - { - name: 'at', - type: 'Hash', - isOptional: true - } - ], - type: 'Vec>>' - }, queryDataProof: { description: 'Generate the data proof for the given `transaction_index`', params: [ @@ -88,13 +73,13 @@ const definitions: OverrideBundleDefinition = { minmax: [0, undefined], types: { AppId: 'Compact', - DataLookupIndexItem: { + DataLookupItem: { appId: 'AppId', start: 'Compact' }, - DataLookup: { + CompactDataLookup: { size: 'Compact', - index: 'Vec' + index: 'Vec' }, KateCommitment: { rows: 'Compact', @@ -103,7 +88,7 @@ const definitions: OverrideBundleDefinition = { dataRoot: 'H256' }, V3HeaderExtension: { - appLookup: 'DataLookup', + appLookup: 'CompactDataLookup', commitment: 'KateCommitment' }, HeaderExtension: { diff --git a/packages/apps-config/src/api/typesBundle.ts b/packages/apps-config/src/api/typesBundle.ts index 42aa50fbe61b..d3f9cf3646f4 100644 --- a/packages/apps-config/src/api/typesBundle.ts +++ b/packages/apps-config/src/api/typesBundle.ts @@ -42370,21 +42370,6 @@ export const typesBundle = { ], "type": "Vec<(U256, [u8; 48])>" }, - "queryAppData": { - "description": "Fetches app data rows for the given app", - "params": [ - { - "name": "app_id", - "type": "AppId" - }, - { - "name": "at", - "type": "Hash", - "isOptional": true - } - ], - "type": "Vec>>" - }, "queryDataProof": { "description": "Generate the data proof for the given `transaction_index`", "params": [ @@ -42425,13 +42410,13 @@ export const typesBundle = { ], "types": { "AppId": "Compact", - "DataLookupIndexItem": { + "DataLookupItem": { "appId": "AppId", "start": "Compact" }, - "DataLookup": { + "CompactDataLookup": { "size": "Compact", - "index": "Vec" + "index": "Vec" }, "KateCommitment": { "rows": "Compact", @@ -42440,7 +42425,7 @@ export const typesBundle = { "dataRoot": "H256" }, "V3HeaderExtension": { - "appLookup": "DataLookup", + "appLookup": "CompactDataLookup", "commitment": "KateCommitment" }, "HeaderExtension": {