@talismn/sapi 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,7 +33,7 @@ export declare const getScaleApi: (connector: SapiConnectorProps, hexMetadata: `
|
|
|
33
33
|
getFeeEstimate: (payload: SignerPayloadJSON) => Promise<bigint>;
|
|
34
34
|
getRuntimeCallValue: <T>(apiName: string, method: string, args: unknown[]) => Promise<T>;
|
|
35
35
|
getTypeRegistry: (payload: SignerPayloadJSON) => import("@polkadot/types").TypeRegistry;
|
|
36
|
-
submit: (payload: SignerPayloadJSON, signature?: `0x${string}
|
|
36
|
+
submit: (payload: SignerPayloadJSON, signature?: `0x${string}`, txInfo?: any) => Promise<{
|
|
37
37
|
hash: `0x${string}`;
|
|
38
38
|
}>;
|
|
39
39
|
getCallDocs: (pallet: string, method: string) => string | null;
|
|
@@ -12,7 +12,7 @@ export type JsonRpcRequestSend = (method: string, params: unknown[], isCacheable
|
|
|
12
12
|
export type SapiConnectorProps = {
|
|
13
13
|
chainId: string;
|
|
14
14
|
send: JsonRpcRequestSend;
|
|
15
|
-
submit?: (payload: SignerPayloadJSON, signature?: `0x${string}
|
|
15
|
+
submit?: (payload: SignerPayloadJSON, signature?: `0x${string}`, txInfo?: any) => Promise<{
|
|
16
16
|
hash: `0x${string}`;
|
|
17
17
|
}>;
|
|
18
18
|
};
|
|
@@ -525,7 +525,8 @@ const getScaleApi = (connector, hexMetadata, token, hasCheckMetadataHash, signed
|
|
|
525
525
|
getFeeEstimate: payload => getFeeEstimate(chain, payload, chainInfo),
|
|
526
526
|
getRuntimeCallValue: (apiName, method, args) => getRuntimeCallResult(chain, apiName, method, args),
|
|
527
527
|
getTypeRegistry: payload => getTypeRegistry(chain, payload),
|
|
528
|
-
submit: (payload, signature
|
|
528
|
+
submit: (payload, signature, txInfo // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
529
|
+
) => chain.connector.submit(payload, signature, txInfo),
|
|
529
530
|
getCallDocs: (pallet, method) => getCallDocs(chain, pallet, method),
|
|
530
531
|
getDryRunCall: (from, decodedCall) => getDryRunCall(chain, from, decodedCall),
|
|
531
532
|
isApiAvailable: (name, method) => isApiAvailable(chain, name, method)
|
|
@@ -525,7 +525,8 @@ const getScaleApi = (connector, hexMetadata, token, hasCheckMetadataHash, signed
|
|
|
525
525
|
getFeeEstimate: payload => getFeeEstimate(chain, payload, chainInfo),
|
|
526
526
|
getRuntimeCallValue: (apiName, method, args) => getRuntimeCallResult(chain, apiName, method, args),
|
|
527
527
|
getTypeRegistry: payload => getTypeRegistry(chain, payload),
|
|
528
|
-
submit: (payload, signature
|
|
528
|
+
submit: (payload, signature, txInfo // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
529
|
+
) => chain.connector.submit(payload, signature, txInfo),
|
|
529
530
|
getCallDocs: (pallet, method) => getCallDocs(chain, pallet, method),
|
|
530
531
|
getDryRunCall: (from, decodedCall) => getDryRunCall(chain, from, decodedCall),
|
|
531
532
|
isApiAvailable: (name, method) => isApiAvailable(chain, name, method)
|
package/dist/talismn-sapi.esm.js
CHANGED
|
@@ -519,7 +519,8 @@ const getScaleApi = (connector, hexMetadata, token, hasCheckMetadataHash, signed
|
|
|
519
519
|
getFeeEstimate: payload => getFeeEstimate(chain, payload, chainInfo),
|
|
520
520
|
getRuntimeCallValue: (apiName, method, args) => getRuntimeCallResult(chain, apiName, method, args),
|
|
521
521
|
getTypeRegistry: payload => getTypeRegistry(chain, payload),
|
|
522
|
-
submit: (payload, signature
|
|
522
|
+
submit: (payload, signature, txInfo // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
523
|
+
) => chain.connector.submit(payload, signature, txInfo),
|
|
523
524
|
getCallDocs: (pallet, method) => getCallDocs(chain, pallet, method),
|
|
524
525
|
getDryRunCall: (from, decodedCall) => getDryRunCall(chain, from, decodedCall),
|
|
525
526
|
isApiAvailable: (name, method) => isApiAvailable(chain, name, method)
|