@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.cjs.js CHANGED
@@ -4,11 +4,11 @@ var _classCallCheck = require('@babel/runtime/helpers/classCallCheck');
4
4
  var _createClass = require('@babel/runtime/helpers/createClass');
5
5
  var buffer = require('buffer');
6
6
  var ed25519 = require('@noble/curves/ed25519');
7
- var _typeof = require('@babel/runtime/helpers/typeof');
8
7
  var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
9
8
  var _inherits = require('@babel/runtime/helpers/inherits');
10
9
  var _possibleConstructorReturn = require('@babel/runtime/helpers/possibleConstructorReturn');
11
10
  var _getPrototypeOf = require('@babel/runtime/helpers/getPrototypeOf');
11
+ var _regeneratorRuntime = require('@babel/runtime/regenerator');
12
12
  var BN = require('bn.js');
13
13
  var bs58 = require('bs58');
14
14
  var sha256 = require('@noble/hashes/sha256');
@@ -18,11 +18,11 @@ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
18
18
  var bigintBuffer = require('bigint-buffer');
19
19
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
20
20
  var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
21
+ var _typeof = require('@babel/runtime/helpers/typeof');
21
22
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
22
23
  var require$$0$1 = require('tty');
23
24
  var require$$0 = require('util');
24
- var require$$0$2 = require('events');
25
- var require$$1 = require('path');
25
+ var require$$0$2 = require('path');
26
26
  var require$$0$3 = require('http');
27
27
  var require$$0$4 = require('https');
28
28
  var superstruct = require('superstruct');
@@ -57,22 +57,22 @@ function _interopNamespaceCompat(e) {
57
57
 
58
58
  var _classCallCheck__default = /*#__PURE__*/_interopDefaultCompat(_classCallCheck);
59
59
  var _createClass__default = /*#__PURE__*/_interopDefaultCompat(_createClass);
60
- var _typeof__default = /*#__PURE__*/_interopDefaultCompat(_typeof);
61
60
  var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultCompat(_asyncToGenerator);
62
61
  var _inherits__default = /*#__PURE__*/_interopDefaultCompat(_inherits);
63
62
  var _possibleConstructorReturn__default = /*#__PURE__*/_interopDefaultCompat(_possibleConstructorReturn);
64
63
  var _getPrototypeOf__default = /*#__PURE__*/_interopDefaultCompat(_getPrototypeOf);
64
+ var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultCompat(_regeneratorRuntime);
65
65
  var BN__default = /*#__PURE__*/_interopDefaultCompat(BN);
66
66
  var bs58__default = /*#__PURE__*/_interopDefaultCompat(bs58);
67
67
  var BufferLayout__namespace = /*#__PURE__*/_interopNamespaceCompat(BufferLayout);
68
68
  var _slicedToArray__default = /*#__PURE__*/_interopDefaultCompat(_slicedToArray);
69
69
  var _defineProperty__default = /*#__PURE__*/_interopDefaultCompat(_defineProperty);
70
70
  var _toConsumableArray__default = /*#__PURE__*/_interopDefaultCompat(_toConsumableArray);
71
+ var _typeof__default = /*#__PURE__*/_interopDefaultCompat(_typeof);
71
72
  var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultCompat(_objectWithoutProperties);
72
73
  var require$$0__default$1 = /*#__PURE__*/_interopDefaultCompat(require$$0$1);
73
74
  var require$$0__default = /*#__PURE__*/_interopDefaultCompat(require$$0);
74
75
  var require$$0__default$2 = /*#__PURE__*/_interopDefaultCompat(require$$0$2);
75
- var require$$1__default = /*#__PURE__*/_interopDefaultCompat(require$$1);
76
76
  var require$$0__default$3 = /*#__PURE__*/_interopDefaultCompat(require$$0$3);
77
77
  var require$$0__default$4 = /*#__PURE__*/_interopDefaultCompat(require$$0$4);
78
78
  var RpcClient__default = /*#__PURE__*/_interopDefaultCompat(RpcClient);
@@ -179,7 +179,6 @@ var Enum = /*#__PURE__*/function (_Struct) {
179
179
  var SOLANA_SCHEMA = new Map();
180
180
 
181
181
  var _Symbol$toStringTag;
182
- 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__default.default(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; }
183
182
  function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf__default.default(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf__default.default(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn__default.default(this, result); }; }
184
183
  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; } }
185
184
 
@@ -332,9 +331,9 @@ var PublicKey = /*#__PURE__*/function (_Struct) {
332
331
  }, {
333
332
  key: "createWithSeed",
334
333
  value: function () {
335
- var _createWithSeed = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$6().mark(function _callee(fromPublicKey, seed, programId) {
334
+ var _createWithSeed = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee(fromPublicKey, seed, programId) {
336
335
  var buffer$1, publicKeyBytes;
337
- return _regeneratorRuntime$6().wrap(function _callee$(_context) {
336
+ return _regeneratorRuntime__default.default.wrap(function _callee$(_context) {
338
337
  while (1) switch (_context.prev = _context.next) {
339
338
  case 0:
340
339
  buffer$1 = buffer.Buffer.concat([fromPublicKey.toBuffer(), buffer.Buffer.from(seed), programId.toBuffer()]);
@@ -383,8 +382,8 @@ var PublicKey = /*#__PURE__*/function (_Struct) {
383
382
  }, {
384
383
  key: "createProgramAddress",
385
384
  value: function () {
386
- var _createProgramAddress = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$6().mark(function _callee2(seeds, programId) {
387
- return _regeneratorRuntime$6().wrap(function _callee2$(_context2) {
385
+ var _createProgramAddress = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee2(seeds, programId) {
386
+ return _regeneratorRuntime__default.default.wrap(function _callee2$(_context2) {
388
387
  while (1) switch (_context2.prev = _context2.next) {
389
388
  case 0:
390
389
  return _context2.abrupt("return", this.createProgramAddressSync(seeds, programId));
@@ -436,8 +435,8 @@ var PublicKey = /*#__PURE__*/function (_Struct) {
436
435
  }, {
437
436
  key: "findProgramAddress",
438
437
  value: function () {
439
- var _findProgramAddress = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$6().mark(function _callee3(seeds, programId) {
440
- return _regeneratorRuntime$6().wrap(function _callee3$(_context3) {
438
+ var _findProgramAddress = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee3(seeds, programId) {
439
+ return _regeneratorRuntime__default.default.wrap(function _callee3$(_context3) {
441
440
  while (1) switch (_context3.prev = _context3.next) {
442
441
  case 0:
443
442
  return _context3.abrupt("return", this.findProgramAddressSync(seeds, programId));
@@ -1589,7 +1588,6 @@ var VersionedMessage = {
1589
1588
  }
1590
1589
  };
1591
1590
 
1592
- 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__default.default(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; }
1593
1591
  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; } } }; }
1594
1592
  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); }
1595
1593
  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; }
@@ -2093,8 +2091,8 @@ var Transaction = /*#__PURE__*/function () {
2093
2091
  }, {
2094
2092
  key: "getEstimatedFee",
2095
2093
  value: function () {
2096
- var _getEstimatedFee = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$5().mark(function _callee(connection) {
2097
- return _regeneratorRuntime$5().wrap(function _callee$(_context) {
2094
+ var _getEstimatedFee = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee(connection) {
2095
+ return _regeneratorRuntime__default.default.wrap(function _callee$(_context) {
2098
2096
  while (1) switch (_context.prev = _context.next) {
2099
2097
  case 0:
2100
2098
  _context.next = 2;
@@ -2721,7 +2719,6 @@ var SYSVAR_SLOT_HASHES_PUBKEY = new PublicKey('SysvarS1otHashes11111111111111111
2721
2719
  var SYSVAR_SLOT_HISTORY_PUBKEY = new PublicKey('SysvarS1otHistory11111111111111111111111111');
2722
2720
  var SYSVAR_STAKE_HISTORY_PUBKEY = new PublicKey('SysvarStakeHistory1111111111111111111111111');
2723
2721
 
2724
- 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__default.default(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; }
2725
2722
  /**
2726
2723
  * Sign, send and confirm a transaction.
2727
2724
  *
@@ -2737,9 +2734,9 @@ function sendAndConfirmTransaction(_x, _x2, _x3, _x4) {
2737
2734
  return _sendAndConfirmTransaction.apply(this, arguments);
2738
2735
  }
2739
2736
  function _sendAndConfirmTransaction() {
2740
- _sendAndConfirmTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$4().mark(function _callee(connection, transaction, signers, options) {
2737
+ _sendAndConfirmTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee(connection, transaction, signers, options) {
2741
2738
  var sendOptions, signature, status, nonceInstruction, nonceAccountPubkey;
2742
- return _regeneratorRuntime$4().wrap(function _callee$(_context) {
2739
+ return _regeneratorRuntime__default.default.wrap(function _callee$(_context) {
2743
2740
  while (1) switch (_context.prev = _context.next) {
2744
2741
  case 0:
2745
2742
  sendOptions = options && {
@@ -3726,7 +3723,6 @@ var SystemProgram = /*#__PURE__*/function () {
3726
3723
  }();
3727
3724
  SystemProgram.programId = new PublicKey('11111111111111111111111111111111');
3728
3725
 
3729
- 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__default.default(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; }
3730
3726
  // Keep program chunks under PACKET_DATA_SIZE, leaving enough room for the
3731
3727
  // rest of the Transaction fields
3732
3728
  //
@@ -3779,9 +3775,9 @@ var Loader = /*#__PURE__*/function () {
3779
3775
  }, {
3780
3776
  key: "load",
3781
3777
  value: function () {
3782
- var _load = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$3().mark(function _callee(connection, payer, program, programId, data) {
3778
+ var _load = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee(connection, payer, program, programId, data) {
3783
3779
  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;
3784
- return _regeneratorRuntime$3().wrap(function _callee$(_context) {
3780
+ return _regeneratorRuntime__default.default.wrap(function _callee$(_context) {
3785
3781
  while (1) switch (_context.prev = _context.next) {
3786
3782
  case 0:
3787
3783
  _context.next = 2;
@@ -5271,235 +5267,9 @@ if (typeof process === 'undefined' || process.type === 'renderer' || process.bro
5271
5267
 
5272
5268
  var srcExports = src.exports;
5273
5269
 
5274
- var compat = {exports: {}};
5275
-
5276
- /*!
5277
- * depd
5278
- * Copyright(c) 2014 Douglas Christopher Wilson
5279
- * MIT Licensed
5280
- */
5281
-
5282
- var callsiteTostring;
5283
- var hasRequiredCallsiteTostring;
5284
-
5285
- function requireCallsiteTostring () {
5286
- if (hasRequiredCallsiteTostring) return callsiteTostring;
5287
- hasRequiredCallsiteTostring = 1;
5288
-
5289
- /**
5290
- * Module exports.
5291
- */
5292
-
5293
- callsiteTostring = callSiteToString;
5294
-
5295
- /**
5296
- * Format a CallSite file location to a string.
5297
- */
5298
-
5299
- function callSiteFileLocation (callSite) {
5300
- var fileName;
5301
- var fileLocation = '';
5302
-
5303
- if (callSite.isNative()) {
5304
- fileLocation = 'native';
5305
- } else if (callSite.isEval()) {
5306
- fileName = callSite.getScriptNameOrSourceURL();
5307
- if (!fileName) {
5308
- fileLocation = callSite.getEvalOrigin();
5309
- }
5310
- } else {
5311
- fileName = callSite.getFileName();
5312
- }
5313
-
5314
- if (fileName) {
5315
- fileLocation += fileName;
5316
-
5317
- var lineNumber = callSite.getLineNumber();
5318
- if (lineNumber != null) {
5319
- fileLocation += ':' + lineNumber;
5320
-
5321
- var columnNumber = callSite.getColumnNumber();
5322
- if (columnNumber) {
5323
- fileLocation += ':' + columnNumber;
5324
- }
5325
- }
5326
- }
5327
-
5328
- return fileLocation || 'unknown source'
5329
- }
5330
-
5331
- /**
5332
- * Format a CallSite to a string.
5333
- */
5334
-
5335
- function callSiteToString (callSite) {
5336
- var addSuffix = true;
5337
- var fileLocation = callSiteFileLocation(callSite);
5338
- var functionName = callSite.getFunctionName();
5339
- var isConstructor = callSite.isConstructor();
5340
- var isMethodCall = !(callSite.isToplevel() || isConstructor);
5341
- var line = '';
5342
-
5343
- if (isMethodCall) {
5344
- var methodName = callSite.getMethodName();
5345
- var typeName = getConstructorName(callSite);
5346
-
5347
- if (functionName) {
5348
- if (typeName && functionName.indexOf(typeName) !== 0) {
5349
- line += typeName + '.';
5350
- }
5351
-
5352
- line += functionName;
5353
-
5354
- if (methodName && functionName.lastIndexOf('.' + methodName) !== functionName.length - methodName.length - 1) {
5355
- line += ' [as ' + methodName + ']';
5356
- }
5357
- } else {
5358
- line += typeName + '.' + (methodName || '<anonymous>');
5359
- }
5360
- } else if (isConstructor) {
5361
- line += 'new ' + (functionName || '<anonymous>');
5362
- } else if (functionName) {
5363
- line += functionName;
5364
- } else {
5365
- addSuffix = false;
5366
- line += fileLocation;
5367
- }
5368
-
5369
- if (addSuffix) {
5370
- line += ' (' + fileLocation + ')';
5371
- }
5372
-
5373
- return line
5374
- }
5375
-
5376
- /**
5377
- * Get constructor name of reviver.
5378
- */
5379
-
5380
- function getConstructorName (obj) {
5381
- var receiver = obj.receiver;
5382
- return (receiver.constructor && receiver.constructor.name) || null
5383
- }
5384
- return callsiteTostring;
5385
- }
5386
-
5387
5270
  /*!
5388
5271
  * depd
5389
- * Copyright(c) 2015 Douglas Christopher Wilson
5390
- * MIT Licensed
5391
- */
5392
-
5393
- var eventListenerCount_1;
5394
- var hasRequiredEventListenerCount;
5395
-
5396
- function requireEventListenerCount () {
5397
- if (hasRequiredEventListenerCount) return eventListenerCount_1;
5398
- hasRequiredEventListenerCount = 1;
5399
-
5400
- /**
5401
- * Module exports.
5402
- * @public
5403
- */
5404
-
5405
- eventListenerCount_1 = eventListenerCount;
5406
-
5407
- /**
5408
- * Get the count of listeners on an event emitter of a specific type.
5409
- */
5410
-
5411
- function eventListenerCount (emitter, type) {
5412
- return emitter.listeners(type).length
5413
- }
5414
- return eventListenerCount_1;
5415
- }
5416
-
5417
- /*!
5418
- * depd
5419
- * Copyright(c) 2014-2015 Douglas Christopher Wilson
5420
- * MIT Licensed
5421
- */
5422
-
5423
- (function (module) {
5424
-
5425
- /**
5426
- * Module dependencies.
5427
- * @private
5428
- */
5429
-
5430
- var EventEmitter = require$$0__default$2.default.EventEmitter;
5431
-
5432
- /**
5433
- * Module exports.
5434
- * @public
5435
- */
5436
-
5437
- lazyProperty(module.exports, 'callSiteToString', function callSiteToString () {
5438
- var limit = Error.stackTraceLimit;
5439
- var obj = {};
5440
- var prep = Error.prepareStackTrace;
5441
-
5442
- function prepareObjectStackTrace (obj, stack) {
5443
- return stack
5444
- }
5445
-
5446
- Error.prepareStackTrace = prepareObjectStackTrace;
5447
- Error.stackTraceLimit = 2;
5448
-
5449
- // capture the stack
5450
- Error.captureStackTrace(obj);
5451
-
5452
- // slice the stack
5453
- var stack = obj.stack.slice();
5454
-
5455
- Error.prepareStackTrace = prep;
5456
- Error.stackTraceLimit = limit;
5457
-
5458
- return stack[0].toString ? toString : requireCallsiteTostring()
5459
- });
5460
-
5461
- lazyProperty(module.exports, 'eventListenerCount', function eventListenerCount () {
5462
- return EventEmitter.listenerCount || requireEventListenerCount()
5463
- });
5464
-
5465
- /**
5466
- * Define a lazy property.
5467
- */
5468
-
5469
- function lazyProperty (obj, prop, getter) {
5470
- function get () {
5471
- var val = getter();
5472
-
5473
- Object.defineProperty(obj, prop, {
5474
- configurable: true,
5475
- enumerable: true,
5476
- value: val
5477
- });
5478
-
5479
- return val
5480
- }
5481
-
5482
- Object.defineProperty(obj, prop, {
5483
- configurable: true,
5484
- enumerable: true,
5485
- get: get
5486
- });
5487
- }
5488
-
5489
- /**
5490
- * Call toString() on the obj
5491
- */
5492
-
5493
- function toString (obj) {
5494
- return obj.toString()
5495
- }
5496
- } (compat));
5497
-
5498
- var compatExports = compat.exports;
5499
-
5500
- /*!
5501
- * depd
5502
- * Copyright(c) 2014-2017 Douglas Christopher Wilson
5272
+ * Copyright(c) 2014-2018 Douglas Christopher Wilson
5503
5273
  * MIT Licensed
5504
5274
  */
5505
5275
 
@@ -5507,9 +5277,7 @@ var compatExports = compat.exports;
5507
5277
  * Module dependencies.
5508
5278
  */
5509
5279
 
5510
- var callSiteToString = compatExports.callSiteToString;
5511
- var eventListenerCount = compatExports.eventListenerCount;
5512
- var relative = require$$1__default.default.relative;
5280
+ var relative = require$$0__default$2.default.relative;
5513
5281
 
5514
5282
  /**
5515
5283
  * Module exports.
@@ -5591,7 +5359,7 @@ function createStackString (stack) {
5591
5359
  }
5592
5360
 
5593
5361
  for (var i = 0; i < stack.length; i++) {
5594
- str += '\n at ' + callSiteToString(stack[i]);
5362
+ str += '\n at ' + stack[i].toString();
5595
5363
  }
5596
5364
 
5597
5365
  return str
@@ -5627,12 +5395,31 @@ function depd (namespace) {
5627
5395
  return deprecate
5628
5396
  }
5629
5397
 
5398
+ /**
5399
+ * Determine if event emitter has listeners of a given type.
5400
+ *
5401
+ * The way to do this check is done three different ways in Node.js >= 0.8
5402
+ * so this consolidates them into a minimal set using instance methods.
5403
+ *
5404
+ * @param {EventEmitter} emitter
5405
+ * @param {string} type
5406
+ * @returns {boolean}
5407
+ * @private
5408
+ */
5409
+
5410
+ function eehaslisteners (emitter, type) {
5411
+ var count = typeof emitter.listenerCount !== 'function'
5412
+ ? emitter.listeners(type).length
5413
+ : emitter.listenerCount(type);
5414
+
5415
+ return count > 0
5416
+ }
5417
+
5630
5418
  /**
5631
5419
  * Determine if namespace is ignored.
5632
5420
  */
5633
5421
 
5634
5422
  function isignored (namespace) {
5635
- /* istanbul ignore next: tested in a child processs */
5636
5423
  if (process.noDeprecation) {
5637
5424
  // --no-deprecation support
5638
5425
  return true
@@ -5649,7 +5436,6 @@ function isignored (namespace) {
5649
5436
  */
5650
5437
 
5651
5438
  function istraced (namespace) {
5652
- /* istanbul ignore next: tested in a child processs */
5653
5439
  if (process.traceDeprecation) {
5654
5440
  // --trace-deprecation support
5655
5441
  return true
@@ -5666,7 +5452,7 @@ function istraced (namespace) {
5666
5452
  */
5667
5453
 
5668
5454
  function log (message, site) {
5669
- var haslisteners = eventListenerCount(process, 'deprecation') !== 0;
5455
+ var haslisteners = eehaslisteners(process, 'deprecation');
5670
5456
 
5671
5457
  // abort early if no destination
5672
5458
  if (!haslisteners && this._ignored) {
@@ -5809,7 +5595,7 @@ function formatPlain (msg, caller, stack) {
5809
5595
  // add stack trace
5810
5596
  if (this._traced) {
5811
5597
  for (var i = 0; i < stack.length; i++) {
5812
- formatted += '\n at ' + callSiteToString(stack[i]);
5598
+ formatted += '\n at ' + stack[i].toString();
5813
5599
  }
5814
5600
 
5815
5601
  return formatted
@@ -5834,7 +5620,7 @@ function formatColor (msg, caller, stack) {
5834
5620
  // add stack trace
5835
5621
  if (this._traced) {
5836
5622
  for (var i = 0; i < stack.length; i++) {
5837
- formatted += '\n \x1b[36mat ' + callSiteToString(stack[i]) + '\x1b[39m'; // cyan
5623
+ formatted += '\n \x1b[36mat ' + stack[i].toString() + '\x1b[39m'; // cyan
5838
5624
  }
5839
5625
 
5840
5626
  return formatted
@@ -5904,12 +5690,13 @@ function wrapfunction (fn, message) {
5904
5690
 
5905
5691
  site.name = fn.name;
5906
5692
 
5907
- // eslint-disable-next-line no-eval
5908
- var deprecatedfn = eval('(function (' + args + ') {\n' +
5693
+ // eslint-disable-next-line no-new-func
5694
+ var deprecatedfn = new Function('fn', 'log', 'deprecate', 'message', 'site',
5909
5695
  '"use strict"\n' +
5696
+ 'return function (' + args + ') {' +
5910
5697
  'log.call(deprecate, message, site)\n' +
5911
5698
  'return fn.apply(this, arguments)\n' +
5912
- '})');
5699
+ '}')(fn, log, this, message, site);
5913
5700
 
5914
5701
  return deprecatedfn
5915
5702
  }
@@ -6715,16 +6502,15 @@ var SolanaJSONRPCError = /*#__PURE__*/function (_Error2) {
6715
6502
  return _createClass__default.default(SolanaJSONRPCError);
6716
6503
  }( /*#__PURE__*/_wrapNativeSuper__default.default(Error));
6717
6504
 
6718
- 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__default.default(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; }
6719
6505
  var fetchImpl = typeof globalThis.fetch === 'function' ?
6720
6506
  // The Fetch API is supported experimentally in Node 17.5+ and natively in Node 18+.
6721
6507
  globalThis.fetch :
6722
6508
  /*#__PURE__*/
6723
6509
  // Otherwise use the polyfill.
6724
6510
  function () {
6725
- var _ref = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$2().mark(function _callee(input, init) {
6511
+ var _ref = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee(input, init) {
6726
6512
  var processedInput;
6727
- return _regeneratorRuntime$2().wrap(function _callee$(_context) {
6513
+ return _regeneratorRuntime__default.default.wrap(function _callee$(_context) {
6728
6514
  while (1) switch (_context.prev = _context.next) {
6729
6515
  case 0:
6730
6516
  processedInput = typeof input === 'string' && input.slice(0, 2) === '//' ? 'https:' + input : input;
@@ -6900,7 +6686,6 @@ var _excluded = ["commitment"],
6900
6686
  _excluded2 = ["encoding"],
6901
6687
  _excluded3 = ["commitment"],
6902
6688
  _excluded4 = ["commitment"];
6903
- 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__default.default(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; }
6904
6689
  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; }
6905
6690
  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__default.default(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; }
6906
6691
  var PublicKeyFromString = superstruct.coerce(superstruct.instance(PublicKey), superstruct.string(), function (value) {
@@ -7490,9 +7275,9 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
7490
7275
  var fetchWithMiddleware;
7491
7276
  if (fetchMiddleware) {
7492
7277
  fetchWithMiddleware = /*#__PURE__*/function () {
7493
- var _ref = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee(info, init) {
7278
+ var _ref = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee(info, init) {
7494
7279
  var modifiedFetchArgs;
7495
- return _regeneratorRuntime$1().wrap(function _callee$(_context) {
7280
+ return _regeneratorRuntime__default.default.wrap(function _callee$(_context) {
7496
7281
  while (1) switch (_context.prev = _context.next) {
7497
7282
  case 0:
7498
7283
  _context.next = 2;
@@ -7523,9 +7308,9 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
7523
7308
  }();
7524
7309
  }
7525
7310
  var clientBrowser = new RpcClient__default.default( /*#__PURE__*/function () {
7526
- var _ref2 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee2(request, callback) {
7311
+ var _ref2 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee2(request, callback) {
7527
7312
  var options, too_many_requests_retries, res, waitTime, text;
7528
- return _regeneratorRuntime$1().wrap(function _callee2$(_context2) {
7313
+ return _regeneratorRuntime__default.default.wrap(function _callee2$(_context2) {
7529
7314
  while (1) switch (_context2.prev = _context2.next) {
7530
7315
  case 0:
7531
7316
  options = {
@@ -8593,18 +8378,18 @@ var Connection = /*#__PURE__*/function () {
8593
8378
  this.getBlockHeight = function () {
8594
8379
  var requestPromises = {};
8595
8380
  return /*#__PURE__*/function () {
8596
- var _ref3 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee4(commitmentOrConfig) {
8381
+ var _ref3 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee4(commitmentOrConfig) {
8597
8382
  var _requestPromises$requ;
8598
8383
  var _extractCommitmentFro, commitment, config, args, requestHash;
8599
- return _regeneratorRuntime$1().wrap(function _callee4$(_context4) {
8384
+ return _regeneratorRuntime__default.default.wrap(function _callee4$(_context4) {
8600
8385
  while (1) switch (_context4.prev = _context4.next) {
8601
8386
  case 0:
8602
8387
  _extractCommitmentFro = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro.commitment, config = _extractCommitmentFro.config;
8603
8388
  args = _this._buildArgs([], commitment, undefined /* encoding */, config);
8604
8389
  requestHash = fastStableStringify$1(args);
8605
- requestPromises[requestHash] = (_requestPromises$requ = requestPromises[requestHash]) !== null && _requestPromises$requ !== void 0 ? _requestPromises$requ : _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee3() {
8390
+ requestPromises[requestHash] = (_requestPromises$requ = requestPromises[requestHash]) !== null && _requestPromises$requ !== void 0 ? _requestPromises$requ : _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee3() {
8606
8391
  var unsafeRes, res;
8607
- return _regeneratorRuntime$1().wrap(function _callee3$(_context3) {
8392
+ return _regeneratorRuntime__default.default.wrap(function _callee3$(_context3) {
8608
8393
  while (1) switch (_context3.prev = _context3.next) {
8609
8394
  case 0:
8610
8395
  _context3.prev = 0;
@@ -8708,9 +8493,9 @@ var Connection = /*#__PURE__*/function () {
8708
8493
  }, {
8709
8494
  key: "getBalanceAndContext",
8710
8495
  value: function () {
8711
- var _getBalanceAndContext = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee5(publicKey, commitmentOrConfig) {
8496
+ var _getBalanceAndContext = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee5(publicKey, commitmentOrConfig) {
8712
8497
  var _extractCommitmentFro2, commitment, config, args, unsafeRes, res;
8713
- return _regeneratorRuntime$1().wrap(function _callee5$(_context5) {
8498
+ return _regeneratorRuntime__default.default.wrap(function _callee5$(_context5) {
8714
8499
  while (1) switch (_context5.prev = _context5.next) {
8715
8500
  case 0:
8716
8501
  /** @internal */
@@ -8745,8 +8530,8 @@ var Connection = /*#__PURE__*/function () {
8745
8530
  }, {
8746
8531
  key: "getBalance",
8747
8532
  value: function () {
8748
- var _getBalance = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee6(publicKey, commitmentOrConfig) {
8749
- return _regeneratorRuntime$1().wrap(function _callee6$(_context6) {
8533
+ var _getBalance = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee6(publicKey, commitmentOrConfig) {
8534
+ return _regeneratorRuntime__default.default.wrap(function _callee6$(_context6) {
8750
8535
  while (1) switch (_context6.prev = _context6.next) {
8751
8536
  case 0:
8752
8537
  _context6.next = 2;
@@ -8774,9 +8559,9 @@ var Connection = /*#__PURE__*/function () {
8774
8559
  }, {
8775
8560
  key: "getBlockTime",
8776
8561
  value: function () {
8777
- var _getBlockTime = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee7(slot) {
8562
+ var _getBlockTime = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee7(slot) {
8778
8563
  var unsafeRes, res;
8779
- return _regeneratorRuntime$1().wrap(function _callee7$(_context7) {
8564
+ return _regeneratorRuntime__default.default.wrap(function _callee7$(_context7) {
8780
8565
  while (1) switch (_context7.prev = _context7.next) {
8781
8566
  case 0:
8782
8567
  _context7.next = 2;
@@ -8809,9 +8594,9 @@ var Connection = /*#__PURE__*/function () {
8809
8594
  }, {
8810
8595
  key: "getMinimumLedgerSlot",
8811
8596
  value: function () {
8812
- var _getMinimumLedgerSlot = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee8() {
8597
+ var _getMinimumLedgerSlot = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee8() {
8813
8598
  var unsafeRes, res;
8814
- return _regeneratorRuntime$1().wrap(function _callee8$(_context8) {
8599
+ return _regeneratorRuntime__default.default.wrap(function _callee8$(_context8) {
8815
8600
  while (1) switch (_context8.prev = _context8.next) {
8816
8601
  case 0:
8817
8602
  _context8.next = 2;
@@ -8843,9 +8628,9 @@ var Connection = /*#__PURE__*/function () {
8843
8628
  }, {
8844
8629
  key: "getFirstAvailableBlock",
8845
8630
  value: function () {
8846
- var _getFirstAvailableBlock = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee9() {
8631
+ var _getFirstAvailableBlock = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee9() {
8847
8632
  var unsafeRes, res;
8848
- return _regeneratorRuntime$1().wrap(function _callee9$(_context9) {
8633
+ return _regeneratorRuntime__default.default.wrap(function _callee9$(_context9) {
8849
8634
  while (1) switch (_context9.prev = _context9.next) {
8850
8635
  case 0:
8851
8636
  _context9.next = 2;
@@ -8877,9 +8662,9 @@ var Connection = /*#__PURE__*/function () {
8877
8662
  }, {
8878
8663
  key: "getSupply",
8879
8664
  value: function () {
8880
- var _getSupply = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee10(config) {
8665
+ var _getSupply = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee10(config) {
8881
8666
  var configArg, unsafeRes, res;
8882
- return _regeneratorRuntime$1().wrap(function _callee10$(_context10) {
8667
+ return _regeneratorRuntime__default.default.wrap(function _callee10$(_context10) {
8883
8668
  while (1) switch (_context10.prev = _context10.next) {
8884
8669
  case 0:
8885
8670
  configArg = {};
@@ -8925,9 +8710,9 @@ var Connection = /*#__PURE__*/function () {
8925
8710
  }, {
8926
8711
  key: "getTokenSupply",
8927
8712
  value: function () {
8928
- var _getTokenSupply = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee11(tokenMintAddress, commitment) {
8713
+ var _getTokenSupply = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee11(tokenMintAddress, commitment) {
8929
8714
  var args, unsafeRes, res;
8930
- return _regeneratorRuntime$1().wrap(function _callee11$(_context11) {
8715
+ return _regeneratorRuntime__default.default.wrap(function _callee11$(_context11) {
8931
8716
  while (1) switch (_context11.prev = _context11.next) {
8932
8717
  case 0:
8933
8718
  args = this._buildArgs([tokenMintAddress.toBase58()], commitment);
@@ -8960,9 +8745,9 @@ var Connection = /*#__PURE__*/function () {
8960
8745
  }, {
8961
8746
  key: "getTokenAccountBalance",
8962
8747
  value: function () {
8963
- var _getTokenAccountBalance = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee12(tokenAddress, commitment) {
8748
+ var _getTokenAccountBalance = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee12(tokenAddress, commitment) {
8964
8749
  var args, unsafeRes, res;
8965
- return _regeneratorRuntime$1().wrap(function _callee12$(_context12) {
8750
+ return _regeneratorRuntime__default.default.wrap(function _callee12$(_context12) {
8966
8751
  while (1) switch (_context12.prev = _context12.next) {
8967
8752
  case 0:
8968
8753
  args = this._buildArgs([tokenAddress.toBase58()], commitment);
@@ -8997,9 +8782,9 @@ var Connection = /*#__PURE__*/function () {
8997
8782
  }, {
8998
8783
  key: "getTokenAccountsByOwner",
8999
8784
  value: function () {
9000
- var _getTokenAccountsByOwner = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee13(ownerAddress, filter, commitmentOrConfig) {
8785
+ var _getTokenAccountsByOwner = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee13(ownerAddress, filter, commitmentOrConfig) {
9001
8786
  var _extractCommitmentFro3, commitment, config, _args, args, unsafeRes, res;
9002
- return _regeneratorRuntime$1().wrap(function _callee13$(_context13) {
8787
+ return _regeneratorRuntime__default.default.wrap(function _callee13$(_context13) {
9003
8788
  while (1) switch (_context13.prev = _context13.next) {
9004
8789
  case 0:
9005
8790
  _extractCommitmentFro3 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro3.commitment, config = _extractCommitmentFro3.config;
@@ -9045,9 +8830,9 @@ var Connection = /*#__PURE__*/function () {
9045
8830
  }, {
9046
8831
  key: "getParsedTokenAccountsByOwner",
9047
8832
  value: function () {
9048
- var _getParsedTokenAccountsByOwner = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee14(ownerAddress, filter, commitment) {
8833
+ var _getParsedTokenAccountsByOwner = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee14(ownerAddress, filter, commitment) {
9049
8834
  var _args, args, unsafeRes, res;
9050
- return _regeneratorRuntime$1().wrap(function _callee14$(_context14) {
8835
+ return _regeneratorRuntime__default.default.wrap(function _callee14$(_context14) {
9051
8836
  while (1) switch (_context14.prev = _context14.next) {
9052
8837
  case 0:
9053
8838
  _args = [ownerAddress.toBase58()];
@@ -9090,9 +8875,9 @@ var Connection = /*#__PURE__*/function () {
9090
8875
  }, {
9091
8876
  key: "getLargestAccounts",
9092
8877
  value: function () {
9093
- var _getLargestAccounts = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee15(config) {
8878
+ var _getLargestAccounts = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee15(config) {
9094
8879
  var arg, args, unsafeRes, res;
9095
- return _regeneratorRuntime$1().wrap(function _callee15$(_context15) {
8880
+ return _regeneratorRuntime__default.default.wrap(function _callee15$(_context15) {
9096
8881
  while (1) switch (_context15.prev = _context15.next) {
9097
8882
  case 0:
9098
8883
  arg = _objectSpread(_objectSpread({}, config), {}, {
@@ -9129,9 +8914,9 @@ var Connection = /*#__PURE__*/function () {
9129
8914
  }, {
9130
8915
  key: "getTokenLargestAccounts",
9131
8916
  value: function () {
9132
- var _getTokenLargestAccounts = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee16(mintAddress, commitment) {
8917
+ var _getTokenLargestAccounts = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee16(mintAddress, commitment) {
9133
8918
  var args, unsafeRes, res;
9134
- return _regeneratorRuntime$1().wrap(function _callee16$(_context16) {
8919
+ return _regeneratorRuntime__default.default.wrap(function _callee16$(_context16) {
9135
8920
  while (1) switch (_context16.prev = _context16.next) {
9136
8921
  case 0:
9137
8922
  args = this._buildArgs([mintAddress.toBase58()], commitment);
@@ -9164,9 +8949,9 @@ var Connection = /*#__PURE__*/function () {
9164
8949
  }, {
9165
8950
  key: "getAccountInfoAndContext",
9166
8951
  value: function () {
9167
- var _getAccountInfoAndContext = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee17(publicKey, commitmentOrConfig) {
8952
+ var _getAccountInfoAndContext = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee17(publicKey, commitmentOrConfig) {
9168
8953
  var _extractCommitmentFro4, commitment, config, args, unsafeRes, res;
9169
- return _regeneratorRuntime$1().wrap(function _callee17$(_context17) {
8954
+ return _regeneratorRuntime__default.default.wrap(function _callee17$(_context17) {
9170
8955
  while (1) switch (_context17.prev = _context17.next) {
9171
8956
  case 0:
9172
8957
  _extractCommitmentFro4 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro4.commitment, config = _extractCommitmentFro4.config;
@@ -9200,9 +8985,9 @@ var Connection = /*#__PURE__*/function () {
9200
8985
  }, {
9201
8986
  key: "getParsedAccountInfo",
9202
8987
  value: function () {
9203
- var _getParsedAccountInfo = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee18(publicKey, commitmentOrConfig) {
8988
+ var _getParsedAccountInfo = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee18(publicKey, commitmentOrConfig) {
9204
8989
  var _extractCommitmentFro5, commitment, config, args, unsafeRes, res;
9205
- return _regeneratorRuntime$1().wrap(function _callee18$(_context18) {
8990
+ return _regeneratorRuntime__default.default.wrap(function _callee18$(_context18) {
9206
8991
  while (1) switch (_context18.prev = _context18.next) {
9207
8992
  case 0:
9208
8993
  _extractCommitmentFro5 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro5.commitment, config = _extractCommitmentFro5.config;
@@ -9236,9 +9021,9 @@ var Connection = /*#__PURE__*/function () {
9236
9021
  }, {
9237
9022
  key: "getAccountInfo",
9238
9023
  value: function () {
9239
- var _getAccountInfo = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee19(publicKey, commitmentOrConfig) {
9024
+ var _getAccountInfo = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee19(publicKey, commitmentOrConfig) {
9240
9025
  var res;
9241
- return _regeneratorRuntime$1().wrap(function _callee19$(_context19) {
9026
+ return _regeneratorRuntime__default.default.wrap(function _callee19$(_context19) {
9242
9027
  while (1) switch (_context19.prev = _context19.next) {
9243
9028
  case 0:
9244
9029
  _context19.prev = 0;
@@ -9268,9 +9053,9 @@ var Connection = /*#__PURE__*/function () {
9268
9053
  }, {
9269
9054
  key: "getMultipleParsedAccounts",
9270
9055
  value: function () {
9271
- var _getMultipleParsedAccounts = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee20(publicKeys, rawConfig) {
9056
+ var _getMultipleParsedAccounts = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee20(publicKeys, rawConfig) {
9272
9057
  var _extractCommitmentFro6, commitment, config, keys, args, unsafeRes, res;
9273
- return _regeneratorRuntime$1().wrap(function _callee20$(_context20) {
9058
+ return _regeneratorRuntime__default.default.wrap(function _callee20$(_context20) {
9274
9059
  while (1) switch (_context20.prev = _context20.next) {
9275
9060
  case 0:
9276
9061
  _extractCommitmentFro6 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro6.commitment, config = _extractCommitmentFro6.config;
@@ -9307,9 +9092,9 @@ var Connection = /*#__PURE__*/function () {
9307
9092
  }, {
9308
9093
  key: "getMultipleAccountsInfoAndContext",
9309
9094
  value: function () {
9310
- var _getMultipleAccountsInfoAndContext = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee21(publicKeys, commitmentOrConfig) {
9095
+ var _getMultipleAccountsInfoAndContext = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee21(publicKeys, commitmentOrConfig) {
9311
9096
  var _extractCommitmentFro7, commitment, config, keys, args, unsafeRes, res;
9312
- return _regeneratorRuntime$1().wrap(function _callee21$(_context21) {
9097
+ return _regeneratorRuntime__default.default.wrap(function _callee21$(_context21) {
9313
9098
  while (1) switch (_context21.prev = _context21.next) {
9314
9099
  case 0:
9315
9100
  _extractCommitmentFro7 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro7.commitment, config = _extractCommitmentFro7.config;
@@ -9346,9 +9131,9 @@ var Connection = /*#__PURE__*/function () {
9346
9131
  }, {
9347
9132
  key: "getMultipleAccountsInfo",
9348
9133
  value: function () {
9349
- var _getMultipleAccountsInfo = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee22(publicKeys, commitmentOrConfig) {
9134
+ var _getMultipleAccountsInfo = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee22(publicKeys, commitmentOrConfig) {
9350
9135
  var res;
9351
- return _regeneratorRuntime$1().wrap(function _callee22$(_context22) {
9136
+ return _regeneratorRuntime__default.default.wrap(function _callee22$(_context22) {
9352
9137
  while (1) switch (_context22.prev = _context22.next) {
9353
9138
  case 0:
9354
9139
  _context22.next = 2;
@@ -9373,9 +9158,9 @@ var Connection = /*#__PURE__*/function () {
9373
9158
  }, {
9374
9159
  key: "getStakeActivation",
9375
9160
  value: function () {
9376
- var _getStakeActivation = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee23(publicKey, commitmentOrConfig, epoch) {
9161
+ var _getStakeActivation = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee23(publicKey, commitmentOrConfig, epoch) {
9377
9162
  var _extractCommitmentFro8, commitment, config, args, unsafeRes, res;
9378
- return _regeneratorRuntime$1().wrap(function _callee23$(_context23) {
9163
+ return _regeneratorRuntime__default.default.wrap(function _callee23$(_context23) {
9379
9164
  while (1) switch (_context23.prev = _context23.next) {
9380
9165
  case 0:
9381
9166
  _extractCommitmentFro8 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro8.commitment, config = _extractCommitmentFro8.config;
@@ -9414,9 +9199,9 @@ var Connection = /*#__PURE__*/function () {
9414
9199
  key: "getProgramAccounts",
9415
9200
  value: // eslint-disable-next-line no-dupe-class-members
9416
9201
  function () {
9417
- var _getProgramAccounts = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee24(programId, configOrCommitment) {
9202
+ var _getProgramAccounts = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee24(programId, configOrCommitment) {
9418
9203
  var _extractCommitmentFro9, commitment, config, _ref5, encoding, configWithoutEncoding, args, unsafeRes, baseSchema, res;
9419
- return _regeneratorRuntime$1().wrap(function _callee24$(_context24) {
9204
+ return _regeneratorRuntime__default.default.wrap(function _callee24$(_context24) {
9420
9205
  while (1) switch (_context24.prev = _context24.next) {
9421
9206
  case 0:
9422
9207
  _extractCommitmentFro9 = extractCommitmentFromConfig(configOrCommitment), commitment = _extractCommitmentFro9.commitment, config = _extractCommitmentFro9.config;
@@ -9454,9 +9239,9 @@ var Connection = /*#__PURE__*/function () {
9454
9239
  }, {
9455
9240
  key: "getParsedProgramAccounts",
9456
9241
  value: function () {
9457
- var _getParsedProgramAccounts = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee25(programId, configOrCommitment) {
9242
+ var _getParsedProgramAccounts = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee25(programId, configOrCommitment) {
9458
9243
  var _extractCommitmentFro10, commitment, config, args, unsafeRes, res;
9459
- return _regeneratorRuntime$1().wrap(function _callee25$(_context25) {
9244
+ return _regeneratorRuntime__default.default.wrap(function _callee25$(_context25) {
9460
9245
  while (1) switch (_context25.prev = _context25.next) {
9461
9246
  case 0:
9462
9247
  _extractCommitmentFro10 = extractCommitmentFromConfig(configOrCommitment), commitment = _extractCommitmentFro10.commitment, config = _extractCommitmentFro10.config;
@@ -9488,9 +9273,9 @@ var Connection = /*#__PURE__*/function () {
9488
9273
  key: "confirmTransaction",
9489
9274
  value: // eslint-disable-next-line no-dupe-class-members
9490
9275
  function () {
9491
- var _confirmTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee26(strategy, commitment) {
9276
+ var _confirmTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee26(strategy, commitment) {
9492
9277
  var rawSignature, _config$abortSignal, _config, decodedSignature;
9493
- return _regeneratorRuntime$1().wrap(function _callee26$(_context26) {
9278
+ return _regeneratorRuntime__default.default.wrap(function _callee26$(_context26) {
9494
9279
  while (1) switch (_context26.prev = _context26.next) {
9495
9280
  case 0:
9496
9281
  if (!(typeof strategy == 'string')) {
@@ -9611,9 +9396,9 @@ var Connection = /*#__PURE__*/function () {
9611
9396
  });
9612
9397
  }
9613
9398
  });
9614
- _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee27() {
9399
+ _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee27() {
9615
9400
  var response, context, value;
9616
- return _regeneratorRuntime$1().wrap(function _callee27$(_context27) {
9401
+ return _regeneratorRuntime__default.default.wrap(function _callee27$(_context27) {
9617
9402
  while (1) switch (_context27.prev = _context27.next) {
9618
9403
  case 0:
9619
9404
  _context27.next = 2;
@@ -9712,19 +9497,19 @@ var Connection = /*#__PURE__*/function () {
9712
9497
  }, {
9713
9498
  key: "confirmTransactionUsingBlockHeightExceedanceStrategy",
9714
9499
  value: function () {
9715
- var _confirmTransactionUsingBlockHeightExceedanceStrategy = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee30(_ref8) {
9500
+ var _confirmTransactionUsingBlockHeightExceedanceStrategy = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee30(_ref8) {
9716
9501
  var _this3 = this;
9717
9502
  var commitment, _ref8$strategy, abortSignal, lastValidBlockHeight, signature, done, expiryPromise, _this$getTransactionC, abortConfirmation, confirmationPromise, cancellationPromise, result, outcome;
9718
- return _regeneratorRuntime$1().wrap(function _callee30$(_context30) {
9503
+ return _regeneratorRuntime__default.default.wrap(function _callee30$(_context30) {
9719
9504
  while (1) switch (_context30.prev = _context30.next) {
9720
9505
  case 0:
9721
9506
  commitment = _ref8.commitment, _ref8$strategy = _ref8.strategy, abortSignal = _ref8$strategy.abortSignal, lastValidBlockHeight = _ref8$strategy.lastValidBlockHeight, signature = _ref8$strategy.signature;
9722
9507
  done = false;
9723
9508
  expiryPromise = new Promise(function (resolve) {
9724
9509
  var checkBlockHeight = /*#__PURE__*/function () {
9725
- var _ref9 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee28() {
9510
+ var _ref9 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee28() {
9726
9511
  var blockHeight;
9727
- return _regeneratorRuntime$1().wrap(function _callee28$(_context28) {
9512
+ return _regeneratorRuntime__default.default.wrap(function _callee28$(_context28) {
9728
9513
  while (1) switch (_context28.prev = _context28.next) {
9729
9514
  case 0:
9730
9515
  _context28.prev = 0;
@@ -9747,9 +9532,9 @@ var Connection = /*#__PURE__*/function () {
9747
9532
  return _ref9.apply(this, arguments);
9748
9533
  };
9749
9534
  }();
9750
- _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee29() {
9535
+ _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee29() {
9751
9536
  var currentBlockHeight;
9752
- return _regeneratorRuntime$1().wrap(function _callee29$(_context29) {
9537
+ return _regeneratorRuntime__default.default.wrap(function _callee29$(_context29) {
9753
9538
  while (1) switch (_context29.prev = _context29.next) {
9754
9539
  case 0:
9755
9540
  _context29.next = 2;
@@ -9838,10 +9623,10 @@ var Connection = /*#__PURE__*/function () {
9838
9623
  }, {
9839
9624
  key: "confirmTransactionUsingDurableNonceStrategy",
9840
9625
  value: function () {
9841
- var _confirmTransactionUsingDurableNonceStrategy = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee33(_ref11) {
9626
+ var _confirmTransactionUsingDurableNonceStrategy = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee33(_ref11) {
9842
9627
  var _this4 = this;
9843
9628
  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;
9844
- return _regeneratorRuntime$1().wrap(function _callee33$(_context34) {
9629
+ return _regeneratorRuntime__default.default.wrap(function _callee33$(_context34) {
9845
9630
  while (1) switch (_context34.prev = _context34.next) {
9846
9631
  case 0:
9847
9632
  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;
@@ -9850,9 +9635,9 @@ var Connection = /*#__PURE__*/function () {
9850
9635
  var currentNonceValue = nonceValue;
9851
9636
  var lastCheckedSlot = null;
9852
9637
  var getCurrentNonceValue = /*#__PURE__*/function () {
9853
- var _ref12 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee31() {
9638
+ var _ref12 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee31() {
9854
9639
  var _yield$_this4$getNonc, _context31, nonceAccount;
9855
- return _regeneratorRuntime$1().wrap(function _callee31$(_context32) {
9640
+ return _regeneratorRuntime__default.default.wrap(function _callee31$(_context32) {
9856
9641
  while (1) switch (_context32.prev = _context32.next) {
9857
9642
  case 0:
9858
9643
  _context32.prev = 0;
@@ -9881,8 +9666,8 @@ var Connection = /*#__PURE__*/function () {
9881
9666
  return _ref12.apply(this, arguments);
9882
9667
  };
9883
9668
  }();
9884
- _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee32() {
9885
- return _regeneratorRuntime$1().wrap(function _callee32$(_context33) {
9669
+ _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee32() {
9670
+ return _regeneratorRuntime__default.default.wrap(function _callee32$(_context33) {
9886
9671
  while (1) switch (_context33.prev = _context33.next) {
9887
9672
  case 0:
9888
9673
  _context33.next = 2;
@@ -10039,10 +9824,10 @@ var Connection = /*#__PURE__*/function () {
10039
9824
  }, {
10040
9825
  key: "confirmTransactionUsingLegacyTimeoutStrategy",
10041
9826
  value: function () {
10042
- var _confirmTransactionUsingLegacyTimeoutStrategy = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee34(_ref14) {
9827
+ var _confirmTransactionUsingLegacyTimeoutStrategy = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee34(_ref14) {
10043
9828
  var _this5 = this;
10044
9829
  var commitment, signature, timeoutId, expiryPromise, _this$getTransactionC3, abortConfirmation, confirmationPromise, result, outcome;
10045
- return _regeneratorRuntime$1().wrap(function _callee34$(_context35) {
9830
+ return _regeneratorRuntime__default.default.wrap(function _callee34$(_context35) {
10046
9831
  while (1) switch (_context35.prev = _context35.next) {
10047
9832
  case 0:
10048
9833
  commitment = _ref14.commitment, signature = _ref14.signature;
@@ -10108,9 +9893,9 @@ var Connection = /*#__PURE__*/function () {
10108
9893
  }, {
10109
9894
  key: "getClusterNodes",
10110
9895
  value: function () {
10111
- var _getClusterNodes = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee35() {
9896
+ var _getClusterNodes = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee35() {
10112
9897
  var unsafeRes, res;
10113
- return _regeneratorRuntime$1().wrap(function _callee35$(_context36) {
9898
+ return _regeneratorRuntime__default.default.wrap(function _callee35$(_context36) {
10114
9899
  while (1) switch (_context36.prev = _context36.next) {
10115
9900
  case 0:
10116
9901
  _context36.next = 2;
@@ -10142,9 +9927,9 @@ var Connection = /*#__PURE__*/function () {
10142
9927
  }, {
10143
9928
  key: "getVoteAccounts",
10144
9929
  value: function () {
10145
- var _getVoteAccounts = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee36(commitment) {
9930
+ var _getVoteAccounts = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee36(commitment) {
10146
9931
  var args, unsafeRes, res;
10147
- return _regeneratorRuntime$1().wrap(function _callee36$(_context37) {
9932
+ return _regeneratorRuntime__default.default.wrap(function _callee36$(_context37) {
10148
9933
  while (1) switch (_context37.prev = _context37.next) {
10149
9934
  case 0:
10150
9935
  args = this._buildArgs([], commitment);
@@ -10177,9 +9962,9 @@ var Connection = /*#__PURE__*/function () {
10177
9962
  }, {
10178
9963
  key: "getSlot",
10179
9964
  value: function () {
10180
- var _getSlot = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee37(commitmentOrConfig) {
9965
+ var _getSlot = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee37(commitmentOrConfig) {
10181
9966
  var _extractCommitmentFro11, commitment, config, args, unsafeRes, res;
10182
- return _regeneratorRuntime$1().wrap(function _callee37$(_context38) {
9967
+ return _regeneratorRuntime__default.default.wrap(function _callee37$(_context38) {
10183
9968
  while (1) switch (_context38.prev = _context38.next) {
10184
9969
  case 0:
10185
9970
  _extractCommitmentFro11 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro11.commitment, config = _extractCommitmentFro11.config;
@@ -10213,9 +9998,9 @@ var Connection = /*#__PURE__*/function () {
10213
9998
  }, {
10214
9999
  key: "getSlotLeader",
10215
10000
  value: function () {
10216
- var _getSlotLeader = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee38(commitmentOrConfig) {
10001
+ var _getSlotLeader = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee38(commitmentOrConfig) {
10217
10002
  var _extractCommitmentFro12, commitment, config, args, unsafeRes, res;
10218
- return _regeneratorRuntime$1().wrap(function _callee38$(_context39) {
10003
+ return _regeneratorRuntime__default.default.wrap(function _callee38$(_context39) {
10219
10004
  while (1) switch (_context39.prev = _context39.next) {
10220
10005
  case 0:
10221
10006
  _extractCommitmentFro12 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro12.commitment, config = _extractCommitmentFro12.config;
@@ -10252,9 +10037,9 @@ var Connection = /*#__PURE__*/function () {
10252
10037
  }, {
10253
10038
  key: "getSlotLeaders",
10254
10039
  value: function () {
10255
- var _getSlotLeaders = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee39(startSlot, limit) {
10040
+ var _getSlotLeaders = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee39(startSlot, limit) {
10256
10041
  var args, unsafeRes, res;
10257
- return _regeneratorRuntime$1().wrap(function _callee39$(_context40) {
10042
+ return _regeneratorRuntime__default.default.wrap(function _callee39$(_context40) {
10258
10043
  while (1) switch (_context40.prev = _context40.next) {
10259
10044
  case 0:
10260
10045
  args = [startSlot, limit];
@@ -10287,9 +10072,9 @@ var Connection = /*#__PURE__*/function () {
10287
10072
  }, {
10288
10073
  key: "getSignatureStatus",
10289
10074
  value: function () {
10290
- var _getSignatureStatus = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee40(signature, config) {
10075
+ var _getSignatureStatus = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee40(signature, config) {
10291
10076
  var _yield$this$getSignat, context, values, value;
10292
- return _regeneratorRuntime$1().wrap(function _callee40$(_context41) {
10077
+ return _regeneratorRuntime__default.default.wrap(function _callee40$(_context41) {
10293
10078
  while (1) switch (_context41.prev = _context41.next) {
10294
10079
  case 0:
10295
10080
  _context41.next = 2;
@@ -10321,9 +10106,9 @@ var Connection = /*#__PURE__*/function () {
10321
10106
  }, {
10322
10107
  key: "getSignatureStatuses",
10323
10108
  value: function () {
10324
- var _getSignatureStatuses = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee41(signatures, config) {
10109
+ var _getSignatureStatuses = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee41(signatures, config) {
10325
10110
  var params, unsafeRes, res;
10326
- return _regeneratorRuntime$1().wrap(function _callee41$(_context42) {
10111
+ return _regeneratorRuntime__default.default.wrap(function _callee41$(_context42) {
10327
10112
  while (1) switch (_context42.prev = _context42.next) {
10328
10113
  case 0:
10329
10114
  params = [signatures];
@@ -10359,9 +10144,9 @@ var Connection = /*#__PURE__*/function () {
10359
10144
  }, {
10360
10145
  key: "getTransactionCount",
10361
10146
  value: function () {
10362
- var _getTransactionCount = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee42(commitmentOrConfig) {
10147
+ var _getTransactionCount = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee42(commitmentOrConfig) {
10363
10148
  var _extractCommitmentFro13, commitment, config, args, unsafeRes, res;
10364
- return _regeneratorRuntime$1().wrap(function _callee42$(_context43) {
10149
+ return _regeneratorRuntime__default.default.wrap(function _callee42$(_context43) {
10365
10150
  while (1) switch (_context43.prev = _context43.next) {
10366
10151
  case 0:
10367
10152
  _extractCommitmentFro13 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro13.commitment, config = _extractCommitmentFro13.config;
@@ -10397,9 +10182,9 @@ var Connection = /*#__PURE__*/function () {
10397
10182
  }, {
10398
10183
  key: "getTotalSupply",
10399
10184
  value: function () {
10400
- var _getTotalSupply = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee43(commitment) {
10185
+ var _getTotalSupply = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee43(commitment) {
10401
10186
  var result;
10402
- return _regeneratorRuntime$1().wrap(function _callee43$(_context44) {
10187
+ return _regeneratorRuntime__default.default.wrap(function _callee43$(_context44) {
10403
10188
  while (1) switch (_context44.prev = _context44.next) {
10404
10189
  case 0:
10405
10190
  _context44.next = 2;
@@ -10427,9 +10212,9 @@ var Connection = /*#__PURE__*/function () {
10427
10212
  }, {
10428
10213
  key: "getInflationGovernor",
10429
10214
  value: function () {
10430
- var _getInflationGovernor = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee44(commitment) {
10215
+ var _getInflationGovernor = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee44(commitment) {
10431
10216
  var args, unsafeRes, res;
10432
- return _regeneratorRuntime$1().wrap(function _callee44$(_context45) {
10217
+ return _regeneratorRuntime__default.default.wrap(function _callee44$(_context45) {
10433
10218
  while (1) switch (_context45.prev = _context45.next) {
10434
10219
  case 0:
10435
10220
  args = this._buildArgs([], commitment);
@@ -10462,9 +10247,9 @@ var Connection = /*#__PURE__*/function () {
10462
10247
  }, {
10463
10248
  key: "getInflationReward",
10464
10249
  value: function () {
10465
- var _getInflationReward = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee45(addresses, epoch, commitmentOrConfig) {
10250
+ var _getInflationReward = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee45(addresses, epoch, commitmentOrConfig) {
10466
10251
  var _extractCommitmentFro14, commitment, config, args, unsafeRes, res;
10467
- return _regeneratorRuntime$1().wrap(function _callee45$(_context46) {
10252
+ return _regeneratorRuntime__default.default.wrap(function _callee45$(_context46) {
10468
10253
  while (1) switch (_context46.prev = _context46.next) {
10469
10254
  case 0:
10470
10255
  _extractCommitmentFro14 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro14.commitment, config = _extractCommitmentFro14.config;
@@ -10502,9 +10287,9 @@ var Connection = /*#__PURE__*/function () {
10502
10287
  }, {
10503
10288
  key: "getInflationRate",
10504
10289
  value: function () {
10505
- var _getInflationRate = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee46() {
10290
+ var _getInflationRate = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee46() {
10506
10291
  var unsafeRes, res;
10507
- return _regeneratorRuntime$1().wrap(function _callee46$(_context47) {
10292
+ return _regeneratorRuntime__default.default.wrap(function _callee46$(_context47) {
10508
10293
  while (1) switch (_context47.prev = _context47.next) {
10509
10294
  case 0:
10510
10295
  _context47.next = 2;
@@ -10536,9 +10321,9 @@ var Connection = /*#__PURE__*/function () {
10536
10321
  }, {
10537
10322
  key: "getEpochInfo",
10538
10323
  value: function () {
10539
- var _getEpochInfo = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee47(commitmentOrConfig) {
10324
+ var _getEpochInfo = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee47(commitmentOrConfig) {
10540
10325
  var _extractCommitmentFro15, commitment, config, args, unsafeRes, res;
10541
- return _regeneratorRuntime$1().wrap(function _callee47$(_context48) {
10326
+ return _regeneratorRuntime__default.default.wrap(function _callee47$(_context48) {
10542
10327
  while (1) switch (_context48.prev = _context48.next) {
10543
10328
  case 0:
10544
10329
  _extractCommitmentFro15 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro15.commitment, config = _extractCommitmentFro15.config;
@@ -10572,9 +10357,9 @@ var Connection = /*#__PURE__*/function () {
10572
10357
  }, {
10573
10358
  key: "getEpochSchedule",
10574
10359
  value: function () {
10575
- var _getEpochSchedule = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee48() {
10360
+ var _getEpochSchedule = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee48() {
10576
10361
  var unsafeRes, res, epochSchedule;
10577
- return _regeneratorRuntime$1().wrap(function _callee48$(_context49) {
10362
+ return _regeneratorRuntime__default.default.wrap(function _callee48$(_context49) {
10578
10363
  while (1) switch (_context49.prev = _context49.next) {
10579
10364
  case 0:
10580
10365
  _context49.next = 2;
@@ -10608,9 +10393,9 @@ var Connection = /*#__PURE__*/function () {
10608
10393
  }, {
10609
10394
  key: "getLeaderSchedule",
10610
10395
  value: function () {
10611
- var _getLeaderSchedule = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee49() {
10396
+ var _getLeaderSchedule = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee49() {
10612
10397
  var unsafeRes, res;
10613
- return _regeneratorRuntime$1().wrap(function _callee49$(_context50) {
10398
+ return _regeneratorRuntime__default.default.wrap(function _callee49$(_context50) {
10614
10399
  while (1) switch (_context50.prev = _context50.next) {
10615
10400
  case 0:
10616
10401
  _context50.next = 2;
@@ -10643,9 +10428,9 @@ var Connection = /*#__PURE__*/function () {
10643
10428
  }, {
10644
10429
  key: "getMinimumBalanceForRentExemption",
10645
10430
  value: function () {
10646
- var _getMinimumBalanceForRentExemption = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee50(dataLength, commitment) {
10431
+ var _getMinimumBalanceForRentExemption = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee50(dataLength, commitment) {
10647
10432
  var args, unsafeRes, res;
10648
- return _regeneratorRuntime$1().wrap(function _callee50$(_context51) {
10433
+ return _regeneratorRuntime__default.default.wrap(function _callee50$(_context51) {
10649
10434
  while (1) switch (_context51.prev = _context51.next) {
10650
10435
  case 0:
10651
10436
  args = this._buildArgs([dataLength], commitment);
@@ -10682,9 +10467,9 @@ var Connection = /*#__PURE__*/function () {
10682
10467
  }, {
10683
10468
  key: "getRecentBlockhashAndContext",
10684
10469
  value: function () {
10685
- var _getRecentBlockhashAndContext = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee51(commitment) {
10470
+ var _getRecentBlockhashAndContext = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee51(commitment) {
10686
10471
  var args, unsafeRes, res;
10687
- return _regeneratorRuntime$1().wrap(function _callee51$(_context52) {
10472
+ return _regeneratorRuntime__default.default.wrap(function _callee51$(_context52) {
10688
10473
  while (1) switch (_context52.prev = _context52.next) {
10689
10474
  case 0:
10690
10475
  args = this._buildArgs([], commitment);
@@ -10718,9 +10503,9 @@ var Connection = /*#__PURE__*/function () {
10718
10503
  }, {
10719
10504
  key: "getRecentPerformanceSamples",
10720
10505
  value: function () {
10721
- var _getRecentPerformanceSamples = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee52(limit) {
10506
+ var _getRecentPerformanceSamples = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee52(limit) {
10722
10507
  var unsafeRes, res;
10723
- return _regeneratorRuntime$1().wrap(function _callee52$(_context53) {
10508
+ return _regeneratorRuntime__default.default.wrap(function _callee52$(_context53) {
10724
10509
  while (1) switch (_context53.prev = _context53.next) {
10725
10510
  case 0:
10726
10511
  _context53.next = 2;
@@ -10754,9 +10539,9 @@ var Connection = /*#__PURE__*/function () {
10754
10539
  }, {
10755
10540
  key: "getFeeCalculatorForBlockhash",
10756
10541
  value: function () {
10757
- var _getFeeCalculatorForBlockhash = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee53(blockhash, commitment) {
10542
+ var _getFeeCalculatorForBlockhash = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee53(blockhash, commitment) {
10758
10543
  var args, unsafeRes, res, _res$result, context, value;
10759
- return _regeneratorRuntime$1().wrap(function _callee53$(_context54) {
10544
+ return _regeneratorRuntime__default.default.wrap(function _callee53$(_context54) {
10760
10545
  while (1) switch (_context54.prev = _context54.next) {
10761
10546
  case 0:
10762
10547
  args = this._buildArgs([blockhash], commitment);
@@ -10793,9 +10578,9 @@ var Connection = /*#__PURE__*/function () {
10793
10578
  }, {
10794
10579
  key: "getFeeForMessage",
10795
10580
  value: function () {
10796
- var _getFeeForMessage = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee54(message, commitment) {
10581
+ var _getFeeForMessage = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee54(message, commitment) {
10797
10582
  var wireMessage, args, unsafeRes, res;
10798
- return _regeneratorRuntime$1().wrap(function _callee54$(_context55) {
10583
+ return _regeneratorRuntime__default.default.wrap(function _callee54$(_context55) {
10799
10584
  while (1) switch (_context55.prev = _context55.next) {
10800
10585
  case 0:
10801
10586
  wireMessage = toBuffer(message.serialize()).toString('base64');
@@ -10835,10 +10620,10 @@ var Connection = /*#__PURE__*/function () {
10835
10620
  }, {
10836
10621
  key: "getRecentPrioritizationFees",
10837
10622
  value: function () {
10838
- var _getRecentPrioritizationFees = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee55(config) {
10623
+ var _getRecentPrioritizationFees = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee55(config) {
10839
10624
  var _config$lockedWritabl;
10840
10625
  var accounts, args, unsafeRes, res;
10841
- return _regeneratorRuntime$1().wrap(function _callee55$(_context56) {
10626
+ return _regeneratorRuntime__default.default.wrap(function _callee55$(_context56) {
10842
10627
  while (1) switch (_context56.prev = _context56.next) {
10843
10628
  case 0:
10844
10629
  accounts = config === null || config === void 0 ? void 0 : (_config$lockedWritabl = config.lockedWritableAccounts) === null || _config$lockedWritabl === void 0 ? void 0 : _config$lockedWritabl.map(function (key) {
@@ -10877,9 +10662,9 @@ var Connection = /*#__PURE__*/function () {
10877
10662
  }, {
10878
10663
  key: "getRecentBlockhash",
10879
10664
  value: function () {
10880
- var _getRecentBlockhash = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee56(commitment) {
10665
+ var _getRecentBlockhash = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee56(commitment) {
10881
10666
  var res;
10882
- return _regeneratorRuntime$1().wrap(function _callee56$(_context57) {
10667
+ return _regeneratorRuntime__default.default.wrap(function _callee56$(_context57) {
10883
10668
  while (1) switch (_context57.prev = _context57.next) {
10884
10669
  case 0:
10885
10670
  _context57.prev = 0;
@@ -10910,9 +10695,9 @@ var Connection = /*#__PURE__*/function () {
10910
10695
  }, {
10911
10696
  key: "getLatestBlockhash",
10912
10697
  value: function () {
10913
- var _getLatestBlockhash = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee57(commitmentOrConfig) {
10698
+ var _getLatestBlockhash = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee57(commitmentOrConfig) {
10914
10699
  var res;
10915
- return _regeneratorRuntime$1().wrap(function _callee57$(_context58) {
10700
+ return _regeneratorRuntime__default.default.wrap(function _callee57$(_context58) {
10916
10701
  while (1) switch (_context58.prev = _context58.next) {
10917
10702
  case 0:
10918
10703
  _context58.prev = 0;
@@ -10943,9 +10728,9 @@ var Connection = /*#__PURE__*/function () {
10943
10728
  }, {
10944
10729
  key: "getLatestBlockhashAndContext",
10945
10730
  value: function () {
10946
- var _getLatestBlockhashAndContext = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee58(commitmentOrConfig) {
10731
+ var _getLatestBlockhashAndContext = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee58(commitmentOrConfig) {
10947
10732
  var _extractCommitmentFro16, commitment, config, args, unsafeRes, res;
10948
- return _regeneratorRuntime$1().wrap(function _callee58$(_context59) {
10733
+ return _regeneratorRuntime__default.default.wrap(function _callee58$(_context59) {
10949
10734
  while (1) switch (_context59.prev = _context59.next) {
10950
10735
  case 0:
10951
10736
  _extractCommitmentFro16 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro16.commitment, config = _extractCommitmentFro16.config;
@@ -10979,9 +10764,9 @@ var Connection = /*#__PURE__*/function () {
10979
10764
  }, {
10980
10765
  key: "isBlockhashValid",
10981
10766
  value: function () {
10982
- var _isBlockhashValid = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee59(blockhash, rawConfig) {
10767
+ var _isBlockhashValid = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee59(blockhash, rawConfig) {
10983
10768
  var _extractCommitmentFro17, commitment, config, args, unsafeRes, res;
10984
- return _regeneratorRuntime$1().wrap(function _callee59$(_context60) {
10769
+ return _regeneratorRuntime__default.default.wrap(function _callee59$(_context60) {
10985
10770
  while (1) switch (_context60.prev = _context60.next) {
10986
10771
  case 0:
10987
10772
  _extractCommitmentFro17 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro17.commitment, config = _extractCommitmentFro17.config;
@@ -11015,9 +10800,9 @@ var Connection = /*#__PURE__*/function () {
11015
10800
  }, {
11016
10801
  key: "getVersion",
11017
10802
  value: function () {
11018
- var _getVersion = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee60() {
10803
+ var _getVersion = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee60() {
11019
10804
  var unsafeRes, res;
11020
- return _regeneratorRuntime$1().wrap(function _callee60$(_context61) {
10805
+ return _regeneratorRuntime__default.default.wrap(function _callee60$(_context61) {
11021
10806
  while (1) switch (_context61.prev = _context61.next) {
11022
10807
  case 0:
11023
10808
  _context61.next = 2;
@@ -11049,9 +10834,9 @@ var Connection = /*#__PURE__*/function () {
11049
10834
  }, {
11050
10835
  key: "getGenesisHash",
11051
10836
  value: function () {
11052
- var _getGenesisHash = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee61() {
10837
+ var _getGenesisHash = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee61() {
11053
10838
  var unsafeRes, res;
11054
- return _regeneratorRuntime$1().wrap(function _callee61$(_context62) {
10839
+ return _regeneratorRuntime__default.default.wrap(function _callee61$(_context62) {
11055
10840
  while (1) switch (_context62.prev = _context62.next) {
11056
10841
  case 0:
11057
10842
  _context62.next = 2;
@@ -11091,9 +10876,9 @@ var Connection = /*#__PURE__*/function () {
11091
10876
  */
11092
10877
  // eslint-disable-next-line no-dupe-class-members
11093
10878
  function () {
11094
- var _getBlock = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee62(slot, rawConfig) {
10879
+ var _getBlock = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee62(slot, rawConfig) {
11095
10880
  var _extractCommitmentFro18, commitment, config, args, unsafeRes, res, _res, _res2, result;
11096
- return _regeneratorRuntime$1().wrap(function _callee62$(_context63) {
10881
+ return _regeneratorRuntime__default.default.wrap(function _callee62$(_context63) {
11097
10882
  while (1) switch (_context63.prev = _context63.next) {
11098
10883
  case 0:
11099
10884
  _extractCommitmentFro18 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro18.commitment, config = _extractCommitmentFro18.config;
@@ -11172,9 +10957,9 @@ var Connection = /*#__PURE__*/function () {
11172
10957
  key: "getParsedBlock",
11173
10958
  value: // eslint-disable-next-line no-dupe-class-members
11174
10959
  function () {
11175
- var _getParsedBlock = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee63(slot, rawConfig) {
10960
+ var _getParsedBlock = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee63(slot, rawConfig) {
11176
10961
  var _extractCommitmentFro19, commitment, config, args, unsafeRes, res, _res3, _res4;
11177
- return _regeneratorRuntime$1().wrap(function _callee63$(_context64) {
10962
+ return _regeneratorRuntime__default.default.wrap(function _callee63$(_context64) {
11178
10963
  while (1) switch (_context64.prev = _context64.next) {
11179
10964
  case 0:
11180
10965
  _extractCommitmentFro19 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro19.commitment, config = _extractCommitmentFro19.config;
@@ -11239,9 +11024,9 @@ var Connection = /*#__PURE__*/function () {
11239
11024
  * Returns recent block production information from the current or previous epoch
11240
11025
  */
11241
11026
  function () {
11242
- var _getBlockProduction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee64(configOrCommitment) {
11027
+ var _getBlockProduction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee64(configOrCommitment) {
11243
11028
  var extra, commitment, c, rest, args, unsafeRes, res;
11244
- return _regeneratorRuntime$1().wrap(function _callee64$(_context65) {
11029
+ return _regeneratorRuntime__default.default.wrap(function _callee64$(_context65) {
11245
11030
  while (1) switch (_context65.prev = _context65.next) {
11246
11031
  case 0:
11247
11032
  if (typeof configOrCommitment === 'string') {
@@ -11290,9 +11075,9 @@ var Connection = /*#__PURE__*/function () {
11290
11075
  */
11291
11076
  // eslint-disable-next-line no-dupe-class-members
11292
11077
  function () {
11293
- var _getTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee65(signature, rawConfig) {
11078
+ var _getTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee65(signature, rawConfig) {
11294
11079
  var _extractCommitmentFro20, commitment, config, args, unsafeRes, res, result;
11295
- return _regeneratorRuntime$1().wrap(function _callee65$(_context66) {
11080
+ return _regeneratorRuntime__default.default.wrap(function _callee65$(_context66) {
11296
11081
  while (1) switch (_context66.prev = _context66.next) {
11297
11082
  case 0:
11298
11083
  _extractCommitmentFro20 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro20.commitment, config = _extractCommitmentFro20.config;
@@ -11337,9 +11122,9 @@ var Connection = /*#__PURE__*/function () {
11337
11122
  }, {
11338
11123
  key: "getParsedTransaction",
11339
11124
  value: function () {
11340
- var _getParsedTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee66(signature, commitmentOrConfig) {
11125
+ var _getParsedTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee66(signature, commitmentOrConfig) {
11341
11126
  var _extractCommitmentFro21, commitment, config, args, unsafeRes, res;
11342
- return _regeneratorRuntime$1().wrap(function _callee66$(_context67) {
11127
+ return _regeneratorRuntime__default.default.wrap(function _callee66$(_context67) {
11343
11128
  while (1) switch (_context67.prev = _context67.next) {
11344
11129
  case 0:
11345
11130
  _extractCommitmentFro21 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro21.commitment, config = _extractCommitmentFro21.config;
@@ -11373,10 +11158,10 @@ var Connection = /*#__PURE__*/function () {
11373
11158
  }, {
11374
11159
  key: "getParsedTransactions",
11375
11160
  value: function () {
11376
- var _getParsedTransactions = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee67(signatures, commitmentOrConfig) {
11161
+ var _getParsedTransactions = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee67(signatures, commitmentOrConfig) {
11377
11162
  var _this6 = this;
11378
11163
  var _extractCommitmentFro22, commitment, config, batch, unsafeRes, res;
11379
- return _regeneratorRuntime$1().wrap(function _callee67$(_context68) {
11164
+ return _regeneratorRuntime__default.default.wrap(function _callee67$(_context68) {
11380
11165
  while (1) switch (_context68.prev = _context68.next) {
11381
11166
  case 0:
11382
11167
  _extractCommitmentFro22 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro22.commitment, config = _extractCommitmentFro22.config;
@@ -11428,10 +11213,10 @@ var Connection = /*#__PURE__*/function () {
11428
11213
  */
11429
11214
  // eslint-disable-next-line no-dupe-class-members
11430
11215
  function () {
11431
- var _getTransactions = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee68(signatures, commitmentOrConfig) {
11216
+ var _getTransactions = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee68(signatures, commitmentOrConfig) {
11432
11217
  var _this7 = this;
11433
11218
  var _extractCommitmentFro23, commitment, config, batch, unsafeRes, res;
11434
- return _regeneratorRuntime$1().wrap(function _callee68$(_context69) {
11219
+ return _regeneratorRuntime__default.default.wrap(function _callee68$(_context69) {
11435
11220
  while (1) switch (_context69.prev = _context69.next) {
11436
11221
  case 0:
11437
11222
  _extractCommitmentFro23 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro23.commitment, config = _extractCommitmentFro23.config;
@@ -11480,9 +11265,9 @@ var Connection = /*#__PURE__*/function () {
11480
11265
  }, {
11481
11266
  key: "getConfirmedBlock",
11482
11267
  value: function () {
11483
- var _getConfirmedBlock = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee69(slot, commitment) {
11268
+ var _getConfirmedBlock = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee69(slot, commitment) {
11484
11269
  var args, unsafeRes, res, result, block;
11485
- return _regeneratorRuntime$1().wrap(function _callee69$(_context70) {
11270
+ return _regeneratorRuntime__default.default.wrap(function _callee69$(_context70) {
11486
11271
  while (1) switch (_context70.prev = _context70.next) {
11487
11272
  case 0:
11488
11273
  args = this._buildArgsAtLeastConfirmed([slot], commitment);
@@ -11544,9 +11329,9 @@ var Connection = /*#__PURE__*/function () {
11544
11329
  }, {
11545
11330
  key: "getBlocks",
11546
11331
  value: function () {
11547
- var _getBlocks = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee70(startSlot, endSlot, commitment) {
11332
+ var _getBlocks = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee70(startSlot, endSlot, commitment) {
11548
11333
  var args, unsafeRes, res;
11549
- return _regeneratorRuntime$1().wrap(function _callee70$(_context71) {
11334
+ return _regeneratorRuntime__default.default.wrap(function _callee70$(_context71) {
11550
11335
  while (1) switch (_context71.prev = _context71.next) {
11551
11336
  case 0:
11552
11337
  args = this._buildArgsAtLeastConfirmed(endSlot !== undefined ? [startSlot, endSlot] : [startSlot], commitment);
@@ -11579,9 +11364,9 @@ var Connection = /*#__PURE__*/function () {
11579
11364
  }, {
11580
11365
  key: "getBlockSignatures",
11581
11366
  value: function () {
11582
- var _getBlockSignatures = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee71(slot, commitment) {
11367
+ var _getBlockSignatures = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee71(slot, commitment) {
11583
11368
  var args, unsafeRes, res, result;
11584
- return _regeneratorRuntime$1().wrap(function _callee71$(_context72) {
11369
+ return _regeneratorRuntime__default.default.wrap(function _callee71$(_context72) {
11585
11370
  while (1) switch (_context72.prev = _context72.next) {
11586
11371
  case 0:
11587
11372
  args = this._buildArgsAtLeastConfirmed([slot], commitment, undefined, {
@@ -11626,9 +11411,9 @@ var Connection = /*#__PURE__*/function () {
11626
11411
  }, {
11627
11412
  key: "getConfirmedBlockSignatures",
11628
11413
  value: function () {
11629
- var _getConfirmedBlockSignatures = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee72(slot, commitment) {
11414
+ var _getConfirmedBlockSignatures = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee72(slot, commitment) {
11630
11415
  var args, unsafeRes, res, result;
11631
- return _regeneratorRuntime$1().wrap(function _callee72$(_context73) {
11416
+ return _regeneratorRuntime__default.default.wrap(function _callee72$(_context73) {
11632
11417
  while (1) switch (_context73.prev = _context73.next) {
11633
11418
  case 0:
11634
11419
  args = this._buildArgsAtLeastConfirmed([slot], commitment, undefined, {
@@ -11673,9 +11458,9 @@ var Connection = /*#__PURE__*/function () {
11673
11458
  }, {
11674
11459
  key: "getConfirmedTransaction",
11675
11460
  value: function () {
11676
- var _getConfirmedTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee73(signature, commitment) {
11461
+ var _getConfirmedTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee73(signature, commitment) {
11677
11462
  var args, unsafeRes, res, result, message, signatures;
11678
- return _regeneratorRuntime$1().wrap(function _callee73$(_context74) {
11463
+ return _regeneratorRuntime__default.default.wrap(function _callee73$(_context74) {
11679
11464
  while (1) switch (_context74.prev = _context74.next) {
11680
11465
  case 0:
11681
11466
  args = this._buildArgsAtLeastConfirmed([signature], commitment);
@@ -11721,9 +11506,9 @@ var Connection = /*#__PURE__*/function () {
11721
11506
  }, {
11722
11507
  key: "getParsedConfirmedTransaction",
11723
11508
  value: function () {
11724
- var _getParsedConfirmedTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee74(signature, commitment) {
11509
+ var _getParsedConfirmedTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee74(signature, commitment) {
11725
11510
  var args, unsafeRes, res;
11726
- return _regeneratorRuntime$1().wrap(function _callee74$(_context75) {
11511
+ return _regeneratorRuntime__default.default.wrap(function _callee74$(_context75) {
11727
11512
  while (1) switch (_context75.prev = _context75.next) {
11728
11513
  case 0:
11729
11514
  args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
@@ -11758,10 +11543,10 @@ var Connection = /*#__PURE__*/function () {
11758
11543
  }, {
11759
11544
  key: "getParsedConfirmedTransactions",
11760
11545
  value: function () {
11761
- var _getParsedConfirmedTransactions = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee75(signatures, commitment) {
11546
+ var _getParsedConfirmedTransactions = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee75(signatures, commitment) {
11762
11547
  var _this8 = this;
11763
11548
  var batch, unsafeRes, res;
11764
- return _regeneratorRuntime$1().wrap(function _callee75$(_context76) {
11549
+ return _regeneratorRuntime__default.default.wrap(function _callee75$(_context76) {
11765
11550
  while (1) switch (_context76.prev = _context76.next) {
11766
11551
  case 0:
11767
11552
  batch = signatures.map(function (signature) {
@@ -11807,9 +11592,9 @@ var Connection = /*#__PURE__*/function () {
11807
11592
  }, {
11808
11593
  key: "getConfirmedSignaturesForAddress",
11809
11594
  value: function () {
11810
- var _getConfirmedSignaturesForAddress = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee76(address, startSlot, endSlot) {
11595
+ var _getConfirmedSignaturesForAddress = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee76(address, startSlot, endSlot) {
11811
11596
  var options, firstAvailableBlock, block, highestConfirmedRoot, _block, confirmedSignatureInfo;
11812
- return _regeneratorRuntime$1().wrap(function _callee76$(_context77) {
11597
+ return _regeneratorRuntime__default.default.wrap(function _callee76$(_context77) {
11813
11598
  while (1) switch (_context77.prev = _context77.next) {
11814
11599
  case 0:
11815
11600
  options = {};
@@ -11922,9 +11707,9 @@ var Connection = /*#__PURE__*/function () {
11922
11707
  }, {
11923
11708
  key: "getConfirmedSignaturesForAddress2",
11924
11709
  value: function () {
11925
- var _getConfirmedSignaturesForAddress2 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee77(address, options, commitment) {
11710
+ var _getConfirmedSignaturesForAddress2 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee77(address, options, commitment) {
11926
11711
  var args, unsafeRes, res;
11927
- return _regeneratorRuntime$1().wrap(function _callee77$(_context78) {
11712
+ return _regeneratorRuntime__default.default.wrap(function _callee77$(_context78) {
11928
11713
  while (1) switch (_context78.prev = _context78.next) {
11929
11714
  case 0:
11930
11715
  args = this._buildArgsAtLeastConfirmed([address.toBase58()], commitment, undefined, options);
@@ -11962,9 +11747,9 @@ var Connection = /*#__PURE__*/function () {
11962
11747
  }, {
11963
11748
  key: "getSignaturesForAddress",
11964
11749
  value: function () {
11965
- var _getSignaturesForAddress = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee78(address, options, commitment) {
11750
+ var _getSignaturesForAddress = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee78(address, options, commitment) {
11966
11751
  var args, unsafeRes, res;
11967
- return _regeneratorRuntime$1().wrap(function _callee78$(_context79) {
11752
+ return _regeneratorRuntime__default.default.wrap(function _callee78$(_context79) {
11968
11753
  while (1) switch (_context79.prev = _context79.next) {
11969
11754
  case 0:
11970
11755
  args = this._buildArgsAtLeastConfirmed([address.toBase58()], commitment, undefined, options);
@@ -11994,9 +11779,9 @@ var Connection = /*#__PURE__*/function () {
11994
11779
  }, {
11995
11780
  key: "getAddressLookupTable",
11996
11781
  value: function () {
11997
- var _getAddressLookupTable = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee79(accountKey, config) {
11782
+ var _getAddressLookupTable = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee79(accountKey, config) {
11998
11783
  var _yield$this$getAccoun, context, accountInfo, value;
11999
- return _regeneratorRuntime$1().wrap(function _callee79$(_context80) {
11784
+ return _regeneratorRuntime__default.default.wrap(function _callee79$(_context80) {
12000
11785
  while (1) switch (_context80.prev = _context80.next) {
12001
11786
  case 0:
12002
11787
  _context80.next = 2;
@@ -12033,9 +11818,9 @@ var Connection = /*#__PURE__*/function () {
12033
11818
  }, {
12034
11819
  key: "getNonceAndContext",
12035
11820
  value: function () {
12036
- var _getNonceAndContext = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee80(nonceAccount, commitmentOrConfig) {
11821
+ var _getNonceAndContext = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee80(nonceAccount, commitmentOrConfig) {
12037
11822
  var _yield$this$getAccoun2, context, accountInfo, value;
12038
- return _regeneratorRuntime$1().wrap(function _callee80$(_context81) {
11823
+ return _regeneratorRuntime__default.default.wrap(function _callee80$(_context81) {
12039
11824
  while (1) switch (_context81.prev = _context81.next) {
12040
11825
  case 0:
12041
11826
  _context81.next = 2;
@@ -12069,8 +11854,8 @@ var Connection = /*#__PURE__*/function () {
12069
11854
  }, {
12070
11855
  key: "getNonce",
12071
11856
  value: function () {
12072
- var _getNonce = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee81(nonceAccount, commitmentOrConfig) {
12073
- return _regeneratorRuntime$1().wrap(function _callee81$(_context82) {
11857
+ var _getNonce = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee81(nonceAccount, commitmentOrConfig) {
11858
+ return _regeneratorRuntime__default.default.wrap(function _callee81$(_context82) {
12074
11859
  while (1) switch (_context82.prev = _context82.next) {
12075
11860
  case 0:
12076
11861
  _context82.next = 2;
@@ -12109,9 +11894,9 @@ var Connection = /*#__PURE__*/function () {
12109
11894
  }, {
12110
11895
  key: "requestAirdrop",
12111
11896
  value: function () {
12112
- var _requestAirdrop = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee82(to, lamports) {
11897
+ var _requestAirdrop = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee82(to, lamports) {
12113
11898
  var unsafeRes, res;
12114
- return _regeneratorRuntime$1().wrap(function _callee82$(_context83) {
11899
+ return _regeneratorRuntime__default.default.wrap(function _callee82$(_context83) {
12115
11900
  while (1) switch (_context83.prev = _context83.next) {
12116
11901
  case 0:
12117
11902
  _context83.next = 2;
@@ -12143,9 +11928,9 @@ var Connection = /*#__PURE__*/function () {
12143
11928
  }, {
12144
11929
  key: "_blockhashWithExpiryBlockHeight",
12145
11930
  value: function () {
12146
- var _blockhashWithExpiryBlockHeight2 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee83(disableCache) {
11931
+ var _blockhashWithExpiryBlockHeight2 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee83(disableCache) {
12147
11932
  var timeSinceFetch, expired;
12148
- return _regeneratorRuntime$1().wrap(function _callee83$(_context84) {
11933
+ return _regeneratorRuntime__default.default.wrap(function _callee83$(_context84) {
12149
11934
  while (1) switch (_context84.prev = _context84.next) {
12150
11935
  case 0:
12151
11936
  if (disableCache) {
@@ -12192,9 +11977,9 @@ var Connection = /*#__PURE__*/function () {
12192
11977
  }, {
12193
11978
  key: "_pollNewBlockhash",
12194
11979
  value: function () {
12195
- var _pollNewBlockhash2 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee84() {
11980
+ var _pollNewBlockhash2 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee84() {
12196
11981
  var startTime, cachedLatestBlockhash, cachedBlockhash, i, latestBlockhash;
12197
- return _regeneratorRuntime$1().wrap(function _callee84$(_context85) {
11982
+ return _regeneratorRuntime__default.default.wrap(function _callee84$(_context85) {
12198
11983
  while (1) switch (_context85.prev = _context85.next) {
12199
11984
  case 0:
12200
11985
  this._pollingBlockhash = true;
@@ -12253,9 +12038,9 @@ var Connection = /*#__PURE__*/function () {
12253
12038
  }, {
12254
12039
  key: "getStakeMinimumDelegation",
12255
12040
  value: function () {
12256
- var _getStakeMinimumDelegation = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee85(config) {
12041
+ var _getStakeMinimumDelegation = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee85(config) {
12257
12042
  var _extractCommitmentFro24, commitment, configArg, args, unsafeRes, res;
12258
- return _regeneratorRuntime$1().wrap(function _callee85$(_context86) {
12043
+ return _regeneratorRuntime__default.default.wrap(function _callee85$(_context86) {
12259
12044
  while (1) switch (_context86.prev = _context86.next) {
12260
12045
  case 0:
12261
12046
  _extractCommitmentFro24 = extractCommitmentFromConfig(config), commitment = _extractCommitmentFro24.commitment, configArg = _extractCommitmentFro24.config;
@@ -12297,9 +12082,9 @@ var Connection = /*#__PURE__*/function () {
12297
12082
  */
12298
12083
  // eslint-disable-next-line no-dupe-class-members
12299
12084
  function () {
12300
- var _simulateTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee86(transactionOrMessage, configOrSigners, includeAccounts) {
12085
+ var _simulateTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee86(transactionOrMessage, configOrSigners, includeAccounts) {
12301
12086
  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;
12302
- return _regeneratorRuntime$1().wrap(function _callee86$(_context87) {
12087
+ return _regeneratorRuntime__default.default.wrap(function _callee86$(_context87) {
12303
12088
  while (1) switch (_context87.prev = _context87.next) {
12304
12089
  case 0:
12305
12090
  if (!('message' in transactionOrMessage)) {
@@ -12467,9 +12252,9 @@ var Connection = /*#__PURE__*/function () {
12467
12252
  */
12468
12253
  // eslint-disable-next-line no-dupe-class-members
12469
12254
  function () {
12470
- var _sendTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee87(transaction, signersOrOptions, options) {
12255
+ var _sendTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee87(transaction, signersOrOptions, options) {
12471
12256
  var _wireTransaction2, signers, disableCache, latestBlockhash, _signature2, wireTransaction;
12472
- return _regeneratorRuntime$1().wrap(function _callee87$(_context88) {
12257
+ return _regeneratorRuntime__default.default.wrap(function _callee87$(_context88) {
12473
12258
  while (1) switch (_context88.prev = _context88.next) {
12474
12259
  case 0:
12475
12260
  if (!('version' in transaction)) {
@@ -12560,9 +12345,9 @@ var Connection = /*#__PURE__*/function () {
12560
12345
  }, {
12561
12346
  key: "sendRawTransaction",
12562
12347
  value: function () {
12563
- var _sendRawTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee88(rawTransaction, options) {
12348
+ var _sendRawTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee88(rawTransaction, options) {
12564
12349
  var encodedTransaction, result;
12565
- return _regeneratorRuntime$1().wrap(function _callee88$(_context89) {
12350
+ return _regeneratorRuntime__default.default.wrap(function _callee88$(_context89) {
12566
12351
  while (1) switch (_context89.prev = _context89.next) {
12567
12352
  case 0:
12568
12353
  encodedTransaction = toBuffer(rawTransaction).toString('base64');
@@ -12589,9 +12374,9 @@ var Connection = /*#__PURE__*/function () {
12589
12374
  }, {
12590
12375
  key: "sendEncodedTransaction",
12591
12376
  value: function () {
12592
- var _sendEncodedTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee89(encodedTransaction, options) {
12377
+ var _sendEncodedTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee89(encodedTransaction, options) {
12593
12378
  var config, skipPreflight, preflightCommitment, args, unsafeRes, res, _logs2;
12594
- return _regeneratorRuntime$1().wrap(function _callee89$(_context90) {
12379
+ return _regeneratorRuntime__default.default.wrap(function _callee89$(_context90) {
12595
12380
  while (1) switch (_context90.prev = _context90.next) {
12596
12381
  case 0:
12597
12382
  config = {
@@ -12648,8 +12433,8 @@ var Connection = /*#__PURE__*/function () {
12648
12433
  this._rpcWebSocketConnected = true;
12649
12434
  this._rpcWebSocketHeartbeat = setInterval(function () {
12650
12435
  // Ping server every 5s to prevent idle timeouts
12651
- _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee90() {
12652
- return _regeneratorRuntime$1().wrap(function _callee90$(_context91) {
12436
+ _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee90() {
12437
+ return _regeneratorRuntime__default.default.wrap(function _callee90$(_context91) {
12653
12438
  while (1) switch (_context91.prev = _context91.next) {
12654
12439
  case 0:
12655
12440
  _context91.prev = 0;
@@ -12766,10 +12551,10 @@ var Connection = /*#__PURE__*/function () {
12766
12551
  }, {
12767
12552
  key: "_updateSubscriptions",
12768
12553
  value: function () {
12769
- var _updateSubscriptions2 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee94() {
12554
+ var _updateSubscriptions2 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee94() {
12770
12555
  var _this12 = this;
12771
12556
  var activeWebSocketGeneration, isCurrentConnectionStillActive;
12772
- return _regeneratorRuntime$1().wrap(function _callee94$(_context95) {
12557
+ return _regeneratorRuntime__default.default.wrap(function _callee94$(_context95) {
12773
12558
  while (1) switch (_context95.prev = _context95.next) {
12774
12559
  case 0:
12775
12560
  if (!(Object.keys(this._subscriptionsByHash).length === 0)) {
@@ -12815,9 +12600,9 @@ var Connection = /*#__PURE__*/function () {
12815
12600
  // so it's important that we look up the *current* version of
12816
12601
  // each subscription, every time we process a hash.
12817
12602
  Object.keys(this._subscriptionsByHash).map( /*#__PURE__*/function () {
12818
- var _ref21 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee93(hash) {
12603
+ var _ref21 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee93(hash) {
12819
12604
  var subscription;
12820
- return _regeneratorRuntime$1().wrap(function _callee93$(_context94) {
12605
+ return _regeneratorRuntime__default.default.wrap(function _callee93$(_context94) {
12821
12606
  while (1) switch (_context94.prev = _context94.next) {
12822
12607
  case 0:
12823
12608
  subscription = _this12._subscriptionsByHash[hash];
@@ -12858,9 +12643,9 @@ var Connection = /*#__PURE__*/function () {
12858
12643
  return _context94.abrupt("return");
12859
12644
  case 12:
12860
12645
  _context94.next = 14;
12861
- return _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee91() {
12646
+ return _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee91() {
12862
12647
  var args, method, _serverSubscriptionId;
12863
- return _regeneratorRuntime$1().wrap(function _callee91$(_context92) {
12648
+ return _regeneratorRuntime__default.default.wrap(function _callee91$(_context92) {
12864
12649
  while (1) switch (_context92.prev = _context92.next) {
12865
12650
  case 0:
12866
12651
  args = subscription.args, method = subscription.method;
@@ -12914,9 +12699,9 @@ var Connection = /*#__PURE__*/function () {
12914
12699
  break;
12915
12700
  }
12916
12701
  _context94.next = 18;
12917
- return _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee92() {
12702
+ return _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee92() {
12918
12703
  var serverSubscriptionId, unsubscribeMethod;
12919
- return _regeneratorRuntime$1().wrap(function _callee92$(_context93) {
12704
+ return _regeneratorRuntime__default.default.wrap(function _callee92$(_context93) {
12920
12705
  while (1) switch (_context93.prev = _context93.next) {
12921
12706
  case 0:
12922
12707
  serverSubscriptionId = subscription.serverSubscriptionId, unsubscribeMethod = subscription.unsubscribeMethod;
@@ -13083,9 +12868,9 @@ var Connection = /*#__PURE__*/function () {
13083
12868
  existingSubscription.callbacks.add(subscriptionConfig.callback);
13084
12869
  }
13085
12870
  this._subscriptionHashByClientSubscriptionId[clientSubscriptionId] = hash;
13086
- this._subscriptionDisposeFunctionsByClientSubscriptionId[clientSubscriptionId] = /*#__PURE__*/_asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee95() {
12871
+ this._subscriptionDisposeFunctionsByClientSubscriptionId[clientSubscriptionId] = /*#__PURE__*/_asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee95() {
13087
12872
  var subscription;
13088
- return _regeneratorRuntime$1().wrap(function _callee95$(_context96) {
12873
+ return _regeneratorRuntime__default.default.wrap(function _callee95$(_context96) {
13089
12874
  while (1) switch (_context96.prev = _context96.next) {
13090
12875
  case 0:
13091
12876
  delete _this13._subscriptionDisposeFunctionsByClientSubscriptionId[clientSubscriptionId];
@@ -13134,8 +12919,8 @@ var Connection = /*#__PURE__*/function () {
13134
12919
  }, {
13135
12920
  key: "removeAccountChangeListener",
13136
12921
  value: function () {
13137
- var _removeAccountChangeListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee96(clientSubscriptionId) {
13138
- return _regeneratorRuntime$1().wrap(function _callee96$(_context97) {
12922
+ var _removeAccountChangeListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee96(clientSubscriptionId) {
12923
+ return _regeneratorRuntime__default.default.wrap(function _callee96$(_context97) {
13139
12924
  while (1) switch (_context97.prev = _context97.next) {
13140
12925
  case 0:
13141
12926
  _context97.next = 2;
@@ -13200,8 +12985,8 @@ var Connection = /*#__PURE__*/function () {
13200
12985
  }, {
13201
12986
  key: "removeProgramAccountChangeListener",
13202
12987
  value: function () {
13203
- var _removeProgramAccountChangeListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee97(clientSubscriptionId) {
13204
- return _regeneratorRuntime$1().wrap(function _callee97$(_context98) {
12988
+ var _removeProgramAccountChangeListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee97(clientSubscriptionId) {
12989
+ return _regeneratorRuntime__default.default.wrap(function _callee97$(_context98) {
13205
12990
  while (1) switch (_context98.prev = _context98.next) {
13206
12991
  case 0:
13207
12992
  _context98.next = 2;
@@ -13243,8 +13028,8 @@ var Connection = /*#__PURE__*/function () {
13243
13028
  }, {
13244
13029
  key: "removeOnLogsListener",
13245
13030
  value: function () {
13246
- var _removeOnLogsListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee98(clientSubscriptionId) {
13247
- return _regeneratorRuntime$1().wrap(function _callee98$(_context99) {
13031
+ var _removeOnLogsListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee98(clientSubscriptionId) {
13032
+ return _regeneratorRuntime__default.default.wrap(function _callee98$(_context99) {
13248
13033
  while (1) switch (_context99.prev = _context99.next) {
13249
13034
  case 0:
13250
13035
  _context99.next = 2;
@@ -13308,8 +13093,8 @@ var Connection = /*#__PURE__*/function () {
13308
13093
  }, {
13309
13094
  key: "removeSlotChangeListener",
13310
13095
  value: function () {
13311
- var _removeSlotChangeListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee99(clientSubscriptionId) {
13312
- return _regeneratorRuntime$1().wrap(function _callee99$(_context100) {
13096
+ var _removeSlotChangeListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee99(clientSubscriptionId) {
13097
+ return _regeneratorRuntime__default.default.wrap(function _callee99$(_context100) {
13313
13098
  while (1) switch (_context100.prev = _context100.next) {
13314
13099
  case 0:
13315
13100
  _context100.next = 2;
@@ -13362,8 +13147,8 @@ var Connection = /*#__PURE__*/function () {
13362
13147
  }, {
13363
13148
  key: "removeSlotUpdateListener",
13364
13149
  value: function () {
13365
- var _removeSlotUpdateListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee100(clientSubscriptionId) {
13366
- return _regeneratorRuntime$1().wrap(function _callee100$(_context101) {
13150
+ var _removeSlotUpdateListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee100(clientSubscriptionId) {
13151
+ return _regeneratorRuntime__default.default.wrap(function _callee100$(_context101) {
13367
13152
  while (1) switch (_context101.prev = _context101.next) {
13368
13153
  case 0:
13369
13154
  _context101.next = 2;
@@ -13385,9 +13170,9 @@ var Connection = /*#__PURE__*/function () {
13385
13170
  }, {
13386
13171
  key: "_unsubscribeClientSubscription",
13387
13172
  value: function () {
13388
- var _unsubscribeClientSubscription2 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee101(clientSubscriptionId, subscriptionName) {
13173
+ var _unsubscribeClientSubscription2 = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee101(clientSubscriptionId, subscriptionName) {
13389
13174
  var dispose;
13390
- return _regeneratorRuntime$1().wrap(function _callee101$(_context102) {
13175
+ return _regeneratorRuntime__default.default.wrap(function _callee101$(_context102) {
13391
13176
  while (1) switch (_context102.prev = _context102.next) {
13392
13177
  case 0:
13393
13178
  dispose = this._subscriptionDisposeFunctionsByClientSubscriptionId[clientSubscriptionId];
@@ -13560,8 +13345,8 @@ var Connection = /*#__PURE__*/function () {
13560
13345
  }, {
13561
13346
  key: "removeSignatureListener",
13562
13347
  value: function () {
13563
- var _removeSignatureListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee102(clientSubscriptionId) {
13564
- return _regeneratorRuntime$1().wrap(function _callee102$(_context103) {
13348
+ var _removeSignatureListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee102(clientSubscriptionId) {
13349
+ return _regeneratorRuntime__default.default.wrap(function _callee102$(_context103) {
13565
13350
  while (1) switch (_context103.prev = _context103.next) {
13566
13351
  case 0:
13567
13352
  _context103.next = 2;
@@ -13613,8 +13398,8 @@ var Connection = /*#__PURE__*/function () {
13613
13398
  }, {
13614
13399
  key: "removeRootChangeListener",
13615
13400
  value: function () {
13616
- var _removeRootChangeListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime$1().mark(function _callee103(clientSubscriptionId) {
13617
- return _regeneratorRuntime$1().wrap(function _callee103$(_context104) {
13401
+ var _removeRootChangeListener = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee103(clientSubscriptionId) {
13402
+ return _regeneratorRuntime__default.default.wrap(function _callee103$(_context104) {
13618
13403
  while (1) switch (_context104.prev = _context104.next) {
13619
13404
  case 0:
13620
13405
  _context104.next = 2;
@@ -15975,7 +15760,6 @@ function clusterApiUrl(cluster, tls) {
15975
15760
  return url;
15976
15761
  }
15977
15762
 
15978
- 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__default.default(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; }
15979
15763
  /**
15980
15764
  * Send and confirm a raw transaction
15981
15765
  *
@@ -15997,9 +15781,9 @@ function sendAndConfirmRawTransaction(_x, _x2, _x3, _x4) {
15997
15781
  return _sendAndConfirmRawTransaction.apply(this, arguments);
15998
15782
  }
15999
15783
  function _sendAndConfirmRawTransaction() {
16000
- _sendAndConfirmRawTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(connection, rawTransaction, confirmationStrategyOrConfirmOptions, maybeConfirmOptions) {
15784
+ _sendAndConfirmRawTransaction = _asyncToGenerator__default.default( /*#__PURE__*/_regeneratorRuntime__default.default.mark(function _callee(connection, rawTransaction, confirmationStrategyOrConfirmOptions, maybeConfirmOptions) {
16001
15785
  var confirmationStrategy, options, sendOptions, signature, commitment, confirmationPromise, status;
16002
- return _regeneratorRuntime().wrap(function _callee$(_context) {
15786
+ return _regeneratorRuntime__default.default.wrap(function _callee$(_context) {
16003
15787
  while (1) switch (_context.prev = _context.next) {
16004
15788
  case 0:
16005
15789
  if (confirmationStrategyOrConfirmOptions && Object.prototype.hasOwnProperty.call(confirmationStrategyOrConfirmOptions, 'lastValidBlockHeight')) {