@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.
@@ -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): Promise<CantonSubmitTransactionResponseDto>;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supanovaapp/sdk",
3
- "version": "0.2.26",
3
+ "version": "0.2.34",
4
4
  "description": "React SDK for Supa Backend + Privy.io integration with Canton Network and EVM Smart Wallets support",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",