@dynamic-labs-wallet/node-svm 1.0.5 → 1.0.6

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/node-svm",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
7
- "@dynamic-labs-wallet/node": "1.0.5",
7
+ "@dynamic-labs-wallet/node": "1.0.6",
8
8
  "@solana/web3.js": "^1.98.2"
9
9
  },
10
10
  "publishConfig": {
@@ -20,7 +20,14 @@ export declare const createDelegatedSvmWalletClient: ({ environmentId, baseApiUr
20
20
  */
21
21
  export declare const delegatedSignMessage: (client: DelegatedSvmWalletClient, { walletId, shareSetId, walletApiKey, keyShare, message, derivationPath, isFormatted, }: {
22
22
  walletId: string;
23
- shareSetId: string;
23
+ /**
24
+ * Optional. The `shareSetId` from the `wallet.delegation.created`
25
+ * webhook payload — a `WaasWallets.id`. NOT `keyShares[].id` from
26
+ * `byWalletAddress` (that's a `WalletKeyShares.id`, a different
27
+ * primary key). Omit and the server resolves the right share set
28
+ * by walletId + shareSetType.
29
+ */
30
+ shareSetId?: string;
24
31
  walletApiKey: string;
25
32
  keyShare: ServerKeyShare;
26
33
  message: string;
@@ -69,7 +76,14 @@ export declare const delegatedSignMessage: (client: DelegatedSvmWalletClient, {
69
76
  */
70
77
  export declare const delegatedSignTransaction: (client: DelegatedSvmWalletClient, { walletId, shareSetId, walletApiKey, keyShare, transaction, signerAddress, derivationPath, }: {
71
78
  walletId: string;
72
- shareSetId: string;
79
+ /**
80
+ * Optional. The `shareSetId` from the `wallet.delegation.created`
81
+ * webhook payload — a `WaasWallets.id`. NOT `keyShares[].id` from
82
+ * `byWalletAddress` (that's a `WalletKeyShares.id`, a different
83
+ * primary key). Omit and the server resolves the right share set
84
+ * by walletId + shareSetType.
85
+ */
86
+ shareSetId?: string;
73
87
  walletApiKey: string;
74
88
  keyShare: any;
75
89
  transaction: VersionedTransaction | Transaction;
@@ -112,7 +126,14 @@ export declare const delegatedSignTransaction: (client: DelegatedSvmWalletClient
112
126
  */
113
127
  export declare const delegatedSignRawMessage: (client: DelegatedSvmWalletClient, { walletId, shareSetId, walletApiKey, keyShare, message, derivationPath, }: {
114
128
  walletId: string;
115
- shareSetId: string;
129
+ /**
130
+ * Optional. The `shareSetId` from the `wallet.delegation.created`
131
+ * webhook payload — a `WaasWallets.id`. NOT `keyShares[].id` from
132
+ * `byWalletAddress` (that's a `WalletKeyShares.id`, a different
133
+ * primary key). Omit and the server resolves the right share set
134
+ * by walletId + shareSetType.
135
+ */
136
+ shareSetId?: string;
116
137
  walletApiKey: string;
117
138
  keyShare: ServerKeyShare;
118
139
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"delegatedClient.d.ts","sourceRoot":"","sources":["../../packages/src/delegatedClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAa,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAMlE,MAAM,MAAM,wBAAwB,GAAG;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,qBAAqB,GAAG;IAC7D,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B,sEAMxC,wBAAwB,KAAG,wBAU7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,WACvB,w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