@stellar/stellar-sdk 14.0.0-rc.3 → 14.0.0

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 (98) hide show
  1. package/CHANGELOG.md +136 -0
  2. package/dist/stellar-sdk-minimal.js +196 -109
  3. package/dist/stellar-sdk-minimal.min.js +1 -1
  4. package/dist/stellar-sdk-no-axios.js +196 -109
  5. package/dist/stellar-sdk-no-axios.min.js +1 -1
  6. package/dist/stellar-sdk-no-eventsource.js +241 -117
  7. package/dist/stellar-sdk-no-eventsource.min.js +1 -1
  8. package/dist/stellar-sdk.js +241 -117
  9. package/dist/stellar-sdk.min.js +1 -1
  10. package/lib/contract/assembled_transaction.d.ts +15 -5
  11. package/lib/contract/assembled_transaction.js +25 -26
  12. package/lib/contract/basic_node_signer.js +1 -1
  13. package/lib/contract/client.d.ts +2 -0
  14. package/lib/contract/client.js +69 -8
  15. package/lib/contract/sent_transaction.d.ts +16 -3
  16. package/lib/contract/sent_transaction.js +70 -50
  17. package/lib/contract/spec.js +1 -4
  18. package/lib/contract/utils.js +5 -9
  19. package/lib/federation/server.js +1 -1
  20. package/lib/horizon/account_response.d.ts +3 -0
  21. package/lib/horizon/call_builder.js +1 -1
  22. package/lib/horizon/horizon_api.d.ts +0 -2
  23. package/lib/horizon/horizon_axios_client.js +1 -1
  24. package/lib/horizon/payment_call_builder.d.ts +8 -0
  25. package/lib/horizon/payment_call_builder.js +6 -0
  26. package/lib/horizon/server.js +10 -3
  27. package/lib/minimal/contract/assembled_transaction.d.ts +15 -5
  28. package/lib/minimal/contract/assembled_transaction.js +25 -26
  29. package/lib/minimal/contract/basic_node_signer.js +1 -1
  30. package/lib/minimal/contract/client.d.ts +2 -0
  31. package/lib/minimal/contract/client.js +69 -8
  32. package/lib/minimal/contract/sent_transaction.d.ts +16 -3
  33. package/lib/minimal/contract/sent_transaction.js +70 -50
  34. package/lib/minimal/contract/spec.js +1 -4
  35. package/lib/minimal/contract/utils.js +5 -9
  36. package/lib/minimal/federation/server.js +1 -1
  37. package/lib/minimal/horizon/account_response.d.ts +3 -0
  38. package/lib/minimal/horizon/call_builder.js +1 -1
  39. package/lib/minimal/horizon/horizon_api.d.ts +0 -2
  40. package/lib/minimal/horizon/horizon_axios_client.js +1 -1
  41. package/lib/minimal/horizon/payment_call_builder.d.ts +8 -0
  42. package/lib/minimal/horizon/payment_call_builder.js +6 -0
  43. package/lib/minimal/horizon/server.js +10 -3
  44. package/lib/minimal/rpc/api.d.ts +1 -1
  45. package/lib/minimal/rpc/axios.js +1 -1
  46. package/lib/minimal/rpc/jsonrpc.js +1 -1
  47. package/lib/minimal/rpc/server.js +2 -2
  48. package/lib/minimal/stellartoml/index.js +1 -1
  49. package/lib/no-axios/contract/assembled_transaction.d.ts +15 -5
  50. package/lib/no-axios/contract/assembled_transaction.js +25 -26
  51. package/lib/no-axios/contract/basic_node_signer.js +1 -1
  52. package/lib/no-axios/contract/client.d.ts +2 -0
  53. package/lib/no-axios/contract/client.js +69 -8
  54. package/lib/no-axios/contract/sent_transaction.d.ts +16 -3
  55. package/lib/no-axios/contract/sent_transaction.js +70 -50
  56. package/lib/no-axios/contract/spec.js +1 -4
  57. package/lib/no-axios/contract/utils.js +5 -9
  58. package/lib/no-axios/federation/server.js +1 -1
  59. package/lib/no-axios/horizon/account_response.d.ts +3 -0
  60. package/lib/no-axios/horizon/call_builder.js +1 -1
  61. package/lib/no-axios/horizon/horizon_api.d.ts +0 -2
  62. package/lib/no-axios/horizon/horizon_axios_client.js +1 -1
  63. package/lib/no-axios/horizon/payment_call_builder.d.ts +8 -0
  64. package/lib/no-axios/horizon/payment_call_builder.js +6 -0
  65. package/lib/no-axios/horizon/server.js +10 -3
  66. package/lib/no-axios/rpc/api.d.ts +1 -1
  67. package/lib/no-axios/rpc/axios.js +1 -1
  68. package/lib/no-axios/rpc/jsonrpc.js +1 -1
  69. package/lib/no-axios/rpc/server.js +2 -2
  70. package/lib/no-axios/stellartoml/index.js +1 -1
  71. package/lib/no-eventsource/contract/assembled_transaction.d.ts +15 -5
  72. package/lib/no-eventsource/contract/assembled_transaction.js +25 -26
  73. package/lib/no-eventsource/contract/basic_node_signer.js +1 -1
  74. package/lib/no-eventsource/contract/client.d.ts +2 -0
  75. package/lib/no-eventsource/contract/client.js +69 -8
  76. package/lib/no-eventsource/contract/sent_transaction.d.ts +16 -3
  77. package/lib/no-eventsource/contract/sent_transaction.js +70 -50
  78. package/lib/no-eventsource/contract/spec.js +1 -4
  79. package/lib/no-eventsource/contract/utils.js +5 -9
  80. package/lib/no-eventsource/federation/server.js +1 -1
  81. package/lib/no-eventsource/horizon/account_response.d.ts +3 -0
  82. package/lib/no-eventsource/horizon/call_builder.js +1 -1
  83. package/lib/no-eventsource/horizon/horizon_api.d.ts +0 -2
  84. package/lib/no-eventsource/horizon/horizon_axios_client.js +1 -1
  85. package/lib/no-eventsource/horizon/payment_call_builder.d.ts +8 -0
  86. package/lib/no-eventsource/horizon/payment_call_builder.js +6 -0
  87. package/lib/no-eventsource/horizon/server.js +10 -3
  88. package/lib/no-eventsource/rpc/api.d.ts +1 -1
  89. package/lib/no-eventsource/rpc/axios.js +1 -1
  90. package/lib/no-eventsource/rpc/jsonrpc.js +1 -1
  91. package/lib/no-eventsource/rpc/server.js +2 -2
  92. package/lib/no-eventsource/stellartoml/index.js +1 -1
  93. package/lib/rpc/api.d.ts +1 -1
  94. package/lib/rpc/axios.js +1 -1
  95. package/lib/rpc/jsonrpc.js +1 -1
  96. package/lib/rpc/server.js +2 -2
  97. package/lib/stellartoml/index.js +1 -1
  98. package/package.json +5 -4
@@ -19,7 +19,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
19
19
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
20
20
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
21
21
  function _regenerator() { var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
22
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
22
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
23
23
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
24
24
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
25
25
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -30,6 +30,9 @@ export declare class AccountResponse {
30
30
  readonly flags: HorizonApi.Flags;
31
31
  readonly balances: HorizonApi.BalanceLine[];
32
32
  readonly signers: ServerApi.AccountRecordSigners[];
33
+ readonly num_sponsoring: number;
34
+ readonly num_sponsored: number;
35
+ readonly sponsor?: string;
33
36
  readonly data: (options: {
34
37
  value: string;
35
38
  }) => Promise<{
@@ -11,7 +11,7 @@ var _horizon_axios_client = require("./horizon_axios_client");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  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); }
13
13
  function _regenerator() { var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
14
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
14
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
15
15
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
16
16
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
17
17
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -419,7 +419,6 @@ export declare namespace HorizonApi {
419
419
  shares: string;
420
420
  reserves_received: Reserve[];
421
421
  }
422
- type MuxedIdType = "uint64" | "string" | "bytes";
423
422
  interface BalanceChange {
424
423
  asset_type: string;
425
424
  asset_code?: string;
@@ -428,7 +427,6 @@ export declare namespace HorizonApi {
428
427
  from: string;
429
428
  to: string;
430
429
  amount: string;
431
- destination_muxed_id_type?: MuxedIdType;
432
430
  destination_muxed_id?: string;
433
431
  }
434
432
  interface InvokeHostFunctionOperationResponse extends BaseOperationResponse<OperationResponseType.invokeHostFunction, OperationResponseTypeI.invokeHostFunction> {
@@ -10,7 +10,7 @@ var _urijs = _interopRequireDefault(require("urijs"));
10
10
  var _httpClient = require("../http-client");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  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); }
13
- var version = exports.version = "14.0.0-rc.3";
13
+ var version = exports.version = "14.0.0";
14
14
  var SERVER_TIME_MAP = exports.SERVER_TIME_MAP = {};
15
15
  var AxiosClient = exports.AxiosClient = (0, _httpClient.create)({
16
16
  headers: {
@@ -36,4 +36,12 @@ export declare class PaymentCallBuilder extends CallBuilder<ServerApi.Collection
36
36
  * @returns {PaymentCallBuilder} this PaymentCallBuilder instance
37
37
  */
38
38
  forTransaction(transactionId: string): this;
39
+ /**
40
+ * Adds a parameter defining whether to include failed transactions.
41
+ * By default, only operations of successful transactions are returned.
42
+ *
43
+ * @param {boolean} value Set to `true` to include operations of failed transactions.
44
+ * @returns {PaymentCallBuilder} this PaymentCallBuilder instance
45
+ */
46
+ includeFailed(value: boolean): this;
39
47
  }
@@ -42,5 +42,11 @@ var PaymentCallBuilder = exports.PaymentCallBuilder = function (_CallBuilder) {
42
42
  value: function forTransaction(transactionId) {
43
43
  return this.forEndpoint("transactions", transactionId);
44
44
  }
45
+ }, {
46
+ key: "includeFailed",
47
+ value: function includeFailed(value) {
48
+ this.url.setQuery("include_failed", value.toString());
49
+ return this;
50
+ }
45
51
  }]);
46
52
  }(_call_builder.CallBuilder);
@@ -35,7 +35,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
35
35
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
36
36
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
37
37
  function _regenerator() { var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
38
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
38
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
39
39
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
40
40
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
41
41
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -201,7 +201,10 @@ var HorizonServer = exports.HorizonServer = function () {
201
201
  case 1:
202
202
  tx = encodeURIComponent(transaction.toEnvelope().toXDR().toString("base64"));
203
203
  return _context5.a(2, _horizon_axios_client.default.post((0, _urijs.default)(this.serverURL).segment("transactions").toString(), "tx=".concat(tx), {
204
- timeout: SUBMIT_TRANSACTION_TIMEOUT
204
+ timeout: SUBMIT_TRANSACTION_TIMEOUT,
205
+ headers: {
206
+ "Content-Type": "application/x-www-form-urlencoded"
207
+ }
205
208
  }).then(function (response) {
206
209
  if (!response.data.result_xdr) {
207
210
  return response.data;
@@ -338,7 +341,11 @@ var HorizonServer = exports.HorizonServer = function () {
338
341
  return this.checkMemoRequired(transaction);
339
342
  case 1:
340
343
  tx = encodeURIComponent(transaction.toEnvelope().toXDR().toString("base64"));
341
- return _context6.a(2, _horizon_axios_client.default.post((0, _urijs.default)(this.serverURL).segment("transactions_async").toString(), "tx=".concat(tx)).then(function (response) {
344
+ return _context6.a(2, _horizon_axios_client.default.post((0, _urijs.default)(this.serverURL).segment("transactions_async").toString(), "tx=".concat(tx), {
345
+ headers: {
346
+ "Content-Type": "application/x-www-form-urlencoded"
347
+ }
348
+ }).then(function (response) {
342
349
  return response.data;
343
350
  }).catch(function (response) {
344
351
  if (response instanceof Error) {
@@ -152,7 +152,7 @@ export declare namespace Api {
152
152
  cursor: string;
153
153
  }
154
154
  export interface RawGetTransactionsResponse {
155
- transactions: RawTransactionInfo[];
155
+ transactions: RawTransactionInfo[] | null;
156
156
  latestLedger: number;
157
157
  latestLedgerCloseTimestamp: number;
158
158
  oldestLedger: number;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.default = exports.AxiosClient = void 0;
7
7
  var _httpClient = require("../http-client");
8
- var version = exports.version = "14.0.0-rc.3";
8
+ var version = exports.version = "14.0.0";
9
9
  var AxiosClient = exports.AxiosClient = (0, _httpClient.create)({
10
10
  headers: {
11
11
  'X-Client-Name': 'js-soroban-client',
@@ -7,7 +7,7 @@ exports.postObject = postObject;
7
7
  var _axios = _interopRequireDefault(require("./axios"));
8
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
9
  function _regenerator() { var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
10
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
10
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
11
11
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
12
12
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
13
13
  function hasOwnProperty(obj, prop) {
@@ -19,7 +19,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
19
19
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20
20
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
21
21
  function _regenerator() { var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
22
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
22
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
23
23
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
24
24
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
25
25
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -423,7 +423,7 @@ var RpcServer = exports.RpcServer = function () {
423
423
  case 0:
424
424
  return _context1.a(2, this._getTransactions(request).then(function (raw) {
425
425
  var result = {
426
- transactions: raw.transactions.map(_parsers.parseRawTransactions),
426
+ transactions: (raw.transactions || []).map(_parsers.parseRawTransactions),
427
427
  latestLedger: raw.latestLedger,
428
428
  latestLedgerCloseTimestamp: raw.latestLedgerCloseTimestamp,
429
429
  oldestLedger: raw.oldestLedger,
@@ -10,7 +10,7 @@ var _config = require("../config");
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  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); }
12
12
  function _regenerator() { var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
13
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
13
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
14
14
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
15
15
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
16
16
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -1,7 +1,7 @@
1
1
  import { Account, SorobanDataBuilder, TransactionBuilder, authorizeEntry as stellarBaseAuthorizeEntry, xdr } from "@stellar/stellar-base";
2
2
  import type { AssembledTransactionOptions, ClientOptions, Tx, XDR_BASE64 } from "./types";
3
3
  import { Api } from "../rpc/api";
4
- import { SentTransaction } from "./sent_transaction";
4
+ import { SentTransaction, Watcher } from "./sent_transaction";
5
5
  import { Spec } from "./spec";
6
6
  /** @module contract */
7
7
  /**
@@ -502,16 +502,20 @@ export declare class AssembledTransaction<T> {
502
502
  }) => Promise<void>;
503
503
  /**
504
504
  * Sends the transaction to the network to return a `SentTransaction` that
505
- * keeps track of all the attempts to fetch the transaction.
505
+ * keeps track of all the attempts to fetch the transaction. Optionally pass
506
+ * a {@link Watcher} that allows you to keep track of the progress as the
507
+ * transaction is sent and processed.
506
508
  */
507
- send(): Promise<SentTransaction<T>>;
509
+ send(watcher?: Watcher): Promise<SentTransaction<T>>;
508
510
  /**
509
511
  * Sign the transaction with the `signTransaction` function included previously.
510
512
  * If you did not previously include one, you need to include one now.
511
513
  * After signing, this method will send the transaction to the network and
512
- * return a `SentTransaction` that keeps track * of all the attempts to fetch the transaction.
514
+ * return a `SentTransaction` that keeps track of all the attempts to fetch
515
+ * the transaction. You may pass a {@link Watcher} to keep
516
+ * track of this progress.
513
517
  */
514
- signAndSend: ({ force, signTransaction, }?: {
518
+ signAndSend: ({ force, signTransaction, watcher, }?: {
515
519
  /**
516
520
  * If `true`, sign and send the transaction even if it is a read call
517
521
  */
@@ -520,6 +524,12 @@ export declare class AssembledTransaction<T> {
520
524
  * You must provide this here if you did not provide one before
521
525
  */
522
526
  signTransaction?: ClientOptions["signTransaction"];
527
+ /**
528
+ * A {@link Watcher} to notify after the transaction is successfully
529
+ * submitted to the network (`onSubmitted`) and as the transaction is
530
+ * processed (`onProgress`).
531
+ */
532
+ watcher?: Watcher;
523
533
  }) => Promise<SentTransaction<T>>;
524
534
  /**
525
535
  * Get a list of accounts, other than the invoker of the simulation, that
@@ -32,7 +32,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
32
32
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
33
33
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
34
34
  function _regenerator() { var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
35
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
35
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
36
36
  function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
37
37
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
38
38
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
@@ -158,7 +158,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
158
158
  throw new AssembledTransaction.Errors.NoSigner("You must provide a signTransaction function, either when calling " + "`signAndSend` or when initializing your Client");
159
159
  case 3:
160
160
  sigsNeeded = _this.needsNonInvokerSigningBy().filter(function (id) {
161
- return !id.startsWith('C');
161
+ return !id.startsWith("C");
162
162
  });
163
163
  if (!sigsNeeded.length) {
164
164
  _context2.n = 4;
@@ -197,12 +197,13 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
197
197
  force,
198
198
  _ref6$signTransaction,
199
199
  signTransaction,
200
+ watcher,
200
201
  originalSubmit,
201
202
  _args3 = arguments;
202
203
  return _regenerator().w(function (_context3) {
203
204
  while (1) switch (_context3.p = _context3.n) {
204
205
  case 0:
205
- _ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, _ref6$force = _ref6.force, force = _ref6$force === void 0 ? false : _ref6$force, _ref6$signTransaction = _ref6.signTransaction, signTransaction = _ref6$signTransaction === void 0 ? _this.options.signTransaction : _ref6$signTransaction;
206
+ _ref6 = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {}, _ref6$force = _ref6.force, force = _ref6$force === void 0 ? false : _ref6$force, _ref6$signTransaction = _ref6.signTransaction, signTransaction = _ref6$signTransaction === void 0 ? _this.options.signTransaction : _ref6$signTransaction, watcher = _ref6.watcher;
206
207
  if (_this.signed) {
207
208
  _context3.n = 3;
208
209
  break;
@@ -222,7 +223,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
222
223
  _this.options.submit = originalSubmit;
223
224
  return _context3.f(2);
224
225
  case 3:
225
- return _context3.a(2, _this.send());
226
+ return _context3.a(2, _this.send(watcher));
226
227
  }
227
228
  }, _callee3, null, [[1,, 2, 3]]);
228
229
  })));
@@ -263,7 +264,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
263
264
  _loop,
264
265
  _ret,
265
266
  _args7 = arguments,
266
- _t7;
267
+ _t5;
267
268
  return _regenerator().w(function (_context7) {
268
269
  while (1) switch (_context7.p = _context7.n) {
269
270
  case 0:
@@ -314,7 +315,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
314
315
  _iterator = _createForOfIteratorHelper(authEntries.entries());
315
316
  _context7.p = 5;
316
317
  _loop = _regenerator().m(function _loop() {
317
- var _step$value, i, entry, credentials, authEntryAddress, sign, _t2, _t3, _t4, _t5, _t6;
318
+ var _step$value, i, entry, credentials, authEntryAddress, sign, _t2, _t3, _t4;
318
319
  return _regenerator().w(function (_context6) {
319
320
  while (1) switch (_context6.n) {
320
321
  case 0:
@@ -362,10 +363,8 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
362
363
  _context6.n = 3;
363
364
  return expiration;
364
365
  case 3:
365
- _t5 = _context6.v;
366
- _t6 = _this.options.networkPassphrase;
367
366
  _context6.n = 4;
368
- return _t2(_t3, _t4, _t5, _t6);
367
+ return _t2(_t3, _t4, _context6.v, _this.options.networkPassphrase);
369
368
  case 4:
370
369
  authEntries[i] = _context6.v;
371
370
  case 5:
@@ -395,8 +394,8 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
395
394
  break;
396
395
  case 10:
397
396
  _context7.p = 10;
398
- _t7 = _context7.v;
399
- _iterator.e(_t7);
397
+ _t5 = _context7.v;
398
+ _iterator.e(_t5);
400
399
  case 11:
401
400
  _context7.p = 11;
402
401
  _iterator.f();
@@ -433,7 +432,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
433
432
  value: function toXDR() {
434
433
  var _this$built2;
435
434
  if (!this.built) throw new Error("Transaction has not yet been simulated; " + "call `AssembledTransaction.simulate` first.");
436
- return (_this$built2 = this.built) === null || _this$built2 === void 0 ? void 0 : _this$built2.toEnvelope().toXDR('base64');
435
+ return (_this$built2 = this.built) === null || _this$built2 === void 0 ? void 0 : _this$built2.toEnvelope().toXDR("base64");
437
436
  }
438
437
  }, {
439
438
  key: "handleWalletError",
@@ -441,7 +440,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
441
440
  if (!error) return;
442
441
  var message = error.message,
443
442
  code = error.code;
444
- var fullMessage = "".concat(message).concat(error.ext ? " (".concat(error.ext.join(', '), ")") : '');
443
+ var fullMessage = "".concat(message).concat(error.ext ? " (".concat(error.ext.join(", "), ")") : "");
445
444
  switch (code) {
446
445
  case -1:
447
446
  throw new AssembledTransaction.Errors.InternalWalletError(fullMessage);
@@ -473,7 +472,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
473
472
  throw new AssembledTransaction.Errors.SimulationFailed("Transaction simulation failed: \"".concat(simulation.error, "\""));
474
473
  }
475
474
  if (_api.Api.isSimulationRestore(simulation)) {
476
- throw new AssembledTransaction.Errors.ExpiredState("You need to restore some contract state before you can invoke this method.\n" + 'You can set `restore` to true in the method options in order to ' + 'automatically restore the contract state when needed.');
475
+ throw new AssembledTransaction.Errors.ExpiredState("You need to restore some contract state before you can invoke this method.\n" + "You can set `restore` to true in the method options in order to " + "automatically restore the contract state when needed.");
477
476
  }
478
477
  this.simulationResult = (_simulation$result = simulation.result) !== null && _simulation$result !== void 0 ? _simulation$result : {
479
478
  auth: [],
@@ -514,7 +513,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
514
513
  }, {
515
514
  key: "send",
516
515
  value: (function () {
517
- var _send = _asyncToGenerator(_regenerator().m(function _callee7() {
516
+ var _send = _asyncToGenerator(_regenerator().m(function _callee7(watcher) {
518
517
  var sent;
519
518
  return _regenerator().w(function (_context8) {
520
519
  while (1) switch (_context8.n) {
@@ -526,14 +525,14 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
526
525
  throw new Error("The transaction has not yet been signed. Run `sign` first, or use `signAndSend` instead.");
527
526
  case 1:
528
527
  _context8.n = 2;
529
- return _sent_transaction.SentTransaction.init(this);
528
+ return _sent_transaction.SentTransaction.init(this, watcher);
530
529
  case 2:
531
530
  sent = _context8.v;
532
531
  return _context8.a(2, sent);
533
532
  }
534
533
  }, _callee7, this);
535
534
  }));
536
- function send() {
535
+ function send(_x2) {
537
536
  return _send.apply(this, arguments);
538
537
  }
539
538
  return send;
@@ -549,7 +548,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
549
548
  key: "restoreFootprint",
550
549
  value: (function () {
551
550
  var _restoreFootprint = _asyncToGenerator(_regenerator().m(function _callee8(restorePreamble, account) {
552
- var restoreTx, sentTransaction, _t8;
551
+ var restoreTx, sentTransaction, _t6;
553
552
  return _regenerator().w(function (_context9) {
554
553
  while (1) switch (_context9.n) {
555
554
  case 0:
@@ -563,16 +562,16 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
563
562
  _context9.n = 2;
564
563
  break;
565
564
  }
566
- _t8 = account;
565
+ _t6 = account;
567
566
  _context9.n = 4;
568
567
  break;
569
568
  case 2:
570
569
  _context9.n = 3;
571
570
  return (0, _utils.getAccount)(this.options, this.server);
572
571
  case 3:
573
- _t8 = _context9.v;
572
+ _t6 = _context9.v;
574
573
  case 4:
575
- account = _t8;
574
+ account = _t6;
576
575
  _context9.n = 5;
577
576
  return AssembledTransaction.buildFootprintRestoreTransaction(_objectSpread({}, this.options), restorePreamble.transactionData, account, restorePreamble.minResourceFee);
578
577
  case 5:
@@ -591,7 +590,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
591
590
  }
592
591
  }, _callee8, this);
593
592
  }));
594
- function restoreFootprint(_x2, _x3) {
593
+ function restoreFootprint(_x3, _x4) {
595
594
  return _restoreFootprint.apply(this, arguments);
596
595
  }
597
596
  return restoreFootprint;
@@ -620,14 +619,14 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
620
619
  var envelope = _stellarBase.xdr.TransactionEnvelope.fromXDR(encodedXDR, "base64");
621
620
  var built = _stellarBase.TransactionBuilder.fromXDR(envelope, options.networkPassphrase);
622
621
  var operation = built.operations[0];
623
- if (!(operation !== null && operation !== void 0 && (_operation$func = operation.func) !== null && _operation$func !== void 0 && _operation$func.value) || typeof operation.func.value !== 'function') {
622
+ if (!(operation !== null && operation !== void 0 && (_operation$func = operation.func) !== null && _operation$func !== void 0 && _operation$func.value) || typeof operation.func.value !== "function") {
624
623
  throw new Error("Could not extract the method from the transaction envelope.");
625
624
  }
626
625
  var invokeContractArgs = operation.func.value();
627
626
  if (!(invokeContractArgs !== null && invokeContractArgs !== void 0 && invokeContractArgs.functionName)) {
628
627
  throw new Error("Could not extract the method name from the transaction envelope.");
629
628
  }
630
- var method = invokeContractArgs.functionName().toString('utf-8');
629
+ var method = invokeContractArgs.functionName().toString("utf-8");
631
630
  var txn = new AssembledTransaction(_objectSpread(_objectSpread({}, options), {}, {
632
631
  method: method,
633
632
  parseResultXdr: function parseResultXdr(result) {
@@ -673,7 +672,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
673
672
  }
674
673
  }, _callee9);
675
674
  }));
676
- function buildWithOp(_x4, _x5) {
675
+ function buildWithOp(_x5, _x6) {
677
676
  return _buildWithOp.apply(this, arguments);
678
677
  }
679
678
  return buildWithOp;
@@ -701,7 +700,7 @@ var AssembledTransaction = exports.AssembledTransaction = function () {
701
700
  }
702
701
  }, _callee0);
703
702
  }));
704
- function buildFootprintRestoreTransaction(_x6, _x7, _x8, _x9) {
703
+ function buildFootprintRestoreTransaction(_x7, _x8, _x9, _x0) {
705
704
  return _buildFootprintRestoreTransaction.apply(this, arguments);
706
705
  }
707
706
  return buildFootprintRestoreTransaction;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.basicNodeSigner = void 0;
7
7
  var _stellarBase = require("@stellar/stellar-base");
8
8
  function _regenerator() { var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
9
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
9
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
10
10
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
11
11
  function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
12
12
  var basicNodeSigner = exports.basicNodeSigner = function basicNodeSigner(keypair, networkPassphrase) {
@@ -29,6 +29,8 @@ export declare class Client {
29
29
  salt?: Buffer | Uint8Array;
30
30
  /** The format used to decode `wasmHash`, if it's provided as a string. */
31
31
  format?: "hex" | "base64";
32
+ /** The address to use to deploy the custom contract */
33
+ address?: string;
32
34
  }): Promise<AssembledTransaction<T>>;
33
35
  constructor(spec: Spec, options: ClientOptions);
34
36
  /**