@supanovaapp/sdk 0.2.33 → 0.2.35

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,10 @@ 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?: any;
27
31
  }
28
32
  export declare class CantonService {
29
33
  private client;
@@ -64,7 +68,7 @@ export declare class CantonService {
64
68
  * @param hash Base64 hash
65
69
  * @param signature Base64 signature
66
70
  */
67
- submitPrepared(hash: string, signature: string): Promise<CantonSubmitTransactionResponseDto>;
71
+ submitPrepared(hash: string, signature: string, deduplicationPeriod?: any): Promise<CantonSubmitTransactionResponseDto>;
68
72
  /**
69
73
  * Submit multiple signed Canton transactions in a single request
70
74
  * @param txs Array of { hash, signature } (base64)
@@ -109,7 +113,7 @@ export declare class CantonService {
109
113
  * @param commands Command or array of commands
110
114
  * @param disclosedContracts Optional disclosed contracts
111
115
  */
112
- prepareTransaction(commands: unknown, disclosedContracts?: unknown): Promise<CantonPrepareTransactionResponseDto>;
116
+ prepareTransaction(commands: unknown, disclosedContracts?: unknown, commandId?: string): Promise<CantonPrepareTransactionResponseDto>;
113
117
  /**
114
118
  * Check if user has Canton wallet registered
115
119
  * 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.33",
3
+ "version": "0.2.35",
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",