@solana/web3.js 1.78.2 → 1.78.3

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/index.esm.js CHANGED
@@ -2,11 +2,11 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
3
  import { Buffer } from 'buffer';
4
4
  import { ed25519 } from '@noble/curves/ed25519';
5
- import _typeof from '@babel/runtime/helpers/typeof';
6
5
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
7
6
  import _inherits from '@babel/runtime/helpers/inherits';
8
7
  import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
9
8
  import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
9
+ import _regeneratorRuntime from '@babel/runtime/regenerator';
10
10
  import BN from 'bn.js';
11
11
  import bs58 from 'bs58';
12
12
  import { sha256 } from '@noble/hashes/sha256';
@@ -17,11 +17,11 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
17
17
  import { toBigIntLE, toBufferLE } from 'bigint-buffer';
18
18
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
19
19
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
20
+ import _typeof from '@babel/runtime/helpers/typeof';
20
21
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
21
22
  import require$$0$1 from 'tty';
22
23
  import require$$0 from 'util';
23
- import require$$0$2 from 'events';
24
- import require$$1 from 'path';
24
+ import require$$0$2 from 'path';
25
25
  import require$$0$3 from 'http';
26
26
  import require$$0$4, { Agent as Agent$1 } from 'https';
27
27
  import { coerce, instance, string, tuple, literal, unknown, type, number, array, nullable, optional, boolean, record, union, create, any, assert as assert$1 } from 'superstruct';
@@ -131,7 +131,6 @@ var Enum = /*#__PURE__*/function (_Struct) {
131
131
  var SOLANA_SCHEMA = new Map();
132
132
 
133
133
  var _Symbol$toStringTag;
134
- function _regeneratorRuntime$6() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime$6 = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
135
134
  function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
136
135
  function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
137
136
 
@@ -284,9 +283,9 @@ var PublicKey = /*#__PURE__*/function (_Struct) {
284
283
  }, {
285
284
  key: "createWithSeed",
286
285
  value: function () {
287
- var _createWithSeed = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$6().mark(function _callee(fromPublicKey, seed, programId) {
286
+ var _createWithSeed = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(fromPublicKey, seed, programId) {
288
287
  var buffer, publicKeyBytes;
289
- return _regeneratorRuntime$6().wrap(function _callee$(_context) {
288
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
290
289
  while (1) switch (_context.prev = _context.next) {
291
290
  case 0:
292
291
  buffer = Buffer.concat([fromPublicKey.toBuffer(), Buffer.from(seed), programId.toBuffer()]);
@@ -335,8 +334,8 @@ var PublicKey = /*#__PURE__*/function (_Struct) {
335
334
  }, {
336
335
  key: "createProgramAddress",
337
336
  value: function () {
338
- var _createProgramAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$6().mark(function _callee2(seeds, programId) {
339
- return _regeneratorRuntime$6().wrap(function _callee2$(_context2) {
337
+ var _createProgramAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(seeds, programId) {
338
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
340
339
  while (1) switch (_context2.prev = _context2.next) {
341
340
  case 0:
342
341
  return _context2.abrupt("return", this.createProgramAddressSync(seeds, programId));
@@ -388,8 +387,8 @@ var PublicKey = /*#__PURE__*/function (_Struct) {
388
387
  }, {
389
388
  key: "findProgramAddress",
390
389
  value: function () {
391
- var _findProgramAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$6().mark(function _callee3(seeds, programId) {
392
- return _regeneratorRuntime$6().wrap(function _callee3$(_context3) {
390
+ var _findProgramAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(seeds, programId) {
391
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
393
392
  while (1) switch (_context3.prev = _context3.next) {
394
393
  case 0:
395
394
  return _context3.abrupt("return", this.findProgramAddressSync(seeds, programId));
@@ -1541,7 +1540,6 @@ var VersionedMessage = {
1541
1540
  }
1542
1541
  };
1543
1542
 
1544
- function _regeneratorRuntime$5() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime$5 = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
1545
1543
  function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
1546
1544
  function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
1547
1545
  function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
@@ -2045,8 +2043,8 @@ var Transaction = /*#__PURE__*/function () {
2045
2043
  }, {
2046
2044
  key: "getEstimatedFee",
2047
2045
  value: function () {
2048
- var _getEstimatedFee = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$5().mark(function _callee(connection) {
2049
- return _regeneratorRuntime$5().wrap(function _callee$(_context) {
2046
+ var _getEstimatedFee = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(connection) {
2047
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
2050
2048
  while (1) switch (_context.prev = _context.next) {
2051
2049
  case 0:
2052
2050
  _context.next = 2;
@@ -2673,7 +2671,6 @@ var SYSVAR_SLOT_HASHES_PUBKEY = new PublicKey('SysvarS1otHashes11111111111111111
2673
2671
  var SYSVAR_SLOT_HISTORY_PUBKEY = new PublicKey('SysvarS1otHistory11111111111111111111111111');
2674
2672
  var SYSVAR_STAKE_HISTORY_PUBKEY = new PublicKey('SysvarStakeHistory1111111111111111111111111');
2675
2673
 
2676
- function _regeneratorRuntime$4() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime$4 = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
2677
2674
  /**
2678
2675
  * Sign, send and confirm a transaction.
2679
2676
  *
@@ -2689,9 +2686,9 @@ function sendAndConfirmTransaction(_x, _x2, _x3, _x4) {
2689
2686
  return _sendAndConfirmTransaction.apply(this, arguments);
2690
2687
  }
2691
2688
  function _sendAndConfirmTransaction() {
2692
- _sendAndConfirmTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$4().mark(function _callee(connection, transaction, signers, options) {
2689
+ _sendAndConfirmTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(connection, transaction, signers, options) {
2693
2690
  var sendOptions, signature, status, nonceInstruction, nonceAccountPubkey;
2694
- return _regeneratorRuntime$4().wrap(function _callee$(_context) {
2691
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
2695
2692
  while (1) switch (_context.prev = _context.next) {
2696
2693
  case 0:
2697
2694
  sendOptions = options && {
@@ -3678,7 +3675,6 @@ var SystemProgram = /*#__PURE__*/function () {
3678
3675
  }();
3679
3676
  SystemProgram.programId = new PublicKey('11111111111111111111111111111111');
3680
3677
 
3681
- function _regeneratorRuntime$3() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime$3 = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3682
3678
  // Keep program chunks under PACKET_DATA_SIZE, leaving enough room for the
3683
3679
  // rest of the Transaction fields
3684
3680
  //
@@ -3731,9 +3727,9 @@ var Loader = /*#__PURE__*/function () {
3731
3727
  }, {
3732
3728
  key: "load",
3733
3729
  value: function () {
3734
- var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$3().mark(function _callee(connection, payer, program, programId, data) {
3730
+ var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(connection, payer, program, programId, data) {
3735
3731
  var balanceNeeded, programInfo, transaction, dataLayout, chunkSize, offset, array, transactions, bytes, _data, _transaction, REQUESTS_PER_SECOND, _dataLayout, _data2, _transaction2, deployCommitment, finalizeSignature, _yield$connection$con, context, value, currentSlot;
3736
- return _regeneratorRuntime$3().wrap(function _callee$(_context) {
3732
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
3737
3733
  while (1) switch (_context.prev = _context.next) {
3738
3734
  case 0:
3739
3735
  _context.next = 2;
@@ -5223,235 +5219,9 @@ if (typeof process === 'undefined' || process.type === 'renderer' || process.bro
5223
5219
 
5224
5220
  var srcExports = src.exports;
5225
5221
 
5226
- var compat = {exports: {}};
5227
-
5228
5222
  /*!
5229
5223
  * depd
5230
- * Copyright(c) 2014 Douglas Christopher Wilson
5231
- * MIT Licensed
5232
- */
5233
-
5234
- var callsiteTostring;
5235
- var hasRequiredCallsiteTostring;
5236
-
5237
- function requireCallsiteTostring () {
5238
- if (hasRequiredCallsiteTostring) return callsiteTostring;
5239
- hasRequiredCallsiteTostring = 1;
5240
-
5241
- /**
5242
- * Module exports.
5243
- */
5244
-
5245
- callsiteTostring = callSiteToString;
5246
-
5247
- /**
5248
- * Format a CallSite file location to a string.
5249
- */
5250
-
5251
- function callSiteFileLocation (callSite) {
5252
- var fileName;
5253
- var fileLocation = '';
5254
-
5255
- if (callSite.isNative()) {
5256
- fileLocation = 'native';
5257
- } else if (callSite.isEval()) {
5258
- fileName = callSite.getScriptNameOrSourceURL();
5259
- if (!fileName) {
5260
- fileLocation = callSite.getEvalOrigin();
5261
- }
5262
- } else {
5263
- fileName = callSite.getFileName();
5264
- }
5265
-
5266
- if (fileName) {
5267
- fileLocation += fileName;
5268
-
5269
- var lineNumber = callSite.getLineNumber();
5270
- if (lineNumber != null) {
5271
- fileLocation += ':' + lineNumber;
5272
-
5273
- var columnNumber = callSite.getColumnNumber();
5274
- if (columnNumber) {
5275
- fileLocation += ':' + columnNumber;
5276
- }
5277
- }
5278
- }
5279
-
5280
- return fileLocation || 'unknown source'
5281
- }
5282
-
5283
- /**
5284
- * Format a CallSite to a string.
5285
- */
5286
-
5287
- function callSiteToString (callSite) {
5288
- var addSuffix = true;
5289
- var fileLocation = callSiteFileLocation(callSite);
5290
- var functionName = callSite.getFunctionName();
5291
- var isConstructor = callSite.isConstructor();
5292
- var isMethodCall = !(callSite.isToplevel() || isConstructor);
5293
- var line = '';
5294
-
5295
- if (isMethodCall) {
5296
- var methodName = callSite.getMethodName();
5297
- var typeName = getConstructorName(callSite);
5298
-
5299
- if (functionName) {
5300
- if (typeName && functionName.indexOf(typeName) !== 0) {
5301
- line += typeName + '.';
5302
- }
5303
-
5304
- line += functionName;
5305
-
5306
- if (methodName && functionName.lastIndexOf('.' + methodName) !== functionName.length - methodName.length - 1) {
5307
- line += ' [as ' + methodName + ']';
5308
- }
5309
- } else {
5310
- line += typeName + '.' + (methodName || '<anonymous>');
5311
- }
5312
- } else if (isConstructor) {
5313
- line += 'new ' + (functionName || '<anonymous>');
5314
- } else if (functionName) {
5315
- line += functionName;
5316
- } else {
5317
- addSuffix = false;
5318
- line += fileLocation;
5319
- }
5320
-
5321
- if (addSuffix) {
5322
- line += ' (' + fileLocation + ')';
5323
- }
5324
-
5325
- return line
5326
- }
5327
-
5328
- /**
5329
- * Get constructor name of reviver.
5330
- */
5331
-
5332
- function getConstructorName (obj) {
5333
- var receiver = obj.receiver;
5334
- return (receiver.constructor && receiver.constructor.name) || null
5335
- }
5336
- return callsiteTostring;
5337
- }
5338
-
5339
- /*!
5340
- * depd
5341
- * Copyright(c) 2015 Douglas Christopher Wilson
5342
- * MIT Licensed
5343
- */
5344
-
5345
- var eventListenerCount_1;
5346
- var hasRequiredEventListenerCount;
5347
-
5348
- function requireEventListenerCount () {
5349
- if (hasRequiredEventListenerCount) return eventListenerCount_1;
5350
- hasRequiredEventListenerCount = 1;
5351
-
5352
- /**
5353
- * Module exports.
5354
- * @public
5355
- */
5356
-
5357
- eventListenerCount_1 = eventListenerCount;
5358
-
5359
- /**
5360
- * Get the count of listeners on an event emitter of a specific type.
5361
- */
5362
-
5363
- function eventListenerCount (emitter, type) {
5364
- return emitter.listeners(type).length
5365
- }
5366
- return eventListenerCount_1;
5367
- }
5368
-
5369
- /*!
5370
- * depd
5371
- * Copyright(c) 2014-2015 Douglas Christopher Wilson
5372
- * MIT Licensed
5373
- */
5374
-
5375
- (function (module) {
5376
-
5377
- /**
5378
- * Module dependencies.
5379
- * @private
5380
- */
5381
-
5382
- var EventEmitter = require$$0$2.EventEmitter;
5383
-
5384
- /**
5385
- * Module exports.
5386
- * @public
5387
- */
5388
-
5389
- lazyProperty(module.exports, 'callSiteToString', function callSiteToString () {
5390
- var limit = Error.stackTraceLimit;
5391
- var obj = {};
5392
- var prep = Error.prepareStackTrace;
5393
-
5394
- function prepareObjectStackTrace (obj, stack) {
5395
- return stack
5396
- }
5397
-
5398
- Error.prepareStackTrace = prepareObjectStackTrace;
5399
- Error.stackTraceLimit = 2;
5400
-
5401
- // capture the stack
5402
- Error.captureStackTrace(obj);
5403
-
5404
- // slice the stack
5405
- var stack = obj.stack.slice();
5406
-
5407
- Error.prepareStackTrace = prep;
5408
- Error.stackTraceLimit = limit;
5409
-
5410
- return stack[0].toString ? toString : requireCallsiteTostring()
5411
- });
5412
-
5413
- lazyProperty(module.exports, 'eventListenerCount', function eventListenerCount () {
5414
- return EventEmitter.listenerCount || requireEventListenerCount()
5415
- });
5416
-
5417
- /**
5418
- * Define a lazy property.
5419
- */
5420
-
5421
- function lazyProperty (obj, prop, getter) {
5422
- function get () {
5423
- var val = getter();
5424
-
5425
- Object.defineProperty(obj, prop, {
5426
- configurable: true,
5427
- enumerable: true,
5428
- value: val
5429
- });
5430
-
5431
- return val
5432
- }
5433
-
5434
- Object.defineProperty(obj, prop, {
5435
- configurable: true,
5436
- enumerable: true,
5437
- get: get
5438
- });
5439
- }
5440
-
5441
- /**
5442
- * Call toString() on the obj
5443
- */
5444
-
5445
- function toString (obj) {
5446
- return obj.toString()
5447
- }
5448
- } (compat));
5449
-
5450
- var compatExports = compat.exports;
5451
-
5452
- /*!
5453
- * depd
5454
- * Copyright(c) 2014-2017 Douglas Christopher Wilson
5224
+ * Copyright(c) 2014-2018 Douglas Christopher Wilson
5455
5225
  * MIT Licensed
5456
5226
  */
5457
5227
 
@@ -5459,9 +5229,7 @@ var compatExports = compat.exports;
5459
5229
  * Module dependencies.
5460
5230
  */
5461
5231
 
5462
- var callSiteToString = compatExports.callSiteToString;
5463
- var eventListenerCount = compatExports.eventListenerCount;
5464
- var relative = require$$1.relative;
5232
+ var relative = require$$0$2.relative;
5465
5233
 
5466
5234
  /**
5467
5235
  * Module exports.
@@ -5543,7 +5311,7 @@ function createStackString (stack) {
5543
5311
  }
5544
5312
 
5545
5313
  for (var i = 0; i < stack.length; i++) {
5546
- str += '\n at ' + callSiteToString(stack[i]);
5314
+ str += '\n at ' + stack[i].toString();
5547
5315
  }
5548
5316
 
5549
5317
  return str
@@ -5579,12 +5347,31 @@ function depd (namespace) {
5579
5347
  return deprecate
5580
5348
  }
5581
5349
 
5350
+ /**
5351
+ * Determine if event emitter has listeners of a given type.
5352
+ *
5353
+ * The way to do this check is done three different ways in Node.js >= 0.8
5354
+ * so this consolidates them into a minimal set using instance methods.
5355
+ *
5356
+ * @param {EventEmitter} emitter
5357
+ * @param {string} type
5358
+ * @returns {boolean}
5359
+ * @private
5360
+ */
5361
+
5362
+ function eehaslisteners (emitter, type) {
5363
+ var count = typeof emitter.listenerCount !== 'function'
5364
+ ? emitter.listeners(type).length
5365
+ : emitter.listenerCount(type);
5366
+
5367
+ return count > 0
5368
+ }
5369
+
5582
5370
  /**
5583
5371
  * Determine if namespace is ignored.
5584
5372
  */
5585
5373
 
5586
5374
  function isignored (namespace) {
5587
- /* istanbul ignore next: tested in a child processs */
5588
5375
  if (process.noDeprecation) {
5589
5376
  // --no-deprecation support
5590
5377
  return true
@@ -5601,7 +5388,6 @@ function isignored (namespace) {
5601
5388
  */
5602
5389
 
5603
5390
  function istraced (namespace) {
5604
- /* istanbul ignore next: tested in a child processs */
5605
5391
  if (process.traceDeprecation) {
5606
5392
  // --trace-deprecation support
5607
5393
  return true
@@ -5618,7 +5404,7 @@ function istraced (namespace) {
5618
5404
  */
5619
5405
 
5620
5406
  function log (message, site) {
5621
- var haslisteners = eventListenerCount(process, 'deprecation') !== 0;
5407
+ var haslisteners = eehaslisteners(process, 'deprecation');
5622
5408
 
5623
5409
  // abort early if no destination
5624
5410
  if (!haslisteners && this._ignored) {
@@ -5761,7 +5547,7 @@ function formatPlain (msg, caller, stack) {
5761
5547
  // add stack trace
5762
5548
  if (this._traced) {
5763
5549
  for (var i = 0; i < stack.length; i++) {
5764
- formatted += '\n at ' + callSiteToString(stack[i]);
5550
+ formatted += '\n at ' + stack[i].toString();
5765
5551
  }
5766
5552
 
5767
5553
  return formatted
@@ -5786,7 +5572,7 @@ function formatColor (msg, caller, stack) {
5786
5572
  // add stack trace
5787
5573
  if (this._traced) {
5788
5574
  for (var i = 0; i < stack.length; i++) {
5789
- formatted += '\n \x1b[36mat ' + callSiteToString(stack[i]) + '\x1b[39m'; // cyan
5575
+ formatted += '\n \x1b[36mat ' + stack[i].toString() + '\x1b[39m'; // cyan
5790
5576
  }
5791
5577
 
5792
5578
  return formatted
@@ -5856,12 +5642,13 @@ function wrapfunction (fn, message) {
5856
5642
 
5857
5643
  site.name = fn.name;
5858
5644
 
5859
- // eslint-disable-next-line no-eval
5860
- var deprecatedfn = eval('(function (' + args + ') {\n' +
5645
+ // eslint-disable-next-line no-new-func
5646
+ var deprecatedfn = new Function('fn', 'log', 'deprecate', 'message', 'site',
5861
5647
  '"use strict"\n' +
5648
+ 'return function (' + args + ') {' +
5862
5649
  'log.call(deprecate, message, site)\n' +
5863
5650
  'return fn.apply(this, arguments)\n' +
5864
- '})');
5651
+ '}')(fn, log, this, message, site);
5865
5652
 
5866
5653
  return deprecatedfn
5867
5654
  }
@@ -6667,16 +6454,15 @@ var SolanaJSONRPCError = /*#__PURE__*/function (_Error2) {
6667
6454
  return _createClass(SolanaJSONRPCError);
6668
6455
  }( /*#__PURE__*/_wrapNativeSuper(Error));
6669
6456
 
6670
- function _regeneratorRuntime$2() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime$2 = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
6671
6457
  var fetchImpl = typeof globalThis.fetch === 'function' ?
6672
6458
  // The Fetch API is supported experimentally in Node 17.5+ and natively in Node 18+.
6673
6459
  globalThis.fetch :
6674
6460
  /*#__PURE__*/
6675
6461
  // Otherwise use the polyfill.
6676
6462
  function () {
6677
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$2().mark(function _callee(input, init) {
6463
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(input, init) {
6678
6464
  var processedInput;
6679
- return _regeneratorRuntime$2().wrap(function _callee$(_context) {
6465
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
6680
6466
  while (1) switch (_context.prev = _context.next) {
6681
6467
  case 0:
6682
6468
  processedInput = typeof input === 'string' && input.slice(0, 2) === '//' ? 'https:' + input : input;
@@ -6852,7 +6638,6 @@ var _excluded = ["commitment"],
6852
6638
  _excluded2 = ["encoding"],
6853
6639
  _excluded3 = ["commitment"],
6854
6640
  _excluded4 = ["commitment"];
6855
- function _regeneratorRuntime$1() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime$1 = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
6856
6641
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6857
6642
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6858
6643
  var PublicKeyFromString = coerce(instance(PublicKey), string(), function (value) {
@@ -7442,9 +7227,9 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
7442
7227
  var fetchWithMiddleware;
7443
7228
  if (fetchMiddleware) {
7444
7229
  fetchWithMiddleware = /*#__PURE__*/function () {
7445
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee(info, init) {
7230
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(info, init) {
7446
7231
  var modifiedFetchArgs;
7447
- return _regeneratorRuntime$1().wrap(function _callee$(_context) {
7232
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
7448
7233
  while (1) switch (_context.prev = _context.next) {
7449
7234
  case 0:
7450
7235
  _context.next = 2;
@@ -7475,9 +7260,9 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
7475
7260
  }();
7476
7261
  }
7477
7262
  var clientBrowser = new RpcClient( /*#__PURE__*/function () {
7478
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee2(request, callback) {
7263
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(request, callback) {
7479
7264
  var options, too_many_requests_retries, res, waitTime, text;
7480
- return _regeneratorRuntime$1().wrap(function _callee2$(_context2) {
7265
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
7481
7266
  while (1) switch (_context2.prev = _context2.next) {
7482
7267
  case 0:
7483
7268
  options = {
@@ -8545,18 +8330,18 @@ var Connection = /*#__PURE__*/function () {
8545
8330
  this.getBlockHeight = function () {
8546
8331
  var requestPromises = {};
8547
8332
  return /*#__PURE__*/function () {
8548
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee4(commitmentOrConfig) {
8333
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(commitmentOrConfig) {
8549
8334
  var _requestPromises$requ;
8550
8335
  var _extractCommitmentFro, commitment, config, args, requestHash;
8551
- return _regeneratorRuntime$1().wrap(function _callee4$(_context4) {
8336
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
8552
8337
  while (1) switch (_context4.prev = _context4.next) {
8553
8338
  case 0:
8554
8339
  _extractCommitmentFro = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro.commitment, config = _extractCommitmentFro.config;
8555
8340
  args = _this._buildArgs([], commitment, undefined /* encoding */, config);
8556
8341
  requestHash = fastStableStringify$1(args);
8557
- requestPromises[requestHash] = (_requestPromises$requ = requestPromises[requestHash]) !== null && _requestPromises$requ !== void 0 ? _requestPromises$requ : _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee3() {
8342
+ requestPromises[requestHash] = (_requestPromises$requ = requestPromises[requestHash]) !== null && _requestPromises$requ !== void 0 ? _requestPromises$requ : _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
8558
8343
  var unsafeRes, res;
8559
- return _regeneratorRuntime$1().wrap(function _callee3$(_context3) {
8344
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
8560
8345
  while (1) switch (_context3.prev = _context3.next) {
8561
8346
  case 0:
8562
8347
  _context3.prev = 0;
@@ -8660,9 +8445,9 @@ var Connection = /*#__PURE__*/function () {
8660
8445
  }, {
8661
8446
  key: "getBalanceAndContext",
8662
8447
  value: function () {
8663
- var _getBalanceAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee5(publicKey, commitmentOrConfig) {
8448
+ var _getBalanceAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(publicKey, commitmentOrConfig) {
8664
8449
  var _extractCommitmentFro2, commitment, config, args, unsafeRes, res;
8665
- return _regeneratorRuntime$1().wrap(function _callee5$(_context5) {
8450
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
8666
8451
  while (1) switch (_context5.prev = _context5.next) {
8667
8452
  case 0:
8668
8453
  /** @internal */
@@ -8697,8 +8482,8 @@ var Connection = /*#__PURE__*/function () {
8697
8482
  }, {
8698
8483
  key: "getBalance",
8699
8484
  value: function () {
8700
- var _getBalance = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee6(publicKey, commitmentOrConfig) {
8701
- return _regeneratorRuntime$1().wrap(function _callee6$(_context6) {
8485
+ var _getBalance = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(publicKey, commitmentOrConfig) {
8486
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
8702
8487
  while (1) switch (_context6.prev = _context6.next) {
8703
8488
  case 0:
8704
8489
  _context6.next = 2;
@@ -8726,9 +8511,9 @@ var Connection = /*#__PURE__*/function () {
8726
8511
  }, {
8727
8512
  key: "getBlockTime",
8728
8513
  value: function () {
8729
- var _getBlockTime = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee7(slot) {
8514
+ var _getBlockTime = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(slot) {
8730
8515
  var unsafeRes, res;
8731
- return _regeneratorRuntime$1().wrap(function _callee7$(_context7) {
8516
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
8732
8517
  while (1) switch (_context7.prev = _context7.next) {
8733
8518
  case 0:
8734
8519
  _context7.next = 2;
@@ -8761,9 +8546,9 @@ var Connection = /*#__PURE__*/function () {
8761
8546
  }, {
8762
8547
  key: "getMinimumLedgerSlot",
8763
8548
  value: function () {
8764
- var _getMinimumLedgerSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee8() {
8549
+ var _getMinimumLedgerSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
8765
8550
  var unsafeRes, res;
8766
- return _regeneratorRuntime$1().wrap(function _callee8$(_context8) {
8551
+ return _regeneratorRuntime.wrap(function _callee8$(_context8) {
8767
8552
  while (1) switch (_context8.prev = _context8.next) {
8768
8553
  case 0:
8769
8554
  _context8.next = 2;
@@ -8795,9 +8580,9 @@ var Connection = /*#__PURE__*/function () {
8795
8580
  }, {
8796
8581
  key: "getFirstAvailableBlock",
8797
8582
  value: function () {
8798
- var _getFirstAvailableBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee9() {
8583
+ var _getFirstAvailableBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
8799
8584
  var unsafeRes, res;
8800
- return _regeneratorRuntime$1().wrap(function _callee9$(_context9) {
8585
+ return _regeneratorRuntime.wrap(function _callee9$(_context9) {
8801
8586
  while (1) switch (_context9.prev = _context9.next) {
8802
8587
  case 0:
8803
8588
  _context9.next = 2;
@@ -8829,9 +8614,9 @@ var Connection = /*#__PURE__*/function () {
8829
8614
  }, {
8830
8615
  key: "getSupply",
8831
8616
  value: function () {
8832
- var _getSupply = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee10(config) {
8617
+ var _getSupply = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(config) {
8833
8618
  var configArg, unsafeRes, res;
8834
- return _regeneratorRuntime$1().wrap(function _callee10$(_context10) {
8619
+ return _regeneratorRuntime.wrap(function _callee10$(_context10) {
8835
8620
  while (1) switch (_context10.prev = _context10.next) {
8836
8621
  case 0:
8837
8622
  configArg = {};
@@ -8877,9 +8662,9 @@ var Connection = /*#__PURE__*/function () {
8877
8662
  }, {
8878
8663
  key: "getTokenSupply",
8879
8664
  value: function () {
8880
- var _getTokenSupply = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee11(tokenMintAddress, commitment) {
8665
+ var _getTokenSupply = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(tokenMintAddress, commitment) {
8881
8666
  var args, unsafeRes, res;
8882
- return _regeneratorRuntime$1().wrap(function _callee11$(_context11) {
8667
+ return _regeneratorRuntime.wrap(function _callee11$(_context11) {
8883
8668
  while (1) switch (_context11.prev = _context11.next) {
8884
8669
  case 0:
8885
8670
  args = this._buildArgs([tokenMintAddress.toBase58()], commitment);
@@ -8912,9 +8697,9 @@ var Connection = /*#__PURE__*/function () {
8912
8697
  }, {
8913
8698
  key: "getTokenAccountBalance",
8914
8699
  value: function () {
8915
- var _getTokenAccountBalance = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee12(tokenAddress, commitment) {
8700
+ var _getTokenAccountBalance = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(tokenAddress, commitment) {
8916
8701
  var args, unsafeRes, res;
8917
- return _regeneratorRuntime$1().wrap(function _callee12$(_context12) {
8702
+ return _regeneratorRuntime.wrap(function _callee12$(_context12) {
8918
8703
  while (1) switch (_context12.prev = _context12.next) {
8919
8704
  case 0:
8920
8705
  args = this._buildArgs([tokenAddress.toBase58()], commitment);
@@ -8949,9 +8734,9 @@ var Connection = /*#__PURE__*/function () {
8949
8734
  }, {
8950
8735
  key: "getTokenAccountsByOwner",
8951
8736
  value: function () {
8952
- var _getTokenAccountsByOwner = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee13(ownerAddress, filter, commitmentOrConfig) {
8737
+ var _getTokenAccountsByOwner = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(ownerAddress, filter, commitmentOrConfig) {
8953
8738
  var _extractCommitmentFro3, commitment, config, _args, args, unsafeRes, res;
8954
- return _regeneratorRuntime$1().wrap(function _callee13$(_context13) {
8739
+ return _regeneratorRuntime.wrap(function _callee13$(_context13) {
8955
8740
  while (1) switch (_context13.prev = _context13.next) {
8956
8741
  case 0:
8957
8742
  _extractCommitmentFro3 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro3.commitment, config = _extractCommitmentFro3.config;
@@ -8997,9 +8782,9 @@ var Connection = /*#__PURE__*/function () {
8997
8782
  }, {
8998
8783
  key: "getParsedTokenAccountsByOwner",
8999
8784
  value: function () {
9000
- var _getParsedTokenAccountsByOwner = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee14(ownerAddress, filter, commitment) {
8785
+ var _getParsedTokenAccountsByOwner = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(ownerAddress, filter, commitment) {
9001
8786
  var _args, args, unsafeRes, res;
9002
- return _regeneratorRuntime$1().wrap(function _callee14$(_context14) {
8787
+ return _regeneratorRuntime.wrap(function _callee14$(_context14) {
9003
8788
  while (1) switch (_context14.prev = _context14.next) {
9004
8789
  case 0:
9005
8790
  _args = [ownerAddress.toBase58()];
@@ -9042,9 +8827,9 @@ var Connection = /*#__PURE__*/function () {
9042
8827
  }, {
9043
8828
  key: "getLargestAccounts",
9044
8829
  value: function () {
9045
- var _getLargestAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee15(config) {
8830
+ var _getLargestAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(config) {
9046
8831
  var arg, args, unsafeRes, res;
9047
- return _regeneratorRuntime$1().wrap(function _callee15$(_context15) {
8832
+ return _regeneratorRuntime.wrap(function _callee15$(_context15) {
9048
8833
  while (1) switch (_context15.prev = _context15.next) {
9049
8834
  case 0:
9050
8835
  arg = _objectSpread(_objectSpread({}, config), {}, {
@@ -9081,9 +8866,9 @@ var Connection = /*#__PURE__*/function () {
9081
8866
  }, {
9082
8867
  key: "getTokenLargestAccounts",
9083
8868
  value: function () {
9084
- var _getTokenLargestAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee16(mintAddress, commitment) {
8869
+ var _getTokenLargestAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(mintAddress, commitment) {
9085
8870
  var args, unsafeRes, res;
9086
- return _regeneratorRuntime$1().wrap(function _callee16$(_context16) {
8871
+ return _regeneratorRuntime.wrap(function _callee16$(_context16) {
9087
8872
  while (1) switch (_context16.prev = _context16.next) {
9088
8873
  case 0:
9089
8874
  args = this._buildArgs([mintAddress.toBase58()], commitment);
@@ -9116,9 +8901,9 @@ var Connection = /*#__PURE__*/function () {
9116
8901
  }, {
9117
8902
  key: "getAccountInfoAndContext",
9118
8903
  value: function () {
9119
- var _getAccountInfoAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee17(publicKey, commitmentOrConfig) {
8904
+ var _getAccountInfoAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(publicKey, commitmentOrConfig) {
9120
8905
  var _extractCommitmentFro4, commitment, config, args, unsafeRes, res;
9121
- return _regeneratorRuntime$1().wrap(function _callee17$(_context17) {
8906
+ return _regeneratorRuntime.wrap(function _callee17$(_context17) {
9122
8907
  while (1) switch (_context17.prev = _context17.next) {
9123
8908
  case 0:
9124
8909
  _extractCommitmentFro4 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro4.commitment, config = _extractCommitmentFro4.config;
@@ -9152,9 +8937,9 @@ var Connection = /*#__PURE__*/function () {
9152
8937
  }, {
9153
8938
  key: "getParsedAccountInfo",
9154
8939
  value: function () {
9155
- var _getParsedAccountInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee18(publicKey, commitmentOrConfig) {
8940
+ var _getParsedAccountInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(publicKey, commitmentOrConfig) {
9156
8941
  var _extractCommitmentFro5, commitment, config, args, unsafeRes, res;
9157
- return _regeneratorRuntime$1().wrap(function _callee18$(_context18) {
8942
+ return _regeneratorRuntime.wrap(function _callee18$(_context18) {
9158
8943
  while (1) switch (_context18.prev = _context18.next) {
9159
8944
  case 0:
9160
8945
  _extractCommitmentFro5 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro5.commitment, config = _extractCommitmentFro5.config;
@@ -9188,9 +8973,9 @@ var Connection = /*#__PURE__*/function () {
9188
8973
  }, {
9189
8974
  key: "getAccountInfo",
9190
8975
  value: function () {
9191
- var _getAccountInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee19(publicKey, commitmentOrConfig) {
8976
+ var _getAccountInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(publicKey, commitmentOrConfig) {
9192
8977
  var res;
9193
- return _regeneratorRuntime$1().wrap(function _callee19$(_context19) {
8978
+ return _regeneratorRuntime.wrap(function _callee19$(_context19) {
9194
8979
  while (1) switch (_context19.prev = _context19.next) {
9195
8980
  case 0:
9196
8981
  _context19.prev = 0;
@@ -9220,9 +9005,9 @@ var Connection = /*#__PURE__*/function () {
9220
9005
  }, {
9221
9006
  key: "getMultipleParsedAccounts",
9222
9007
  value: function () {
9223
- var _getMultipleParsedAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee20(publicKeys, rawConfig) {
9008
+ var _getMultipleParsedAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(publicKeys, rawConfig) {
9224
9009
  var _extractCommitmentFro6, commitment, config, keys, args, unsafeRes, res;
9225
- return _regeneratorRuntime$1().wrap(function _callee20$(_context20) {
9010
+ return _regeneratorRuntime.wrap(function _callee20$(_context20) {
9226
9011
  while (1) switch (_context20.prev = _context20.next) {
9227
9012
  case 0:
9228
9013
  _extractCommitmentFro6 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro6.commitment, config = _extractCommitmentFro6.config;
@@ -9259,9 +9044,9 @@ var Connection = /*#__PURE__*/function () {
9259
9044
  }, {
9260
9045
  key: "getMultipleAccountsInfoAndContext",
9261
9046
  value: function () {
9262
- var _getMultipleAccountsInfoAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee21(publicKeys, commitmentOrConfig) {
9047
+ var _getMultipleAccountsInfoAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(publicKeys, commitmentOrConfig) {
9263
9048
  var _extractCommitmentFro7, commitment, config, keys, args, unsafeRes, res;
9264
- return _regeneratorRuntime$1().wrap(function _callee21$(_context21) {
9049
+ return _regeneratorRuntime.wrap(function _callee21$(_context21) {
9265
9050
  while (1) switch (_context21.prev = _context21.next) {
9266
9051
  case 0:
9267
9052
  _extractCommitmentFro7 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro7.commitment, config = _extractCommitmentFro7.config;
@@ -9298,9 +9083,9 @@ var Connection = /*#__PURE__*/function () {
9298
9083
  }, {
9299
9084
  key: "getMultipleAccountsInfo",
9300
9085
  value: function () {
9301
- var _getMultipleAccountsInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee22(publicKeys, commitmentOrConfig) {
9086
+ var _getMultipleAccountsInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(publicKeys, commitmentOrConfig) {
9302
9087
  var res;
9303
- return _regeneratorRuntime$1().wrap(function _callee22$(_context22) {
9088
+ return _regeneratorRuntime.wrap(function _callee22$(_context22) {
9304
9089
  while (1) switch (_context22.prev = _context22.next) {
9305
9090
  case 0:
9306
9091
  _context22.next = 2;
@@ -9325,9 +9110,9 @@ var Connection = /*#__PURE__*/function () {
9325
9110
  }, {
9326
9111
  key: "getStakeActivation",
9327
9112
  value: function () {
9328
- var _getStakeActivation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee23(publicKey, commitmentOrConfig, epoch) {
9113
+ var _getStakeActivation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(publicKey, commitmentOrConfig, epoch) {
9329
9114
  var _extractCommitmentFro8, commitment, config, args, unsafeRes, res;
9330
- return _regeneratorRuntime$1().wrap(function _callee23$(_context23) {
9115
+ return _regeneratorRuntime.wrap(function _callee23$(_context23) {
9331
9116
  while (1) switch (_context23.prev = _context23.next) {
9332
9117
  case 0:
9333
9118
  _extractCommitmentFro8 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro8.commitment, config = _extractCommitmentFro8.config;
@@ -9366,9 +9151,9 @@ var Connection = /*#__PURE__*/function () {
9366
9151
  key: "getProgramAccounts",
9367
9152
  value: // eslint-disable-next-line no-dupe-class-members
9368
9153
  function () {
9369
- var _getProgramAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee24(programId, configOrCommitment) {
9154
+ var _getProgramAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(programId, configOrCommitment) {
9370
9155
  var _extractCommitmentFro9, commitment, config, _ref5, encoding, configWithoutEncoding, args, unsafeRes, baseSchema, res;
9371
- return _regeneratorRuntime$1().wrap(function _callee24$(_context24) {
9156
+ return _regeneratorRuntime.wrap(function _callee24$(_context24) {
9372
9157
  while (1) switch (_context24.prev = _context24.next) {
9373
9158
  case 0:
9374
9159
  _extractCommitmentFro9 = extractCommitmentFromConfig(configOrCommitment), commitment = _extractCommitmentFro9.commitment, config = _extractCommitmentFro9.config;
@@ -9406,9 +9191,9 @@ var Connection = /*#__PURE__*/function () {
9406
9191
  }, {
9407
9192
  key: "getParsedProgramAccounts",
9408
9193
  value: function () {
9409
- var _getParsedProgramAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee25(programId, configOrCommitment) {
9194
+ var _getParsedProgramAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(programId, configOrCommitment) {
9410
9195
  var _extractCommitmentFro10, commitment, config, args, unsafeRes, res;
9411
- return _regeneratorRuntime$1().wrap(function _callee25$(_context25) {
9196
+ return _regeneratorRuntime.wrap(function _callee25$(_context25) {
9412
9197
  while (1) switch (_context25.prev = _context25.next) {
9413
9198
  case 0:
9414
9199
  _extractCommitmentFro10 = extractCommitmentFromConfig(configOrCommitment), commitment = _extractCommitmentFro10.commitment, config = _extractCommitmentFro10.config;
@@ -9440,9 +9225,9 @@ var Connection = /*#__PURE__*/function () {
9440
9225
  key: "confirmTransaction",
9441
9226
  value: // eslint-disable-next-line no-dupe-class-members
9442
9227
  function () {
9443
- var _confirmTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee26(strategy, commitment) {
9228
+ var _confirmTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(strategy, commitment) {
9444
9229
  var rawSignature, _config$abortSignal, _config, decodedSignature;
9445
- return _regeneratorRuntime$1().wrap(function _callee26$(_context26) {
9230
+ return _regeneratorRuntime.wrap(function _callee26$(_context26) {
9446
9231
  while (1) switch (_context26.prev = _context26.next) {
9447
9232
  case 0:
9448
9233
  if (!(typeof strategy == 'string')) {
@@ -9563,9 +9348,9 @@ var Connection = /*#__PURE__*/function () {
9563
9348
  });
9564
9349
  }
9565
9350
  });
9566
- _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee27() {
9351
+ _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {
9567
9352
  var response, context, value;
9568
- return _regeneratorRuntime$1().wrap(function _callee27$(_context27) {
9353
+ return _regeneratorRuntime.wrap(function _callee27$(_context27) {
9569
9354
  while (1) switch (_context27.prev = _context27.next) {
9570
9355
  case 0:
9571
9356
  _context27.next = 2;
@@ -9664,19 +9449,19 @@ var Connection = /*#__PURE__*/function () {
9664
9449
  }, {
9665
9450
  key: "confirmTransactionUsingBlockHeightExceedanceStrategy",
9666
9451
  value: function () {
9667
- var _confirmTransactionUsingBlockHeightExceedanceStrategy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee30(_ref8) {
9452
+ var _confirmTransactionUsingBlockHeightExceedanceStrategy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(_ref8) {
9668
9453
  var _this3 = this;
9669
9454
  var commitment, _ref8$strategy, abortSignal, lastValidBlockHeight, signature, done, expiryPromise, _this$getTransactionC, abortConfirmation, confirmationPromise, cancellationPromise, result, outcome;
9670
- return _regeneratorRuntime$1().wrap(function _callee30$(_context30) {
9455
+ return _regeneratorRuntime.wrap(function _callee30$(_context30) {
9671
9456
  while (1) switch (_context30.prev = _context30.next) {
9672
9457
  case 0:
9673
9458
  commitment = _ref8.commitment, _ref8$strategy = _ref8.strategy, abortSignal = _ref8$strategy.abortSignal, lastValidBlockHeight = _ref8$strategy.lastValidBlockHeight, signature = _ref8$strategy.signature;
9674
9459
  done = false;
9675
9460
  expiryPromise = new Promise(function (resolve) {
9676
9461
  var checkBlockHeight = /*#__PURE__*/function () {
9677
- var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee28() {
9462
+ var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28() {
9678
9463
  var blockHeight;
9679
- return _regeneratorRuntime$1().wrap(function _callee28$(_context28) {
9464
+ return _regeneratorRuntime.wrap(function _callee28$(_context28) {
9680
9465
  while (1) switch (_context28.prev = _context28.next) {
9681
9466
  case 0:
9682
9467
  _context28.prev = 0;
@@ -9699,9 +9484,9 @@ var Connection = /*#__PURE__*/function () {
9699
9484
  return _ref9.apply(this, arguments);
9700
9485
  };
9701
9486
  }();
9702
- _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee29() {
9487
+ _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29() {
9703
9488
  var currentBlockHeight;
9704
- return _regeneratorRuntime$1().wrap(function _callee29$(_context29) {
9489
+ return _regeneratorRuntime.wrap(function _callee29$(_context29) {
9705
9490
  while (1) switch (_context29.prev = _context29.next) {
9706
9491
  case 0:
9707
9492
  _context29.next = 2;
@@ -9790,10 +9575,10 @@ var Connection = /*#__PURE__*/function () {
9790
9575
  }, {
9791
9576
  key: "confirmTransactionUsingDurableNonceStrategy",
9792
9577
  value: function () {
9793
- var _confirmTransactionUsingDurableNonceStrategy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee33(_ref11) {
9578
+ var _confirmTransactionUsingDurableNonceStrategy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(_ref11) {
9794
9579
  var _this4 = this;
9795
9580
  var commitment, _ref11$strategy, abortSignal, minContextSlot, nonceAccountPubkey, nonceValue, signature, done, expiryPromise, _this$getTransactionC2, abortConfirmation, confirmationPromise, cancellationPromise, result, outcome, _signatureStatus, signatureStatus, _outcome$slotInWhichN, status, commitmentForStatus, confirmationStatus;
9796
- return _regeneratorRuntime$1().wrap(function _callee33$(_context34) {
9581
+ return _regeneratorRuntime.wrap(function _callee33$(_context34) {
9797
9582
  while (1) switch (_context34.prev = _context34.next) {
9798
9583
  case 0:
9799
9584
  commitment = _ref11.commitment, _ref11$strategy = _ref11.strategy, abortSignal = _ref11$strategy.abortSignal, minContextSlot = _ref11$strategy.minContextSlot, nonceAccountPubkey = _ref11$strategy.nonceAccountPubkey, nonceValue = _ref11$strategy.nonceValue, signature = _ref11$strategy.signature;
@@ -9802,9 +9587,9 @@ var Connection = /*#__PURE__*/function () {
9802
9587
  var currentNonceValue = nonceValue;
9803
9588
  var lastCheckedSlot = null;
9804
9589
  var getCurrentNonceValue = /*#__PURE__*/function () {
9805
- var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee31() {
9590
+ var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
9806
9591
  var _yield$_this4$getNonc, _context31, nonceAccount;
9807
- return _regeneratorRuntime$1().wrap(function _callee31$(_context32) {
9592
+ return _regeneratorRuntime.wrap(function _callee31$(_context32) {
9808
9593
  while (1) switch (_context32.prev = _context32.next) {
9809
9594
  case 0:
9810
9595
  _context32.prev = 0;
@@ -9833,8 +9618,8 @@ var Connection = /*#__PURE__*/function () {
9833
9618
  return _ref12.apply(this, arguments);
9834
9619
  };
9835
9620
  }();
9836
- _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee32() {
9837
- return _regeneratorRuntime$1().wrap(function _callee32$(_context33) {
9621
+ _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
9622
+ return _regeneratorRuntime.wrap(function _callee32$(_context33) {
9838
9623
  while (1) switch (_context33.prev = _context33.next) {
9839
9624
  case 0:
9840
9625
  _context33.next = 2;
@@ -9991,10 +9776,10 @@ var Connection = /*#__PURE__*/function () {
9991
9776
  }, {
9992
9777
  key: "confirmTransactionUsingLegacyTimeoutStrategy",
9993
9778
  value: function () {
9994
- var _confirmTransactionUsingLegacyTimeoutStrategy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee34(_ref14) {
9779
+ var _confirmTransactionUsingLegacyTimeoutStrategy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(_ref14) {
9995
9780
  var _this5 = this;
9996
9781
  var commitment, signature, timeoutId, expiryPromise, _this$getTransactionC3, abortConfirmation, confirmationPromise, result, outcome;
9997
- return _regeneratorRuntime$1().wrap(function _callee34$(_context35) {
9782
+ return _regeneratorRuntime.wrap(function _callee34$(_context35) {
9998
9783
  while (1) switch (_context35.prev = _context35.next) {
9999
9784
  case 0:
10000
9785
  commitment = _ref14.commitment, signature = _ref14.signature;
@@ -10060,9 +9845,9 @@ var Connection = /*#__PURE__*/function () {
10060
9845
  }, {
10061
9846
  key: "getClusterNodes",
10062
9847
  value: function () {
10063
- var _getClusterNodes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee35() {
9848
+ var _getClusterNodes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35() {
10064
9849
  var unsafeRes, res;
10065
- return _regeneratorRuntime$1().wrap(function _callee35$(_context36) {
9850
+ return _regeneratorRuntime.wrap(function _callee35$(_context36) {
10066
9851
  while (1) switch (_context36.prev = _context36.next) {
10067
9852
  case 0:
10068
9853
  _context36.next = 2;
@@ -10094,9 +9879,9 @@ var Connection = /*#__PURE__*/function () {
10094
9879
  }, {
10095
9880
  key: "getVoteAccounts",
10096
9881
  value: function () {
10097
- var _getVoteAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee36(commitment) {
9882
+ var _getVoteAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(commitment) {
10098
9883
  var args, unsafeRes, res;
10099
- return _regeneratorRuntime$1().wrap(function _callee36$(_context37) {
9884
+ return _regeneratorRuntime.wrap(function _callee36$(_context37) {
10100
9885
  while (1) switch (_context37.prev = _context37.next) {
10101
9886
  case 0:
10102
9887
  args = this._buildArgs([], commitment);
@@ -10129,9 +9914,9 @@ var Connection = /*#__PURE__*/function () {
10129
9914
  }, {
10130
9915
  key: "getSlot",
10131
9916
  value: function () {
10132
- var _getSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee37(commitmentOrConfig) {
9917
+ var _getSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(commitmentOrConfig) {
10133
9918
  var _extractCommitmentFro11, commitment, config, args, unsafeRes, res;
10134
- return _regeneratorRuntime$1().wrap(function _callee37$(_context38) {
9919
+ return _regeneratorRuntime.wrap(function _callee37$(_context38) {
10135
9920
  while (1) switch (_context38.prev = _context38.next) {
10136
9921
  case 0:
10137
9922
  _extractCommitmentFro11 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro11.commitment, config = _extractCommitmentFro11.config;
@@ -10165,9 +9950,9 @@ var Connection = /*#__PURE__*/function () {
10165
9950
  }, {
10166
9951
  key: "getSlotLeader",
10167
9952
  value: function () {
10168
- var _getSlotLeader = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee38(commitmentOrConfig) {
9953
+ var _getSlotLeader = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(commitmentOrConfig) {
10169
9954
  var _extractCommitmentFro12, commitment, config, args, unsafeRes, res;
10170
- return _regeneratorRuntime$1().wrap(function _callee38$(_context39) {
9955
+ return _regeneratorRuntime.wrap(function _callee38$(_context39) {
10171
9956
  while (1) switch (_context39.prev = _context39.next) {
10172
9957
  case 0:
10173
9958
  _extractCommitmentFro12 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro12.commitment, config = _extractCommitmentFro12.config;
@@ -10204,9 +9989,9 @@ var Connection = /*#__PURE__*/function () {
10204
9989
  }, {
10205
9990
  key: "getSlotLeaders",
10206
9991
  value: function () {
10207
- var _getSlotLeaders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee39(startSlot, limit) {
9992
+ var _getSlotLeaders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(startSlot, limit) {
10208
9993
  var args, unsafeRes, res;
10209
- return _regeneratorRuntime$1().wrap(function _callee39$(_context40) {
9994
+ return _regeneratorRuntime.wrap(function _callee39$(_context40) {
10210
9995
  while (1) switch (_context40.prev = _context40.next) {
10211
9996
  case 0:
10212
9997
  args = [startSlot, limit];
@@ -10239,9 +10024,9 @@ var Connection = /*#__PURE__*/function () {
10239
10024
  }, {
10240
10025
  key: "getSignatureStatus",
10241
10026
  value: function () {
10242
- var _getSignatureStatus = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee40(signature, config) {
10027
+ var _getSignatureStatus = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(signature, config) {
10243
10028
  var _yield$this$getSignat, context, values, value;
10244
- return _regeneratorRuntime$1().wrap(function _callee40$(_context41) {
10029
+ return _regeneratorRuntime.wrap(function _callee40$(_context41) {
10245
10030
  while (1) switch (_context41.prev = _context41.next) {
10246
10031
  case 0:
10247
10032
  _context41.next = 2;
@@ -10273,9 +10058,9 @@ var Connection = /*#__PURE__*/function () {
10273
10058
  }, {
10274
10059
  key: "getSignatureStatuses",
10275
10060
  value: function () {
10276
- var _getSignatureStatuses = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee41(signatures, config) {
10061
+ var _getSignatureStatuses = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(signatures, config) {
10277
10062
  var params, unsafeRes, res;
10278
- return _regeneratorRuntime$1().wrap(function _callee41$(_context42) {
10063
+ return _regeneratorRuntime.wrap(function _callee41$(_context42) {
10279
10064
  while (1) switch (_context42.prev = _context42.next) {
10280
10065
  case 0:
10281
10066
  params = [signatures];
@@ -10311,9 +10096,9 @@ var Connection = /*#__PURE__*/function () {
10311
10096
  }, {
10312
10097
  key: "getTransactionCount",
10313
10098
  value: function () {
10314
- var _getTransactionCount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee42(commitmentOrConfig) {
10099
+ var _getTransactionCount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(commitmentOrConfig) {
10315
10100
  var _extractCommitmentFro13, commitment, config, args, unsafeRes, res;
10316
- return _regeneratorRuntime$1().wrap(function _callee42$(_context43) {
10101
+ return _regeneratorRuntime.wrap(function _callee42$(_context43) {
10317
10102
  while (1) switch (_context43.prev = _context43.next) {
10318
10103
  case 0:
10319
10104
  _extractCommitmentFro13 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro13.commitment, config = _extractCommitmentFro13.config;
@@ -10349,9 +10134,9 @@ var Connection = /*#__PURE__*/function () {
10349
10134
  }, {
10350
10135
  key: "getTotalSupply",
10351
10136
  value: function () {
10352
- var _getTotalSupply = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee43(commitment) {
10137
+ var _getTotalSupply = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(commitment) {
10353
10138
  var result;
10354
- return _regeneratorRuntime$1().wrap(function _callee43$(_context44) {
10139
+ return _regeneratorRuntime.wrap(function _callee43$(_context44) {
10355
10140
  while (1) switch (_context44.prev = _context44.next) {
10356
10141
  case 0:
10357
10142
  _context44.next = 2;
@@ -10379,9 +10164,9 @@ var Connection = /*#__PURE__*/function () {
10379
10164
  }, {
10380
10165
  key: "getInflationGovernor",
10381
10166
  value: function () {
10382
- var _getInflationGovernor = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee44(commitment) {
10167
+ var _getInflationGovernor = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(commitment) {
10383
10168
  var args, unsafeRes, res;
10384
- return _regeneratorRuntime$1().wrap(function _callee44$(_context45) {
10169
+ return _regeneratorRuntime.wrap(function _callee44$(_context45) {
10385
10170
  while (1) switch (_context45.prev = _context45.next) {
10386
10171
  case 0:
10387
10172
  args = this._buildArgs([], commitment);
@@ -10414,9 +10199,9 @@ var Connection = /*#__PURE__*/function () {
10414
10199
  }, {
10415
10200
  key: "getInflationReward",
10416
10201
  value: function () {
10417
- var _getInflationReward = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee45(addresses, epoch, commitmentOrConfig) {
10202
+ var _getInflationReward = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(addresses, epoch, commitmentOrConfig) {
10418
10203
  var _extractCommitmentFro14, commitment, config, args, unsafeRes, res;
10419
- return _regeneratorRuntime$1().wrap(function _callee45$(_context46) {
10204
+ return _regeneratorRuntime.wrap(function _callee45$(_context46) {
10420
10205
  while (1) switch (_context46.prev = _context46.next) {
10421
10206
  case 0:
10422
10207
  _extractCommitmentFro14 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro14.commitment, config = _extractCommitmentFro14.config;
@@ -10454,9 +10239,9 @@ var Connection = /*#__PURE__*/function () {
10454
10239
  }, {
10455
10240
  key: "getInflationRate",
10456
10241
  value: function () {
10457
- var _getInflationRate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee46() {
10242
+ var _getInflationRate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46() {
10458
10243
  var unsafeRes, res;
10459
- return _regeneratorRuntime$1().wrap(function _callee46$(_context47) {
10244
+ return _regeneratorRuntime.wrap(function _callee46$(_context47) {
10460
10245
  while (1) switch (_context47.prev = _context47.next) {
10461
10246
  case 0:
10462
10247
  _context47.next = 2;
@@ -10488,9 +10273,9 @@ var Connection = /*#__PURE__*/function () {
10488
10273
  }, {
10489
10274
  key: "getEpochInfo",
10490
10275
  value: function () {
10491
- var _getEpochInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee47(commitmentOrConfig) {
10276
+ var _getEpochInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(commitmentOrConfig) {
10492
10277
  var _extractCommitmentFro15, commitment, config, args, unsafeRes, res;
10493
- return _regeneratorRuntime$1().wrap(function _callee47$(_context48) {
10278
+ return _regeneratorRuntime.wrap(function _callee47$(_context48) {
10494
10279
  while (1) switch (_context48.prev = _context48.next) {
10495
10280
  case 0:
10496
10281
  _extractCommitmentFro15 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro15.commitment, config = _extractCommitmentFro15.config;
@@ -10524,9 +10309,9 @@ var Connection = /*#__PURE__*/function () {
10524
10309
  }, {
10525
10310
  key: "getEpochSchedule",
10526
10311
  value: function () {
10527
- var _getEpochSchedule = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee48() {
10312
+ var _getEpochSchedule = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48() {
10528
10313
  var unsafeRes, res, epochSchedule;
10529
- return _regeneratorRuntime$1().wrap(function _callee48$(_context49) {
10314
+ return _regeneratorRuntime.wrap(function _callee48$(_context49) {
10530
10315
  while (1) switch (_context49.prev = _context49.next) {
10531
10316
  case 0:
10532
10317
  _context49.next = 2;
@@ -10560,9 +10345,9 @@ var Connection = /*#__PURE__*/function () {
10560
10345
  }, {
10561
10346
  key: "getLeaderSchedule",
10562
10347
  value: function () {
10563
- var _getLeaderSchedule = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee49() {
10348
+ var _getLeaderSchedule = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49() {
10564
10349
  var unsafeRes, res;
10565
- return _regeneratorRuntime$1().wrap(function _callee49$(_context50) {
10350
+ return _regeneratorRuntime.wrap(function _callee49$(_context50) {
10566
10351
  while (1) switch (_context50.prev = _context50.next) {
10567
10352
  case 0:
10568
10353
  _context50.next = 2;
@@ -10595,9 +10380,9 @@ var Connection = /*#__PURE__*/function () {
10595
10380
  }, {
10596
10381
  key: "getMinimumBalanceForRentExemption",
10597
10382
  value: function () {
10598
- var _getMinimumBalanceForRentExemption = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee50(dataLength, commitment) {
10383
+ var _getMinimumBalanceForRentExemption = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(dataLength, commitment) {
10599
10384
  var args, unsafeRes, res;
10600
- return _regeneratorRuntime$1().wrap(function _callee50$(_context51) {
10385
+ return _regeneratorRuntime.wrap(function _callee50$(_context51) {
10601
10386
  while (1) switch (_context51.prev = _context51.next) {
10602
10387
  case 0:
10603
10388
  args = this._buildArgs([dataLength], commitment);
@@ -10634,9 +10419,9 @@ var Connection = /*#__PURE__*/function () {
10634
10419
  }, {
10635
10420
  key: "getRecentBlockhashAndContext",
10636
10421
  value: function () {
10637
- var _getRecentBlockhashAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee51(commitment) {
10422
+ var _getRecentBlockhashAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(commitment) {
10638
10423
  var args, unsafeRes, res;
10639
- return _regeneratorRuntime$1().wrap(function _callee51$(_context52) {
10424
+ return _regeneratorRuntime.wrap(function _callee51$(_context52) {
10640
10425
  while (1) switch (_context52.prev = _context52.next) {
10641
10426
  case 0:
10642
10427
  args = this._buildArgs([], commitment);
@@ -10670,9 +10455,9 @@ var Connection = /*#__PURE__*/function () {
10670
10455
  }, {
10671
10456
  key: "getRecentPerformanceSamples",
10672
10457
  value: function () {
10673
- var _getRecentPerformanceSamples = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee52(limit) {
10458
+ var _getRecentPerformanceSamples = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(limit) {
10674
10459
  var unsafeRes, res;
10675
- return _regeneratorRuntime$1().wrap(function _callee52$(_context53) {
10460
+ return _regeneratorRuntime.wrap(function _callee52$(_context53) {
10676
10461
  while (1) switch (_context53.prev = _context53.next) {
10677
10462
  case 0:
10678
10463
  _context53.next = 2;
@@ -10706,9 +10491,9 @@ var Connection = /*#__PURE__*/function () {
10706
10491
  }, {
10707
10492
  key: "getFeeCalculatorForBlockhash",
10708
10493
  value: function () {
10709
- var _getFeeCalculatorForBlockhash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee53(blockhash, commitment) {
10494
+ var _getFeeCalculatorForBlockhash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(blockhash, commitment) {
10710
10495
  var args, unsafeRes, res, _res$result, context, value;
10711
- return _regeneratorRuntime$1().wrap(function _callee53$(_context54) {
10496
+ return _regeneratorRuntime.wrap(function _callee53$(_context54) {
10712
10497
  while (1) switch (_context54.prev = _context54.next) {
10713
10498
  case 0:
10714
10499
  args = this._buildArgs([blockhash], commitment);
@@ -10745,9 +10530,9 @@ var Connection = /*#__PURE__*/function () {
10745
10530
  }, {
10746
10531
  key: "getFeeForMessage",
10747
10532
  value: function () {
10748
- var _getFeeForMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee54(message, commitment) {
10533
+ var _getFeeForMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(message, commitment) {
10749
10534
  var wireMessage, args, unsafeRes, res;
10750
- return _regeneratorRuntime$1().wrap(function _callee54$(_context55) {
10535
+ return _regeneratorRuntime.wrap(function _callee54$(_context55) {
10751
10536
  while (1) switch (_context55.prev = _context55.next) {
10752
10537
  case 0:
10753
10538
  wireMessage = toBuffer(message.serialize()).toString('base64');
@@ -10787,10 +10572,10 @@ var Connection = /*#__PURE__*/function () {
10787
10572
  }, {
10788
10573
  key: "getRecentPrioritizationFees",
10789
10574
  value: function () {
10790
- var _getRecentPrioritizationFees = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee55(config) {
10575
+ var _getRecentPrioritizationFees = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(config) {
10791
10576
  var _config$lockedWritabl;
10792
10577
  var accounts, args, unsafeRes, res;
10793
- return _regeneratorRuntime$1().wrap(function _callee55$(_context56) {
10578
+ return _regeneratorRuntime.wrap(function _callee55$(_context56) {
10794
10579
  while (1) switch (_context56.prev = _context56.next) {
10795
10580
  case 0:
10796
10581
  accounts = config === null || config === void 0 ? void 0 : (_config$lockedWritabl = config.lockedWritableAccounts) === null || _config$lockedWritabl === void 0 ? void 0 : _config$lockedWritabl.map(function (key) {
@@ -10829,9 +10614,9 @@ var Connection = /*#__PURE__*/function () {
10829
10614
  }, {
10830
10615
  key: "getRecentBlockhash",
10831
10616
  value: function () {
10832
- var _getRecentBlockhash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee56(commitment) {
10617
+ var _getRecentBlockhash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(commitment) {
10833
10618
  var res;
10834
- return _regeneratorRuntime$1().wrap(function _callee56$(_context57) {
10619
+ return _regeneratorRuntime.wrap(function _callee56$(_context57) {
10835
10620
  while (1) switch (_context57.prev = _context57.next) {
10836
10621
  case 0:
10837
10622
  _context57.prev = 0;
@@ -10862,9 +10647,9 @@ var Connection = /*#__PURE__*/function () {
10862
10647
  }, {
10863
10648
  key: "getLatestBlockhash",
10864
10649
  value: function () {
10865
- var _getLatestBlockhash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee57(commitmentOrConfig) {
10650
+ var _getLatestBlockhash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(commitmentOrConfig) {
10866
10651
  var res;
10867
- return _regeneratorRuntime$1().wrap(function _callee57$(_context58) {
10652
+ return _regeneratorRuntime.wrap(function _callee57$(_context58) {
10868
10653
  while (1) switch (_context58.prev = _context58.next) {
10869
10654
  case 0:
10870
10655
  _context58.prev = 0;
@@ -10895,9 +10680,9 @@ var Connection = /*#__PURE__*/function () {
10895
10680
  }, {
10896
10681
  key: "getLatestBlockhashAndContext",
10897
10682
  value: function () {
10898
- var _getLatestBlockhashAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee58(commitmentOrConfig) {
10683
+ var _getLatestBlockhashAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(commitmentOrConfig) {
10899
10684
  var _extractCommitmentFro16, commitment, config, args, unsafeRes, res;
10900
- return _regeneratorRuntime$1().wrap(function _callee58$(_context59) {
10685
+ return _regeneratorRuntime.wrap(function _callee58$(_context59) {
10901
10686
  while (1) switch (_context59.prev = _context59.next) {
10902
10687
  case 0:
10903
10688
  _extractCommitmentFro16 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro16.commitment, config = _extractCommitmentFro16.config;
@@ -10931,9 +10716,9 @@ var Connection = /*#__PURE__*/function () {
10931
10716
  }, {
10932
10717
  key: "isBlockhashValid",
10933
10718
  value: function () {
10934
- var _isBlockhashValid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee59(blockhash, rawConfig) {
10719
+ var _isBlockhashValid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(blockhash, rawConfig) {
10935
10720
  var _extractCommitmentFro17, commitment, config, args, unsafeRes, res;
10936
- return _regeneratorRuntime$1().wrap(function _callee59$(_context60) {
10721
+ return _regeneratorRuntime.wrap(function _callee59$(_context60) {
10937
10722
  while (1) switch (_context60.prev = _context60.next) {
10938
10723
  case 0:
10939
10724
  _extractCommitmentFro17 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro17.commitment, config = _extractCommitmentFro17.config;
@@ -10967,9 +10752,9 @@ var Connection = /*#__PURE__*/function () {
10967
10752
  }, {
10968
10753
  key: "getVersion",
10969
10754
  value: function () {
10970
- var _getVersion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee60() {
10755
+ var _getVersion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60() {
10971
10756
  var unsafeRes, res;
10972
- return _regeneratorRuntime$1().wrap(function _callee60$(_context61) {
10757
+ return _regeneratorRuntime.wrap(function _callee60$(_context61) {
10973
10758
  while (1) switch (_context61.prev = _context61.next) {
10974
10759
  case 0:
10975
10760
  _context61.next = 2;
@@ -11001,9 +10786,9 @@ var Connection = /*#__PURE__*/function () {
11001
10786
  }, {
11002
10787
  key: "getGenesisHash",
11003
10788
  value: function () {
11004
- var _getGenesisHash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee61() {
10789
+ var _getGenesisHash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61() {
11005
10790
  var unsafeRes, res;
11006
- return _regeneratorRuntime$1().wrap(function _callee61$(_context62) {
10791
+ return _regeneratorRuntime.wrap(function _callee61$(_context62) {
11007
10792
  while (1) switch (_context62.prev = _context62.next) {
11008
10793
  case 0:
11009
10794
  _context62.next = 2;
@@ -11043,9 +10828,9 @@ var Connection = /*#__PURE__*/function () {
11043
10828
  */
11044
10829
  // eslint-disable-next-line no-dupe-class-members
11045
10830
  function () {
11046
- var _getBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee62(slot, rawConfig) {
10831
+ var _getBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(slot, rawConfig) {
11047
10832
  var _extractCommitmentFro18, commitment, config, args, unsafeRes, res, _res, _res2, result;
11048
- return _regeneratorRuntime$1().wrap(function _callee62$(_context63) {
10833
+ return _regeneratorRuntime.wrap(function _callee62$(_context63) {
11049
10834
  while (1) switch (_context63.prev = _context63.next) {
11050
10835
  case 0:
11051
10836
  _extractCommitmentFro18 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro18.commitment, config = _extractCommitmentFro18.config;
@@ -11124,9 +10909,9 @@ var Connection = /*#__PURE__*/function () {
11124
10909
  key: "getParsedBlock",
11125
10910
  value: // eslint-disable-next-line no-dupe-class-members
11126
10911
  function () {
11127
- var _getParsedBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee63(slot, rawConfig) {
10912
+ var _getParsedBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(slot, rawConfig) {
11128
10913
  var _extractCommitmentFro19, commitment, config, args, unsafeRes, res, _res3, _res4;
11129
- return _regeneratorRuntime$1().wrap(function _callee63$(_context64) {
10914
+ return _regeneratorRuntime.wrap(function _callee63$(_context64) {
11130
10915
  while (1) switch (_context64.prev = _context64.next) {
11131
10916
  case 0:
11132
10917
  _extractCommitmentFro19 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro19.commitment, config = _extractCommitmentFro19.config;
@@ -11191,9 +10976,9 @@ var Connection = /*#__PURE__*/function () {
11191
10976
  * Returns recent block production information from the current or previous epoch
11192
10977
  */
11193
10978
  function () {
11194
- var _getBlockProduction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee64(configOrCommitment) {
10979
+ var _getBlockProduction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(configOrCommitment) {
11195
10980
  var extra, commitment, c, rest, args, unsafeRes, res;
11196
- return _regeneratorRuntime$1().wrap(function _callee64$(_context65) {
10981
+ return _regeneratorRuntime.wrap(function _callee64$(_context65) {
11197
10982
  while (1) switch (_context65.prev = _context65.next) {
11198
10983
  case 0:
11199
10984
  if (typeof configOrCommitment === 'string') {
@@ -11242,9 +11027,9 @@ var Connection = /*#__PURE__*/function () {
11242
11027
  */
11243
11028
  // eslint-disable-next-line no-dupe-class-members
11244
11029
  function () {
11245
- var _getTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee65(signature, rawConfig) {
11030
+ var _getTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(signature, rawConfig) {
11246
11031
  var _extractCommitmentFro20, commitment, config, args, unsafeRes, res, result;
11247
- return _regeneratorRuntime$1().wrap(function _callee65$(_context66) {
11032
+ return _regeneratorRuntime.wrap(function _callee65$(_context66) {
11248
11033
  while (1) switch (_context66.prev = _context66.next) {
11249
11034
  case 0:
11250
11035
  _extractCommitmentFro20 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro20.commitment, config = _extractCommitmentFro20.config;
@@ -11289,9 +11074,9 @@ var Connection = /*#__PURE__*/function () {
11289
11074
  }, {
11290
11075
  key: "getParsedTransaction",
11291
11076
  value: function () {
11292
- var _getParsedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee66(signature, commitmentOrConfig) {
11077
+ var _getParsedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(signature, commitmentOrConfig) {
11293
11078
  var _extractCommitmentFro21, commitment, config, args, unsafeRes, res;
11294
- return _regeneratorRuntime$1().wrap(function _callee66$(_context67) {
11079
+ return _regeneratorRuntime.wrap(function _callee66$(_context67) {
11295
11080
  while (1) switch (_context67.prev = _context67.next) {
11296
11081
  case 0:
11297
11082
  _extractCommitmentFro21 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro21.commitment, config = _extractCommitmentFro21.config;
@@ -11325,10 +11110,10 @@ var Connection = /*#__PURE__*/function () {
11325
11110
  }, {
11326
11111
  key: "getParsedTransactions",
11327
11112
  value: function () {
11328
- var _getParsedTransactions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee67(signatures, commitmentOrConfig) {
11113
+ var _getParsedTransactions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(signatures, commitmentOrConfig) {
11329
11114
  var _this6 = this;
11330
11115
  var _extractCommitmentFro22, commitment, config, batch, unsafeRes, res;
11331
- return _regeneratorRuntime$1().wrap(function _callee67$(_context68) {
11116
+ return _regeneratorRuntime.wrap(function _callee67$(_context68) {
11332
11117
  while (1) switch (_context68.prev = _context68.next) {
11333
11118
  case 0:
11334
11119
  _extractCommitmentFro22 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro22.commitment, config = _extractCommitmentFro22.config;
@@ -11380,10 +11165,10 @@ var Connection = /*#__PURE__*/function () {
11380
11165
  */
11381
11166
  // eslint-disable-next-line no-dupe-class-members
11382
11167
  function () {
11383
- var _getTransactions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee68(signatures, commitmentOrConfig) {
11168
+ var _getTransactions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(signatures, commitmentOrConfig) {
11384
11169
  var _this7 = this;
11385
11170
  var _extractCommitmentFro23, commitment, config, batch, unsafeRes, res;
11386
- return _regeneratorRuntime$1().wrap(function _callee68$(_context69) {
11171
+ return _regeneratorRuntime.wrap(function _callee68$(_context69) {
11387
11172
  while (1) switch (_context69.prev = _context69.next) {
11388
11173
  case 0:
11389
11174
  _extractCommitmentFro23 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro23.commitment, config = _extractCommitmentFro23.config;
@@ -11432,9 +11217,9 @@ var Connection = /*#__PURE__*/function () {
11432
11217
  }, {
11433
11218
  key: "getConfirmedBlock",
11434
11219
  value: function () {
11435
- var _getConfirmedBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee69(slot, commitment) {
11220
+ var _getConfirmedBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(slot, commitment) {
11436
11221
  var args, unsafeRes, res, result, block;
11437
- return _regeneratorRuntime$1().wrap(function _callee69$(_context70) {
11222
+ return _regeneratorRuntime.wrap(function _callee69$(_context70) {
11438
11223
  while (1) switch (_context70.prev = _context70.next) {
11439
11224
  case 0:
11440
11225
  args = this._buildArgsAtLeastConfirmed([slot], commitment);
@@ -11496,9 +11281,9 @@ var Connection = /*#__PURE__*/function () {
11496
11281
  }, {
11497
11282
  key: "getBlocks",
11498
11283
  value: function () {
11499
- var _getBlocks = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee70(startSlot, endSlot, commitment) {
11284
+ var _getBlocks = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(startSlot, endSlot, commitment) {
11500
11285
  var args, unsafeRes, res;
11501
- return _regeneratorRuntime$1().wrap(function _callee70$(_context71) {
11286
+ return _regeneratorRuntime.wrap(function _callee70$(_context71) {
11502
11287
  while (1) switch (_context71.prev = _context71.next) {
11503
11288
  case 0:
11504
11289
  args = this._buildArgsAtLeastConfirmed(endSlot !== undefined ? [startSlot, endSlot] : [startSlot], commitment);
@@ -11531,9 +11316,9 @@ var Connection = /*#__PURE__*/function () {
11531
11316
  }, {
11532
11317
  key: "getBlockSignatures",
11533
11318
  value: function () {
11534
- var _getBlockSignatures = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee71(slot, commitment) {
11319
+ var _getBlockSignatures = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(slot, commitment) {
11535
11320
  var args, unsafeRes, res, result;
11536
- return _regeneratorRuntime$1().wrap(function _callee71$(_context72) {
11321
+ return _regeneratorRuntime.wrap(function _callee71$(_context72) {
11537
11322
  while (1) switch (_context72.prev = _context72.next) {
11538
11323
  case 0:
11539
11324
  args = this._buildArgsAtLeastConfirmed([slot], commitment, undefined, {
@@ -11578,9 +11363,9 @@ var Connection = /*#__PURE__*/function () {
11578
11363
  }, {
11579
11364
  key: "getConfirmedBlockSignatures",
11580
11365
  value: function () {
11581
- var _getConfirmedBlockSignatures = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee72(slot, commitment) {
11366
+ var _getConfirmedBlockSignatures = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(slot, commitment) {
11582
11367
  var args, unsafeRes, res, result;
11583
- return _regeneratorRuntime$1().wrap(function _callee72$(_context73) {
11368
+ return _regeneratorRuntime.wrap(function _callee72$(_context73) {
11584
11369
  while (1) switch (_context73.prev = _context73.next) {
11585
11370
  case 0:
11586
11371
  args = this._buildArgsAtLeastConfirmed([slot], commitment, undefined, {
@@ -11625,9 +11410,9 @@ var Connection = /*#__PURE__*/function () {
11625
11410
  }, {
11626
11411
  key: "getConfirmedTransaction",
11627
11412
  value: function () {
11628
- var _getConfirmedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee73(signature, commitment) {
11413
+ var _getConfirmedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(signature, commitment) {
11629
11414
  var args, unsafeRes, res, result, message, signatures;
11630
- return _regeneratorRuntime$1().wrap(function _callee73$(_context74) {
11415
+ return _regeneratorRuntime.wrap(function _callee73$(_context74) {
11631
11416
  while (1) switch (_context74.prev = _context74.next) {
11632
11417
  case 0:
11633
11418
  args = this._buildArgsAtLeastConfirmed([signature], commitment);
@@ -11673,9 +11458,9 @@ var Connection = /*#__PURE__*/function () {
11673
11458
  }, {
11674
11459
  key: "getParsedConfirmedTransaction",
11675
11460
  value: function () {
11676
- var _getParsedConfirmedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee74(signature, commitment) {
11461
+ var _getParsedConfirmedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(signature, commitment) {
11677
11462
  var args, unsafeRes, res;
11678
- return _regeneratorRuntime$1().wrap(function _callee74$(_context75) {
11463
+ return _regeneratorRuntime.wrap(function _callee74$(_context75) {
11679
11464
  while (1) switch (_context75.prev = _context75.next) {
11680
11465
  case 0:
11681
11466
  args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
@@ -11710,10 +11495,10 @@ var Connection = /*#__PURE__*/function () {
11710
11495
  }, {
11711
11496
  key: "getParsedConfirmedTransactions",
11712
11497
  value: function () {
11713
- var _getParsedConfirmedTransactions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee75(signatures, commitment) {
11498
+ var _getParsedConfirmedTransactions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(signatures, commitment) {
11714
11499
  var _this8 = this;
11715
11500
  var batch, unsafeRes, res;
11716
- return _regeneratorRuntime$1().wrap(function _callee75$(_context76) {
11501
+ return _regeneratorRuntime.wrap(function _callee75$(_context76) {
11717
11502
  while (1) switch (_context76.prev = _context76.next) {
11718
11503
  case 0:
11719
11504
  batch = signatures.map(function (signature) {
@@ -11759,9 +11544,9 @@ var Connection = /*#__PURE__*/function () {
11759
11544
  }, {
11760
11545
  key: "getConfirmedSignaturesForAddress",
11761
11546
  value: function () {
11762
- var _getConfirmedSignaturesForAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee76(address, startSlot, endSlot) {
11547
+ var _getConfirmedSignaturesForAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(address, startSlot, endSlot) {
11763
11548
  var options, firstAvailableBlock, block, highestConfirmedRoot, _block, confirmedSignatureInfo;
11764
- return _regeneratorRuntime$1().wrap(function _callee76$(_context77) {
11549
+ return _regeneratorRuntime.wrap(function _callee76$(_context77) {
11765
11550
  while (1) switch (_context77.prev = _context77.next) {
11766
11551
  case 0:
11767
11552
  options = {};
@@ -11874,9 +11659,9 @@ var Connection = /*#__PURE__*/function () {
11874
11659
  }, {
11875
11660
  key: "getConfirmedSignaturesForAddress2",
11876
11661
  value: function () {
11877
- var _getConfirmedSignaturesForAddress2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee77(address, options, commitment) {
11662
+ var _getConfirmedSignaturesForAddress2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(address, options, commitment) {
11878
11663
  var args, unsafeRes, res;
11879
- return _regeneratorRuntime$1().wrap(function _callee77$(_context78) {
11664
+ return _regeneratorRuntime.wrap(function _callee77$(_context78) {
11880
11665
  while (1) switch (_context78.prev = _context78.next) {
11881
11666
  case 0:
11882
11667
  args = this._buildArgsAtLeastConfirmed([address.toBase58()], commitment, undefined, options);
@@ -11914,9 +11699,9 @@ var Connection = /*#__PURE__*/function () {
11914
11699
  }, {
11915
11700
  key: "getSignaturesForAddress",
11916
11701
  value: function () {
11917
- var _getSignaturesForAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee78(address, options, commitment) {
11702
+ var _getSignaturesForAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78(address, options, commitment) {
11918
11703
  var args, unsafeRes, res;
11919
- return _regeneratorRuntime$1().wrap(function _callee78$(_context79) {
11704
+ return _regeneratorRuntime.wrap(function _callee78$(_context79) {
11920
11705
  while (1) switch (_context79.prev = _context79.next) {
11921
11706
  case 0:
11922
11707
  args = this._buildArgsAtLeastConfirmed([address.toBase58()], commitment, undefined, options);
@@ -11946,9 +11731,9 @@ var Connection = /*#__PURE__*/function () {
11946
11731
  }, {
11947
11732
  key: "getAddressLookupTable",
11948
11733
  value: function () {
11949
- var _getAddressLookupTable = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee79(accountKey, config) {
11734
+ var _getAddressLookupTable = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(accountKey, config) {
11950
11735
  var _yield$this$getAccoun, context, accountInfo, value;
11951
- return _regeneratorRuntime$1().wrap(function _callee79$(_context80) {
11736
+ return _regeneratorRuntime.wrap(function _callee79$(_context80) {
11952
11737
  while (1) switch (_context80.prev = _context80.next) {
11953
11738
  case 0:
11954
11739
  _context80.next = 2;
@@ -11985,9 +11770,9 @@ var Connection = /*#__PURE__*/function () {
11985
11770
  }, {
11986
11771
  key: "getNonceAndContext",
11987
11772
  value: function () {
11988
- var _getNonceAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee80(nonceAccount, commitmentOrConfig) {
11773
+ var _getNonceAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee80(nonceAccount, commitmentOrConfig) {
11989
11774
  var _yield$this$getAccoun2, context, accountInfo, value;
11990
- return _regeneratorRuntime$1().wrap(function _callee80$(_context81) {
11775
+ return _regeneratorRuntime.wrap(function _callee80$(_context81) {
11991
11776
  while (1) switch (_context81.prev = _context81.next) {
11992
11777
  case 0:
11993
11778
  _context81.next = 2;
@@ -12021,8 +11806,8 @@ var Connection = /*#__PURE__*/function () {
12021
11806
  }, {
12022
11807
  key: "getNonce",
12023
11808
  value: function () {
12024
- var _getNonce = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee81(nonceAccount, commitmentOrConfig) {
12025
- return _regeneratorRuntime$1().wrap(function _callee81$(_context82) {
11809
+ var _getNonce = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee81(nonceAccount, commitmentOrConfig) {
11810
+ return _regeneratorRuntime.wrap(function _callee81$(_context82) {
12026
11811
  while (1) switch (_context82.prev = _context82.next) {
12027
11812
  case 0:
12028
11813
  _context82.next = 2;
@@ -12061,9 +11846,9 @@ var Connection = /*#__PURE__*/function () {
12061
11846
  }, {
12062
11847
  key: "requestAirdrop",
12063
11848
  value: function () {
12064
- var _requestAirdrop = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee82(to, lamports) {
11849
+ var _requestAirdrop = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee82(to, lamports) {
12065
11850
  var unsafeRes, res;
12066
- return _regeneratorRuntime$1().wrap(function _callee82$(_context83) {
11851
+ return _regeneratorRuntime.wrap(function _callee82$(_context83) {
12067
11852
  while (1) switch (_context83.prev = _context83.next) {
12068
11853
  case 0:
12069
11854
  _context83.next = 2;
@@ -12095,9 +11880,9 @@ var Connection = /*#__PURE__*/function () {
12095
11880
  }, {
12096
11881
  key: "_blockhashWithExpiryBlockHeight",
12097
11882
  value: function () {
12098
- var _blockhashWithExpiryBlockHeight2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee83(disableCache) {
11883
+ var _blockhashWithExpiryBlockHeight2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee83(disableCache) {
12099
11884
  var timeSinceFetch, expired;
12100
- return _regeneratorRuntime$1().wrap(function _callee83$(_context84) {
11885
+ return _regeneratorRuntime.wrap(function _callee83$(_context84) {
12101
11886
  while (1) switch (_context84.prev = _context84.next) {
12102
11887
  case 0:
12103
11888
  if (disableCache) {
@@ -12144,9 +11929,9 @@ var Connection = /*#__PURE__*/function () {
12144
11929
  }, {
12145
11930
  key: "_pollNewBlockhash",
12146
11931
  value: function () {
12147
- var _pollNewBlockhash2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee84() {
11932
+ var _pollNewBlockhash2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee84() {
12148
11933
  var startTime, cachedLatestBlockhash, cachedBlockhash, i, latestBlockhash;
12149
- return _regeneratorRuntime$1().wrap(function _callee84$(_context85) {
11934
+ return _regeneratorRuntime.wrap(function _callee84$(_context85) {
12150
11935
  while (1) switch (_context85.prev = _context85.next) {
12151
11936
  case 0:
12152
11937
  this._pollingBlockhash = true;
@@ -12205,9 +11990,9 @@ var Connection = /*#__PURE__*/function () {
12205
11990
  }, {
12206
11991
  key: "getStakeMinimumDelegation",
12207
11992
  value: function () {
12208
- var _getStakeMinimumDelegation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee85(config) {
11993
+ var _getStakeMinimumDelegation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee85(config) {
12209
11994
  var _extractCommitmentFro24, commitment, configArg, args, unsafeRes, res;
12210
- return _regeneratorRuntime$1().wrap(function _callee85$(_context86) {
11995
+ return _regeneratorRuntime.wrap(function _callee85$(_context86) {
12211
11996
  while (1) switch (_context86.prev = _context86.next) {
12212
11997
  case 0:
12213
11998
  _extractCommitmentFro24 = extractCommitmentFromConfig(config), commitment = _extractCommitmentFro24.commitment, configArg = _extractCommitmentFro24.config;
@@ -12249,9 +12034,9 @@ var Connection = /*#__PURE__*/function () {
12249
12034
  */
12250
12035
  // eslint-disable-next-line no-dupe-class-members
12251
12036
  function () {
12252
- var _simulateTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee86(transactionOrMessage, configOrSigners, includeAccounts) {
12037
+ var _simulateTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee86(transactionOrMessage, configOrSigners, includeAccounts) {
12253
12038
  var versionedTx, _wireTransaction, _encodedTransaction, _config2, _args87, _unsafeRes, _res5, transaction, originalTx, signers, _transaction, disableCache, _transaction2, latestBlockhash, _signature, message, signData, wireTransaction, encodedTransaction, config, addresses, args, unsafeRes, res, _logs, traceIndent, logTrace;
12254
- return _regeneratorRuntime$1().wrap(function _callee86$(_context87) {
12039
+ return _regeneratorRuntime.wrap(function _callee86$(_context87) {
12255
12040
  while (1) switch (_context87.prev = _context87.next) {
12256
12041
  case 0:
12257
12042
  if (!('message' in transactionOrMessage)) {
@@ -12419,9 +12204,9 @@ var Connection = /*#__PURE__*/function () {
12419
12204
  */
12420
12205
  // eslint-disable-next-line no-dupe-class-members
12421
12206
  function () {
12422
- var _sendTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee87(transaction, signersOrOptions, options) {
12207
+ var _sendTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee87(transaction, signersOrOptions, options) {
12423
12208
  var _wireTransaction2, signers, disableCache, latestBlockhash, _signature2, wireTransaction;
12424
- return _regeneratorRuntime$1().wrap(function _callee87$(_context88) {
12209
+ return _regeneratorRuntime.wrap(function _callee87$(_context88) {
12425
12210
  while (1) switch (_context88.prev = _context88.next) {
12426
12211
  case 0:
12427
12212
  if (!('version' in transaction)) {
@@ -12512,9 +12297,9 @@ var Connection = /*#__PURE__*/function () {
12512
12297
  }, {
12513
12298
  key: "sendRawTransaction",
12514
12299
  value: function () {
12515
- var _sendRawTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee88(rawTransaction, options) {
12300
+ var _sendRawTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee88(rawTransaction, options) {
12516
12301
  var encodedTransaction, result;
12517
- return _regeneratorRuntime$1().wrap(function _callee88$(_context89) {
12302
+ return _regeneratorRuntime.wrap(function _callee88$(_context89) {
12518
12303
  while (1) switch (_context89.prev = _context89.next) {
12519
12304
  case 0:
12520
12305
  encodedTransaction = toBuffer(rawTransaction).toString('base64');
@@ -12541,9 +12326,9 @@ var Connection = /*#__PURE__*/function () {
12541
12326
  }, {
12542
12327
  key: "sendEncodedTransaction",
12543
12328
  value: function () {
12544
- var _sendEncodedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee89(encodedTransaction, options) {
12329
+ var _sendEncodedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee89(encodedTransaction, options) {
12545
12330
  var config, skipPreflight, preflightCommitment, args, unsafeRes, res, _logs2;
12546
- return _regeneratorRuntime$1().wrap(function _callee89$(_context90) {
12331
+ return _regeneratorRuntime.wrap(function _callee89$(_context90) {
12547
12332
  while (1) switch (_context90.prev = _context90.next) {
12548
12333
  case 0:
12549
12334
  config = {
@@ -12600,8 +12385,8 @@ var Connection = /*#__PURE__*/function () {
12600
12385
  this._rpcWebSocketConnected = true;
12601
12386
  this._rpcWebSocketHeartbeat = setInterval(function () {
12602
12387
  // Ping server every 5s to prevent idle timeouts
12603
- _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee90() {
12604
- return _regeneratorRuntime$1().wrap(function _callee90$(_context91) {
12388
+ _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee90() {
12389
+ return _regeneratorRuntime.wrap(function _callee90$(_context91) {
12605
12390
  while (1) switch (_context91.prev = _context91.next) {
12606
12391
  case 0:
12607
12392
  _context91.prev = 0;
@@ -12718,10 +12503,10 @@ var Connection = /*#__PURE__*/function () {
12718
12503
  }, {
12719
12504
  key: "_updateSubscriptions",
12720
12505
  value: function () {
12721
- var _updateSubscriptions2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee94() {
12506
+ var _updateSubscriptions2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee94() {
12722
12507
  var _this12 = this;
12723
12508
  var activeWebSocketGeneration, isCurrentConnectionStillActive;
12724
- return _regeneratorRuntime$1().wrap(function _callee94$(_context95) {
12509
+ return _regeneratorRuntime.wrap(function _callee94$(_context95) {
12725
12510
  while (1) switch (_context95.prev = _context95.next) {
12726
12511
  case 0:
12727
12512
  if (!(Object.keys(this._subscriptionsByHash).length === 0)) {
@@ -12767,9 +12552,9 @@ var Connection = /*#__PURE__*/function () {
12767
12552
  // so it's important that we look up the *current* version of
12768
12553
  // each subscription, every time we process a hash.
12769
12554
  Object.keys(this._subscriptionsByHash).map( /*#__PURE__*/function () {
12770
- var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee93(hash) {
12555
+ var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee93(hash) {
12771
12556
  var subscription;
12772
- return _regeneratorRuntime$1().wrap(function _callee93$(_context94) {
12557
+ return _regeneratorRuntime.wrap(function _callee93$(_context94) {
12773
12558
  while (1) switch (_context94.prev = _context94.next) {
12774
12559
  case 0:
12775
12560
  subscription = _this12._subscriptionsByHash[hash];
@@ -12810,9 +12595,9 @@ var Connection = /*#__PURE__*/function () {
12810
12595
  return _context94.abrupt("return");
12811
12596
  case 12:
12812
12597
  _context94.next = 14;
12813
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee91() {
12598
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee91() {
12814
12599
  var args, method, _serverSubscriptionId;
12815
- return _regeneratorRuntime$1().wrap(function _callee91$(_context92) {
12600
+ return _regeneratorRuntime.wrap(function _callee91$(_context92) {
12816
12601
  while (1) switch (_context92.prev = _context92.next) {
12817
12602
  case 0:
12818
12603
  args = subscription.args, method = subscription.method;
@@ -12866,9 +12651,9 @@ var Connection = /*#__PURE__*/function () {
12866
12651
  break;
12867
12652
  }
12868
12653
  _context94.next = 18;
12869
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee92() {
12654
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee92() {
12870
12655
  var serverSubscriptionId, unsubscribeMethod;
12871
- return _regeneratorRuntime$1().wrap(function _callee92$(_context93) {
12656
+ return _regeneratorRuntime.wrap(function _callee92$(_context93) {
12872
12657
  while (1) switch (_context93.prev = _context93.next) {
12873
12658
  case 0:
12874
12659
  serverSubscriptionId = subscription.serverSubscriptionId, unsubscribeMethod = subscription.unsubscribeMethod;
@@ -13035,9 +12820,9 @@ var Connection = /*#__PURE__*/function () {
13035
12820
  existingSubscription.callbacks.add(subscriptionConfig.callback);
13036
12821
  }
13037
12822
  this._subscriptionHashByClientSubscriptionId[clientSubscriptionId] = hash;
13038
- this._subscriptionDisposeFunctionsByClientSubscriptionId[clientSubscriptionId] = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee95() {
12823
+ this._subscriptionDisposeFunctionsByClientSubscriptionId[clientSubscriptionId] = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee95() {
13039
12824
  var subscription;
13040
- return _regeneratorRuntime$1().wrap(function _callee95$(_context96) {
12825
+ return _regeneratorRuntime.wrap(function _callee95$(_context96) {
13041
12826
  while (1) switch (_context96.prev = _context96.next) {
13042
12827
  case 0:
13043
12828
  delete _this13._subscriptionDisposeFunctionsByClientSubscriptionId[clientSubscriptionId];
@@ -13086,8 +12871,8 @@ var Connection = /*#__PURE__*/function () {
13086
12871
  }, {
13087
12872
  key: "removeAccountChangeListener",
13088
12873
  value: function () {
13089
- var _removeAccountChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee96(clientSubscriptionId) {
13090
- return _regeneratorRuntime$1().wrap(function _callee96$(_context97) {
12874
+ var _removeAccountChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee96(clientSubscriptionId) {
12875
+ return _regeneratorRuntime.wrap(function _callee96$(_context97) {
13091
12876
  while (1) switch (_context97.prev = _context97.next) {
13092
12877
  case 0:
13093
12878
  _context97.next = 2;
@@ -13152,8 +12937,8 @@ var Connection = /*#__PURE__*/function () {
13152
12937
  }, {
13153
12938
  key: "removeProgramAccountChangeListener",
13154
12939
  value: function () {
13155
- var _removeProgramAccountChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee97(clientSubscriptionId) {
13156
- return _regeneratorRuntime$1().wrap(function _callee97$(_context98) {
12940
+ var _removeProgramAccountChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee97(clientSubscriptionId) {
12941
+ return _regeneratorRuntime.wrap(function _callee97$(_context98) {
13157
12942
  while (1) switch (_context98.prev = _context98.next) {
13158
12943
  case 0:
13159
12944
  _context98.next = 2;
@@ -13195,8 +12980,8 @@ var Connection = /*#__PURE__*/function () {
13195
12980
  }, {
13196
12981
  key: "removeOnLogsListener",
13197
12982
  value: function () {
13198
- var _removeOnLogsListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee98(clientSubscriptionId) {
13199
- return _regeneratorRuntime$1().wrap(function _callee98$(_context99) {
12983
+ var _removeOnLogsListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee98(clientSubscriptionId) {
12984
+ return _regeneratorRuntime.wrap(function _callee98$(_context99) {
13200
12985
  while (1) switch (_context99.prev = _context99.next) {
13201
12986
  case 0:
13202
12987
  _context99.next = 2;
@@ -13260,8 +13045,8 @@ var Connection = /*#__PURE__*/function () {
13260
13045
  }, {
13261
13046
  key: "removeSlotChangeListener",
13262
13047
  value: function () {
13263
- var _removeSlotChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee99(clientSubscriptionId) {
13264
- return _regeneratorRuntime$1().wrap(function _callee99$(_context100) {
13048
+ var _removeSlotChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee99(clientSubscriptionId) {
13049
+ return _regeneratorRuntime.wrap(function _callee99$(_context100) {
13265
13050
  while (1) switch (_context100.prev = _context100.next) {
13266
13051
  case 0:
13267
13052
  _context100.next = 2;
@@ -13314,8 +13099,8 @@ var Connection = /*#__PURE__*/function () {
13314
13099
  }, {
13315
13100
  key: "removeSlotUpdateListener",
13316
13101
  value: function () {
13317
- var _removeSlotUpdateListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee100(clientSubscriptionId) {
13318
- return _regeneratorRuntime$1().wrap(function _callee100$(_context101) {
13102
+ var _removeSlotUpdateListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee100(clientSubscriptionId) {
13103
+ return _regeneratorRuntime.wrap(function _callee100$(_context101) {
13319
13104
  while (1) switch (_context101.prev = _context101.next) {
13320
13105
  case 0:
13321
13106
  _context101.next = 2;
@@ -13337,9 +13122,9 @@ var Connection = /*#__PURE__*/function () {
13337
13122
  }, {
13338
13123
  key: "_unsubscribeClientSubscription",
13339
13124
  value: function () {
13340
- var _unsubscribeClientSubscription2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee101(clientSubscriptionId, subscriptionName) {
13125
+ var _unsubscribeClientSubscription2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee101(clientSubscriptionId, subscriptionName) {
13341
13126
  var dispose;
13342
- return _regeneratorRuntime$1().wrap(function _callee101$(_context102) {
13127
+ return _regeneratorRuntime.wrap(function _callee101$(_context102) {
13343
13128
  while (1) switch (_context102.prev = _context102.next) {
13344
13129
  case 0:
13345
13130
  dispose = this._subscriptionDisposeFunctionsByClientSubscriptionId[clientSubscriptionId];
@@ -13512,8 +13297,8 @@ var Connection = /*#__PURE__*/function () {
13512
13297
  }, {
13513
13298
  key: "removeSignatureListener",
13514
13299
  value: function () {
13515
- var _removeSignatureListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee102(clientSubscriptionId) {
13516
- return _regeneratorRuntime$1().wrap(function _callee102$(_context103) {
13300
+ var _removeSignatureListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee102(clientSubscriptionId) {
13301
+ return _regeneratorRuntime.wrap(function _callee102$(_context103) {
13517
13302
  while (1) switch (_context103.prev = _context103.next) {
13518
13303
  case 0:
13519
13304
  _context103.next = 2;
@@ -13565,8 +13350,8 @@ var Connection = /*#__PURE__*/function () {
13565
13350
  }, {
13566
13351
  key: "removeRootChangeListener",
13567
13352
  value: function () {
13568
- var _removeRootChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee103(clientSubscriptionId) {
13569
- return _regeneratorRuntime$1().wrap(function _callee103$(_context104) {
13353
+ var _removeRootChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee103(clientSubscriptionId) {
13354
+ return _regeneratorRuntime.wrap(function _callee103$(_context104) {
13570
13355
  while (1) switch (_context104.prev = _context104.next) {
13571
13356
  case 0:
13572
13357
  _context104.next = 2;
@@ -15927,7 +15712,6 @@ function clusterApiUrl(cluster, tls) {
15927
15712
  return url;
15928
15713
  }
15929
15714
 
15930
- function _regeneratorRuntime() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
15931
15715
  /**
15932
15716
  * Send and confirm a raw transaction
15933
15717
  *
@@ -15949,9 +15733,9 @@ function sendAndConfirmRawTransaction(_x, _x2, _x3, _x4) {
15949
15733
  return _sendAndConfirmRawTransaction.apply(this, arguments);
15950
15734
  }
15951
15735
  function _sendAndConfirmRawTransaction() {
15952
- _sendAndConfirmRawTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(connection, rawTransaction, confirmationStrategyOrConfirmOptions, maybeConfirmOptions) {
15736
+ _sendAndConfirmRawTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(connection, rawTransaction, confirmationStrategyOrConfirmOptions, maybeConfirmOptions) {
15953
15737
  var confirmationStrategy, options, sendOptions, signature, commitment, confirmationPromise, status;
15954
- return _regeneratorRuntime().wrap(function _callee$(_context) {
15738
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
15955
15739
  while (1) switch (_context.prev = _context.next) {
15956
15740
  case 0:
15957
15741
  if (confirmationStrategyOrConfirmOptions && Object.prototype.hasOwnProperty.call(confirmationStrategyOrConfirmOptions, 'lastValidBlockHeight')) {