diff --git a/packages/apps-config/src/api/spec/avail.ts b/packages/apps-config/src/api/spec/avail.ts index a5a796ad1a2a..78eb1064f604 100644 --- a/packages/apps-config/src/api/spec/avail.ts +++ b/packages/apps-config/src/api/spec/avail.ts @@ -8,24 +8,52 @@ import type { OverrideBundleDefinition } from '@polkadot/types/types'; const definitions: OverrideBundleDefinition = { rpc: { - kate: { - blockLength: { - description: 'Get Block Length', + blob: { + submitBlob: { + description: 'Submit a blob and its signed metadata transaction', params: [ + { + name: 'metadata_signed_transaction', + type: 'String' + }, + { + name: 'blob', + type: 'String' + } + ], + type: 'Null' + }, + getBlob: { + description: 'Get blob data by blob hash', + params: [ + { + name: 'blob_hash', + type: 'H256' + }, { name: 'at', type: 'Hash', isOptional: true } ], - type: 'BlockLength' + type: 'Blob' }, - queryProof: { - description: 'Generate the kate proof for the given `cells`', + getBlobInfo: { + description: 'Get blob inclusion and ownership information', params: [ { - name: 'cells', - type: 'Vec' + name: 'blob_hash', + type: 'H256' + } + ], + type: 'BlobInfo' + }, + inclusionProof: { + description: 'Generate the inclusion proof for the given blob hash', + params: [ + { + name: 'blob_hash', + type: 'H256' }, { name: 'at', @@ -33,14 +61,25 @@ const definitions: OverrideBundleDefinition = { isOptional: true } ], - type: 'Vec<(U256, [u8; 48])>' + type: 'DataProof' }, - queryDataProof: { - description: 'Generate the data proof for the given `transaction_index`', + getBlobsSummary: { + description: 'Get included blob summaries for a block', params: [ { - name: 'transaction_index', - type: 'u32' + name: 'at', + type: 'Hash', + isOptional: true + } + ], + type: 'Vec' + }, + getBlobsByAppId: { + description: 'Get blob hashes for an AppId in a block', + params: [ + { + name: 'app_id', + type: 'AppId' }, { name: 'at', @@ -48,22 +87,58 @@ const definitions: OverrideBundleDefinition = { isOptional: true } ], - type: 'ProofResponse' + type: 'Vec' }, - queryRows: { - description: 'Query rows based on their indices', + getEvalData: { + description: 'Get FRI evaluation data for a blob', params: [ { - name: 'rows', + name: 'blob_hash', + type: 'H256' + }, + { + name: 'at', + type: 'Hash', + isOptional: true + } + ], + type: 'BlobEvalData' + }, + getSamplingProof: { + description: 'Get FRI sampling proofs for blob cells', + params: [ + { + name: 'cells', type: 'Vec' }, + { + name: 'blob_hash', + type: 'H256' + }, + { + name: 'at', + type: 'Hash', + isOptional: true + } + ], + type: 'Vec' + } + }, + bridge: { + queryDataProof: { + description: 'Generate the data proof for the given `transaction_index`', + params: [ + { + name: 'transaction_index', + type: 'u32' + }, { name: 'at', type: 'Hash', isOptional: true } ], - type: 'Vec>' + type: 'ProofResponse' } } }, @@ -73,29 +148,22 @@ const definitions: OverrideBundleDefinition = { minmax: [0, undefined], types: { AppId: 'Compact', - DataLookupItem: { - appId: 'AppId', - start: 'Compact' + FriParamsVersion: { + _enum: ['V0'] }, - CompactDataLookup: { - size: 'Compact', - index: 'Vec' + FriBlobCommitment: { + blobHash: 'H256', + sizeBytes: 'u64', + commitment: 'Vec' }, - KateCommitment: { - rows: 'Compact', - cols: 'Compact', - commitment: 'Vec', + FriV1HeaderExtension: { + blobs: 'Vec', + paramsVersion: 'FriParamsVersion', dataRoot: 'H256' }, - V3HeaderExtension: { - appLookup: 'CompactDataLookup', - commitment: 'KateCommitment' - }, HeaderExtension: { _enum: { - V1: 'V3HeaderExtension', - V2: 'V3HeaderExtension', - V3: 'V3HeaderExtension' + V1: 'FriV1HeaderExtension' } }, DaHeader: { @@ -170,6 +238,39 @@ const definitions: OverrideBundleDefinition = { }, BoundedData: 'Vec', ArbitraryMessage: 'BoundedData', + Blob: { + blobHash: 'H256', + data: 'Vec', + size: 'u64' + }, + OwnershipEntry: { + address: 'AccountId32', + babeKey: 'AuthorityId', + encodedPeerId: 'String', + signature: 'Vec' + }, + BlobInfo: { + hash: 'H256', + blockHash: 'H256', + blockNumber: 'u32', + ownership: 'Vec' + }, + BlobSummary: { + hash: 'H256', + txIndex: 'u32', + appId: 'AppId', + sizeBytes: 'u64' + }, + BlobEvalData: { + evalPointSeed: '[u8; 32]', + evalClaim: '[u8; 16]', + evalProof: 'Vec' + }, + SamplingProof: { + index: 'u32', + cell: 'Vec', + proof: 'Vec' + }, Cell: { row: 'BlockLengthRows', col: 'BlockLengthColumns' diff --git a/packages/apps-config/src/api/spec/dataavail.ts b/packages/apps-config/src/api/spec/dataavail.ts index 2751e80f1f3e..78eb1064f604 100644 --- a/packages/apps-config/src/api/spec/dataavail.ts +++ b/packages/apps-config/src/api/spec/dataavail.ts @@ -8,24 +8,52 @@ import type { OverrideBundleDefinition } from '@polkadot/types/types'; const definitions: OverrideBundleDefinition = { rpc: { - kate: { - blockLength: { - description: 'Get Block Length', + blob: { + submitBlob: { + description: 'Submit a blob and its signed metadata transaction', params: [ + { + name: 'metadata_signed_transaction', + type: 'String' + }, + { + name: 'blob', + type: 'String' + } + ], + type: 'Null' + }, + getBlob: { + description: 'Get blob data by blob hash', + params: [ + { + name: 'blob_hash', + type: 'H256' + }, { name: 'at', type: 'Hash', isOptional: true } ], - type: 'BlockLength' + type: 'Blob' }, - queryProof: { - description: 'Generate the kate proof for the given `cells`', + getBlobInfo: { + description: 'Get blob inclusion and ownership information', params: [ { - name: 'cells', - type: 'Vec' + name: 'blob_hash', + type: 'H256' + } + ], + type: 'BlobInfo' + }, + inclusionProof: { + description: 'Generate the inclusion proof for the given blob hash', + params: [ + { + name: 'blob_hash', + type: 'H256' }, { name: 'at', @@ -33,10 +61,21 @@ const definitions: OverrideBundleDefinition = { isOptional: true } ], - type: 'Vec' + type: 'DataProof' + }, + getBlobsSummary: { + description: 'Get included blob summaries for a block', + params: [ + { + name: 'at', + type: 'Hash', + isOptional: true + } + ], + type: 'Vec' }, - queryAppData: { - description: 'Fetches app data rows for the given app', + getBlobsByAppId: { + description: 'Get blob hashes for an AppId in a block', params: [ { name: 'app_id', @@ -48,15 +87,14 @@ const definitions: OverrideBundleDefinition = { isOptional: true } ], - type: 'Vec>>' + type: 'Vec' }, - - queryDataProof: { - description: 'Generate the data proof for the given `transaction_index`', + getEvalData: { + description: 'Get FRI evaluation data for a blob', params: [ { - name: 'transaction_index', - type: 'u32' + name: 'blob_hash', + type: 'H256' }, { name: 'at', @@ -64,9 +102,30 @@ const definitions: OverrideBundleDefinition = { isOptional: true } ], - type: 'DataProof' + type: 'BlobEvalData' }, - queryDataProofV2: { + getSamplingProof: { + description: 'Get FRI sampling proofs for blob cells', + params: [ + { + name: 'cells', + type: 'Vec' + }, + { + name: 'blob_hash', + type: 'H256' + }, + { + name: 'at', + type: 'Hash', + isOptional: true + } + ], + type: 'Vec' + } + }, + bridge: { + queryDataProof: { description: 'Generate the data proof for the given `transaction_index`', params: [ { @@ -89,43 +148,22 @@ const definitions: OverrideBundleDefinition = { minmax: [0, undefined], types: { AppId: 'Compact', - DataLookupIndexItem: { - appId: 'AppId', - start: 'Compact' + FriParamsVersion: { + _enum: ['V0'] }, - DataLookup: { - size: 'Compact', - index: 'Vec' + FriBlobCommitment: { + blobHash: 'H256', + sizeBytes: 'u64', + commitment: 'Vec' }, - KateCommitment: { - rows: 'Compact', - cols: 'Compact', - commitment: 'Vec', + FriV1HeaderExtension: { + blobs: 'Vec', + paramsVersion: 'FriParamsVersion', dataRoot: 'H256' }, - V1HeaderExtension: { - appLookup: 'DataLookup', - commitment: 'KateCommitment' - }, - V2HeaderExtension: { - appLookup: 'DataLookup', - commitment: 'KateCommitment' - }, - V3HeaderExtension: { - appLookup: 'DataLookup', - commitment: 'KateCommitment' - }, - VTHeaderExtension: { - newField: 'Vec', - commitment: 'KateCommitment', - appLookup: 'DataLookup' - }, HeaderExtension: { _enum: { - V1: 'V1HeaderExtension', - V2: 'V2HeaderExtension', - V3: 'V3HeaderExtension', - VTest: 'VTHeaderExtension' + V1: 'FriV1HeaderExtension' } }, DaHeader: { @@ -159,40 +197,80 @@ const definitions: OverrideBundleDefinition = { mandatory: 'u32' }, DataProof: { - root: 'H256', + roots: 'TxDataRoots', proof: 'Vec', numberOfLeaves: 'Compact', leafIndex: 'Compact', leaf: 'H256' }, - DataProofV2: { + TxDataRoots: { dataRoot: 'H256', blobRoot: 'H256', - bridgeRoot: 'H256', - proof: 'Vec', - numberOfLeaves: 'Compact', - leafIndex: 'Compact', - leaf: 'H256' + bridgeRoot: 'H256' }, ProofResponse: { - dataProof: 'DataProofV2', - message: 'Option' + dataProof: 'DataProof', + message: 'Option' }, - Message: { - messageType: 'MessageType', + AddressedMessage: { + message: 'Message', from: 'H256', to: 'H256', originDomain: 'u32', destinationDomain: 'u32', - data: 'Vec', id: 'u64' }, + Message: { + _enum: { + ArbitraryMessage: 'ArbitraryMessage', + FungibleToken: 'FungibleToken' + } + }, MessageType: { _enum: [ 'ArbitraryMessage', 'FungibleToken' ] }, + FungibleToken: { + assetId: 'H256', + amount: 'String' + }, + BoundedData: 'Vec', + ArbitraryMessage: 'BoundedData', + Blob: { + blobHash: 'H256', + data: 'Vec', + size: 'u64' + }, + OwnershipEntry: { + address: 'AccountId32', + babeKey: 'AuthorityId', + encodedPeerId: 'String', + signature: 'Vec' + }, + BlobInfo: { + hash: 'H256', + blockHash: 'H256', + blockNumber: 'u32', + ownership: 'Vec' + }, + BlobSummary: { + hash: 'H256', + txIndex: 'u32', + appId: 'AppId', + sizeBytes: 'u64' + }, + BlobEvalData: { + evalPointSeed: '[u8; 32]', + evalClaim: '[u8; 16]', + evalProof: 'Vec' + }, + SamplingProof: { + index: 'u32', + cell: 'Vec', + proof: 'Vec' + }, Cell: { row: 'BlockLengthRows', col: 'BlockLengthColumns' diff --git a/packages/apps-config/src/api/typesBundle.ts b/packages/apps-config/src/api/typesBundle.ts index a5f39679dee2..836fcd0ef47a 100644 --- a/packages/apps-config/src/api/typesBundle.ts +++ b/packages/apps-config/src/api/typesBundle.ts @@ -16280,24 +16280,52 @@ export const typesBundle = { }, "avail": { "rpc": { - "kate": { - "blockLength": { - "description": "Get Block Length", + "blob": { + "submitBlob": { + "description": "Submit a blob and its signed metadata transaction", "params": [ + { + "name": "metadata_signed_transaction", + "type": "String" + }, + { + "name": "blob", + "type": "String" + } + ], + "type": "Null" + }, + "getBlob": { + "description": "Get blob data by blob hash", + "params": [ + { + "name": "blob_hash", + "type": "H256" + }, { "name": "at", "type": "Hash", "isOptional": true } ], - "type": "BlockLength" + "type": "Blob" }, - "queryProof": { - "description": "Generate the kate proof for the given `cells`", + "getBlobInfo": { + "description": "Get blob inclusion and ownership information", "params": [ { - "name": "cells", - "type": "Vec" + "name": "blob_hash", + "type": "H256" + } + ], + "type": "BlobInfo" + }, + "inclusionProof": { + "description": "Generate the inclusion proof for the given blob hash", + "params": [ + { + "name": "blob_hash", + "type": "H256" }, { "name": "at", @@ -16305,14 +16333,25 @@ export const typesBundle = { "isOptional": true } ], - "type": "Vec<(U256, [u8; 48])>" + "type": "DataProof" }, - "queryDataProof": { - "description": "Generate the data proof for the given `transaction_index`", + "getBlobsSummary": { + "description": "Get included blob summaries for a block", "params": [ { - "name": "transaction_index", - "type": "u32" + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "Vec" + }, + "getBlobsByAppId": { + "description": "Get blob hashes for an AppId in a block", + "params": [ + { + "name": "app_id", + "type": "AppId" }, { "name": "at", @@ -16320,22 +16359,58 @@ export const typesBundle = { "isOptional": true } ], - "type": "ProofResponse" + "type": "Vec" + }, + "getEvalData": { + "description": "Get FRI evaluation data for a blob", + "params": [ + { + "name": "blob_hash", + "type": "H256" + }, + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "BlobEvalData" }, - "queryRows": { - "description": "Query rows based on their indices", + "getSamplingProof": { + "description": "Get FRI sampling proofs for blob cells", "params": [ { - "name": "rows", + "name": "cells", "type": "Vec" }, + { + "name": "blob_hash", + "type": "H256" + }, + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "Vec" + } + }, + "bridge": { + "queryDataProof": { + "description": "Generate the data proof for the given `transaction_index`", + "params": [ + { + "name": "transaction_index", + "type": "u32" + }, { "name": "at", "type": "Hash", "isOptional": true } ], - "type": "Vec>" + "type": "ProofResponse" } } }, @@ -16347,29 +16422,24 @@ export const typesBundle = { ], "types": { "AppId": "Compact", - "DataLookupItem": { - "appId": "AppId", - "start": "Compact" + "FriParamsVersion": { + "_enum": [ + "V0" + ] }, - "CompactDataLookup": { - "size": "Compact", - "index": "Vec" + "FriBlobCommitment": { + "blobHash": "H256", + "sizeBytes": "u64", + "commitment": "Vec" }, - "KateCommitment": { - "rows": "Compact", - "cols": "Compact", - "commitment": "Vec", + "FriV1HeaderExtension": { + "blobs": "Vec", + "paramsVersion": "FriParamsVersion", "dataRoot": "H256" }, - "V3HeaderExtension": { - "appLookup": "CompactDataLookup", - "commitment": "KateCommitment" - }, "HeaderExtension": { "_enum": { - "V1": "V3HeaderExtension", - "V2": "V3HeaderExtension", - "V3": "V3HeaderExtension" + "V1": "FriV1HeaderExtension" } }, "DaHeader": { @@ -16444,6 +16514,39 @@ export const typesBundle = { }, "BoundedData": "Vec", "ArbitraryMessage": "BoundedData", + "Blob": { + "blobHash": "H256", + "data": "Vec", + "size": "u64" + }, + "OwnershipEntry": { + "address": "AccountId32", + "babeKey": "AuthorityId", + "encodedPeerId": "String", + "signature": "Vec" + }, + "BlobInfo": { + "hash": "H256", + "blockHash": "H256", + "blockNumber": "u32", + "ownership": "Vec" + }, + "BlobSummary": { + "hash": "H256", + "txIndex": "u32", + "appId": "AppId", + "sizeBytes": "u64" + }, + "BlobEvalData": { + "evalPointSeed": "[u8; 32]", + "evalClaim": "[u8; 16]", + "evalProof": "Vec" + }, + "SamplingProof": { + "index": "u32", + "cell": "Vec", + "proof": "Vec" + }, "Cell": { "row": "BlockLengthRows", "col": "BlockLengthColumns" @@ -22666,24 +22769,52 @@ export const typesBundle = { }, "data-avail": { "rpc": { - "kate": { - "blockLength": { - "description": "Get Block Length", + "blob": { + "submitBlob": { + "description": "Submit a blob and its signed metadata transaction", + "params": [ + { + "name": "metadata_signed_transaction", + "type": "String" + }, + { + "name": "blob", + "type": "String" + } + ], + "type": "Null" + }, + "getBlob": { + "description": "Get blob data by blob hash", "params": [ + { + "name": "blob_hash", + "type": "H256" + }, { "name": "at", "type": "Hash", "isOptional": true } ], - "type": "BlockLength" + "type": "Blob" }, - "queryProof": { - "description": "Generate the kate proof for the given `cells`", + "getBlobInfo": { + "description": "Get blob inclusion and ownership information", "params": [ { - "name": "cells", - "type": "Vec" + "name": "blob_hash", + "type": "H256" + } + ], + "type": "BlobInfo" + }, + "inclusionProof": { + "description": "Generate the inclusion proof for the given blob hash", + "params": [ + { + "name": "blob_hash", + "type": "H256" }, { "name": "at", @@ -22691,10 +22822,21 @@ export const typesBundle = { "isOptional": true } ], - "type": "Vec" + "type": "DataProof" + }, + "getBlobsSummary": { + "description": "Get included blob summaries for a block", + "params": [ + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "Vec" }, - "queryAppData": { - "description": "Fetches app data rows for the given app", + "getBlobsByAppId": { + "description": "Get blob hashes for an AppId in a block", "params": [ { "name": "app_id", @@ -22706,14 +22848,14 @@ export const typesBundle = { "isOptional": true } ], - "type": "Vec>>" + "type": "Vec" }, - "queryDataProof": { - "description": "Generate the data proof for the given `transaction_index`", + "getEvalData": { + "description": "Get FRI evaluation data for a blob", "params": [ { - "name": "transaction_index", - "type": "u32" + "name": "blob_hash", + "type": "H256" }, { "name": "at", @@ -22721,9 +22863,30 @@ export const typesBundle = { "isOptional": true } ], - "type": "DataProof" + "type": "BlobEvalData" }, - "queryDataProofV2": { + "getSamplingProof": { + "description": "Get FRI sampling proofs for blob cells", + "params": [ + { + "name": "cells", + "type": "Vec" + }, + { + "name": "blob_hash", + "type": "H256" + }, + { + "name": "at", + "type": "Hash", + "isOptional": true + } + ], + "type": "Vec" + } + }, + "bridge": { + "queryDataProof": { "description": "Generate the data proof for the given `transaction_index`", "params": [ { @@ -22748,43 +22911,24 @@ export const typesBundle = { ], "types": { "AppId": "Compact", - "DataLookupIndexItem": { - "appId": "AppId", - "start": "Compact" + "FriParamsVersion": { + "_enum": [ + "V0" + ] }, - "DataLookup": { - "size": "Compact", - "index": "Vec" + "FriBlobCommitment": { + "blobHash": "H256", + "sizeBytes": "u64", + "commitment": "Vec" }, - "KateCommitment": { - "rows": "Compact", - "cols": "Compact", - "commitment": "Vec", + "FriV1HeaderExtension": { + "blobs": "Vec", + "paramsVersion": "FriParamsVersion", "dataRoot": "H256" }, - "V1HeaderExtension": { - "appLookup": "DataLookup", - "commitment": "KateCommitment" - }, - "V2HeaderExtension": { - "appLookup": "DataLookup", - "commitment": "KateCommitment" - }, - "V3HeaderExtension": { - "appLookup": "DataLookup", - "commitment": "KateCommitment" - }, - "VTHeaderExtension": { - "newField": "Vec", - "commitment": "KateCommitment", - "appLookup": "DataLookup" - }, "HeaderExtension": { "_enum": { - "V1": "V1HeaderExtension", - "V2": "V2HeaderExtension", - "V3": "V3HeaderExtension", - "VTest": "VTHeaderExtension" + "V1": "FriV1HeaderExtension" } }, "DaHeader": { @@ -22818,40 +22962,80 @@ export const typesBundle = { "mandatory": "u32" }, "DataProof": { - "root": "H256", + "roots": "TxDataRoots", "proof": "Vec", "numberOfLeaves": "Compact", "leafIndex": "Compact", "leaf": "H256" }, - "DataProofV2": { + "TxDataRoots": { "dataRoot": "H256", "blobRoot": "H256", - "bridgeRoot": "H256", - "proof": "Vec", - "numberOfLeaves": "Compact", - "leafIndex": "Compact", - "leaf": "H256" + "bridgeRoot": "H256" }, "ProofResponse": { - "dataProof": "DataProofV2", - "message": "Option" + "dataProof": "DataProof", + "message": "Option" }, - "Message": { - "messageType": "MessageType", + "AddressedMessage": { + "message": "Message", "from": "H256", "to": "H256", "originDomain": "u32", "destinationDomain": "u32", - "data": "Vec", "id": "u64" }, + "Message": { + "_enum": { + "ArbitraryMessage": "ArbitraryMessage", + "FungibleToken": "FungibleToken" + } + }, "MessageType": { "_enum": [ "ArbitraryMessage", "FungibleToken" ] }, + "FungibleToken": { + "assetId": "H256", + "amount": "String" + }, + "BoundedData": "Vec", + "ArbitraryMessage": "BoundedData", + "Blob": { + "blobHash": "H256", + "data": "Vec", + "size": "u64" + }, + "OwnershipEntry": { + "address": "AccountId32", + "babeKey": "AuthorityId", + "encodedPeerId": "String", + "signature": "Vec" + }, + "BlobInfo": { + "hash": "H256", + "blockHash": "H256", + "blockNumber": "u32", + "ownership": "Vec" + }, + "BlobSummary": { + "hash": "H256", + "txIndex": "u32", + "appId": "AppId", + "sizeBytes": "u64" + }, + "BlobEvalData": { + "evalPointSeed": "[u8; 32]", + "evalClaim": "[u8; 16]", + "evalProof": "Vec" + }, + "SamplingProof": { + "index": "u32", + "cell": "Vec", + "proof": "Vec" + }, "Cell": { "row": "BlockLengthRows", "col": "BlockLengthColumns" diff --git a/packages/react-signer/src/TxSigned.tsx b/packages/react-signer/src/TxSigned.tsx index 3a99aef60520..5bb487d350e3 100644 --- a/packages/react-signer/src/TxSigned.tsx +++ b/packages/react-signer/src/TxSigned.tsx @@ -24,12 +24,11 @@ import { Button, ErrorBoundary, Modal, Output, styled, Toggle } from '@polkadot/ import { useApi, useLedger, useQueue, useToggle } from '@polkadot/react-hooks'; import { keyring } from '@polkadot/ui-keyring'; // import { settings } from '@polkadot/ui-settings'; -import { assert, BN_ZERO, nextTick } from '@polkadot/util'; +import { assert, nextTick } from '@polkadot/util'; import { addressEq } from '@polkadot/util-crypto'; import { AccountSigner, LedgerSigner, QrSigner } from './signers/index.js'; import Address from './Address.js'; -import AppId from './AppId.js'; import Qr from './Qr.js'; import SignFields from './SignFields.js'; import Tip from './Tip.js'; @@ -249,7 +248,6 @@ function TxSigned ({ className, currentItem, isQueueSubmit, queueSize, requestAd const [{ innerHash, innerTx }, setCallInfo] = useState(EMPTY_INNER); const [tip, setTip] = useState(); const [initialIsQueueSubmit] = useState(isQueueSubmit); - const [appId, setAppId] = useState(BN_ZERO); useEffect((): void => { setFlags(tryExtract(senderInfo.signAddress)); @@ -341,7 +339,7 @@ function TxSigned ({ className, currentItem, isQueueSubmit, queueSize, requestAd if (senderInfo.signAddress) { const [tx, [status, pairOrAddress, options, isMockSign]] = await Promise.all([ wrapTx(api, currentItem, senderInfo), - extractParams(api, senderInfo.signAddress, { appId, nonce: -1, tip, withSignedTransaction: true } as Partial, getLedger, setQrState) + extractParams(api, senderInfo.signAddress, { nonce: -1, tip, withSignedTransaction: true } as Partial, getLedger, setQrState) ]); queueSetTxStatus(currentItem.id, status); @@ -350,7 +348,7 @@ function TxSigned ({ className, currentItem, isQueueSubmit, queueSize, requestAd await signAndSend(queueSetTxStatus, currentItem, tx, pairOrAddress, options, api, isMockSign); } }, - [api, appId, getLedger, tip] + [api, getLedger, tip] ); const _onSign = useCallback( @@ -460,7 +458,6 @@ function TxSigned ({ className, currentItem, isQueueSubmit, queueSize, requestAd {!currentItem.payload && ( )} - {!isSubmit && (