Skip to content

Commit

Permalink
Merge pull request #66 from availproject/ghali/update-types-2
Browse files Browse the repository at this point in the history
update types
  • Loading branch information
Leouarz authored Apr 10, 2024
2 parents 78d9839 + 0d42ae1 commit c2d97c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 38 deletions.
23 changes: 4 additions & 19 deletions packages/apps-config/src/api/spec/avail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Option<Vec<U256>>>'
},
queryDataProof: {
description: 'Generate the data proof for the given `transaction_index`',
params: [
Expand Down Expand Up @@ -88,13 +73,13 @@ const definitions: OverrideBundleDefinition = {
minmax: [0, undefined],
types: {
AppId: 'Compact<u32>',
DataLookupIndexItem: {
DataLookupItem: {
appId: 'AppId',
start: 'Compact<u32>'
},
DataLookup: {
CompactDataLookup: {
size: 'Compact<u32>',
index: 'Vec<DataLookupIndexItem>'
index: 'Vec<DataLookupItem>'
},
KateCommitment: {
rows: 'Compact<u16>',
Expand All @@ -103,7 +88,7 @@ const definitions: OverrideBundleDefinition = {
dataRoot: 'H256'
},
V3HeaderExtension: {
appLookup: 'DataLookup',
appLookup: 'CompactDataLookup',
commitment: 'KateCommitment'
},
HeaderExtension: {
Expand Down
23 changes: 4 additions & 19 deletions packages/apps-config/src/api/typesBundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Option<Vec<U256>>>"
},
"queryDataProof": {
"description": "Generate the data proof for the given `transaction_index`",
"params": [
Expand Down Expand Up @@ -42425,13 +42410,13 @@ export const typesBundle = {
],
"types": {
"AppId": "Compact<u32>",
"DataLookupIndexItem": {
"DataLookupItem": {
"appId": "AppId",
"start": "Compact<u32>"
},
"DataLookup": {
"CompactDataLookup": {
"size": "Compact<u32>",
"index": "Vec<DataLookupIndexItem>"
"index": "Vec<DataLookupItem>"
},
"KateCommitment": {
"rows": "Compact<u16>",
Expand All @@ -42440,7 +42425,7 @@ export const typesBundle = {
"dataRoot": "H256"
},
"V3HeaderExtension": {
"appLookup": "DataLookup",
"appLookup": "CompactDataLookup",
"commitment": "KateCommitment"
},
"HeaderExtension": {
Expand Down

0 comments on commit c2d97c7

Please sign in to comment.