@stellar/stellar-sdk 12.0.0 → 12.0.1

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 (97) hide show
  1. package/CHANGELOG.md +98 -1
  2. package/README.md +1 -1
  3. package/dist/stellar-sdk.js +2796 -1194
  4. package/dist/stellar-sdk.min.js +1 -1
  5. package/lib/browser.js +1 -1
  6. package/lib/config.js +3 -3
  7. package/lib/{contract_client → contract}/assembled_transaction.d.ts +74 -54
  8. package/lib/{contract_client → contract}/assembled_transaction.js +149 -167
  9. package/lib/{contract_client → contract}/basic_node_signer.d.ts +2 -2
  10. package/lib/{contract_client → contract}/basic_node_signer.js +5 -5
  11. package/lib/contract/client.d.ts +52 -0
  12. package/lib/contract/client.js +177 -0
  13. package/lib/contract/index.d.ts +7 -0
  14. package/lib/{contract_client → contract}/index.js +19 -8
  15. package/lib/{rust_types/result.js → contract/rust_result.js} +3 -3
  16. package/lib/{contract_client → contract}/sent_transaction.d.ts +26 -14
  17. package/lib/{contract_client → contract}/sent_transaction.js +51 -32
  18. package/lib/{contract_spec.d.ts → contract/spec.d.ts} +3 -3
  19. package/lib/{contract_spec.js → contract/spec.js} +169 -169
  20. package/lib/{contract_client → contract}/types.d.ts +10 -8
  21. package/lib/contract/utils.d.ts +41 -0
  22. package/lib/{contract_client → contract}/utils.js +15 -5
  23. package/lib/errors.js +10 -10
  24. package/lib/federation/server.js +10 -10
  25. package/lib/horizon/account_call_builder.d.ts +1 -0
  26. package/lib/horizon/account_call_builder.js +8 -8
  27. package/lib/horizon/account_response.js +7 -7
  28. package/lib/horizon/assets_call_builder.d.ts +1 -0
  29. package/lib/horizon/assets_call_builder.js +8 -8
  30. package/lib/horizon/call_builder.js +6 -6
  31. package/lib/horizon/claimable_balances_call_builder.d.ts +1 -0
  32. package/lib/horizon/claimable_balances_call_builder.js +8 -8
  33. package/lib/horizon/effect_call_builder.d.ts +1 -0
  34. package/lib/horizon/effect_call_builder.js +8 -8
  35. package/lib/horizon/friendbot_builder.d.ts +1 -0
  36. package/lib/horizon/friendbot_builder.js +8 -8
  37. package/lib/horizon/horizon_api.d.ts +1 -0
  38. package/lib/horizon/horizon_axios_client.js +1 -1
  39. package/lib/horizon/ledger_call_builder.d.ts +1 -0
  40. package/lib/horizon/ledger_call_builder.js +8 -8
  41. package/lib/horizon/liquidity_pool_call_builder.d.ts +1 -0
  42. package/lib/horizon/liquidity_pool_call_builder.js +8 -8
  43. package/lib/horizon/offer_call_builder.d.ts +1 -0
  44. package/lib/horizon/offer_call_builder.js +8 -8
  45. package/lib/horizon/operation_call_builder.d.ts +1 -0
  46. package/lib/horizon/operation_call_builder.js +8 -8
  47. package/lib/horizon/orderbook_call_builder.d.ts +1 -0
  48. package/lib/horizon/orderbook_call_builder.js +8 -8
  49. package/lib/horizon/path_call_builder.d.ts +1 -0
  50. package/lib/horizon/path_call_builder.js +8 -8
  51. package/lib/horizon/payment_call_builder.d.ts +1 -0
  52. package/lib/horizon/payment_call_builder.js +8 -8
  53. package/lib/horizon/server.js +6 -6
  54. package/lib/horizon/strict_receive_path_call_builder.d.ts +1 -0
  55. package/lib/horizon/strict_receive_path_call_builder.js +8 -8
  56. package/lib/horizon/strict_send_path_call_builder.d.ts +1 -0
  57. package/lib/horizon/strict_send_path_call_builder.js +8 -8
  58. package/lib/horizon/trade_aggregation_call_builder.d.ts +1 -0
  59. package/lib/horizon/trade_aggregation_call_builder.js +8 -8
  60. package/lib/horizon/trades_call_builder.d.ts +1 -0
  61. package/lib/horizon/trades_call_builder.js +8 -8
  62. package/lib/horizon/transaction_call_builder.d.ts +1 -0
  63. package/lib/horizon/transaction_call_builder.js +8 -8
  64. package/lib/index.d.ts +27 -2
  65. package/lib/index.js +10 -16
  66. package/lib/{soroban → rpc}/api.d.ts +25 -10
  67. package/lib/{soroban → rpc}/axios.js +1 -1
  68. package/lib/{soroban → rpc}/browser.js +1 -1
  69. package/lib/rpc/index.d.ts +8 -0
  70. package/lib/{soroban → rpc}/index.js +1 -1
  71. package/lib/{soroban → rpc}/jsonrpc.js +3 -3
  72. package/lib/{soroban → rpc}/parsers.js +12 -3
  73. package/lib/{soroban → rpc}/server.d.ts +50 -0
  74. package/lib/{soroban → rpc}/server.js +209 -128
  75. package/lib/stellartoml/index.js +6 -6
  76. package/lib/utils.js +3 -3
  77. package/lib/webauth/errors.js +10 -10
  78. package/lib/webauth/utils.js +9 -9
  79. package/package.json +32 -15
  80. package/lib/contract_client/client.d.ts +0 -17
  81. package/lib/contract_client/client.js +0 -57
  82. package/lib/contract_client/index.d.ts +0 -6
  83. package/lib/contract_client/utils.d.ts +0 -23
  84. package/lib/rust_types/index.d.ts +0 -1
  85. package/lib/rust_types/index.js +0 -16
  86. package/lib/soroban/index.d.ts +0 -7
  87. /package/lib/{rust_types/result.d.ts → contract/rust_result.d.ts} +0 -0
  88. /package/lib/{contract_client → contract}/types.js +0 -0
  89. /package/lib/{soroban → rpc}/api.js +0 -0
  90. /package/lib/{soroban → rpc}/axios.d.ts +0 -0
  91. /package/lib/{soroban → rpc}/browser.d.ts +0 -0
  92. /package/lib/{soroban → rpc}/jsonrpc.d.ts +0 -0
  93. /package/lib/{soroban → rpc}/parsers.d.ts +0 -0
  94. /package/lib/{soroban → rpc}/transaction.d.ts +0 -0
  95. /package/lib/{soroban → rpc}/transaction.js +0 -0
  96. /package/lib/{soroban → rpc}/utils.d.ts +0 -0
  97. /package/lib/{soroban → rpc}/utils.js +0 -0
package/lib/browser.js CHANGED
@@ -31,7 +31,7 @@ Object.keys(_index).forEach(function (key) {
31
31
  var _StellarBase = _interopRequireWildcard(require("@stellar/stellar-base"));
32
32
  exports.StellarBase = _StellarBase;
33
33
  var _axios = _interopRequireDefault(require("axios"));
34
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
34
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
35
35
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
36
36
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
37
37
  var _default = exports.default = module.exports;
package/lib/config.js CHANGED
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Config = void 0;
7
7
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
10
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
8
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
9
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
10
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
11
11
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
12
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
13
  var defaultConfig = {
@@ -1,17 +1,19 @@
1
- import type { AssembledTransactionOptions, ContractClientOptions, Tx, XDR_BASE64 } from "./types";
2
- import { SorobanRpc, TransactionBuilder, xdr } from "..";
1
+ /// <reference types="node" />
2
+ import { TransactionBuilder, xdr } from "@stellar/stellar-base";
3
+ import type { AssembledTransactionOptions, ClientOptions, Tx, XDR_BASE64 } from "./types";
4
+ import { Api } from "../rpc/api";
3
5
  import { SentTransaction } from "./sent_transaction";
4
6
  export declare const NULL_ACCOUNT = "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWHF";
5
7
  /**
6
- * The main workhorse of {@link ContractClient}. This class is used to wrap a
8
+ * The main workhorse of {@link Client}. This class is used to wrap a
7
9
  * transaction-under-construction and provide high-level interfaces to the most
8
10
  * common workflows, while still providing access to low-level stellar-sdk
9
11
  * transaction manipulation.
10
12
  *
11
13
  * Most of the time, you will not construct an `AssembledTransaction` directly,
12
- * but instead receive one as the return value of a `ContractClient` method. If
14
+ * but instead receive one as the return value of a `Client` method. If
13
15
  * you're familiar with the libraries generated by soroban-cli's `contract
14
- * bindings typescript` command, these also wraps `ContractClient` and return
16
+ * bindings typescript` command, these also wraps `Client` and return
15
17
  * `AssembledTransaction` instances.
16
18
  *
17
19
  * Let's look at examples of how to use `AssembledTransaction` for a variety of
@@ -25,20 +27,29 @@ export declare const NULL_ACCOUNT = "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
25
27
  * ```ts
26
28
  * const { result } = await AssembledTransaction.build({
27
29
  * method: 'myReadMethod',
28
- * args: spec.funcArgsToScVals('myReadMethod', { args: 'for', my: 'method', ... }),
30
+ * args: spec.funcArgsToScVals('myReadMethod', {
31
+ * args: 'for',
32
+ * my: 'method',
33
+ * ...
34
+ * }),
29
35
  * contractId: 'C123…',
30
36
  * networkPassphrase: '…',
31
37
  * rpcUrl: 'https://…',
32
- * publicKey: Keypair.random().publicKey(), // keypairs are irrelevant, for simulation-only read calls
33
- * parseResultXdr: (result: xdr.ScVal) => spec.funcResToNative('myReadMethod', result),
38
+ * publicKey: undefined, // irrelevant, for simulation-only read calls
39
+ * parseResultXdr: (result: xdr.ScVal) =>
40
+ * spec.funcResToNative('myReadMethod', result),
34
41
  * })
35
42
  * ```
36
43
  *
37
44
  * While that looks pretty complicated, most of the time you will use this in
38
- * conjunction with {@link ContractClient}, which simplifies it to:
45
+ * conjunction with {@link Client}, which simplifies it to:
39
46
  *
40
47
  * ```ts
41
- * const { result } = await client.myReadMethod({ args: 'for', my: 'method', ... })
48
+ * const { result } = await client.myReadMethod({
49
+ * args: 'for',
50
+ * my: 'method',
51
+ * ...
52
+ * })
42
53
  * ```
43
54
  *
44
55
  * # 2. Simple write call
@@ -47,11 +58,15 @@ export declare const NULL_ACCOUNT = "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
47
58
  * further manipulation, only one more step is needed:
48
59
  *
49
60
  * ```ts
50
- * const assembledTx = await client.myWriteMethod({ args: 'for', my: 'method', ... })
61
+ * const assembledTx = await client.myWriteMethod({
62
+ * args: 'for',
63
+ * my: 'method',
64
+ * ...
65
+ * })
51
66
  * const sentTx = await assembledTx.signAndSend()
52
67
  * ```
53
68
  *
54
- * Here we're assuming that you're using a {@link ContractClient}, rather than
69
+ * Here we're assuming that you're using a {@link Client}, rather than
55
70
  * constructing `AssembledTransaction`'s directly.
56
71
  *
57
72
  * Note that `sentTx`, the return value of `signAndSend`, is a
@@ -75,7 +90,7 @@ export declare const NULL_ACCOUNT = "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
75
90
  *
76
91
  * If you need more control over the transaction before simulating it, you can
77
92
  * set various {@link MethodOptions} when constructing your
78
- * `AssembledTransaction`. With a {@link ContractClient}, this is passed as a
93
+ * `AssembledTransaction`. With a {@link Client}, this is passed as a
79
94
  * second object after the arguments (or the only object, if the method takes
80
95
  * no arguments):
81
96
  *
@@ -101,7 +116,8 @@ export declare const NULL_ACCOUNT = "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
101
116
  * await tx.simulate()
102
117
  * ```
103
118
  *
104
- * If you need to inspect the simulation later, you can access it with `tx.simulation`.
119
+ * If you need to inspect the simulation later, you can access it with
120
+ * `tx.simulation`.
105
121
  *
106
122
  * # 4. Multi-auth workflows
107
123
  *
@@ -181,7 +197,7 @@ export declare const NULL_ACCOUNT = "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
181
197
  * ```
182
198
  *
183
199
  * Under the hood, this uses `signAuthEntry`, which you either need to inject
184
- * during initial construction of the `ContractClient`/`AssembledTransaction`,
200
+ * during initial construction of the `Client`/`AssembledTransaction`,
185
201
  * or which you can pass directly to `signAuthEntries`.
186
202
  *
187
203
  * Now Bob can again serialize the transaction and send back to Alice, where
@@ -221,13 +237,14 @@ export declare class AssembledTransaction<T> {
221
237
  * cached, serializable access to the data needed by AssembledTransaction
222
238
  * logic.
223
239
  */
224
- simulation?: SorobanRpc.Api.SimulateTransactionResponse;
240
+ simulation?: Api.SimulateTransactionResponse;
225
241
  /**
226
242
  * Cached simulation result. This is set after the first call to
227
- * {@link simulationData}, and is used to facilitate serialization and
228
- * deserialization of the AssembledTransaction.
243
+ * {@link AssembledTransaction#simulationData}, and is used to facilitate
244
+ * serialization and deserialization of the AssembledTransaction.
229
245
  *
230
- * Most of the time, if you need this data, you can call `tx.simulation.result`.
246
+ * Most of the time, if you need this data, you can call
247
+ * `tx.simulation.result`.
231
248
  *
232
249
  * If you need access to this data after a transaction has been serialized
233
250
  * and then deserialized, you can call `simulationData.result`.
@@ -235,10 +252,11 @@ export declare class AssembledTransaction<T> {
235
252
  private simulationResult?;
236
253
  /**
237
254
  * Cached simulation transaction data. This is set after the first call to
238
- * {@link simulationData}, and is used to facilitate serialization and
239
- * deserialization of the AssembledTransaction.
255
+ * {@link AssembledTransaction#simulationData}, and is used to facilitate
256
+ * serialization and deserialization of the AssembledTransaction.
240
257
  *
241
- * Most of the time, if you need this data, you can call `simulation.transactionData`.
258
+ * Most of the time, if you need this data, you can call
259
+ * `simulation.transactionData`.
242
260
  *
243
261
  * If you need access to this data after a transaction has been serialized
244
262
  * and then deserialized, you can call `simulationData.transactionData`.
@@ -256,72 +274,72 @@ export declare class AssembledTransaction<T> {
256
274
  */
257
275
  static Errors: {
258
276
  ExpiredState: {
259
- new (message?: string): {
277
+ new (message?: string | undefined): {
260
278
  name: string;
261
279
  message: string;
262
280
  stack?: string | undefined;
263
281
  };
264
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
282
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
265
283
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
266
284
  stackTraceLimit: number;
267
285
  };
268
286
  NeedsMoreSignatures: {
269
- new (message?: string): {
287
+ new (message?: string | undefined): {
270
288
  name: string;
271
289
  message: string;
272
290
  stack?: string | undefined;
273
291
  };
274
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
292
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
275
293
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
276
294
  stackTraceLimit: number;
277
295
  };
278
296
  NoSignatureNeeded: {
279
- new (message?: string): {
297
+ new (message?: string | undefined): {
280
298
  name: string;
281
299
  message: string;
282
300
  stack?: string | undefined;
283
301
  };
284
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
302
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
285
303
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
286
304
  stackTraceLimit: number;
287
305
  };
288
306
  NoUnsignedNonInvokerAuthEntries: {
289
- new (message?: string): {
307
+ new (message?: string | undefined): {
290
308
  name: string;
291
309
  message: string;
292
310
  stack?: string | undefined;
293
311
  };
294
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
312
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
295
313
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
296
314
  stackTraceLimit: number;
297
315
  };
298
316
  NoSigner: {
299
- new (message?: string): {
317
+ new (message?: string | undefined): {
300
318
  name: string;
301
319
  message: string;
302
320
  stack?: string | undefined;
303
321
  };
304
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
322
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
305
323
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
306
324
  stackTraceLimit: number;
307
325
  };
308
326
  NotYetSimulated: {
309
- new (message?: string): {
327
+ new (message?: string | undefined): {
310
328
  name: string;
311
329
  message: string;
312
330
  stack?: string | undefined;
313
331
  };
314
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
332
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
315
333
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
316
334
  stackTraceLimit: number;
317
335
  };
318
336
  FakeAccount: {
319
- new (message?: string): {
337
+ new (message?: string | undefined): {
320
338
  name: string;
321
339
  message: string;
322
340
  stack?: string | undefined;
323
341
  };
324
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
342
+ captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
325
343
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
326
344
  stackTraceLimit: number;
327
345
  };
@@ -363,7 +381,7 @@ export declare class AssembledTransaction<T> {
363
381
  static build<T>(options: AssembledTransactionOptions<T>): Promise<AssembledTransaction<T>>;
364
382
  simulate: () => Promise<this>;
365
383
  get simulationData(): {
366
- result: SorobanRpc.Api.SimulateHostFunctionResult;
384
+ result: Api.SimulateHostFunctionResult;
367
385
  transactionData: xdr.SorobanTransactionData;
368
386
  };
369
387
  get result(): T;
@@ -377,13 +395,13 @@ export declare class AssembledTransaction<T> {
377
395
  */
378
396
  signAndSend: ({ force, signTransaction, }?: {
379
397
  /**
380
- * If `true`, sign and send the transaction even if it is a read call.
398
+ * If `true`, sign and send the transaction even if it is a read call
381
399
  */
382
400
  force?: boolean;
383
401
  /**
384
402
  * You must provide this here if you did not provide one before
385
403
  */
386
- signTransaction?: ContractClientOptions["signTransaction"];
404
+ signTransaction?: ClientOptions["signTransaction"];
387
405
  }) => Promise<SentTransaction<T>>;
388
406
  private getStorageExpiration;
389
407
  /**
@@ -402,29 +420,31 @@ export declare class AssembledTransaction<T> {
402
420
  * One at a time, for each public key in this array, you will need to
403
421
  * serialize this transaction with `toJSON`, send to the owner of that key,
404
422
  * deserialize the transaction with `txFromJson`, and call
405
- * {@link signAuthEntries}. Then re-serialize and send to the next account
406
- * in this list.
423
+ * {@link AssembledTransaction#signAuthEntries}. Then re-serialize and send to
424
+ * the next account in this list.
407
425
  */
408
426
  needsNonInvokerSigningBy: ({ includeAlreadySigned, }?: {
409
427
  /**
410
- * Whether or not to include auth entries that have already been signed. Default: false
428
+ * Whether or not to include auth entries that have already been signed.
429
+ * Default: false
411
430
  */
412
431
  includeAlreadySigned?: boolean;
413
- }) => Promise<string[]>;
432
+ }) => string[];
414
433
  /**
415
- * If {@link needsNonInvokerSigningBy} returns a non-empty list, you can serialize
416
- * the transaction with `toJSON`, send it to the owner of one of the public keys
417
- * in the map, deserialize with `txFromJSON`, and call this method on their
418
- * machine. Internally, this will use `signAuthEntry` function from connected
419
- * `wallet` for each.
434
+ * If {@link AssembledTransaction#needsNonInvokerSigningBy} returns a
435
+ * non-empty list, you can serialize the transaction with `toJSON`, send it to
436
+ * the owner of one of the public keys in the map, deserialize with
437
+ * `txFromJSON`, and call this method on their machine. Internally, this will
438
+ * use `signAuthEntry` function from connected `wallet` for each.
420
439
  *
421
440
  * Then, re-serialize the transaction and either send to the next
422
441
  * `needsNonInvokerSigningBy` owner, or send it back to the original account
423
- * who simulated the transaction so they can {@link sign} the transaction
424
- * envelope and {@link send} it to the network.
442
+ * who simulated the transaction so they can {@link AssembledTransaction#sign}
443
+ * the transaction envelope and {@link AssembledTransaction#send} it to the
444
+ * network.
425
445
  *
426
- * Sending to all `needsNonInvokerSigningBy` owners in parallel is not currently
427
- * supported!
446
+ * Sending to all `needsNonInvokerSigningBy` owners in parallel is not
447
+ * currently supported!
428
448
  */
429
449
  signAuthEntries: ({ expiration, signAuthEntry, publicKey, }?: {
430
450
  /**
@@ -441,10 +461,10 @@ export declare class AssembledTransaction<T> {
441
461
  publicKey?: string;
442
462
  /**
443
463
  * You must provide this here if you did not provide one before. Default:
444
- * the `signAuthEntry` function from the `ContractClient` options. Must
464
+ * the `signAuthEntry` function from the `Client` options. Must
445
465
  * sign things as the given `publicKey`.
446
466
  */
447
- signAuthEntry?: ContractClientOptions["signAuthEntry"];
467
+ signAuthEntry?: ClientOptions["signAuthEntry"];
448
468
  }) => Promise<void>;
449
469
  /**
450
470
  * Whether this transaction is a read call. This is determined by the