@supanovaapp/sdk 0.2.26 → 0.2.34
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.
- package/README.md +11 -0
- package/dist/core/types.d.ts +6 -0
- package/dist/hooks/useSendMultipleTransactions.d.ts +6 -0
- package/dist/hooks/useSendTransaction.d.ts +2 -0
- package/dist/hooks/useSendTransactions.d.ts +2 -1
- package/dist/index.cjs.js +50 -50
- package/dist/index.esm.js +2997 -2977
- package/dist/services/cantonService.d.ts +10 -2
- package/package.json +1 -1
|
@@ -24,6 +24,12 @@ export interface CantonSubmitPreparedOptions {
|
|
|
24
24
|
onSubmissionId?: (submissionId: string) => void | Promise<void>;
|
|
25
25
|
/** Callback to receive cost estimation before signing (optional) */
|
|
26
26
|
onCostEstimation?: (costEstimation: CantonCostEstimationDto | undefined) => void | Promise<void>;
|
|
27
|
+
/** Optional command ID for idempotency (passed to prepareTransaction) */
|
|
28
|
+
commandId?: string;
|
|
29
|
+
/** Optional deduplication period (passed to submitPrepared) */
|
|
30
|
+
deduplicationPeriod?: {
|
|
31
|
+
value: string;
|
|
32
|
+
};
|
|
27
33
|
}
|
|
28
34
|
export declare class CantonService {
|
|
29
35
|
private client;
|
|
@@ -64,7 +70,9 @@ export declare class CantonService {
|
|
|
64
70
|
* @param hash Base64 hash
|
|
65
71
|
* @param signature Base64 signature
|
|
66
72
|
*/
|
|
67
|
-
submitPrepared(hash: string, signature: string
|
|
73
|
+
submitPrepared(hash: string, signature: string, deduplicationPeriod?: {
|
|
74
|
+
value: string;
|
|
75
|
+
}): Promise<CantonSubmitTransactionResponseDto>;
|
|
68
76
|
/**
|
|
69
77
|
* Submit multiple signed Canton transactions in a single request
|
|
70
78
|
* @param txs Array of { hash, signature } (base64)
|
|
@@ -109,7 +117,7 @@ export declare class CantonService {
|
|
|
109
117
|
* @param commands Command or array of commands
|
|
110
118
|
* @param disclosedContracts Optional disclosed contracts
|
|
111
119
|
*/
|
|
112
|
-
prepareTransaction(commands: unknown, disclosedContracts?: unknown): Promise<CantonPrepareTransactionResponseDto>;
|
|
120
|
+
prepareTransaction(commands: unknown, disclosedContracts?: unknown, commandId?: string): Promise<CantonPrepareTransactionResponseDto>;
|
|
113
121
|
/**
|
|
114
122
|
* Check if user has Canton wallet registered
|
|
115
123
|
* This is inferred - if /me succeeds, user has wallet
|
package/package.json
CHANGED