@stellar/stellar-base 11.0.0 → 11.1.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.
package/lib/account.js CHANGED
@@ -11,7 +11,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
11
11
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12
12
  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); } }
13
13
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
14
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  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); }
16
16
  /**
17
17
  * Create a new Account object.
@@ -51,7 +51,7 @@ var Account = exports.Account = /*#__PURE__*/function () {
51
51
  * `GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA`.
52
52
  * @returns {string}
53
53
  */
54
- _createClass(Account, [{
54
+ return _createClass(Account, [{
55
55
  key: "accountId",
56
56
  value: function accountId() {
57
57
  return this._accountId;
@@ -76,5 +76,4 @@ var Account = exports.Account = /*#__PURE__*/function () {
76
76
  this.sequence = this.sequence.plus(1);
77
77
  }
78
78
  }]);
79
- return Account;
80
79
  }();
package/lib/address.js CHANGED
@@ -11,7 +11,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
11
11
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
12
12
  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); } }
13
13
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
14
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  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); }
16
16
  /**
17
17
  * Create a new Address object.
@@ -46,7 +46,7 @@ var Address = exports.Address = /*#__PURE__*/function () {
46
46
  * @param {string} address - The address to parse. ex. `GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA`
47
47
  * @returns {Address}
48
48
  */
49
- _createClass(Address, [{
49
+ return _createClass(Address, [{
50
50
  key: "toString",
51
51
  value:
52
52
  /**
@@ -165,5 +165,4 @@ var Address = exports.Address = /*#__PURE__*/function () {
165
165
  }
166
166
  }
167
167
  }]);
168
- return Address;
169
168
  }();
package/lib/asset.js CHANGED
@@ -14,7 +14,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
15
  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); } }
16
16
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  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); }
19
19
  /**
20
20
  * Asset class represents an asset, either the native asset (`XLM`)
@@ -52,7 +52,7 @@ var Asset = exports.Asset = /*#__PURE__*/function () {
52
52
  * Returns an asset object for the native asset.
53
53
  * @Return {Asset}
54
54
  */
55
- _createClass(Asset, [{
55
+ return _createClass(Asset, [{
56
56
  key: "toXDRObject",
57
57
  value:
58
58
  /**
@@ -306,7 +306,6 @@ var Asset = exports.Asset = /*#__PURE__*/function () {
306
306
  return asciiCompare(assetA.getIssuer(), assetB.getIssuer());
307
307
  }
308
308
  }]);
309
- return Asset;
310
309
  }();
311
310
  /**
312
311
  * Compares two ASCII strings in lexographic order with uppercase precedence.
package/lib/auth.js CHANGED
@@ -14,7 +14,7 @@ var _address = require("./address");
14
14
  var _scval = require("./scval");
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
16
  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); }
17
- function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
17
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
18
18
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
19
19
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
20
20
  /**
package/lib/claimant.js CHANGED
@@ -12,7 +12,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
12
12
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
13
  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); } }
14
14
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
15
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
16
  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); }
17
17
  /**
18
18
  * Claimant class represents an xdr.Claimant
@@ -43,7 +43,7 @@ var Claimant = exports.Claimant = /*#__PURE__*/function () {
43
43
  * Returns an unconditional claim predicate
44
44
  * @Return {xdr.ClaimPredicate}
45
45
  */
46
- _createClass(Claimant, [{
46
+ return _createClass(Claimant, [{
47
47
  key: "toXDRObject",
48
48
  value:
49
49
  /**
@@ -189,5 +189,4 @@ var Claimant = exports.Claimant = /*#__PURE__*/function () {
189
189
  }
190
190
  }
191
191
  }]);
192
- return Claimant;
193
192
  }();
package/lib/contract.js CHANGED
@@ -13,7 +13,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
13
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
14
  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); } }
15
15
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  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); }
18
18
  /**
19
19
  * Create a new Contract object.
@@ -44,7 +44,7 @@ var Contract = exports.Contract = /*#__PURE__*/function () {
44
44
  * `CA3D5KRYM6CB7OWQ6TWYRR3Z4T7GNZLKERYNZGGA5SOAOPIFY6YQGAXE`.
45
45
  * @returns {string}
46
46
  */
47
- _createClass(Contract, [{
47
+ return _createClass(Contract, [{
48
48
  key: "contractId",
49
49
  value: function contractId() {
50
50
  return _strkey.StrKey.encodeContract(this._id);
@@ -109,5 +109,4 @@ var Contract = exports.Contract = /*#__PURE__*/function () {
109
109
  }));
110
110
  }
111
111
  }]);
112
- return Contract;
113
112
  }();
package/lib/events.js CHANGED
@@ -12,7 +12,7 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
12
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
13
  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; }
14
14
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
16
  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); }
17
17
  /**
18
18
  * Converts raw diagnostic or contract events into something with a flatter,
@@ -14,7 +14,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
15
  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); } }
16
16
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  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); }
19
19
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
20
20
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
@@ -40,7 +40,6 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Objec
40
40
  * @extends TransactionBase
41
41
  */
42
42
  var FeeBumpTransaction = exports.FeeBumpTransaction = /*#__PURE__*/function (_TransactionBase) {
43
- _inherits(FeeBumpTransaction, _TransactionBase);
44
43
  function FeeBumpTransaction(envelope, networkPassphrase) {
45
44
  var _this;
46
45
  _classCallCheck(this, FeeBumpTransaction);
@@ -68,7 +67,8 @@ var FeeBumpTransaction = exports.FeeBumpTransaction = /*#__PURE__*/function (_Tr
68
67
  * @type {Transaction}
69
68
  * @readonly
70
69
  */
71
- _createClass(FeeBumpTransaction, [{
70
+ _inherits(FeeBumpTransaction, _TransactionBase);
71
+ return _createClass(FeeBumpTransaction, [{
72
72
  key: "innerTransaction",
73
73
  get: function get() {
74
74
  return this._innerTransaction;
@@ -129,5 +129,4 @@ var FeeBumpTransaction = exports.FeeBumpTransaction = /*#__PURE__*/function (_Tr
129
129
  return new _xdr["default"].TransactionEnvelope.envelopeTypeTxFeeBump(envelope);
130
130
  }
131
131
  }]);
132
- return FeeBumpTransaction;
133
132
  }(_transaction_base.TransactionBase);
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports["default"] = void 0;
8
8
  var XDR = _interopRequireWildcard(require("@stellar/js-xdr"));
9
9
  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); }
10
- 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 && Object.prototype.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; }
10
+ 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; }
11
11
  // Automatically generated by xdrgen
12
12
  // DO NOT EDIT or your changes may be overwritten
13
13
 
@@ -493,7 +493,7 @@ var types = XDR.config(function (xdr) {
493
493
  // const MASK_ACCOUNT_FLAGS_V17 = 0xF;
494
494
  //
495
495
  // ===========================================================================
496
- xdr["const"]("MASK_ACCOUNT_FLAGS_V17", 0xf);
496
+ xdr["const"]("MASK_ACCOUNT_FLAGS_V17", 0xF);
497
497
 
498
498
  // === xdr source ============================================================
499
499
  //
@@ -1335,15 +1335,79 @@ var types = XDR.config(function (xdr) {
1335
1335
 
1336
1336
  // === xdr source ============================================================
1337
1337
  //
1338
- // struct ContractCodeEntry {
1338
+ // struct ContractCodeCostInputs {
1339
1339
  // ExtensionPoint ext;
1340
+ // uint32 nInstructions;
1341
+ // uint32 nFunctions;
1342
+ // uint32 nGlobals;
1343
+ // uint32 nTableEntries;
1344
+ // uint32 nTypes;
1345
+ // uint32 nDataSegments;
1346
+ // uint32 nElemSegments;
1347
+ // uint32 nImports;
1348
+ // uint32 nExports;
1349
+ // uint32 nDataSegmentBytes;
1350
+ // };
1351
+ //
1352
+ // ===========================================================================
1353
+ xdr.struct("ContractCodeCostInputs", [["ext", xdr.lookup("ExtensionPoint")], ["nInstructions", xdr.lookup("Uint32")], ["nFunctions", xdr.lookup("Uint32")], ["nGlobals", xdr.lookup("Uint32")], ["nTableEntries", xdr.lookup("Uint32")], ["nTypes", xdr.lookup("Uint32")], ["nDataSegments", xdr.lookup("Uint32")], ["nElemSegments", xdr.lookup("Uint32")], ["nImports", xdr.lookup("Uint32")], ["nExports", xdr.lookup("Uint32")], ["nDataSegmentBytes", xdr.lookup("Uint32")]]);
1354
+
1355
+ // === xdr source ============================================================
1356
+ //
1357
+ // struct
1358
+ // {
1359
+ // ExtensionPoint ext;
1360
+ // ContractCodeCostInputs costInputs;
1361
+ // }
1362
+ //
1363
+ // ===========================================================================
1364
+ xdr.struct("ContractCodeEntryV1", [["ext", xdr.lookup("ExtensionPoint")], ["costInputs", xdr.lookup("ContractCodeCostInputs")]]);
1365
+
1366
+ // === xdr source ============================================================
1367
+ //
1368
+ // union switch (int v)
1369
+ // {
1370
+ // case 0:
1371
+ // void;
1372
+ // case 1:
1373
+ // struct
1374
+ // {
1375
+ // ExtensionPoint ext;
1376
+ // ContractCodeCostInputs costInputs;
1377
+ // } v1;
1378
+ // }
1379
+ //
1380
+ // ===========================================================================
1381
+ xdr.union("ContractCodeEntryExt", {
1382
+ switchOn: xdr["int"](),
1383
+ switchName: "v",
1384
+ switches: [[0, xdr["void"]()], [1, "v1"]],
1385
+ arms: {
1386
+ v1: xdr.lookup("ContractCodeEntryV1")
1387
+ }
1388
+ });
1389
+
1390
+ // === xdr source ============================================================
1391
+ //
1392
+ // struct ContractCodeEntry {
1393
+ // union switch (int v)
1394
+ // {
1395
+ // case 0:
1396
+ // void;
1397
+ // case 1:
1398
+ // struct
1399
+ // {
1400
+ // ExtensionPoint ext;
1401
+ // ContractCodeCostInputs costInputs;
1402
+ // } v1;
1403
+ // } ext;
1340
1404
  //
1341
1405
  // Hash hash;
1342
1406
  // opaque code<>;
1343
1407
  // };
1344
1408
  //
1345
1409
  // ===========================================================================
1346
- xdr.struct("ContractCodeEntry", [["ext", xdr.lookup("ExtensionPoint")], ["hash", xdr.lookup("Hash")], ["code", xdr.varOpaque()]]);
1410
+ xdr.struct("ContractCodeEntry", [["ext", xdr.lookup("ContractCodeEntryExt")], ["hash", xdr.lookup("Hash")], ["code", xdr.varOpaque()]]);
1347
1411
 
1348
1412
  // === xdr source ============================================================
1349
1413
  //
@@ -2538,10 +2602,69 @@ var types = XDR.config(function (xdr) {
2538
2602
 
2539
2603
  // === xdr source ============================================================
2540
2604
  //
2541
- // struct SorobanTransactionMeta
2605
+ // struct SorobanTransactionMetaExtV1
2542
2606
  // {
2543
2607
  // ExtensionPoint ext;
2544
2608
  //
2609
+ // // The following are the components of the overall Soroban resource fee
2610
+ // // charged for the transaction.
2611
+ // // The following relation holds:
2612
+ // // `resourceFeeCharged = totalNonRefundableResourceFeeCharged + totalRefundableResourceFeeCharged`
2613
+ // // where `resourceFeeCharged` is the overall fee charged for the
2614
+ // // transaction. Also, `resourceFeeCharged` <= `sorobanData.resourceFee`
2615
+ // // i.e.we never charge more than the declared resource fee.
2616
+ // // The inclusion fee for charged the Soroban transaction can be found using
2617
+ // // the following equation:
2618
+ // // `result.feeCharged = resourceFeeCharged + inclusionFeeCharged`.
2619
+ //
2620
+ // // Total amount (in stroops) that has been charged for non-refundable
2621
+ // // Soroban resources.
2622
+ // // Non-refundable resources are charged based on the usage declared in
2623
+ // // the transaction envelope (such as `instructions`, `readBytes` etc.) and
2624
+ // // is charged regardless of the success of the transaction.
2625
+ // int64 totalNonRefundableResourceFeeCharged;
2626
+ // // Total amount (in stroops) that has been charged for refundable
2627
+ // // Soroban resource fees.
2628
+ // // Currently this comprises the rent fee (`rentFeeCharged`) and the
2629
+ // // fee for the events and return value.
2630
+ // // Refundable resources are charged based on the actual resources usage.
2631
+ // // Since currently refundable resources are only used for the successful
2632
+ // // transactions, this will be `0` for failed transactions.
2633
+ // int64 totalRefundableResourceFeeCharged;
2634
+ // // Amount (in stroops) that has been charged for rent.
2635
+ // // This is a part of `totalNonRefundableResourceFeeCharged`.
2636
+ // int64 rentFeeCharged;
2637
+ // };
2638
+ //
2639
+ // ===========================================================================
2640
+ xdr.struct("SorobanTransactionMetaExtV1", [["ext", xdr.lookup("ExtensionPoint")], ["totalNonRefundableResourceFeeCharged", xdr.lookup("Int64")], ["totalRefundableResourceFeeCharged", xdr.lookup("Int64")], ["rentFeeCharged", xdr.lookup("Int64")]]);
2641
+
2642
+ // === xdr source ============================================================
2643
+ //
2644
+ // union SorobanTransactionMetaExt switch (int v)
2645
+ // {
2646
+ // case 0:
2647
+ // void;
2648
+ // case 1:
2649
+ // SorobanTransactionMetaExtV1 v1;
2650
+ // };
2651
+ //
2652
+ // ===========================================================================
2653
+ xdr.union("SorobanTransactionMetaExt", {
2654
+ switchOn: xdr["int"](),
2655
+ switchName: "v",
2656
+ switches: [[0, xdr["void"]()], [1, "v1"]],
2657
+ arms: {
2658
+ v1: xdr.lookup("SorobanTransactionMetaExtV1")
2659
+ }
2660
+ });
2661
+
2662
+ // === xdr source ============================================================
2663
+ //
2664
+ // struct SorobanTransactionMeta
2665
+ // {
2666
+ // SorobanTransactionMetaExt ext;
2667
+ //
2545
2668
  // ContractEvent events<>; // custom events populated by the
2546
2669
  // // contracts themselves.
2547
2670
  // SCVal returnValue; // return value of the host fn invocation
@@ -2553,7 +2676,7 @@ var types = XDR.config(function (xdr) {
2553
2676
  // };
2554
2677
  //
2555
2678
  // ===========================================================================
2556
- xdr.struct("SorobanTransactionMeta", [["ext", xdr.lookup("ExtensionPoint")], ["events", xdr.varArray(xdr.lookup("ContractEvent"), 2147483647)], ["returnValue", xdr.lookup("ScVal")], ["diagnosticEvents", xdr.varArray(xdr.lookup("DiagnosticEvent"), 2147483647)]]);
2679
+ xdr.struct("SorobanTransactionMeta", [["ext", xdr.lookup("SorobanTransactionMetaExt")], ["events", xdr.varArray(xdr.lookup("ContractEvent"), 2147483647)], ["returnValue", xdr.lookup("ScVal")], ["diagnosticEvents", xdr.varArray(xdr.lookup("DiagnosticEvent"), 2147483647)]]);
2557
2680
 
2558
2681
  // === xdr source ============================================================
2559
2682
  //
@@ -2659,11 +2782,40 @@ var types = XDR.config(function (xdr) {
2659
2782
 
2660
2783
  // === xdr source ============================================================
2661
2784
  //
2662
- // struct LedgerCloseMetaV1
2785
+ // struct LedgerCloseMetaExtV1
2663
2786
  // {
2664
- // // We forgot to add an ExtensionPoint in v0 but at least
2665
- // // we can add one now in v1.
2666
2787
  // ExtensionPoint ext;
2788
+ // int64 sorobanFeeWrite1KB;
2789
+ // };
2790
+ //
2791
+ // ===========================================================================
2792
+ xdr.struct("LedgerCloseMetaExtV1", [["ext", xdr.lookup("ExtensionPoint")], ["sorobanFeeWrite1Kb", xdr.lookup("Int64")]]);
2793
+
2794
+ // === xdr source ============================================================
2795
+ //
2796
+ // union LedgerCloseMetaExt switch (int v)
2797
+ // {
2798
+ // case 0:
2799
+ // void;
2800
+ // case 1:
2801
+ // LedgerCloseMetaExtV1 v1;
2802
+ // };
2803
+ //
2804
+ // ===========================================================================
2805
+ xdr.union("LedgerCloseMetaExt", {
2806
+ switchOn: xdr["int"](),
2807
+ switchName: "v",
2808
+ switches: [[0, xdr["void"]()], [1, "v1"]],
2809
+ arms: {
2810
+ v1: xdr.lookup("LedgerCloseMetaExtV1")
2811
+ }
2812
+ });
2813
+
2814
+ // === xdr source ============================================================
2815
+ //
2816
+ // struct LedgerCloseMetaV1
2817
+ // {
2818
+ // LedgerCloseMetaExt ext;
2667
2819
  //
2668
2820
  // LedgerHeaderHistoryEntry ledgerHeader;
2669
2821
  //
@@ -2693,7 +2845,7 @@ var types = XDR.config(function (xdr) {
2693
2845
  // };
2694
2846
  //
2695
2847
  // ===========================================================================
2696
- xdr.struct("LedgerCloseMetaV1", [["ext", xdr.lookup("ExtensionPoint")], ["ledgerHeader", xdr.lookup("LedgerHeaderHistoryEntry")], ["txSet", xdr.lookup("GeneralizedTransactionSet")], ["txProcessing", xdr.varArray(xdr.lookup("TransactionResultMeta"), 2147483647)], ["upgradesProcessing", xdr.varArray(xdr.lookup("UpgradeEntryMeta"), 2147483647)], ["scpInfo", xdr.varArray(xdr.lookup("ScpHistoryEntry"), 2147483647)], ["totalByteSizeOfBucketList", xdr.lookup("Uint64")], ["evictedTemporaryLedgerKeys", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], ["evictedPersistentLedgerEntries", xdr.varArray(xdr.lookup("LedgerEntry"), 2147483647)]]);
2848
+ xdr.struct("LedgerCloseMetaV1", [["ext", xdr.lookup("LedgerCloseMetaExt")], ["ledgerHeader", xdr.lookup("LedgerHeaderHistoryEntry")], ["txSet", xdr.lookup("GeneralizedTransactionSet")], ["txProcessing", xdr.varArray(xdr.lookup("TransactionResultMeta"), 2147483647)], ["upgradesProcessing", xdr.varArray(xdr.lookup("UpgradeEntryMeta"), 2147483647)], ["scpInfo", xdr.varArray(xdr.lookup("ScpHistoryEntry"), 2147483647)], ["totalByteSizeOfBucketList", xdr.lookup("Uint64")], ["evictedTemporaryLedgerKeys", xdr.varArray(xdr.lookup("LedgerKey"), 2147483647)], ["evictedPersistentLedgerEntries", xdr.varArray(xdr.lookup("LedgerEntry"), 2147483647)]]);
2697
2849
 
2698
2850
  // === xdr source ============================================================
2699
2851
  //
@@ -8107,8 +8259,9 @@ var types = XDR.config(function (xdr) {
8107
8259
  // InvokeVmFunction = 13,
8108
8260
  // // Cost of computing a keccak256 hash from bytes.
8109
8261
  // ComputeKeccak256Hash = 14,
8110
- // // Cost of computing an ECDSA secp256k1 signature from bytes.
8111
- // ComputeEcdsaSecp256k1Sig = 15,
8262
+ // // Cost of decoding an ECDSA signature computed from a 256-bit prime modulus
8263
+ // // curve (e.g. secp256k1 and secp256r1)
8264
+ // DecodeEcdsaCurve256Sig = 15,
8112
8265
  // // Cost of recovering an ECDSA secp256k1 key from a signature.
8113
8266
  // RecoverEcdsaSecp256k1Key = 16,
8114
8267
  // // Cost of int256 addition (`+`) and subtraction (`-`) operations
@@ -8122,7 +8275,55 @@ var types = XDR.config(function (xdr) {
8122
8275
  // // Cost of int256 shift (`shl`, `shr`) operation
8123
8276
  // Int256Shift = 21,
8124
8277
  // // Cost of drawing random bytes using a ChaCha20 PRNG
8125
- // ChaCha20DrawBytes = 22
8278
+ // ChaCha20DrawBytes = 22,
8279
+ //
8280
+ // // Cost of parsing wasm bytes that only encode instructions.
8281
+ // ParseWasmInstructions = 23,
8282
+ // // Cost of parsing a known number of wasm functions.
8283
+ // ParseWasmFunctions = 24,
8284
+ // // Cost of parsing a known number of wasm globals.
8285
+ // ParseWasmGlobals = 25,
8286
+ // // Cost of parsing a known number of wasm table entries.
8287
+ // ParseWasmTableEntries = 26,
8288
+ // // Cost of parsing a known number of wasm types.
8289
+ // ParseWasmTypes = 27,
8290
+ // // Cost of parsing a known number of wasm data segments.
8291
+ // ParseWasmDataSegments = 28,
8292
+ // // Cost of parsing a known number of wasm element segments.
8293
+ // ParseWasmElemSegments = 29,
8294
+ // // Cost of parsing a known number of wasm imports.
8295
+ // ParseWasmImports = 30,
8296
+ // // Cost of parsing a known number of wasm exports.
8297
+ // ParseWasmExports = 31,
8298
+ // // Cost of parsing a known number of data segment bytes.
8299
+ // ParseWasmDataSegmentBytes = 32,
8300
+ //
8301
+ // // Cost of instantiating wasm bytes that only encode instructions.
8302
+ // InstantiateWasmInstructions = 33,
8303
+ // // Cost of instantiating a known number of wasm functions.
8304
+ // InstantiateWasmFunctions = 34,
8305
+ // // Cost of instantiating a known number of wasm globals.
8306
+ // InstantiateWasmGlobals = 35,
8307
+ // // Cost of instantiating a known number of wasm table entries.
8308
+ // InstantiateWasmTableEntries = 36,
8309
+ // // Cost of instantiating a known number of wasm types.
8310
+ // InstantiateWasmTypes = 37,
8311
+ // // Cost of instantiating a known number of wasm data segments.
8312
+ // InstantiateWasmDataSegments = 38,
8313
+ // // Cost of instantiating a known number of wasm element segments.
8314
+ // InstantiateWasmElemSegments = 39,
8315
+ // // Cost of instantiating a known number of wasm imports.
8316
+ // InstantiateWasmImports = 40,
8317
+ // // Cost of instantiating a known number of wasm exports.
8318
+ // InstantiateWasmExports = 41,
8319
+ // // Cost of instantiating a known number of data segment bytes.
8320
+ // InstantiateWasmDataSegmentBytes = 42,
8321
+ //
8322
+ // // Cost of decoding a bytes array representing an uncompressed SEC-1 encoded
8323
+ // // point on a 256-bit elliptic curve
8324
+ // Sec1DecodePointUncompressed = 43,
8325
+ // // Cost of verifying an ECDSA Secp256r1 signature
8326
+ // VerifyEcdsaSecp256r1Sig = 44
8126
8327
  // };
8127
8328
  //
8128
8329
  // ===========================================================================
@@ -8142,14 +8343,36 @@ var types = XDR.config(function (xdr) {
8142
8343
  vmCachedInstantiation: 12,
8143
8344
  invokeVmFunction: 13,
8144
8345
  computeKeccak256Hash: 14,
8145
- computeEcdsaSecp256k1Sig: 15,
8346
+ decodeEcdsaCurve256Sig: 15,
8146
8347
  recoverEcdsaSecp256k1Key: 16,
8147
8348
  int256AddSub: 17,
8148
8349
  int256Mul: 18,
8149
8350
  int256Div: 19,
8150
8351
  int256Pow: 20,
8151
8352
  int256Shift: 21,
8152
- chaCha20DrawBytes: 22
8353
+ chaCha20DrawBytes: 22,
8354
+ parseWasmInstructions: 23,
8355
+ parseWasmFunctions: 24,
8356
+ parseWasmGlobals: 25,
8357
+ parseWasmTableEntries: 26,
8358
+ parseWasmTypes: 27,
8359
+ parseWasmDataSegments: 28,
8360
+ parseWasmElemSegments: 29,
8361
+ parseWasmImports: 30,
8362
+ parseWasmExports: 31,
8363
+ parseWasmDataSegmentBytes: 32,
8364
+ instantiateWasmInstructions: 33,
8365
+ instantiateWasmFunctions: 34,
8366
+ instantiateWasmGlobals: 35,
8367
+ instantiateWasmTableEntries: 36,
8368
+ instantiateWasmTypes: 37,
8369
+ instantiateWasmDataSegments: 38,
8370
+ instantiateWasmElemSegments: 39,
8371
+ instantiateWasmImports: 40,
8372
+ instantiateWasmExports: 41,
8373
+ instantiateWasmDataSegmentBytes: 42,
8374
+ sec1DecodePointUncompressed: 43,
8375
+ verifyEcdsaSecp256r1Sig: 44
8153
8376
  });
8154
8377
 
8155
8378
  // === xdr source ============================================================
@@ -8182,15 +8405,18 @@ var types = XDR.config(function (xdr) {
8182
8405
  // // Number of snapshots to use when calculating average BucketList size
8183
8406
  // uint32 bucketListSizeWindowSampleSize;
8184
8407
  //
8408
+ // // How often to sample the BucketList size for the average, in ledgers
8409
+ // uint32 bucketListWindowSamplePeriod;
8410
+ //
8185
8411
  // // Maximum number of bytes that we scan for eviction per ledger
8186
- // uint64 evictionScanSize;
8412
+ // uint32 evictionScanSize;
8187
8413
  //
8188
8414
  // // Lowest BucketList level to be scanned to evict entries
8189
8415
  // uint32 startingEvictionScanLevel;
8190
8416
  // };
8191
8417
  //
8192
8418
  // ===========================================================================
8193
- xdr.struct("StateArchivalSettings", [["maxEntryTtl", xdr.lookup("Uint32")], ["minTemporaryTtl", xdr.lookup("Uint32")], ["minPersistentTtl", xdr.lookup("Uint32")], ["persistentRentRateDenominator", xdr.lookup("Int64")], ["tempRentRateDenominator", xdr.lookup("Int64")], ["maxEntriesToArchive", xdr.lookup("Uint32")], ["bucketListSizeWindowSampleSize", xdr.lookup("Uint32")], ["evictionScanSize", xdr.lookup("Uint64")], ["startingEvictionScanLevel", xdr.lookup("Uint32")]]);
8419
+ xdr.struct("StateArchivalSettings", [["maxEntryTtl", xdr.lookup("Uint32")], ["minTemporaryTtl", xdr.lookup("Uint32")], ["minPersistentTtl", xdr.lookup("Uint32")], ["persistentRentRateDenominator", xdr.lookup("Int64")], ["tempRentRateDenominator", xdr.lookup("Int64")], ["maxEntriesToArchive", xdr.lookup("Uint32")], ["bucketListSizeWindowSampleSize", xdr.lookup("Uint32")], ["bucketListWindowSamplePeriod", xdr.lookup("Uint32")], ["evictionScanSize", xdr.lookup("Uint32")], ["startingEvictionScanLevel", xdr.lookup("Uint32")]]);
8194
8420
 
8195
8421
  // === xdr source ============================================================
8196
8422
  //