@kynesyslabs/demosdk 4.0.13 → 4.0.14

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.
Files changed (68) hide show
  1. package/build/abstraction/Identities.d.ts +65 -21
  2. package/build/abstraction/Identities.js +51 -50
  3. package/build/abstraction/Identities.js.map +1 -1
  4. package/build/bridge/nativeBridge.d.ts +3 -1
  5. package/build/bridge/nativeBridge.js +4 -3
  6. package/build/bridge/nativeBridge.js.map +1 -1
  7. package/build/contracts/ContractDeployer.js +5 -2
  8. package/build/contracts/ContractDeployer.js.map +1 -1
  9. package/build/contracts/ContractInteractor.js +4 -1
  10. package/build/contracts/ContractInteractor.js.map +1 -1
  11. package/build/d402/client/D402Client.d.ts +3 -1
  12. package/build/d402/client/D402Client.js +4 -3
  13. package/build/d402/client/D402Client.js.map +1 -1
  14. package/build/escrow/EscrowTransaction.d.ts +7 -2
  15. package/build/escrow/EscrowTransaction.js +9 -8
  16. package/build/escrow/EscrowTransaction.js.map +1 -1
  17. package/build/l2ps/anchor/anchor.d.ts +1 -0
  18. package/build/l2ps/anchor/anchor.js +4 -3
  19. package/build/l2ps/anchor/anchor.js.map +1 -1
  20. package/build/l2ps/binding/binding.d.ts +3 -1
  21. package/build/l2ps/binding/binding.js +3 -2
  22. package/build/l2ps/binding/binding.js.map +1 -1
  23. package/build/tlsnotary/TLSNotaryService.d.ts +2 -0
  24. package/build/tlsnotary/TLSNotaryService.js +11 -10
  25. package/build/tlsnotary/TLSNotaryService.js.map +1 -1
  26. package/build/types/blockchain/GCREdit.d.ts +0 -30
  27. package/build/types/blockchain/Transaction.d.ts +7 -0
  28. package/build/types/blockchain/Transaction.js.map +1 -1
  29. package/build/types/blockchain/rawTransaction.d.ts +2 -7
  30. package/build/types/web2/index.d.ts +1 -0
  31. package/build/utils/index.d.ts +2 -0
  32. package/build/utils/index.js +12 -0
  33. package/build/utils/index.js.map +1 -1
  34. package/build/websdk/DemosTokens.d.ts +42 -14
  35. package/build/websdk/DemosTokens.js +35 -30
  36. package/build/websdk/DemosTokens.js.map +1 -1
  37. package/build/websdk/DemosTransactions.d.ts +27 -9
  38. package/build/websdk/DemosTransactions.js +27 -26
  39. package/build/websdk/DemosTransactions.js.map +1 -1
  40. package/build/websdk/Web2Calls.js +3 -2
  41. package/build/websdk/Web2Calls.js.map +1 -1
  42. package/build/websdk/demosclass.d.ts +96 -32
  43. package/build/websdk/demosclass.js +18 -12
  44. package/build/websdk/demosclass.js.map +1 -1
  45. package/build/websdk/programmatic/attest.js +40 -20
  46. package/build/websdk/programmatic/attest.js.map +1 -1
  47. package/build/websdk/programmatic/bridge.js +1 -1
  48. package/build/websdk/programmatic/bridge.js.map +1 -1
  49. package/build/websdk/programmatic/d402.js +1 -1
  50. package/build/websdk/programmatic/d402.js.map +1 -1
  51. package/build/websdk/programmatic/escrow.js +3 -3
  52. package/build/websdk/programmatic/escrow.js.map +1 -1
  53. package/build/websdk/programmatic/governance.js +6 -2
  54. package/build/websdk/programmatic/governance.js.map +1 -1
  55. package/build/websdk/programmatic/ipfs.js +10 -7
  56. package/build/websdk/programmatic/ipfs.js.map +1 -1
  57. package/build/websdk/programmatic/pay.js +2 -2
  58. package/build/websdk/programmatic/pay.js.map +1 -1
  59. package/build/websdk/programmatic/runner.js +5 -3
  60. package/build/websdk/programmatic/runner.js.map +1 -1
  61. package/build/websdk/programmatic/storage.js +4 -2
  62. package/build/websdk/programmatic/storage.js.map +1 -1
  63. package/build/websdk/programmatic/tokens.js +27 -13
  64. package/build/websdk/programmatic/tokens.js.map +1 -1
  65. package/build/websdk/programmatic/types.d.ts +1 -0
  66. package/build/websdk/programmatic/validator.js +7 -3
  67. package/build/websdk/programmatic/validator.js.map +1 -1
  68. package/package.json +1 -1
@@ -35,7 +35,7 @@ export function createAttestNamespace(ctx) {
35
35
  * @param referralCode - Optional referral code for incentive points.
36
36
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
37
37
  */
38
- github: (proof, referralCode, opts) => ctx.run(() => identities.addGithubIdentity(ctx.demos, proof, referralCode), opts),
38
+ github: (proof, referralCode, opts) => ctx.run(() => identities.addGithubIdentity(ctx.demos, proof, referralCode, { nonce: opts?.nonce }), opts),
39
39
  /**
40
40
  * Link a Twitter/X identity to the connected wallet, end to end.
41
41
  *
@@ -48,7 +48,7 @@ export function createAttestNamespace(ctx) {
48
48
  * @param referralCode - Optional referral code for incentive points.
49
49
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
50
50
  */
51
- twitter: (proof, referralCode, opts) => ctx.run(() => identities.addTwitterIdentity(ctx.demos, proof, referralCode), opts),
51
+ twitter: (proof, referralCode, opts) => ctx.run(() => identities.addTwitterIdentity(ctx.demos, proof, referralCode, { nonce: opts?.nonce }), opts),
52
52
  /**
53
53
  * Link a Discord identity to the connected wallet, end to end.
54
54
  *
@@ -63,7 +63,7 @@ export function createAttestNamespace(ctx) {
63
63
  * @param referralCode - Optional referral code for incentive points.
64
64
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
65
65
  */
66
- discord: (proof, referralCode, opts) => ctx.run(() => identities.addDiscordIdentity(ctx.demos, proof, referralCode), opts),
66
+ discord: (proof, referralCode, opts) => ctx.run(() => identities.addDiscordIdentity(ctx.demos, proof, referralCode, { nonce: opts?.nonce }), opts),
67
67
  /**
68
68
  * Link a Telegram identity to the connected wallet, end to end.
69
69
  *
@@ -76,7 +76,7 @@ export function createAttestNamespace(ctx) {
76
76
  * @param referralCode - Optional referral code for incentive points.
77
77
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
78
78
  */
79
- telegram: (attestation, referralCode, opts) => ctx.run(() => identities.addTelegramIdentity(ctx.demos, attestation, referralCode), opts),
79
+ telegram: (attestation, referralCode, opts) => ctx.run(() => identities.addTelegramIdentity(ctx.demos, attestation, referralCode, { nonce: opts?.nonce }), opts),
80
80
  /**
81
81
  * Link a domain identity (CCI) to the connected wallet, end to end.
82
82
  *
@@ -94,7 +94,7 @@ export function createAttestNamespace(ctx) {
94
94
  * @param referralCode - Optional referral code for incentive points.
95
95
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
96
96
  */
97
- domain: (hostname, referralCode, opts) => ctx.run(() => identities.addDomainIdentity(ctx.demos, hostname, referralCode), opts),
97
+ domain: (hostname, referralCode, opts) => ctx.run(() => identities.addDomainIdentity(ctx.demos, hostname, referralCode, { nonce: opts?.nonce }), opts),
98
98
  /**
99
99
  * Remove a web2 identity from the connected wallet, end to end.
100
100
  *
@@ -109,7 +109,9 @@ export function createAttestNamespace(ctx) {
109
109
  * @param payload - The identity to unlink (`context` + `username`).
110
110
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
111
111
  */
112
- removeWeb2: (payload, opts) => ctx.run(() => identities.removeWeb2Identity(ctx.demos, payload), opts),
112
+ removeWeb2: (payload, opts) => ctx.run(() => identities.removeWeb2Identity(ctx.demos, payload, {
113
+ nonce: opts?.nonce,
114
+ }), opts),
113
115
  /**
114
116
  * Link a crosschain (XM) identity from a signature, end to end.
115
117
  *
@@ -128,7 +130,7 @@ export function createAttestNamespace(ctx) {
128
130
  * @param referralCode - Optional referral code for incentive points.
129
131
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
130
132
  */
131
- xm: (payload, referralCode, opts) => ctx.run(() => identities.inferXmIdentity(ctx.demos, payload, referralCode), opts),
133
+ xm: (payload, referralCode, opts) => ctx.run(() => identities.inferXmIdentity(ctx.demos, payload, referralCode, { nonce: opts?.nonce }), opts),
132
134
  /**
133
135
  * Remove a crosschain (XM) identity from the connected wallet, end to
134
136
  * end.
@@ -145,7 +147,9 @@ export function createAttestNamespace(ctx) {
145
147
  * @param payload - The crosschain identity to unlink.
146
148
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
147
149
  */
148
- removeXm: (payload, opts) => ctx.run(() => identities.removeXmIdentity(ctx.demos, payload), opts),
150
+ removeXm: (payload, opts) => ctx.run(() => identities.removeXmIdentity(ctx.demos, payload, {
151
+ nonce: opts?.nonce,
152
+ }), opts),
149
153
  /**
150
154
  * Bind post-quantum (PQC) identities to the connected wallet, end to
151
155
  * end.
@@ -165,7 +169,9 @@ export function createAttestNamespace(ctx) {
165
169
  * to bind every supported algorithm.
166
170
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
167
171
  */
168
- pqc: (algorithms = "all", opts) => ctx.run(() => identities.bindPqcIdentity(ctx.demos, algorithms), opts),
172
+ pqc: (algorithms = "all", opts) => ctx.run(() => identities.bindPqcIdentity(ctx.demos, algorithms, {
173
+ nonce: opts?.nonce,
174
+ }), opts),
169
175
  /**
170
176
  * Remove post-quantum (PQC) identities from the connected wallet, end
171
177
  * to end.
@@ -179,7 +185,9 @@ export function createAttestNamespace(ctx) {
179
185
  * (default) to remove every supported algorithm.
180
186
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
181
187
  */
182
- removePqc: (algorithms = "all", opts) => ctx.run(() => identities.removePqcIdentity(ctx.demos, algorithms), opts),
188
+ removePqc: (algorithms = "all", opts) => ctx.run(() => identities.removePqcIdentity(ctx.demos, algorithms, {
189
+ nonce: opts?.nonce,
190
+ }), opts),
183
191
  /**
184
192
  * Link an Unstoppable Domain identity to the connected wallet, end to
185
193
  * end.
@@ -211,7 +219,7 @@ export function createAttestNamespace(ctx) {
211
219
  * @param referralCode - Optional referral code for incentive points.
212
220
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
213
221
  */
214
- ud: (signingAddress, signature, challenge, resolutionData, referralCode, opts) => ctx.run(() => identities.addUnstoppableDomainIdentity(ctx.demos, signingAddress, signature, challenge, resolutionData, referralCode), opts),
222
+ ud: (signingAddress, signature, challenge, resolutionData, referralCode, opts) => ctx.run(() => identities.addUnstoppableDomainIdentity(ctx.demos, signingAddress, signature, challenge, resolutionData, referralCode, { nonce: opts?.nonce }), opts),
215
223
  /**
216
224
  * Remove an Unstoppable Domain identity from the connected wallet, end
217
225
  * to end.
@@ -224,7 +232,7 @@ export function createAttestNamespace(ctx) {
224
232
  * @param domain - The UD domain to unlink (e.g. "brad.crypto").
225
233
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
226
234
  */
227
- removeUd: (domain, opts) => ctx.run(() => identities.removeUnstoppableDomainIdentity(ctx.demos, domain), opts),
235
+ removeUd: (domain, opts) => ctx.run(() => identities.removeUnstoppableDomainIdentity(ctx.demos, domain, { nonce: opts?.nonce }), opts),
228
236
  /**
229
237
  * Link a Nomis wallet identity to the connected wallet, end to end.
230
238
  *
@@ -241,7 +249,9 @@ export function createAttestNamespace(ctx) {
241
249
  * @param payload - The Nomis wallet identity data to link.
242
250
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
243
251
  */
244
- nomis: (payload, opts) => ctx.run(() => identities.addNomisIdentity(ctx.demos, payload), opts),
252
+ nomis: (payload, opts) => ctx.run(() => identities.addNomisIdentity(ctx.demos, payload, {
253
+ nonce: opts?.nonce,
254
+ }), opts),
245
255
  /**
246
256
  * Remove a Nomis wallet identity from the connected wallet, end to end.
247
257
  *
@@ -258,7 +268,9 @@ export function createAttestNamespace(ctx) {
258
268
  * identity to remove.
259
269
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
260
270
  */
261
- removeNomis: (payload, opts) => ctx.run(() => identities.removeNomisIdentity(ctx.demos, payload), opts),
271
+ removeNomis: (payload, opts) => ctx.run(() => identities.removeNomisIdentity(ctx.demos, payload, {
272
+ nonce: opts?.nonce,
273
+ }), opts),
262
274
  /**
263
275
  * Link a Human Passport identity to the connected wallet, end to end.
264
276
  *
@@ -273,7 +285,9 @@ export function createAttestNamespace(ctx) {
273
285
  * @param payload - The Human Passport identity data to link.
274
286
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
275
287
  */
276
- humanpassport: (payload, opts) => ctx.run(() => identities.addHumanPassportIdentity(ctx.demos, payload), opts),
288
+ humanpassport: (payload, opts) => ctx.run(() => identities.addHumanPassportIdentity(ctx.demos, payload, {
289
+ nonce: opts?.nonce,
290
+ }), opts),
277
291
  /**
278
292
  * Remove a Human Passport identity from the connected wallet, end to
279
293
  * end.
@@ -287,7 +301,9 @@ export function createAttestNamespace(ctx) {
287
301
  * remove.
288
302
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
289
303
  */
290
- removeHumanpassport: (address, opts) => ctx.run(() => identities.removeHumanPassportIdentity(ctx.demos, address), opts),
304
+ removeHumanpassport: (address, opts) => ctx.run(() => identities.removeHumanPassportIdentity(ctx.demos, address, {
305
+ nonce: opts?.nonce,
306
+ }), opts),
291
307
  /**
292
308
  * Link an Ethos wallet identity to the connected wallet, end to end.
293
309
  *
@@ -305,7 +321,9 @@ export function createAttestNamespace(ctx) {
305
321
  * @param payload - The Ethos wallet identity data to link.
306
322
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
307
323
  */
308
- ethos: (payload, opts) => ctx.run(() => identities.addEthosIdentity(ctx.demos, payload), opts),
324
+ ethos: (payload, opts) => ctx.run(() => identities.addEthosIdentity(ctx.demos, payload, {
325
+ nonce: opts?.nonce,
326
+ }), opts),
309
327
  /**
310
328
  * Remove an Ethos wallet identity from the connected wallet, end to
311
329
  * end.
@@ -323,7 +341,9 @@ export function createAttestNamespace(ctx) {
323
341
  * the Ethos identity to remove.
324
342
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
325
343
  */
326
- removeEthos: (payload, opts) => ctx.run(() => identities.removeEthosIdentity(ctx.demos, payload), opts),
344
+ removeEthos: (payload, opts) => ctx.run(() => identities.removeEthosIdentity(ctx.demos, payload, {
345
+ nonce: opts?.nonce,
346
+ }), opts),
327
347
  /**
328
348
  * Link a web2 identity via a TLSNotary attestation, end to end.
329
349
  *
@@ -354,7 +374,7 @@ export function createAttestNamespace(ctx) {
354
374
  * @param referralCode - Optional referral code for incentive points.
355
375
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
356
376
  */
357
- tlsn: (context, proof, recvHash, proofRanges, revealedRecv, username, userId, referralCode, opts) => ctx.run(() => identities.addWeb2IdentityViaTLSN(ctx.demos, context, proof, recvHash, proofRanges, revealedRecv, username, userId, referralCode), opts),
377
+ tlsn: (context, proof, recvHash, proofRanges, revealedRecv, username, userId, referralCode, opts) => ctx.run(() => identities.addWeb2IdentityViaTLSN(ctx.demos, context, proof, recvHash, proofRanges, revealedRecv, username, userId, referralCode, { nonce: opts?.nonce }), opts),
358
378
  /**
359
379
  * Remove a web2 identity that was added via TLSNotary, end to end.
360
380
  *
@@ -368,7 +388,7 @@ export function createAttestNamespace(ctx) {
368
388
  * @param username - The username to remove.
369
389
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
370
390
  */
371
- removeTlsn: (context, username, opts) => ctx.run(() => identities.removeWeb2IdentityViaTLSN(ctx.demos, context, username), opts),
391
+ removeTlsn: (context, username, opts) => ctx.run(() => identities.removeWeb2IdentityViaTLSN(ctx.demos, context, username, { nonce: opts?.nonce }), opts),
372
392
  /**
373
393
  * Run a DAHR web2-proxy attestation.
374
394
  *
@@ -1 +1 @@
1
- {"version":3,"file":"attest.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/attest.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,yEAAyE;AACzE,8CAA8C;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAsBrD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAAwB;IAC1D,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAA;IAEnC,OAAO;QACH;;;;;;;;;;;;;WAaG;QACH,MAAM,EAAE,CACJ,KAAkB,EAClB,YAAqB,EACrB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,UAAU,CAAC,iBAAiB,CACxB,GAAG,CAAC,KAAK,EACT,KAAK,EACL,YAAY,CACf,EACL,IAAI,CACP;QAEL;;;;;;;;;;;WAWG;QACH,OAAO,EAAE,CACL,KAAmB,EACnB,YAAqB,EACrB,IAA4B,EACC,EAAE,CAC/B,GA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;;;;;;;;;;;WA6BG;QACH,IAAI,EAAE,CACF,OAA4B,EAC5B,KAA4B,EAC5B,QAAgB,EAChB,WAA4B,EAC5B,YAAsB,EACtB,QAAgB,EAChB,MAAuB,EACvB,YAAqB,EACrB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,UAAU,CAAC,sBAAsB,CAC7B,GAAG,CAAC,KAAK,EACT,OAAO,EACP,KAAK,EACL,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,YAAY,CACf,EACL,IAAI,CACP;QAEL;;;;;;;;;;;;WAYG;QACH,UAAU,EAAE,CACR,OAA4B,EAC5B,QAAgB,EAChB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,UAAU,CAAC,yBAAyB,CAChC,GAAG,CAAC,KAAK,EACT,OAAO,EACP,QAAQ,CACX,EACL,IAAI,CACP;QAEL;;;;;;;;;;;;;;;;;;;WAmBG;QACH,IAAI,EAAE,KAAK,EAAE,MAAyB,EAAwB,EAAE;YAC5D,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,CAAA;YAC/C,OAAO,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;QACnC,CAAC;KACJ,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"attest.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/attest.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,yEAAyE;AACzE,8CAA8C;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAsBrD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAAwB;IAC1D,MAAM,UAAU,GAAG,IAAI,UAAU,EAAE,CAAA;IAEnC,OAAO;QACH;;;;;;;;;;;;;WAaG;QACH,MAAM,EAAE,CACJ,KAAkB,EAClB,YA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QAAgB,EAChB,MAAuB,EACvB,YAAqB,EACrB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,UAAU,CAAC,sBAAsB,CAC7B,GAAG,CAAC,KAAK,EACT,OAAO,EACP,KAAK,EACL,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CACzB,EACL,IAAI,CACP;QAEL;;;;;;;;;;;;WAYG;QACH,UAAU,EAAE,CACR,OAA4B,EAC5B,QAAgB,EAChB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,UAAU,CAAC,yBAAyB,CAChC,GAAG,CAAC,KAAK,EACT,OAAO,EACP,QAAQ,EACR,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CACzB,EACL,IAAI,CACP;QAEL;;;;;;;;;;;;;;;;;;;WAmBG;QACH,IAAI,EAAE,KAAK,EAAE,MAAyB,EAAwB,EAAE;YAC5D,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,EAAE,CAAA;YAC/C,OAAO,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAA;QACnC,CAAC;KACJ,CAAA;AACL,CAAC"}
@@ -31,7 +31,7 @@ export function createBridgeNamespace(ctx) {
31
31
  * @param compiled - The compiled bridge operation returned by the RPC.
32
32
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
33
33
  */
34
- submit: (compiled, opts) => ctx.run(() => NativeBridgeMethods.generateOperationTx(compiled, ctx.demos), opts),
34
+ submit: (compiled, opts) => ctx.run(() => NativeBridgeMethods.generateOperationTx(compiled, ctx.demos, { nonce: opts?.nonce }), opts),
35
35
  };
36
36
  }
37
37
  //# sourceMappingURL=bridge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bridge.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAK9C;;;;;;;;;GASG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAAwB;IAC1D,OAAO;QACH;;;;;;;;;;;;;;;;;;;WAmBG;QACH,MAAM,EAAE,CACJ,QAAiC,EACjC,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,QAAQ,EAAE,GAAG,CAAC,KAAK,CAAC,EAClE,IAAI,CACP;KACR,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"bridge.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAK9C;;;;;;;;;GASG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAAwB;IAC1D,OAAO;QACH;;;;;;;;;;;;;;;;;;;WAmBG;QACH,MAAM,EAAE,CACJ,QAAiC,EACjC,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,mBAAmB,CAAC,mBAAmB,CACnC,QAAQ,EACR,GAAG,CAAC,KAAK,EACT,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CACzB,EACL,IAAI,CACP;KACR,CAAA;AACL,CAAC"}
@@ -29,7 +29,7 @@ export function createD402Namespace(ctx) {
29
29
  * (amount, recipient, resourceId, description).
30
30
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
31
31
  */
32
- pay: (requirement, opts) => ctx.run(() => client.createPayment(requirement), opts),
32
+ pay: (requirement, opts) => ctx.run(() => client.createPayment(requirement, { nonce: opts?.nonce }), opts),
33
33
  };
34
34
  }
35
35
  //# sourceMappingURL=d402.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"d402.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/d402.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA+B,MAAM,eAAe,CAAA;AAIvE;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAwB;IACxD,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAExC,OAAO;QACH;;;;;;;;;;;;;;;;WAgBG;QACH,GAAG,EAAE,CACD,WAAmC,EACnC,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC;KAC7D,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"d402.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/d402.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA+B,MAAM,eAAe,CAAA;AAIvE;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAwB;IACxD,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;IAExC,OAAO;QACH;;;;;;;;;;;;;;;;WAgBG;QACH,GAAG,EAAE,CACD,WAAmC,EACnC,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,MAAM,CAAC,aAAa,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAC7D,IAAI,CACP;KACR,CAAA;AACL,CAAC"}
@@ -40,7 +40,7 @@ export function createEscrowNamespace(ctx) {
40
40
  * @param options - Optional escrow parameters (expiry, memo).
41
41
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
42
42
  */
43
- send: (platform, username, amount, options, opts) => ctx.run(() => EscrowTransaction.sendToIdentity(ctx.demos, platform, username, amount, options), opts),
43
+ send: (platform, username, amount, options, opts) => ctx.run(() => EscrowTransaction.sendToIdentity(ctx.demos, platform, username, amount, { ...options, nonce: opts?.nonce }), opts),
44
44
  /**
45
45
  * Claim escrowed funds for a social identity you have linked, end to
46
46
  * end.
@@ -54,7 +54,7 @@ export function createEscrowNamespace(ctx) {
54
54
  * @param username - Username to claim for.
55
55
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
56
56
  */
57
- claim: (platform, username, opts) => ctx.run(() => EscrowTransaction.claimEscrow(ctx.demos, platform, username), opts),
57
+ claim: (platform, username, opts) => ctx.run(() => EscrowTransaction.claimEscrow(ctx.demos, platform, username, { nonce: opts?.nonce }), opts),
58
58
  /**
59
59
  * Refund an expired escrow back to the original depositor, end to
60
60
  * end.
@@ -68,7 +68,7 @@ export function createEscrowNamespace(ctx) {
68
68
  * @param username - Username whose expired escrow to refund.
69
69
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
70
70
  */
71
- refund: (platform, username, opts) => ctx.run(() => EscrowTransaction.refundExpiredEscrow(ctx.demos, platform, username), opts),
71
+ refund: (platform, username, opts) => ctx.run(() => EscrowTransaction.refundExpiredEscrow(ctx.demos, platform, username, { nonce: opts?.nonce }), opts),
72
72
  };
73
73
  }
74
74
  //# sourceMappingURL=escrow.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"escrow.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/escrow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAI5C;;;;;;;;;;GAUG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAAwB;IAC1D,OAAO;QACH;;;;;;;;;;;;;;;;;;;;;;;;;;;WA2BG;QACH,IAAI,EAAE,CACF,QAA2C,EAC3C,QAAgB,EAChB,MAAuB,EACvB,OAGC,EACD,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,iBAAiB,CAAC,cAAc,CAC5B,GAAG,CAAC,KAAK,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,CACV,EACL,IAAI,CACP;QAEL;;;;;;;;;;;;WAYG;QACH,KAAK,EAAE,CACH,QAA2C,EAC3C,QAAgB,EAChB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,iBAAiB,CAAC,WAAW,CACzB,GAAG,CAAC,KAAK,EACT,QAAQ,EACR,QAAQ,CACX,EACL,IAAI,CACP;QAEL;;;;;;;;;;;;WAYG;QACH,MAAM,EAAE,CACJ,QAA2C,EAC3C,QAAgB,EAChB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,iBAAiB,CAAC,mBAAmB,CACjC,GAAG,CAAC,KAAK,EACT,QAAQ,EACR,QAAQ,CACX,EACL,IAAI,CACP;KACR,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"escrow.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/escrow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAI5C;;;;;;;;;;GAUG;AACH,MAAM,UAAU,qBAAqB,CAAC,GAAwB;IAC1D,OAAO;QACH;;;;;;;;;;;;;;;;;;;;;;;;;;;WA2BG;QACH,IAAI,EAAE,CACF,QAA2C,EAC3C,QAAgB,EAChB,MAAuB,EACvB,OAGC,EACD,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,iBAAiB,CAAC,cAAc,CAC5B,GAAG,CAAC,KAAK,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CACrC,EACL,IAAI,CACP;QAEL;;;;;;;;;;;;WAYG;QACH,KAAK,EAAE,CACH,QAA2C,EAC3C,QAAgB,EAChB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,iBAAiB,CAAC,WAAW,CACzB,GAAG,CAAC,KAAK,EACT,QAAQ,EACR,QAAQ,EACR,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CACzB,EACL,IAAI,CACP;QAEL;;;;;;;;;;;;WAYG;QACH,MAAM,EAAE,CACJ,QAA2C,EAC3C,QAAgB,EAChB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,iBAAiB,CAAC,mBAAmB,CACjC,GAAG,CAAC,KAAK,EACT,QAAQ,EACR,QAAQ,EACR,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CACzB,EACL,IAAI,CACP;KACR,CAAA;AACL,CAAC"}
@@ -23,7 +23,9 @@ export function createGovernanceNamespace(ctx) {
23
23
  * @param params - Proposal fields (id, parameters, rationale, activation block).
24
24
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
25
25
  */
26
- propose: (params, opts) => ctx.run(() => ctx.demos.tx.proposeNetworkUpgrade(params, ctx.demos), opts),
26
+ propose: (params, opts) => ctx.run(() => ctx.demos.tx.proposeNetworkUpgrade(params, ctx.demos, {
27
+ nonce: opts?.nonce,
28
+ }), opts),
27
29
  /**
28
30
  * Cast a vote on a pending network-upgrade proposal, end to end. The
29
31
  * vote is final and non-revocable.
@@ -38,7 +40,9 @@ export function createGovernanceNamespace(ctx) {
38
40
  * @param approve - `true` to approve, `false` to reject.
39
41
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
40
42
  */
41
- vote: (proposalId, approve, opts) => ctx.run(() => ctx.demos.tx.voteOnUpgrade(proposalId, approve, ctx.demos), opts),
43
+ vote: (proposalId, approve, opts) => ctx.run(() => ctx.demos.tx.voteOnUpgrade(proposalId, approve, ctx.demos, {
44
+ nonce: opts?.nonce,
45
+ }), opts),
42
46
  };
43
47
  }
44
48
  //# sourceMappingURL=governance.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"governance.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/governance.ts"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,MAAM,UAAU,yBAAyB,CAAC,GAAwB;IAC9D,OAAO;QACH;;;;;;;;;;;;;;;WAeG;QACH,OAAO,EAAE,CACL,MAAmC,EACnC,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,EAC3D,IAAI,CACP;QAEL;;;;;;;;;;;;;WAaG;QACH,IAAI,EAAE,CACF,UAAkB,EAClB,OAAgB,EAChB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,EAChE,IAAI,CACP;KACR,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"governance.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/governance.ts"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,MAAM,UAAU,yBAAyB,CAAC,GAAwB;IAC9D,OAAO;QACH;;;;;;;;;;;;;;;WAeG;QACH,OAAO,EAAE,CACL,MAAmC,EACnC,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE;YAClD,KAAK,EAAE,IAAI,EAAE,KAAK;SACrB,CAAC,EACN,IAAI,CACP;QAEL;;;;;;;;;;;;;WAaG;QACH,IAAI,EAAE,CACF,UAAkB,EAClB,OAAgB,EAChB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,OAAO,EAAE,GAAG,CAAC,KAAK,EAAE;YACvD,KAAK,EAAE,IAAI,EAAE,KAAK;SACrB,CAAC,EACN,IAAI,CACP;KACR,CAAA;AACL,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { uint8ArrayToHex } from "../../encryption/unifiedCrypto.js";
2
2
  import { IPFSOperations, } from "../../ipfs/index.js";
3
3
  import { DemosTransactions } from "../DemosTransactions.js";
4
+ import { resolveNonce } from "../../utils/index.js";
4
5
  /**
5
6
  * IPFS operations as one-call programmatic transactions.
6
7
  *
@@ -36,12 +37,14 @@ export function createIpfsNamespace(ctx) {
36
37
  * @param payload - An IPFS payload from an `IPFSOperations.create*` method.
37
38
  * @returns The unsigned `ipfs` transaction, ready for `ctx.run`.
38
39
  */
39
- const buildIpfsTx = async (payload) => {
40
- const { publicKey } = await ctx.demos.crypto.getIdentity("ed25519");
41
- const nonce = await ctx.demos.getAddressNonce(uint8ArrayToHex(publicKey));
40
+ const buildIpfsTx = async (payload, customNonce) => {
41
+ const nonce = await resolveNonce(customNonce, async () => {
42
+ const { publicKey } = await ctx.demos.crypto.getIdentity("ed25519");
43
+ return ctx.demos.getAddressNonce(uint8ArrayToHex(publicKey));
44
+ });
42
45
  const tx = DemosTransactions.empty();
43
46
  tx.content.type = "ipfs";
44
- tx.content.nonce = nonce + 1;
47
+ tx.content.nonce = nonce;
45
48
  tx.content.data = ["ipfs", payload];
46
49
  // Mirror the signed cost ceiling onto the transaction content when the
47
50
  // payload carries one, so the node enforces the same `max_cost_os` the
@@ -71,7 +74,7 @@ export function createIpfsNamespace(ctx) {
71
74
  * @param addOptions - Filename, metadata and optional custom charges.
72
75
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
73
76
  */
74
- add: (content, addOptions, opts) => ctx.run(() => buildIpfsTx(IPFSOperations.createAddPayload(content, addOptions)), opts),
77
+ add: (content, addOptions, opts) => ctx.run(() => buildIpfsTx(IPFSOperations.createAddPayload(content, addOptions), opts?.nonce), opts),
75
78
  /**
76
79
  * Pin an existing CID to the sender's account, end to end.
77
80
  *
@@ -85,7 +88,7 @@ export function createIpfsNamespace(ctx) {
85
88
  * custom charges.
86
89
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
87
90
  */
88
- pin: (cid, pinOptions, opts) => ctx.run(() => buildIpfsTx(IPFSOperations.createPinPayload(cid, pinOptions)), opts),
91
+ pin: (cid, pinOptions, opts) => ctx.run(() => buildIpfsTx(IPFSOperations.createPinPayload(cid, pinOptions), opts?.nonce), opts),
89
92
  /**
90
93
  * Remove a pin from the sender's account, end to end.
91
94
  *
@@ -97,7 +100,7 @@ export function createIpfsNamespace(ctx) {
97
100
  * @param cid - The Content Identifier to unpin (CIDv0 or CIDv1).
98
101
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
99
102
  */
100
- unpin: (cid, opts) => ctx.run(() => buildIpfsTx(IPFSOperations.createUnpinPayload(cid)), opts),
103
+ unpin: (cid, opts) => ctx.run(() => buildIpfsTx(IPFSOperations.createUnpinPayload(cid), opts?.nonce), opts),
101
104
  };
102
105
  }
103
106
  //# sourceMappingURL=ipfs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ipfs.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/ipfs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EACH,cAAc,GAIjB,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAIxD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,mBAAmB,CAAC,GAAwB;IACxD;;;;;;;;;;OAUG;IACH,MAAM,WAAW,GAAG,KAAK,EAAE,OAAoB,EAAwB,EAAE;QACrE,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAA;QACnE,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,eAA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;WAkBG;QACH,GAAG,EAAE,CACD,OAAqC,EACrC,UAAkC,EAClC,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,WAAW,CACP,cAAc,CAAC,gBAAgB,CAAC,OAAO,EAAE,UAAU,CAAC,EACpD,IAAI,EAAE,KAAK,CACd,EACL,IAAI,CACP;QAEL;;;;;;;;;;;;WAYG;QACH,GAAG,EAAE,CACD,GAAW,EACX,UAAkC,EAClC,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,WAAW,CACP,cAAc,CAAC,gBAAgB,CAAC,GAAG,EAAE,UAAU,CAAC,EAChD,IAAI,EAAE,KAAK,CACd,EACL,IAAI,CACP;QAEL;;;;;;;;;;WAUG;QACH,KAAK,EAAE,CACH,GAAW,EACX,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CAAC,WAAW,CAAC,cAAc,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,EACtE,IAAI,CACP;KACR,CAAA;AACL,CAAC"}
@@ -23,7 +23,7 @@ export function createPayNamespace(ctx) {
23
23
  * @param amount - DEM `number` (legacy) or OS `bigint` (preferred).
24
24
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
25
25
  */
26
- pay: (to, amount, opts) => ctx.run(() => ctx.demos.pay(to, amount), opts),
26
+ pay: (to, amount, opts) => ctx.run(() => ctx.demos.pay(to, amount, { nonce: opts?.nonce }), opts),
27
27
  /**
28
28
  * Alias of {@link pay}. Same dual-input amount semantics.
29
29
  *
@@ -31,7 +31,7 @@ export function createPayNamespace(ctx) {
31
31
  * @param amount - DEM `number` (legacy) or OS `bigint` (preferred).
32
32
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
33
33
  */
34
- transfer: (to, amount, opts) => ctx.run(() => ctx.demos.transfer(to, amount), opts),
34
+ transfer: (to, amount, opts) => ctx.run(() => ctx.demos.transfer(to, amount, { nonce: opts?.nonce }), opts),
35
35
  };
36
36
  }
37
37
  //# sourceMappingURL=pay.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pay.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/pay.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAwB;IACvD,OAAO;QACH;;;;;;;;;;;;;;;;WAgBG;QACH,GAAG,EAAE,CACD,EAAU,EACV,MAAuB,EACvB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC;QAElD;;;;;;WAMG;QACH,QAAQ,EAAE,CACN,EAAU,EACV,MAAuB,EACvB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC,EAAE,IAAI,CAAC;KAC1D,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"pay.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/pay.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAwB;IACvD,OAAO;QACH;;;;;;;;;;;;;;;;WAgBG;QACH,GAAG,EAAE,CACD,EAAU,EACV,MAAuB,EACvB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,CAAC;QAE1E;;;;;;WAMG;QACH,QAAQ,EAAE,CACN,EAAU,EACV,MAAuB,EACvB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAC5D,IAAI,CACP;KACR,CAAA;AACL,CAAC"}
@@ -81,7 +81,7 @@ function isValidityData(v) {
81
81
  * `Identities.*` builders),
82
82
  * - a `Transaction` is signed if needed, then confirmed (pattern A).
83
83
  */
84
- async function resolveToConfirmed(demos, source) {
84
+ async function resolveToConfirmed(demos, source, customNonce) {
85
85
  const resolved = typeof source === "function" ? await source() : source;
86
86
  if (isValidityData(resolved)) {
87
87
  return resolved;
@@ -94,7 +94,9 @@ async function resolveToConfirmed(demos, source) {
94
94
  // an empty-signature tx. Gate on the signature payload instead.
95
95
  const sig = tx.signature;
96
96
  const isSigned = !!(sig && sig.data);
97
- const signed = isSigned ? tx : await demos.sign(tx);
97
+ const signed = isSigned
98
+ ? tx
99
+ : await demos.sign(tx, customNonce !== undefined ? { nonce: customNonce } : undefined);
98
100
  return await demos.confirm(signed);
99
101
  }
100
102
  /**
@@ -112,7 +114,7 @@ async function resolveToConfirmed(demos, source) {
112
114
  * @returns A uniform {@link ProgrammaticTxResult}.
113
115
  */
114
116
  export async function runProgrammaticTx(demos, source, opts = {}) {
115
- const validityData = await resolveToConfirmed(demos, source);
117
+ const validityData = await resolveToConfirmed(demos, source, opts.nonce);
116
118
  const transaction = validityData.response.data.transaction;
117
119
  // A successful confirm always echoes the transaction; guard so the
118
120
  // non-optional `transaction`/`hash` on the result types stay truthful
@@ -1 +1 @@
1
- {"version":3,"file":"runner.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAKjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,EACH,mBAAmB,GAKtB,MAAM,SAAS,CAAA;AAEhB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AAC,IAAI;QACvB,CAAC,CAAC,MAAM,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9D,CAAC,CAAC,MAAM,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;IAEzC,OAAO;QACH,WAAW,EAAE,IAAI;QACjB,WAAW;QACX,IAAI;QACJ,YAAY;QACZ,SAAS;QACT,KAAK;QACL,MAAM;KACT,CAAA;AACL,CAAC"}
@@ -27,7 +27,7 @@ export function createStorageNamespace(ctx) {
27
27
  * @param bytes - The binary data to store in the sender's account.
28
28
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
29
29
  */
30
- store: (bytes, opts) => ctx.run(() => ctx.demos.store(bytes), opts),
30
+ store: (bytes, opts) => ctx.run(() => ctx.demos.store(bytes, { nonce: opts?.nonce }), opts),
31
31
  /**
32
32
  * Sign and submit a storage program, end to end.
33
33
  *
@@ -43,7 +43,9 @@ export function createStorageNamespace(ctx) {
43
43
  * `storageAddress`).
44
44
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
45
45
  */
46
- program: (payload, opts) => ctx.run(() => ctx.demos.storagePrograms.sign(payload), opts),
46
+ program: (payload, opts) => ctx.run(() => ctx.demos.storagePrograms.sign(payload, {
47
+ nonce: opts?.nonce,
48
+ }), opts),
47
49
  };
48
50
  }
49
51
  //# sourceMappingURL=storage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/storage.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,MAAM,UAAU,sBAAsB,CAAC,GAAwB;IAC3D,OAAO;QACH;;;;;;;;;;;;;;;WAeG;QACH,KAAK,EAAE,CACH,KAAiB,EACjB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC;QAE/C;;;;;;;;;;;;;;WAcG;QACH,OAAO,EAAE,CACL,OAA8B,EAC9B,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC;KACnE,CAAA;AACL,CAAC"}
1
+ {"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../../src/websdk/programmatic/storage.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,MAAM,UAAU,sBAAsB,CAAC,GAAwB;IAC3D,OAAO;QACH;;;;;;;;;;;;;;;WAeG;QACH,KAAK,EAAE,CACH,KAAiB,EACjB,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,CAAC;QAEvE;;;;;;;;;;;;;;WAcG;QACH,OAAO,EAAE,CACL,OAA8B,EAC9B,IAA4B,EACC,EAAE,CAC/B,GAAG,CAAC,GAAG,CACH,GAAG,EAAE,CACD,GAAG,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE;YACpC,KAAK,EAAE,IAAI,EAAE,KAAK;SACrB,CAAC,EACN,IAAI,CACP;KACR,CAAA;AACL,CAAC"}
@@ -34,7 +34,7 @@ export function createTokensNamespace(ctx) {
34
34
  * initial supply, optional script/ACL).
35
35
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
36
36
  */
37
- create: (params, opts) => ctx.run(() => tokens.createToken(params), opts),
37
+ create: (params, opts) => ctx.run(() => tokens.createToken(params, { nonce: opts?.nonce }), opts),
38
38
  /**
39
39
  * Transfer tokens to another address, end to end.
40
40
  *
@@ -54,7 +54,9 @@ export function createTokensNamespace(ctx) {
54
54
  * @param amount - Amount to transfer (bigint-valued decimal string).
55
55
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
56
56
  */
57
- transfer: (tokenAddress, to, amount, opts) => ctx.run(() => tokens.transfer(tokenAddress, to, amount), opts),
57
+ transfer: (tokenAddress, to, amount, opts) => ctx.run(() => tokens.transfer(tokenAddress, to, amount, {
58
+ nonce: opts?.nonce,
59
+ }), opts),
58
60
  /**
59
61
  * Approve a spender to move tokens on your behalf, end to end.
60
62
  *
@@ -63,7 +65,9 @@ export function createTokensNamespace(ctx) {
63
65
  * @param amount - Amount to approve (bigint-valued decimal string).
64
66
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
65
67
  */
66
- approve: (tokenAddress, spender, amount, opts) => ctx.run(() => tokens.approve(tokenAddress, spender, amount), opts),
68
+ approve: (tokenAddress, spender, amount, opts) => ctx.run(() => tokens.approve(tokenAddress, spender, amount, {
69
+ nonce: opts?.nonce,
70
+ }), opts),
67
71
  /**
68
72
  * Mint new tokens to an address, end to end.
69
73
  *
@@ -72,7 +76,9 @@ export function createTokensNamespace(ctx) {
72
76
  * @param amount - Amount to mint (bigint-valued decimal string).
73
77
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
74
78
  */
75
- mint: (tokenAddress, to, amount, opts) => ctx.run(() => tokens.mint(tokenAddress, to, amount), opts),
79
+ mint: (tokenAddress, to, amount, opts) => ctx.run(() => tokens.mint(tokenAddress, to, amount, {
80
+ nonce: opts?.nonce,
81
+ }), opts),
76
82
  /**
77
83
  * Burn tokens from an address, end to end.
78
84
  *
@@ -81,7 +87,9 @@ export function createTokensNamespace(ctx) {
81
87
  * @param amount - Amount to burn (bigint-valued decimal string).
82
88
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
83
89
  */
84
- burn: (tokenAddress, from, amount, opts) => ctx.run(() => tokens.burn(tokenAddress, from, amount), opts),
90
+ burn: (tokenAddress, from, amount, opts) => ctx.run(() => tokens.burn(tokenAddress, from, amount, {
91
+ nonce: opts?.nonce,
92
+ }), opts),
85
93
  /**
86
94
  * Transfer tokens from one address to another using an existing
87
95
  * allowance, end to end.
@@ -92,21 +100,23 @@ export function createTokensNamespace(ctx) {
92
100
  * @param amount - Amount to transfer (bigint-valued decimal string).
93
101
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
94
102
  */
95
- transferFrom: (tokenAddress, from, to, amount, opts) => ctx.run(() => tokens.transferFrom(tokenAddress, from, to, amount), opts),
103
+ transferFrom: (tokenAddress, from, to, amount, opts) => ctx.run(() => tokens.transferFrom(tokenAddress, from, to, amount, {
104
+ nonce: opts?.nonce,
105
+ }), opts),
96
106
  /**
97
107
  * Pause all token operations, end to end.
98
108
  *
99
109
  * @param tokenAddress - Token contract address.
100
110
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
101
111
  */
102
- pause: (tokenAddress, opts) => ctx.run(() => tokens.pause(tokenAddress), opts),
112
+ pause: (tokenAddress, opts) => ctx.run(() => tokens.pause(tokenAddress, { nonce: opts?.nonce }), opts),
103
113
  /**
104
114
  * Resume a paused token, end to end.
105
115
  *
106
116
  * @param tokenAddress - Token contract address.
107
117
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
108
118
  */
109
- unpause: (tokenAddress, opts) => ctx.run(() => tokens.unpause(tokenAddress), opts),
119
+ unpause: (tokenAddress, opts) => ctx.run(() => tokens.unpause(tokenAddress, { nonce: opts?.nonce }), opts),
110
120
  /**
111
121
  * Transfer ownership of the token to a new owner, end to end.
112
122
  *
@@ -114,7 +124,9 @@ export function createTokensNamespace(ctx) {
114
124
  * @param newOwner - Address of the new owner.
115
125
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
116
126
  */
117
- transferOwnership: (tokenAddress, newOwner, opts) => ctx.run(() => tokens.transferOwnership(tokenAddress, newOwner), opts),
127
+ transferOwnership: (tokenAddress, newOwner, opts) => ctx.run(() => tokens.transferOwnership(tokenAddress, newOwner, {
128
+ nonce: opts?.nonce,
129
+ }), opts),
118
130
  /**
119
131
  * Grant ACL permissions to an address, end to end.
120
132
  *
@@ -123,7 +135,7 @@ export function createTokensNamespace(ctx) {
123
135
  * @param permissions - Permissions to grant.
124
136
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
125
137
  */
126
- grantPermissions: (tokenAddress, address, permissions, opts) => ctx.run(() => tokens.grantPermissions(tokenAddress, address, permissions), opts),
138
+ grantPermissions: (tokenAddress, address, permissions, opts) => ctx.run(() => tokens.grantPermissions(tokenAddress, address, permissions, { nonce: opts?.nonce }), opts),
127
139
  /**
128
140
  * Revoke ACL permissions from an address, end to end.
129
141
  *
@@ -132,7 +144,7 @@ export function createTokensNamespace(ctx) {
132
144
  * @param permissions - Permissions to revoke.
133
145
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
134
146
  */
135
- revokePermissions: (tokenAddress, address, permissions, opts) => ctx.run(() => tokens.revokePermissions(tokenAddress, address, permissions), opts),
147
+ revokePermissions: (tokenAddress, address, permissions, opts) => ctx.run(() => tokens.revokePermissions(tokenAddress, address, permissions, { nonce: opts?.nonce }), opts),
136
148
  /**
137
149
  * Upgrade the token's on-chain script, end to end.
138
150
  *
@@ -142,7 +154,7 @@ export function createTokensNamespace(ctx) {
142
154
  * @param newHooks - New hooks to activate.
143
155
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
144
156
  */
145
- upgradeScript: (tokenAddress, newCode, newMethods, newHooks, opts) => ctx.run(() => tokens.upgradeScript(tokenAddress, newCode, newMethods, newHooks), opts),
157
+ upgradeScript: (tokenAddress, newCode, newMethods, newHooks, opts) => ctx.run(() => tokens.upgradeScript(tokenAddress, newCode, newMethods, newHooks, { nonce: opts?.nonce }), opts),
146
158
  /**
147
159
  * Call a custom script method on the token, end to end.
148
160
  *
@@ -151,7 +163,9 @@ export function createTokensNamespace(ctx) {
151
163
  * @param params - Method parameters.
152
164
  * @param opts - Fee ceiling / confirmation strategy / wait behaviour.
153
165
  */
154
- callMethod: (tokenAddress, method, params, opts) => ctx.run(() => tokens.callMethod(tokenAddress, method, params), opts),
166
+ callMethod: (tokenAddress, method, params, opts) => ctx.run(() => tokens.callMethod(tokenAddress, method, params, {
167
+ nonce: opts?.nonce,
168
+ }), opts),
155
169
  };
156
170
  }
157
171
  //# sourceMappingURL=tokens.js.map