@solana/web3.js 1.78.2 → 1.78.4
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.browser.cjs.js +224 -228
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +222 -227
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +257 -473
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +255 -471
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +566 -179
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +9 -8
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +224 -228
- package/lib/index.native.js.map +1 -1
- package/package.json +15 -15
package/lib/index.browser.esm.js
CHANGED
|
@@ -2,11 +2,11 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
|
2
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
3
3
|
import { Buffer } from 'buffer';
|
|
4
4
|
import { ed25519 } from '@noble/curves/ed25519';
|
|
5
|
-
import _typeof from '@babel/runtime/helpers/typeof';
|
|
6
5
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
7
6
|
import _inherits from '@babel/runtime/helpers/inherits';
|
|
8
7
|
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
|
|
9
8
|
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
|
|
9
|
+
import _regeneratorRuntime from '@babel/runtime/regenerator';
|
|
10
10
|
import BN from 'bn.js';
|
|
11
11
|
import bs58 from 'bs58';
|
|
12
12
|
import { sha256 } from '@noble/hashes/sha256';
|
|
@@ -17,6 +17,7 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
17
17
|
import { toBigIntLE, toBufferLE } from 'bigint-buffer';
|
|
18
18
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
19
19
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
20
|
+
import _typeof from '@babel/runtime/helpers/typeof';
|
|
20
21
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
21
22
|
import { coerce, instance, string, tuple, literal, unknown, type, number, array, nullable, optional, boolean, record, union, create, any, assert as assert$1 } from 'superstruct';
|
|
22
23
|
import RpcClient from 'jayson/lib/client/browser';
|
|
@@ -124,7 +125,6 @@ var Enum = /*#__PURE__*/function (_Struct) {
|
|
|
124
125
|
var SOLANA_SCHEMA = new Map();
|
|
125
126
|
|
|
126
127
|
var _Symbol$toStringTag;
|
|
127
|
-
function _regeneratorRuntime$5() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime$5 = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
128
128
|
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
129
129
|
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; } }
|
|
130
130
|
|
|
@@ -277,9 +277,9 @@ var PublicKey = /*#__PURE__*/function (_Struct) {
|
|
|
277
277
|
}, {
|
|
278
278
|
key: "createWithSeed",
|
|
279
279
|
value: function () {
|
|
280
|
-
var _createWithSeed = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
280
|
+
var _createWithSeed = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(fromPublicKey, seed, programId) {
|
|
281
281
|
var buffer, publicKeyBytes;
|
|
282
|
-
return _regeneratorRuntime
|
|
282
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
283
283
|
while (1) switch (_context.prev = _context.next) {
|
|
284
284
|
case 0:
|
|
285
285
|
buffer = Buffer.concat([fromPublicKey.toBuffer(), Buffer.from(seed), programId.toBuffer()]);
|
|
@@ -328,8 +328,8 @@ var PublicKey = /*#__PURE__*/function (_Struct) {
|
|
|
328
328
|
}, {
|
|
329
329
|
key: "createProgramAddress",
|
|
330
330
|
value: function () {
|
|
331
|
-
var _createProgramAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
332
|
-
return _regeneratorRuntime
|
|
331
|
+
var _createProgramAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(seeds, programId) {
|
|
332
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
333
333
|
while (1) switch (_context2.prev = _context2.next) {
|
|
334
334
|
case 0:
|
|
335
335
|
return _context2.abrupt("return", this.createProgramAddressSync(seeds, programId));
|
|
@@ -381,8 +381,8 @@ var PublicKey = /*#__PURE__*/function (_Struct) {
|
|
|
381
381
|
}, {
|
|
382
382
|
key: "findProgramAddress",
|
|
383
383
|
value: function () {
|
|
384
|
-
var _findProgramAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
385
|
-
return _regeneratorRuntime
|
|
384
|
+
var _findProgramAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(seeds, programId) {
|
|
385
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
386
386
|
while (1) switch (_context3.prev = _context3.next) {
|
|
387
387
|
case 0:
|
|
388
388
|
return _context3.abrupt("return", this.findProgramAddressSync(seeds, programId));
|
|
@@ -1534,7 +1534,6 @@ var VersionedMessage = {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
};
|
|
1536
1536
|
|
|
1537
|
-
function _regeneratorRuntime$4() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime$4 = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
1538
1537
|
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; } } }; }
|
|
1539
1538
|
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); }
|
|
1540
1539
|
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; }
|
|
@@ -2038,8 +2037,8 @@ var Transaction = /*#__PURE__*/function () {
|
|
|
2038
2037
|
}, {
|
|
2039
2038
|
key: "getEstimatedFee",
|
|
2040
2039
|
value: function () {
|
|
2041
|
-
var _getEstimatedFee = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
2042
|
-
return _regeneratorRuntime
|
|
2040
|
+
var _getEstimatedFee = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(connection) {
|
|
2041
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
2043
2042
|
while (1) switch (_context.prev = _context.next) {
|
|
2044
2043
|
case 0:
|
|
2045
2044
|
_context.next = 2;
|
|
@@ -2666,7 +2665,6 @@ var SYSVAR_SLOT_HASHES_PUBKEY = new PublicKey('SysvarS1otHashes11111111111111111
|
|
|
2666
2665
|
var SYSVAR_SLOT_HISTORY_PUBKEY = new PublicKey('SysvarS1otHistory11111111111111111111111111');
|
|
2667
2666
|
var SYSVAR_STAKE_HISTORY_PUBKEY = new PublicKey('SysvarStakeHistory1111111111111111111111111');
|
|
2668
2667
|
|
|
2669
|
-
function _regeneratorRuntime$3() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime$3 = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
2670
2668
|
/**
|
|
2671
2669
|
* Sign, send and confirm a transaction.
|
|
2672
2670
|
*
|
|
@@ -2682,9 +2680,9 @@ function sendAndConfirmTransaction(_x, _x2, _x3, _x4) {
|
|
|
2682
2680
|
return _sendAndConfirmTransaction.apply(this, arguments);
|
|
2683
2681
|
}
|
|
2684
2682
|
function _sendAndConfirmTransaction() {
|
|
2685
|
-
_sendAndConfirmTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
2683
|
+
_sendAndConfirmTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(connection, transaction, signers, options) {
|
|
2686
2684
|
var sendOptions, signature, status, nonceInstruction, nonceAccountPubkey;
|
|
2687
|
-
return _regeneratorRuntime
|
|
2685
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
2688
2686
|
while (1) switch (_context.prev = _context.next) {
|
|
2689
2687
|
case 0:
|
|
2690
2688
|
sendOptions = options && {
|
|
@@ -3671,7 +3669,6 @@ var SystemProgram = /*#__PURE__*/function () {
|
|
|
3671
3669
|
}();
|
|
3672
3670
|
SystemProgram.programId = new PublicKey('11111111111111111111111111111111');
|
|
3673
3671
|
|
|
3674
|
-
function _regeneratorRuntime$2() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime$2 = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
3675
3672
|
// Keep program chunks under PACKET_DATA_SIZE, leaving enough room for the
|
|
3676
3673
|
// rest of the Transaction fields
|
|
3677
3674
|
//
|
|
@@ -3724,9 +3721,9 @@ var Loader = /*#__PURE__*/function () {
|
|
|
3724
3721
|
}, {
|
|
3725
3722
|
key: "load",
|
|
3726
3723
|
value: function () {
|
|
3727
|
-
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
3724
|
+
var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(connection, payer, program, programId, data) {
|
|
3728
3725
|
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;
|
|
3729
|
-
return _regeneratorRuntime
|
|
3726
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
3730
3727
|
while (1) switch (_context.prev = _context.next) {
|
|
3731
3728
|
case 0:
|
|
3732
3729
|
_context.next = 2;
|
|
@@ -4359,7 +4356,6 @@ var _excluded = ["commitment"],
|
|
|
4359
4356
|
_excluded2 = ["encoding"],
|
|
4360
4357
|
_excluded3 = ["commitment"],
|
|
4361
4358
|
_excluded4 = ["commitment"];
|
|
4362
|
-
function _regeneratorRuntime$1() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime$1 = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
4363
4359
|
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; }
|
|
4364
4360
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4365
4361
|
var PublicKeyFromString = coerce(instance(PublicKey), string(), function (value) {
|
|
@@ -4926,9 +4922,9 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
|
|
|
4926
4922
|
var fetchWithMiddleware;
|
|
4927
4923
|
if (fetchMiddleware) {
|
|
4928
4924
|
fetchWithMiddleware = /*#__PURE__*/function () {
|
|
4929
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
4925
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(info, init) {
|
|
4930
4926
|
var modifiedFetchArgs;
|
|
4931
|
-
return _regeneratorRuntime
|
|
4927
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
4932
4928
|
while (1) switch (_context.prev = _context.next) {
|
|
4933
4929
|
case 0:
|
|
4934
4930
|
_context.next = 2;
|
|
@@ -4959,9 +4955,9 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
|
|
|
4959
4955
|
}();
|
|
4960
4956
|
}
|
|
4961
4957
|
var clientBrowser = new RpcClient( /*#__PURE__*/function () {
|
|
4962
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
4958
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(request, callback) {
|
|
4963
4959
|
var options, too_many_requests_retries, res, waitTime, text;
|
|
4964
|
-
return _regeneratorRuntime
|
|
4960
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
4965
4961
|
while (1) switch (_context2.prev = _context2.next) {
|
|
4966
4962
|
case 0:
|
|
4967
4963
|
options = {
|
|
@@ -6029,18 +6025,18 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6029
6025
|
this.getBlockHeight = function () {
|
|
6030
6026
|
var requestPromises = {};
|
|
6031
6027
|
return /*#__PURE__*/function () {
|
|
6032
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6028
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(commitmentOrConfig) {
|
|
6033
6029
|
var _requestPromises$requ;
|
|
6034
6030
|
var _extractCommitmentFro, commitment, config, args, requestHash;
|
|
6035
|
-
return _regeneratorRuntime
|
|
6031
|
+
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
6036
6032
|
while (1) switch (_context4.prev = _context4.next) {
|
|
6037
6033
|
case 0:
|
|
6038
6034
|
_extractCommitmentFro = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro.commitment, config = _extractCommitmentFro.config;
|
|
6039
6035
|
args = _this._buildArgs([], commitment, undefined /* encoding */, config);
|
|
6040
6036
|
requestHash = fastStableStringify$1(args);
|
|
6041
|
-
requestPromises[requestHash] = (_requestPromises$requ = requestPromises[requestHash]) !== null && _requestPromises$requ !== void 0 ? _requestPromises$requ : _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6037
|
+
requestPromises[requestHash] = (_requestPromises$requ = requestPromises[requestHash]) !== null && _requestPromises$requ !== void 0 ? _requestPromises$requ : _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
6042
6038
|
var unsafeRes, res;
|
|
6043
|
-
return _regeneratorRuntime
|
|
6039
|
+
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
6044
6040
|
while (1) switch (_context3.prev = _context3.next) {
|
|
6045
6041
|
case 0:
|
|
6046
6042
|
_context3.prev = 0;
|
|
@@ -6144,9 +6140,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6144
6140
|
}, {
|
|
6145
6141
|
key: "getBalanceAndContext",
|
|
6146
6142
|
value: function () {
|
|
6147
|
-
var _getBalanceAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6143
|
+
var _getBalanceAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(publicKey, commitmentOrConfig) {
|
|
6148
6144
|
var _extractCommitmentFro2, commitment, config, args, unsafeRes, res;
|
|
6149
|
-
return _regeneratorRuntime
|
|
6145
|
+
return _regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
6150
6146
|
while (1) switch (_context5.prev = _context5.next) {
|
|
6151
6147
|
case 0:
|
|
6152
6148
|
/** @internal */
|
|
@@ -6181,8 +6177,8 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6181
6177
|
}, {
|
|
6182
6178
|
key: "getBalance",
|
|
6183
6179
|
value: function () {
|
|
6184
|
-
var _getBalance = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6185
|
-
return _regeneratorRuntime
|
|
6180
|
+
var _getBalance = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(publicKey, commitmentOrConfig) {
|
|
6181
|
+
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
6186
6182
|
while (1) switch (_context6.prev = _context6.next) {
|
|
6187
6183
|
case 0:
|
|
6188
6184
|
_context6.next = 2;
|
|
@@ -6210,9 +6206,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6210
6206
|
}, {
|
|
6211
6207
|
key: "getBlockTime",
|
|
6212
6208
|
value: function () {
|
|
6213
|
-
var _getBlockTime = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6209
|
+
var _getBlockTime = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(slot) {
|
|
6214
6210
|
var unsafeRes, res;
|
|
6215
|
-
return _regeneratorRuntime
|
|
6211
|
+
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
6216
6212
|
while (1) switch (_context7.prev = _context7.next) {
|
|
6217
6213
|
case 0:
|
|
6218
6214
|
_context7.next = 2;
|
|
@@ -6245,9 +6241,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6245
6241
|
}, {
|
|
6246
6242
|
key: "getMinimumLedgerSlot",
|
|
6247
6243
|
value: function () {
|
|
6248
|
-
var _getMinimumLedgerSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6244
|
+
var _getMinimumLedgerSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
|
|
6249
6245
|
var unsafeRes, res;
|
|
6250
|
-
return _regeneratorRuntime
|
|
6246
|
+
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
6251
6247
|
while (1) switch (_context8.prev = _context8.next) {
|
|
6252
6248
|
case 0:
|
|
6253
6249
|
_context8.next = 2;
|
|
@@ -6279,9 +6275,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6279
6275
|
}, {
|
|
6280
6276
|
key: "getFirstAvailableBlock",
|
|
6281
6277
|
value: function () {
|
|
6282
|
-
var _getFirstAvailableBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6278
|
+
var _getFirstAvailableBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
|
|
6283
6279
|
var unsafeRes, res;
|
|
6284
|
-
return _regeneratorRuntime
|
|
6280
|
+
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
6285
6281
|
while (1) switch (_context9.prev = _context9.next) {
|
|
6286
6282
|
case 0:
|
|
6287
6283
|
_context9.next = 2;
|
|
@@ -6313,9 +6309,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6313
6309
|
}, {
|
|
6314
6310
|
key: "getSupply",
|
|
6315
6311
|
value: function () {
|
|
6316
|
-
var _getSupply = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6312
|
+
var _getSupply = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(config) {
|
|
6317
6313
|
var configArg, unsafeRes, res;
|
|
6318
|
-
return _regeneratorRuntime
|
|
6314
|
+
return _regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
6319
6315
|
while (1) switch (_context10.prev = _context10.next) {
|
|
6320
6316
|
case 0:
|
|
6321
6317
|
configArg = {};
|
|
@@ -6361,9 +6357,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6361
6357
|
}, {
|
|
6362
6358
|
key: "getTokenSupply",
|
|
6363
6359
|
value: function () {
|
|
6364
|
-
var _getTokenSupply = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6360
|
+
var _getTokenSupply = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(tokenMintAddress, commitment) {
|
|
6365
6361
|
var args, unsafeRes, res;
|
|
6366
|
-
return _regeneratorRuntime
|
|
6362
|
+
return _regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
6367
6363
|
while (1) switch (_context11.prev = _context11.next) {
|
|
6368
6364
|
case 0:
|
|
6369
6365
|
args = this._buildArgs([tokenMintAddress.toBase58()], commitment);
|
|
@@ -6396,9 +6392,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6396
6392
|
}, {
|
|
6397
6393
|
key: "getTokenAccountBalance",
|
|
6398
6394
|
value: function () {
|
|
6399
|
-
var _getTokenAccountBalance = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6395
|
+
var _getTokenAccountBalance = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(tokenAddress, commitment) {
|
|
6400
6396
|
var args, unsafeRes, res;
|
|
6401
|
-
return _regeneratorRuntime
|
|
6397
|
+
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
6402
6398
|
while (1) switch (_context12.prev = _context12.next) {
|
|
6403
6399
|
case 0:
|
|
6404
6400
|
args = this._buildArgs([tokenAddress.toBase58()], commitment);
|
|
@@ -6433,9 +6429,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6433
6429
|
}, {
|
|
6434
6430
|
key: "getTokenAccountsByOwner",
|
|
6435
6431
|
value: function () {
|
|
6436
|
-
var _getTokenAccountsByOwner = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6432
|
+
var _getTokenAccountsByOwner = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(ownerAddress, filter, commitmentOrConfig) {
|
|
6437
6433
|
var _extractCommitmentFro3, commitment, config, _args, args, unsafeRes, res;
|
|
6438
|
-
return _regeneratorRuntime
|
|
6434
|
+
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
6439
6435
|
while (1) switch (_context13.prev = _context13.next) {
|
|
6440
6436
|
case 0:
|
|
6441
6437
|
_extractCommitmentFro3 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro3.commitment, config = _extractCommitmentFro3.config;
|
|
@@ -6481,9 +6477,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6481
6477
|
}, {
|
|
6482
6478
|
key: "getParsedTokenAccountsByOwner",
|
|
6483
6479
|
value: function () {
|
|
6484
|
-
var _getParsedTokenAccountsByOwner = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6480
|
+
var _getParsedTokenAccountsByOwner = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(ownerAddress, filter, commitment) {
|
|
6485
6481
|
var _args, args, unsafeRes, res;
|
|
6486
|
-
return _regeneratorRuntime
|
|
6482
|
+
return _regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
6487
6483
|
while (1) switch (_context14.prev = _context14.next) {
|
|
6488
6484
|
case 0:
|
|
6489
6485
|
_args = [ownerAddress.toBase58()];
|
|
@@ -6526,9 +6522,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6526
6522
|
}, {
|
|
6527
6523
|
key: "getLargestAccounts",
|
|
6528
6524
|
value: function () {
|
|
6529
|
-
var _getLargestAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6525
|
+
var _getLargestAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(config) {
|
|
6530
6526
|
var arg, args, unsafeRes, res;
|
|
6531
|
-
return _regeneratorRuntime
|
|
6527
|
+
return _regeneratorRuntime.wrap(function _callee15$(_context15) {
|
|
6532
6528
|
while (1) switch (_context15.prev = _context15.next) {
|
|
6533
6529
|
case 0:
|
|
6534
6530
|
arg = _objectSpread(_objectSpread({}, config), {}, {
|
|
@@ -6565,9 +6561,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6565
6561
|
}, {
|
|
6566
6562
|
key: "getTokenLargestAccounts",
|
|
6567
6563
|
value: function () {
|
|
6568
|
-
var _getTokenLargestAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6564
|
+
var _getTokenLargestAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(mintAddress, commitment) {
|
|
6569
6565
|
var args, unsafeRes, res;
|
|
6570
|
-
return _regeneratorRuntime
|
|
6566
|
+
return _regeneratorRuntime.wrap(function _callee16$(_context16) {
|
|
6571
6567
|
while (1) switch (_context16.prev = _context16.next) {
|
|
6572
6568
|
case 0:
|
|
6573
6569
|
args = this._buildArgs([mintAddress.toBase58()], commitment);
|
|
@@ -6600,9 +6596,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6600
6596
|
}, {
|
|
6601
6597
|
key: "getAccountInfoAndContext",
|
|
6602
6598
|
value: function () {
|
|
6603
|
-
var _getAccountInfoAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6599
|
+
var _getAccountInfoAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(publicKey, commitmentOrConfig) {
|
|
6604
6600
|
var _extractCommitmentFro4, commitment, config, args, unsafeRes, res;
|
|
6605
|
-
return _regeneratorRuntime
|
|
6601
|
+
return _regeneratorRuntime.wrap(function _callee17$(_context17) {
|
|
6606
6602
|
while (1) switch (_context17.prev = _context17.next) {
|
|
6607
6603
|
case 0:
|
|
6608
6604
|
_extractCommitmentFro4 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro4.commitment, config = _extractCommitmentFro4.config;
|
|
@@ -6636,9 +6632,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6636
6632
|
}, {
|
|
6637
6633
|
key: "getParsedAccountInfo",
|
|
6638
6634
|
value: function () {
|
|
6639
|
-
var _getParsedAccountInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6635
|
+
var _getParsedAccountInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18(publicKey, commitmentOrConfig) {
|
|
6640
6636
|
var _extractCommitmentFro5, commitment, config, args, unsafeRes, res;
|
|
6641
|
-
return _regeneratorRuntime
|
|
6637
|
+
return _regeneratorRuntime.wrap(function _callee18$(_context18) {
|
|
6642
6638
|
while (1) switch (_context18.prev = _context18.next) {
|
|
6643
6639
|
case 0:
|
|
6644
6640
|
_extractCommitmentFro5 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro5.commitment, config = _extractCommitmentFro5.config;
|
|
@@ -6672,9 +6668,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6672
6668
|
}, {
|
|
6673
6669
|
key: "getAccountInfo",
|
|
6674
6670
|
value: function () {
|
|
6675
|
-
var _getAccountInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6671
|
+
var _getAccountInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(publicKey, commitmentOrConfig) {
|
|
6676
6672
|
var res;
|
|
6677
|
-
return _regeneratorRuntime
|
|
6673
|
+
return _regeneratorRuntime.wrap(function _callee19$(_context19) {
|
|
6678
6674
|
while (1) switch (_context19.prev = _context19.next) {
|
|
6679
6675
|
case 0:
|
|
6680
6676
|
_context19.prev = 0;
|
|
@@ -6704,9 +6700,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6704
6700
|
}, {
|
|
6705
6701
|
key: "getMultipleParsedAccounts",
|
|
6706
6702
|
value: function () {
|
|
6707
|
-
var _getMultipleParsedAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6703
|
+
var _getMultipleParsedAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(publicKeys, rawConfig) {
|
|
6708
6704
|
var _extractCommitmentFro6, commitment, config, keys, args, unsafeRes, res;
|
|
6709
|
-
return _regeneratorRuntime
|
|
6705
|
+
return _regeneratorRuntime.wrap(function _callee20$(_context20) {
|
|
6710
6706
|
while (1) switch (_context20.prev = _context20.next) {
|
|
6711
6707
|
case 0:
|
|
6712
6708
|
_extractCommitmentFro6 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro6.commitment, config = _extractCommitmentFro6.config;
|
|
@@ -6743,9 +6739,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6743
6739
|
}, {
|
|
6744
6740
|
key: "getMultipleAccountsInfoAndContext",
|
|
6745
6741
|
value: function () {
|
|
6746
|
-
var _getMultipleAccountsInfoAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6742
|
+
var _getMultipleAccountsInfoAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(publicKeys, commitmentOrConfig) {
|
|
6747
6743
|
var _extractCommitmentFro7, commitment, config, keys, args, unsafeRes, res;
|
|
6748
|
-
return _regeneratorRuntime
|
|
6744
|
+
return _regeneratorRuntime.wrap(function _callee21$(_context21) {
|
|
6749
6745
|
while (1) switch (_context21.prev = _context21.next) {
|
|
6750
6746
|
case 0:
|
|
6751
6747
|
_extractCommitmentFro7 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro7.commitment, config = _extractCommitmentFro7.config;
|
|
@@ -6782,9 +6778,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6782
6778
|
}, {
|
|
6783
6779
|
key: "getMultipleAccountsInfo",
|
|
6784
6780
|
value: function () {
|
|
6785
|
-
var _getMultipleAccountsInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6781
|
+
var _getMultipleAccountsInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(publicKeys, commitmentOrConfig) {
|
|
6786
6782
|
var res;
|
|
6787
|
-
return _regeneratorRuntime
|
|
6783
|
+
return _regeneratorRuntime.wrap(function _callee22$(_context22) {
|
|
6788
6784
|
while (1) switch (_context22.prev = _context22.next) {
|
|
6789
6785
|
case 0:
|
|
6790
6786
|
_context22.next = 2;
|
|
@@ -6809,9 +6805,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6809
6805
|
}, {
|
|
6810
6806
|
key: "getStakeActivation",
|
|
6811
6807
|
value: function () {
|
|
6812
|
-
var _getStakeActivation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6808
|
+
var _getStakeActivation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(publicKey, commitmentOrConfig, epoch) {
|
|
6813
6809
|
var _extractCommitmentFro8, commitment, config, args, unsafeRes, res;
|
|
6814
|
-
return _regeneratorRuntime
|
|
6810
|
+
return _regeneratorRuntime.wrap(function _callee23$(_context23) {
|
|
6815
6811
|
while (1) switch (_context23.prev = _context23.next) {
|
|
6816
6812
|
case 0:
|
|
6817
6813
|
_extractCommitmentFro8 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro8.commitment, config = _extractCommitmentFro8.config;
|
|
@@ -6850,9 +6846,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6850
6846
|
key: "getProgramAccounts",
|
|
6851
6847
|
value: // eslint-disable-next-line no-dupe-class-members
|
|
6852
6848
|
function () {
|
|
6853
|
-
var _getProgramAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6849
|
+
var _getProgramAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(programId, configOrCommitment) {
|
|
6854
6850
|
var _extractCommitmentFro9, commitment, config, _ref5, encoding, configWithoutEncoding, args, unsafeRes, baseSchema, res;
|
|
6855
|
-
return _regeneratorRuntime
|
|
6851
|
+
return _regeneratorRuntime.wrap(function _callee24$(_context24) {
|
|
6856
6852
|
while (1) switch (_context24.prev = _context24.next) {
|
|
6857
6853
|
case 0:
|
|
6858
6854
|
_extractCommitmentFro9 = extractCommitmentFromConfig(configOrCommitment), commitment = _extractCommitmentFro9.commitment, config = _extractCommitmentFro9.config;
|
|
@@ -6890,9 +6886,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6890
6886
|
}, {
|
|
6891
6887
|
key: "getParsedProgramAccounts",
|
|
6892
6888
|
value: function () {
|
|
6893
|
-
var _getParsedProgramAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6889
|
+
var _getParsedProgramAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(programId, configOrCommitment) {
|
|
6894
6890
|
var _extractCommitmentFro10, commitment, config, args, unsafeRes, res;
|
|
6895
|
-
return _regeneratorRuntime
|
|
6891
|
+
return _regeneratorRuntime.wrap(function _callee25$(_context25) {
|
|
6896
6892
|
while (1) switch (_context25.prev = _context25.next) {
|
|
6897
6893
|
case 0:
|
|
6898
6894
|
_extractCommitmentFro10 = extractCommitmentFromConfig(configOrCommitment), commitment = _extractCommitmentFro10.commitment, config = _extractCommitmentFro10.config;
|
|
@@ -6924,9 +6920,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
6924
6920
|
key: "confirmTransaction",
|
|
6925
6921
|
value: // eslint-disable-next-line no-dupe-class-members
|
|
6926
6922
|
function () {
|
|
6927
|
-
var _confirmTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
6923
|
+
var _confirmTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(strategy, commitment) {
|
|
6928
6924
|
var rawSignature, _config$abortSignal, _config, decodedSignature;
|
|
6929
|
-
return _regeneratorRuntime
|
|
6925
|
+
return _regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
6930
6926
|
while (1) switch (_context26.prev = _context26.next) {
|
|
6931
6927
|
case 0:
|
|
6932
6928
|
if (!(typeof strategy == 'string')) {
|
|
@@ -7047,9 +7043,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7047
7043
|
});
|
|
7048
7044
|
}
|
|
7049
7045
|
});
|
|
7050
|
-
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7046
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {
|
|
7051
7047
|
var response, context, value;
|
|
7052
|
-
return _regeneratorRuntime
|
|
7048
|
+
return _regeneratorRuntime.wrap(function _callee27$(_context27) {
|
|
7053
7049
|
while (1) switch (_context27.prev = _context27.next) {
|
|
7054
7050
|
case 0:
|
|
7055
7051
|
_context27.next = 2;
|
|
@@ -7148,19 +7144,19 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7148
7144
|
}, {
|
|
7149
7145
|
key: "confirmTransactionUsingBlockHeightExceedanceStrategy",
|
|
7150
7146
|
value: function () {
|
|
7151
|
-
var _confirmTransactionUsingBlockHeightExceedanceStrategy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7147
|
+
var _confirmTransactionUsingBlockHeightExceedanceStrategy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(_ref8) {
|
|
7152
7148
|
var _this3 = this;
|
|
7153
7149
|
var commitment, _ref8$strategy, abortSignal, lastValidBlockHeight, signature, done, expiryPromise, _this$getTransactionC, abortConfirmation, confirmationPromise, cancellationPromise, result, outcome;
|
|
7154
|
-
return _regeneratorRuntime
|
|
7150
|
+
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
7155
7151
|
while (1) switch (_context30.prev = _context30.next) {
|
|
7156
7152
|
case 0:
|
|
7157
7153
|
commitment = _ref8.commitment, _ref8$strategy = _ref8.strategy, abortSignal = _ref8$strategy.abortSignal, lastValidBlockHeight = _ref8$strategy.lastValidBlockHeight, signature = _ref8$strategy.signature;
|
|
7158
7154
|
done = false;
|
|
7159
7155
|
expiryPromise = new Promise(function (resolve) {
|
|
7160
7156
|
var checkBlockHeight = /*#__PURE__*/function () {
|
|
7161
|
-
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7157
|
+
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28() {
|
|
7162
7158
|
var blockHeight;
|
|
7163
|
-
return _regeneratorRuntime
|
|
7159
|
+
return _regeneratorRuntime.wrap(function _callee28$(_context28) {
|
|
7164
7160
|
while (1) switch (_context28.prev = _context28.next) {
|
|
7165
7161
|
case 0:
|
|
7166
7162
|
_context28.prev = 0;
|
|
@@ -7183,9 +7179,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7183
7179
|
return _ref9.apply(this, arguments);
|
|
7184
7180
|
};
|
|
7185
7181
|
}();
|
|
7186
|
-
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7182
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29() {
|
|
7187
7183
|
var currentBlockHeight;
|
|
7188
|
-
return _regeneratorRuntime
|
|
7184
|
+
return _regeneratorRuntime.wrap(function _callee29$(_context29) {
|
|
7189
7185
|
while (1) switch (_context29.prev = _context29.next) {
|
|
7190
7186
|
case 0:
|
|
7191
7187
|
_context29.next = 2;
|
|
@@ -7274,10 +7270,10 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7274
7270
|
}, {
|
|
7275
7271
|
key: "confirmTransactionUsingDurableNonceStrategy",
|
|
7276
7272
|
value: function () {
|
|
7277
|
-
var _confirmTransactionUsingDurableNonceStrategy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7273
|
+
var _confirmTransactionUsingDurableNonceStrategy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(_ref11) {
|
|
7278
7274
|
var _this4 = this;
|
|
7279
7275
|
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;
|
|
7280
|
-
return _regeneratorRuntime
|
|
7276
|
+
return _regeneratorRuntime.wrap(function _callee33$(_context34) {
|
|
7281
7277
|
while (1) switch (_context34.prev = _context34.next) {
|
|
7282
7278
|
case 0:
|
|
7283
7279
|
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;
|
|
@@ -7286,9 +7282,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7286
7282
|
var currentNonceValue = nonceValue;
|
|
7287
7283
|
var lastCheckedSlot = null;
|
|
7288
7284
|
var getCurrentNonceValue = /*#__PURE__*/function () {
|
|
7289
|
-
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7285
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {
|
|
7290
7286
|
var _yield$_this4$getNonc, _context31, nonceAccount;
|
|
7291
|
-
return _regeneratorRuntime
|
|
7287
|
+
return _regeneratorRuntime.wrap(function _callee31$(_context32) {
|
|
7292
7288
|
while (1) switch (_context32.prev = _context32.next) {
|
|
7293
7289
|
case 0:
|
|
7294
7290
|
_context32.prev = 0;
|
|
@@ -7317,8 +7313,8 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7317
7313
|
return _ref12.apply(this, arguments);
|
|
7318
7314
|
};
|
|
7319
7315
|
}();
|
|
7320
|
-
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7321
|
-
return _regeneratorRuntime
|
|
7316
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {
|
|
7317
|
+
return _regeneratorRuntime.wrap(function _callee32$(_context33) {
|
|
7322
7318
|
while (1) switch (_context33.prev = _context33.next) {
|
|
7323
7319
|
case 0:
|
|
7324
7320
|
_context33.next = 2;
|
|
@@ -7475,10 +7471,10 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7475
7471
|
}, {
|
|
7476
7472
|
key: "confirmTransactionUsingLegacyTimeoutStrategy",
|
|
7477
7473
|
value: function () {
|
|
7478
|
-
var _confirmTransactionUsingLegacyTimeoutStrategy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7474
|
+
var _confirmTransactionUsingLegacyTimeoutStrategy = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(_ref14) {
|
|
7479
7475
|
var _this5 = this;
|
|
7480
7476
|
var commitment, signature, timeoutId, expiryPromise, _this$getTransactionC3, abortConfirmation, confirmationPromise, result, outcome;
|
|
7481
|
-
return _regeneratorRuntime
|
|
7477
|
+
return _regeneratorRuntime.wrap(function _callee34$(_context35) {
|
|
7482
7478
|
while (1) switch (_context35.prev = _context35.next) {
|
|
7483
7479
|
case 0:
|
|
7484
7480
|
commitment = _ref14.commitment, signature = _ref14.signature;
|
|
@@ -7544,9 +7540,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7544
7540
|
}, {
|
|
7545
7541
|
key: "getClusterNodes",
|
|
7546
7542
|
value: function () {
|
|
7547
|
-
var _getClusterNodes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7543
|
+
var _getClusterNodes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35() {
|
|
7548
7544
|
var unsafeRes, res;
|
|
7549
|
-
return _regeneratorRuntime
|
|
7545
|
+
return _regeneratorRuntime.wrap(function _callee35$(_context36) {
|
|
7550
7546
|
while (1) switch (_context36.prev = _context36.next) {
|
|
7551
7547
|
case 0:
|
|
7552
7548
|
_context36.next = 2;
|
|
@@ -7578,9 +7574,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7578
7574
|
}, {
|
|
7579
7575
|
key: "getVoteAccounts",
|
|
7580
7576
|
value: function () {
|
|
7581
|
-
var _getVoteAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7577
|
+
var _getVoteAccounts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(commitment) {
|
|
7582
7578
|
var args, unsafeRes, res;
|
|
7583
|
-
return _regeneratorRuntime
|
|
7579
|
+
return _regeneratorRuntime.wrap(function _callee36$(_context37) {
|
|
7584
7580
|
while (1) switch (_context37.prev = _context37.next) {
|
|
7585
7581
|
case 0:
|
|
7586
7582
|
args = this._buildArgs([], commitment);
|
|
@@ -7613,9 +7609,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7613
7609
|
}, {
|
|
7614
7610
|
key: "getSlot",
|
|
7615
7611
|
value: function () {
|
|
7616
|
-
var _getSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7612
|
+
var _getSlot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(commitmentOrConfig) {
|
|
7617
7613
|
var _extractCommitmentFro11, commitment, config, args, unsafeRes, res;
|
|
7618
|
-
return _regeneratorRuntime
|
|
7614
|
+
return _regeneratorRuntime.wrap(function _callee37$(_context38) {
|
|
7619
7615
|
while (1) switch (_context38.prev = _context38.next) {
|
|
7620
7616
|
case 0:
|
|
7621
7617
|
_extractCommitmentFro11 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro11.commitment, config = _extractCommitmentFro11.config;
|
|
@@ -7649,9 +7645,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7649
7645
|
}, {
|
|
7650
7646
|
key: "getSlotLeader",
|
|
7651
7647
|
value: function () {
|
|
7652
|
-
var _getSlotLeader = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7648
|
+
var _getSlotLeader = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(commitmentOrConfig) {
|
|
7653
7649
|
var _extractCommitmentFro12, commitment, config, args, unsafeRes, res;
|
|
7654
|
-
return _regeneratorRuntime
|
|
7650
|
+
return _regeneratorRuntime.wrap(function _callee38$(_context39) {
|
|
7655
7651
|
while (1) switch (_context39.prev = _context39.next) {
|
|
7656
7652
|
case 0:
|
|
7657
7653
|
_extractCommitmentFro12 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro12.commitment, config = _extractCommitmentFro12.config;
|
|
@@ -7688,9 +7684,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7688
7684
|
}, {
|
|
7689
7685
|
key: "getSlotLeaders",
|
|
7690
7686
|
value: function () {
|
|
7691
|
-
var _getSlotLeaders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7687
|
+
var _getSlotLeaders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(startSlot, limit) {
|
|
7692
7688
|
var args, unsafeRes, res;
|
|
7693
|
-
return _regeneratorRuntime
|
|
7689
|
+
return _regeneratorRuntime.wrap(function _callee39$(_context40) {
|
|
7694
7690
|
while (1) switch (_context40.prev = _context40.next) {
|
|
7695
7691
|
case 0:
|
|
7696
7692
|
args = [startSlot, limit];
|
|
@@ -7723,9 +7719,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7723
7719
|
}, {
|
|
7724
7720
|
key: "getSignatureStatus",
|
|
7725
7721
|
value: function () {
|
|
7726
|
-
var _getSignatureStatus = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7722
|
+
var _getSignatureStatus = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(signature, config) {
|
|
7727
7723
|
var _yield$this$getSignat, context, values, value;
|
|
7728
|
-
return _regeneratorRuntime
|
|
7724
|
+
return _regeneratorRuntime.wrap(function _callee40$(_context41) {
|
|
7729
7725
|
while (1) switch (_context41.prev = _context41.next) {
|
|
7730
7726
|
case 0:
|
|
7731
7727
|
_context41.next = 2;
|
|
@@ -7757,9 +7753,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7757
7753
|
}, {
|
|
7758
7754
|
key: "getSignatureStatuses",
|
|
7759
7755
|
value: function () {
|
|
7760
|
-
var _getSignatureStatuses = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7756
|
+
var _getSignatureStatuses = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(signatures, config) {
|
|
7761
7757
|
var params, unsafeRes, res;
|
|
7762
|
-
return _regeneratorRuntime
|
|
7758
|
+
return _regeneratorRuntime.wrap(function _callee41$(_context42) {
|
|
7763
7759
|
while (1) switch (_context42.prev = _context42.next) {
|
|
7764
7760
|
case 0:
|
|
7765
7761
|
params = [signatures];
|
|
@@ -7795,9 +7791,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7795
7791
|
}, {
|
|
7796
7792
|
key: "getTransactionCount",
|
|
7797
7793
|
value: function () {
|
|
7798
|
-
var _getTransactionCount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7794
|
+
var _getTransactionCount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(commitmentOrConfig) {
|
|
7799
7795
|
var _extractCommitmentFro13, commitment, config, args, unsafeRes, res;
|
|
7800
|
-
return _regeneratorRuntime
|
|
7796
|
+
return _regeneratorRuntime.wrap(function _callee42$(_context43) {
|
|
7801
7797
|
while (1) switch (_context43.prev = _context43.next) {
|
|
7802
7798
|
case 0:
|
|
7803
7799
|
_extractCommitmentFro13 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro13.commitment, config = _extractCommitmentFro13.config;
|
|
@@ -7833,9 +7829,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7833
7829
|
}, {
|
|
7834
7830
|
key: "getTotalSupply",
|
|
7835
7831
|
value: function () {
|
|
7836
|
-
var _getTotalSupply = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7832
|
+
var _getTotalSupply = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(commitment) {
|
|
7837
7833
|
var result;
|
|
7838
|
-
return _regeneratorRuntime
|
|
7834
|
+
return _regeneratorRuntime.wrap(function _callee43$(_context44) {
|
|
7839
7835
|
while (1) switch (_context44.prev = _context44.next) {
|
|
7840
7836
|
case 0:
|
|
7841
7837
|
_context44.next = 2;
|
|
@@ -7863,9 +7859,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7863
7859
|
}, {
|
|
7864
7860
|
key: "getInflationGovernor",
|
|
7865
7861
|
value: function () {
|
|
7866
|
-
var _getInflationGovernor = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7862
|
+
var _getInflationGovernor = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(commitment) {
|
|
7867
7863
|
var args, unsafeRes, res;
|
|
7868
|
-
return _regeneratorRuntime
|
|
7864
|
+
return _regeneratorRuntime.wrap(function _callee44$(_context45) {
|
|
7869
7865
|
while (1) switch (_context45.prev = _context45.next) {
|
|
7870
7866
|
case 0:
|
|
7871
7867
|
args = this._buildArgs([], commitment);
|
|
@@ -7898,9 +7894,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7898
7894
|
}, {
|
|
7899
7895
|
key: "getInflationReward",
|
|
7900
7896
|
value: function () {
|
|
7901
|
-
var _getInflationReward = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7897
|
+
var _getInflationReward = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(addresses, epoch, commitmentOrConfig) {
|
|
7902
7898
|
var _extractCommitmentFro14, commitment, config, args, unsafeRes, res;
|
|
7903
|
-
return _regeneratorRuntime
|
|
7899
|
+
return _regeneratorRuntime.wrap(function _callee45$(_context46) {
|
|
7904
7900
|
while (1) switch (_context46.prev = _context46.next) {
|
|
7905
7901
|
case 0:
|
|
7906
7902
|
_extractCommitmentFro14 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro14.commitment, config = _extractCommitmentFro14.config;
|
|
@@ -7938,9 +7934,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7938
7934
|
}, {
|
|
7939
7935
|
key: "getInflationRate",
|
|
7940
7936
|
value: function () {
|
|
7941
|
-
var _getInflationRate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7937
|
+
var _getInflationRate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46() {
|
|
7942
7938
|
var unsafeRes, res;
|
|
7943
|
-
return _regeneratorRuntime
|
|
7939
|
+
return _regeneratorRuntime.wrap(function _callee46$(_context47) {
|
|
7944
7940
|
while (1) switch (_context47.prev = _context47.next) {
|
|
7945
7941
|
case 0:
|
|
7946
7942
|
_context47.next = 2;
|
|
@@ -7972,9 +7968,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
7972
7968
|
}, {
|
|
7973
7969
|
key: "getEpochInfo",
|
|
7974
7970
|
value: function () {
|
|
7975
|
-
var _getEpochInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
7971
|
+
var _getEpochInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(commitmentOrConfig) {
|
|
7976
7972
|
var _extractCommitmentFro15, commitment, config, args, unsafeRes, res;
|
|
7977
|
-
return _regeneratorRuntime
|
|
7973
|
+
return _regeneratorRuntime.wrap(function _callee47$(_context48) {
|
|
7978
7974
|
while (1) switch (_context48.prev = _context48.next) {
|
|
7979
7975
|
case 0:
|
|
7980
7976
|
_extractCommitmentFro15 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro15.commitment, config = _extractCommitmentFro15.config;
|
|
@@ -8008,9 +8004,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8008
8004
|
}, {
|
|
8009
8005
|
key: "getEpochSchedule",
|
|
8010
8006
|
value: function () {
|
|
8011
|
-
var _getEpochSchedule = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8007
|
+
var _getEpochSchedule = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48() {
|
|
8012
8008
|
var unsafeRes, res, epochSchedule;
|
|
8013
|
-
return _regeneratorRuntime
|
|
8009
|
+
return _regeneratorRuntime.wrap(function _callee48$(_context49) {
|
|
8014
8010
|
while (1) switch (_context49.prev = _context49.next) {
|
|
8015
8011
|
case 0:
|
|
8016
8012
|
_context49.next = 2;
|
|
@@ -8044,9 +8040,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8044
8040
|
}, {
|
|
8045
8041
|
key: "getLeaderSchedule",
|
|
8046
8042
|
value: function () {
|
|
8047
|
-
var _getLeaderSchedule = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8043
|
+
var _getLeaderSchedule = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49() {
|
|
8048
8044
|
var unsafeRes, res;
|
|
8049
|
-
return _regeneratorRuntime
|
|
8045
|
+
return _regeneratorRuntime.wrap(function _callee49$(_context50) {
|
|
8050
8046
|
while (1) switch (_context50.prev = _context50.next) {
|
|
8051
8047
|
case 0:
|
|
8052
8048
|
_context50.next = 2;
|
|
@@ -8079,9 +8075,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8079
8075
|
}, {
|
|
8080
8076
|
key: "getMinimumBalanceForRentExemption",
|
|
8081
8077
|
value: function () {
|
|
8082
|
-
var _getMinimumBalanceForRentExemption = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8078
|
+
var _getMinimumBalanceForRentExemption = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(dataLength, commitment) {
|
|
8083
8079
|
var args, unsafeRes, res;
|
|
8084
|
-
return _regeneratorRuntime
|
|
8080
|
+
return _regeneratorRuntime.wrap(function _callee50$(_context51) {
|
|
8085
8081
|
while (1) switch (_context51.prev = _context51.next) {
|
|
8086
8082
|
case 0:
|
|
8087
8083
|
args = this._buildArgs([dataLength], commitment);
|
|
@@ -8118,9 +8114,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8118
8114
|
}, {
|
|
8119
8115
|
key: "getRecentBlockhashAndContext",
|
|
8120
8116
|
value: function () {
|
|
8121
|
-
var _getRecentBlockhashAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8117
|
+
var _getRecentBlockhashAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(commitment) {
|
|
8122
8118
|
var args, unsafeRes, res;
|
|
8123
|
-
return _regeneratorRuntime
|
|
8119
|
+
return _regeneratorRuntime.wrap(function _callee51$(_context52) {
|
|
8124
8120
|
while (1) switch (_context52.prev = _context52.next) {
|
|
8125
8121
|
case 0:
|
|
8126
8122
|
args = this._buildArgs([], commitment);
|
|
@@ -8154,9 +8150,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8154
8150
|
}, {
|
|
8155
8151
|
key: "getRecentPerformanceSamples",
|
|
8156
8152
|
value: function () {
|
|
8157
|
-
var _getRecentPerformanceSamples = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8153
|
+
var _getRecentPerformanceSamples = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(limit) {
|
|
8158
8154
|
var unsafeRes, res;
|
|
8159
|
-
return _regeneratorRuntime
|
|
8155
|
+
return _regeneratorRuntime.wrap(function _callee52$(_context53) {
|
|
8160
8156
|
while (1) switch (_context53.prev = _context53.next) {
|
|
8161
8157
|
case 0:
|
|
8162
8158
|
_context53.next = 2;
|
|
@@ -8190,9 +8186,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8190
8186
|
}, {
|
|
8191
8187
|
key: "getFeeCalculatorForBlockhash",
|
|
8192
8188
|
value: function () {
|
|
8193
|
-
var _getFeeCalculatorForBlockhash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8189
|
+
var _getFeeCalculatorForBlockhash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(blockhash, commitment) {
|
|
8194
8190
|
var args, unsafeRes, res, _res$result, context, value;
|
|
8195
|
-
return _regeneratorRuntime
|
|
8191
|
+
return _regeneratorRuntime.wrap(function _callee53$(_context54) {
|
|
8196
8192
|
while (1) switch (_context54.prev = _context54.next) {
|
|
8197
8193
|
case 0:
|
|
8198
8194
|
args = this._buildArgs([blockhash], commitment);
|
|
@@ -8229,9 +8225,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8229
8225
|
}, {
|
|
8230
8226
|
key: "getFeeForMessage",
|
|
8231
8227
|
value: function () {
|
|
8232
|
-
var _getFeeForMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8228
|
+
var _getFeeForMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(message, commitment) {
|
|
8233
8229
|
var wireMessage, args, unsafeRes, res;
|
|
8234
|
-
return _regeneratorRuntime
|
|
8230
|
+
return _regeneratorRuntime.wrap(function _callee54$(_context55) {
|
|
8235
8231
|
while (1) switch (_context55.prev = _context55.next) {
|
|
8236
8232
|
case 0:
|
|
8237
8233
|
wireMessage = toBuffer(message.serialize()).toString('base64');
|
|
@@ -8271,10 +8267,10 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8271
8267
|
}, {
|
|
8272
8268
|
key: "getRecentPrioritizationFees",
|
|
8273
8269
|
value: function () {
|
|
8274
|
-
var _getRecentPrioritizationFees = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8270
|
+
var _getRecentPrioritizationFees = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(config) {
|
|
8275
8271
|
var _config$lockedWritabl;
|
|
8276
8272
|
var accounts, args, unsafeRes, res;
|
|
8277
|
-
return _regeneratorRuntime
|
|
8273
|
+
return _regeneratorRuntime.wrap(function _callee55$(_context56) {
|
|
8278
8274
|
while (1) switch (_context56.prev = _context56.next) {
|
|
8279
8275
|
case 0:
|
|
8280
8276
|
accounts = config === null || config === void 0 ? void 0 : (_config$lockedWritabl = config.lockedWritableAccounts) === null || _config$lockedWritabl === void 0 ? void 0 : _config$lockedWritabl.map(function (key) {
|
|
@@ -8313,9 +8309,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8313
8309
|
}, {
|
|
8314
8310
|
key: "getRecentBlockhash",
|
|
8315
8311
|
value: function () {
|
|
8316
|
-
var _getRecentBlockhash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8312
|
+
var _getRecentBlockhash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(commitment) {
|
|
8317
8313
|
var res;
|
|
8318
|
-
return _regeneratorRuntime
|
|
8314
|
+
return _regeneratorRuntime.wrap(function _callee56$(_context57) {
|
|
8319
8315
|
while (1) switch (_context57.prev = _context57.next) {
|
|
8320
8316
|
case 0:
|
|
8321
8317
|
_context57.prev = 0;
|
|
@@ -8346,9 +8342,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8346
8342
|
}, {
|
|
8347
8343
|
key: "getLatestBlockhash",
|
|
8348
8344
|
value: function () {
|
|
8349
|
-
var _getLatestBlockhash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8345
|
+
var _getLatestBlockhash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(commitmentOrConfig) {
|
|
8350
8346
|
var res;
|
|
8351
|
-
return _regeneratorRuntime
|
|
8347
|
+
return _regeneratorRuntime.wrap(function _callee57$(_context58) {
|
|
8352
8348
|
while (1) switch (_context58.prev = _context58.next) {
|
|
8353
8349
|
case 0:
|
|
8354
8350
|
_context58.prev = 0;
|
|
@@ -8379,9 +8375,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8379
8375
|
}, {
|
|
8380
8376
|
key: "getLatestBlockhashAndContext",
|
|
8381
8377
|
value: function () {
|
|
8382
|
-
var _getLatestBlockhashAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8378
|
+
var _getLatestBlockhashAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(commitmentOrConfig) {
|
|
8383
8379
|
var _extractCommitmentFro16, commitment, config, args, unsafeRes, res;
|
|
8384
|
-
return _regeneratorRuntime
|
|
8380
|
+
return _regeneratorRuntime.wrap(function _callee58$(_context59) {
|
|
8385
8381
|
while (1) switch (_context59.prev = _context59.next) {
|
|
8386
8382
|
case 0:
|
|
8387
8383
|
_extractCommitmentFro16 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro16.commitment, config = _extractCommitmentFro16.config;
|
|
@@ -8415,9 +8411,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8415
8411
|
}, {
|
|
8416
8412
|
key: "isBlockhashValid",
|
|
8417
8413
|
value: function () {
|
|
8418
|
-
var _isBlockhashValid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8414
|
+
var _isBlockhashValid = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(blockhash, rawConfig) {
|
|
8419
8415
|
var _extractCommitmentFro17, commitment, config, args, unsafeRes, res;
|
|
8420
|
-
return _regeneratorRuntime
|
|
8416
|
+
return _regeneratorRuntime.wrap(function _callee59$(_context60) {
|
|
8421
8417
|
while (1) switch (_context60.prev = _context60.next) {
|
|
8422
8418
|
case 0:
|
|
8423
8419
|
_extractCommitmentFro17 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro17.commitment, config = _extractCommitmentFro17.config;
|
|
@@ -8451,9 +8447,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8451
8447
|
}, {
|
|
8452
8448
|
key: "getVersion",
|
|
8453
8449
|
value: function () {
|
|
8454
|
-
var _getVersion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8450
|
+
var _getVersion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60() {
|
|
8455
8451
|
var unsafeRes, res;
|
|
8456
|
-
return _regeneratorRuntime
|
|
8452
|
+
return _regeneratorRuntime.wrap(function _callee60$(_context61) {
|
|
8457
8453
|
while (1) switch (_context61.prev = _context61.next) {
|
|
8458
8454
|
case 0:
|
|
8459
8455
|
_context61.next = 2;
|
|
@@ -8485,9 +8481,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8485
8481
|
}, {
|
|
8486
8482
|
key: "getGenesisHash",
|
|
8487
8483
|
value: function () {
|
|
8488
|
-
var _getGenesisHash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8484
|
+
var _getGenesisHash = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61() {
|
|
8489
8485
|
var unsafeRes, res;
|
|
8490
|
-
return _regeneratorRuntime
|
|
8486
|
+
return _regeneratorRuntime.wrap(function _callee61$(_context62) {
|
|
8491
8487
|
while (1) switch (_context62.prev = _context62.next) {
|
|
8492
8488
|
case 0:
|
|
8493
8489
|
_context62.next = 2;
|
|
@@ -8527,9 +8523,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8527
8523
|
*/
|
|
8528
8524
|
// eslint-disable-next-line no-dupe-class-members
|
|
8529
8525
|
function () {
|
|
8530
|
-
var _getBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8526
|
+
var _getBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(slot, rawConfig) {
|
|
8531
8527
|
var _extractCommitmentFro18, commitment, config, args, unsafeRes, res, _res, _res2, result;
|
|
8532
|
-
return _regeneratorRuntime
|
|
8528
|
+
return _regeneratorRuntime.wrap(function _callee62$(_context63) {
|
|
8533
8529
|
while (1) switch (_context63.prev = _context63.next) {
|
|
8534
8530
|
case 0:
|
|
8535
8531
|
_extractCommitmentFro18 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro18.commitment, config = _extractCommitmentFro18.config;
|
|
@@ -8608,9 +8604,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8608
8604
|
key: "getParsedBlock",
|
|
8609
8605
|
value: // eslint-disable-next-line no-dupe-class-members
|
|
8610
8606
|
function () {
|
|
8611
|
-
var _getParsedBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8607
|
+
var _getParsedBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(slot, rawConfig) {
|
|
8612
8608
|
var _extractCommitmentFro19, commitment, config, args, unsafeRes, res, _res3, _res4;
|
|
8613
|
-
return _regeneratorRuntime
|
|
8609
|
+
return _regeneratorRuntime.wrap(function _callee63$(_context64) {
|
|
8614
8610
|
while (1) switch (_context64.prev = _context64.next) {
|
|
8615
8611
|
case 0:
|
|
8616
8612
|
_extractCommitmentFro19 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro19.commitment, config = _extractCommitmentFro19.config;
|
|
@@ -8675,9 +8671,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8675
8671
|
* Returns recent block production information from the current or previous epoch
|
|
8676
8672
|
*/
|
|
8677
8673
|
function () {
|
|
8678
|
-
var _getBlockProduction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8674
|
+
var _getBlockProduction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(configOrCommitment) {
|
|
8679
8675
|
var extra, commitment, c, rest, args, unsafeRes, res;
|
|
8680
|
-
return _regeneratorRuntime
|
|
8676
|
+
return _regeneratorRuntime.wrap(function _callee64$(_context65) {
|
|
8681
8677
|
while (1) switch (_context65.prev = _context65.next) {
|
|
8682
8678
|
case 0:
|
|
8683
8679
|
if (typeof configOrCommitment === 'string') {
|
|
@@ -8726,9 +8722,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8726
8722
|
*/
|
|
8727
8723
|
// eslint-disable-next-line no-dupe-class-members
|
|
8728
8724
|
function () {
|
|
8729
|
-
var _getTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8725
|
+
var _getTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(signature, rawConfig) {
|
|
8730
8726
|
var _extractCommitmentFro20, commitment, config, args, unsafeRes, res, result;
|
|
8731
|
-
return _regeneratorRuntime
|
|
8727
|
+
return _regeneratorRuntime.wrap(function _callee65$(_context66) {
|
|
8732
8728
|
while (1) switch (_context66.prev = _context66.next) {
|
|
8733
8729
|
case 0:
|
|
8734
8730
|
_extractCommitmentFro20 = extractCommitmentFromConfig(rawConfig), commitment = _extractCommitmentFro20.commitment, config = _extractCommitmentFro20.config;
|
|
@@ -8773,9 +8769,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8773
8769
|
}, {
|
|
8774
8770
|
key: "getParsedTransaction",
|
|
8775
8771
|
value: function () {
|
|
8776
|
-
var _getParsedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8772
|
+
var _getParsedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(signature, commitmentOrConfig) {
|
|
8777
8773
|
var _extractCommitmentFro21, commitment, config, args, unsafeRes, res;
|
|
8778
|
-
return _regeneratorRuntime
|
|
8774
|
+
return _regeneratorRuntime.wrap(function _callee66$(_context67) {
|
|
8779
8775
|
while (1) switch (_context67.prev = _context67.next) {
|
|
8780
8776
|
case 0:
|
|
8781
8777
|
_extractCommitmentFro21 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro21.commitment, config = _extractCommitmentFro21.config;
|
|
@@ -8809,10 +8805,10 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8809
8805
|
}, {
|
|
8810
8806
|
key: "getParsedTransactions",
|
|
8811
8807
|
value: function () {
|
|
8812
|
-
var _getParsedTransactions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8808
|
+
var _getParsedTransactions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(signatures, commitmentOrConfig) {
|
|
8813
8809
|
var _this6 = this;
|
|
8814
8810
|
var _extractCommitmentFro22, commitment, config, batch, unsafeRes, res;
|
|
8815
|
-
return _regeneratorRuntime
|
|
8811
|
+
return _regeneratorRuntime.wrap(function _callee67$(_context68) {
|
|
8816
8812
|
while (1) switch (_context68.prev = _context68.next) {
|
|
8817
8813
|
case 0:
|
|
8818
8814
|
_extractCommitmentFro22 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro22.commitment, config = _extractCommitmentFro22.config;
|
|
@@ -8864,10 +8860,10 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8864
8860
|
*/
|
|
8865
8861
|
// eslint-disable-next-line no-dupe-class-members
|
|
8866
8862
|
function () {
|
|
8867
|
-
var _getTransactions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8863
|
+
var _getTransactions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(signatures, commitmentOrConfig) {
|
|
8868
8864
|
var _this7 = this;
|
|
8869
8865
|
var _extractCommitmentFro23, commitment, config, batch, unsafeRes, res;
|
|
8870
|
-
return _regeneratorRuntime
|
|
8866
|
+
return _regeneratorRuntime.wrap(function _callee68$(_context69) {
|
|
8871
8867
|
while (1) switch (_context69.prev = _context69.next) {
|
|
8872
8868
|
case 0:
|
|
8873
8869
|
_extractCommitmentFro23 = extractCommitmentFromConfig(commitmentOrConfig), commitment = _extractCommitmentFro23.commitment, config = _extractCommitmentFro23.config;
|
|
@@ -8916,9 +8912,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8916
8912
|
}, {
|
|
8917
8913
|
key: "getConfirmedBlock",
|
|
8918
8914
|
value: function () {
|
|
8919
|
-
var _getConfirmedBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8915
|
+
var _getConfirmedBlock = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(slot, commitment) {
|
|
8920
8916
|
var args, unsafeRes, res, result, block;
|
|
8921
|
-
return _regeneratorRuntime
|
|
8917
|
+
return _regeneratorRuntime.wrap(function _callee69$(_context70) {
|
|
8922
8918
|
while (1) switch (_context70.prev = _context70.next) {
|
|
8923
8919
|
case 0:
|
|
8924
8920
|
args = this._buildArgsAtLeastConfirmed([slot], commitment);
|
|
@@ -8980,9 +8976,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
8980
8976
|
}, {
|
|
8981
8977
|
key: "getBlocks",
|
|
8982
8978
|
value: function () {
|
|
8983
|
-
var _getBlocks = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
8979
|
+
var _getBlocks = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(startSlot, endSlot, commitment) {
|
|
8984
8980
|
var args, unsafeRes, res;
|
|
8985
|
-
return _regeneratorRuntime
|
|
8981
|
+
return _regeneratorRuntime.wrap(function _callee70$(_context71) {
|
|
8986
8982
|
while (1) switch (_context71.prev = _context71.next) {
|
|
8987
8983
|
case 0:
|
|
8988
8984
|
args = this._buildArgsAtLeastConfirmed(endSlot !== undefined ? [startSlot, endSlot] : [startSlot], commitment);
|
|
@@ -9015,9 +9011,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9015
9011
|
}, {
|
|
9016
9012
|
key: "getBlockSignatures",
|
|
9017
9013
|
value: function () {
|
|
9018
|
-
var _getBlockSignatures = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9014
|
+
var _getBlockSignatures = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(slot, commitment) {
|
|
9019
9015
|
var args, unsafeRes, res, result;
|
|
9020
|
-
return _regeneratorRuntime
|
|
9016
|
+
return _regeneratorRuntime.wrap(function _callee71$(_context72) {
|
|
9021
9017
|
while (1) switch (_context72.prev = _context72.next) {
|
|
9022
9018
|
case 0:
|
|
9023
9019
|
args = this._buildArgsAtLeastConfirmed([slot], commitment, undefined, {
|
|
@@ -9062,9 +9058,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9062
9058
|
}, {
|
|
9063
9059
|
key: "getConfirmedBlockSignatures",
|
|
9064
9060
|
value: function () {
|
|
9065
|
-
var _getConfirmedBlockSignatures = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9061
|
+
var _getConfirmedBlockSignatures = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(slot, commitment) {
|
|
9066
9062
|
var args, unsafeRes, res, result;
|
|
9067
|
-
return _regeneratorRuntime
|
|
9063
|
+
return _regeneratorRuntime.wrap(function _callee72$(_context73) {
|
|
9068
9064
|
while (1) switch (_context73.prev = _context73.next) {
|
|
9069
9065
|
case 0:
|
|
9070
9066
|
args = this._buildArgsAtLeastConfirmed([slot], commitment, undefined, {
|
|
@@ -9109,9 +9105,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9109
9105
|
}, {
|
|
9110
9106
|
key: "getConfirmedTransaction",
|
|
9111
9107
|
value: function () {
|
|
9112
|
-
var _getConfirmedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9108
|
+
var _getConfirmedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(signature, commitment) {
|
|
9113
9109
|
var args, unsafeRes, res, result, message, signatures;
|
|
9114
|
-
return _regeneratorRuntime
|
|
9110
|
+
return _regeneratorRuntime.wrap(function _callee73$(_context74) {
|
|
9115
9111
|
while (1) switch (_context74.prev = _context74.next) {
|
|
9116
9112
|
case 0:
|
|
9117
9113
|
args = this._buildArgsAtLeastConfirmed([signature], commitment);
|
|
@@ -9157,9 +9153,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9157
9153
|
}, {
|
|
9158
9154
|
key: "getParsedConfirmedTransaction",
|
|
9159
9155
|
value: function () {
|
|
9160
|
-
var _getParsedConfirmedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9156
|
+
var _getParsedConfirmedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(signature, commitment) {
|
|
9161
9157
|
var args, unsafeRes, res;
|
|
9162
|
-
return _regeneratorRuntime
|
|
9158
|
+
return _regeneratorRuntime.wrap(function _callee74$(_context75) {
|
|
9163
9159
|
while (1) switch (_context75.prev = _context75.next) {
|
|
9164
9160
|
case 0:
|
|
9165
9161
|
args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
@@ -9194,10 +9190,10 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9194
9190
|
}, {
|
|
9195
9191
|
key: "getParsedConfirmedTransactions",
|
|
9196
9192
|
value: function () {
|
|
9197
|
-
var _getParsedConfirmedTransactions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9193
|
+
var _getParsedConfirmedTransactions = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(signatures, commitment) {
|
|
9198
9194
|
var _this8 = this;
|
|
9199
9195
|
var batch, unsafeRes, res;
|
|
9200
|
-
return _regeneratorRuntime
|
|
9196
|
+
return _regeneratorRuntime.wrap(function _callee75$(_context76) {
|
|
9201
9197
|
while (1) switch (_context76.prev = _context76.next) {
|
|
9202
9198
|
case 0:
|
|
9203
9199
|
batch = signatures.map(function (signature) {
|
|
@@ -9243,9 +9239,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9243
9239
|
}, {
|
|
9244
9240
|
key: "getConfirmedSignaturesForAddress",
|
|
9245
9241
|
value: function () {
|
|
9246
|
-
var _getConfirmedSignaturesForAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9242
|
+
var _getConfirmedSignaturesForAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(address, startSlot, endSlot) {
|
|
9247
9243
|
var options, firstAvailableBlock, block, highestConfirmedRoot, _block, confirmedSignatureInfo;
|
|
9248
|
-
return _regeneratorRuntime
|
|
9244
|
+
return _regeneratorRuntime.wrap(function _callee76$(_context77) {
|
|
9249
9245
|
while (1) switch (_context77.prev = _context77.next) {
|
|
9250
9246
|
case 0:
|
|
9251
9247
|
options = {};
|
|
@@ -9358,9 +9354,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9358
9354
|
}, {
|
|
9359
9355
|
key: "getConfirmedSignaturesForAddress2",
|
|
9360
9356
|
value: function () {
|
|
9361
|
-
var _getConfirmedSignaturesForAddress2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9357
|
+
var _getConfirmedSignaturesForAddress2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(address, options, commitment) {
|
|
9362
9358
|
var args, unsafeRes, res;
|
|
9363
|
-
return _regeneratorRuntime
|
|
9359
|
+
return _regeneratorRuntime.wrap(function _callee77$(_context78) {
|
|
9364
9360
|
while (1) switch (_context78.prev = _context78.next) {
|
|
9365
9361
|
case 0:
|
|
9366
9362
|
args = this._buildArgsAtLeastConfirmed([address.toBase58()], commitment, undefined, options);
|
|
@@ -9398,9 +9394,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9398
9394
|
}, {
|
|
9399
9395
|
key: "getSignaturesForAddress",
|
|
9400
9396
|
value: function () {
|
|
9401
|
-
var _getSignaturesForAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9397
|
+
var _getSignaturesForAddress = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78(address, options, commitment) {
|
|
9402
9398
|
var args, unsafeRes, res;
|
|
9403
|
-
return _regeneratorRuntime
|
|
9399
|
+
return _regeneratorRuntime.wrap(function _callee78$(_context79) {
|
|
9404
9400
|
while (1) switch (_context79.prev = _context79.next) {
|
|
9405
9401
|
case 0:
|
|
9406
9402
|
args = this._buildArgsAtLeastConfirmed([address.toBase58()], commitment, undefined, options);
|
|
@@ -9430,9 +9426,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9430
9426
|
}, {
|
|
9431
9427
|
key: "getAddressLookupTable",
|
|
9432
9428
|
value: function () {
|
|
9433
|
-
var _getAddressLookupTable = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9429
|
+
var _getAddressLookupTable = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(accountKey, config) {
|
|
9434
9430
|
var _yield$this$getAccoun, context, accountInfo, value;
|
|
9435
|
-
return _regeneratorRuntime
|
|
9431
|
+
return _regeneratorRuntime.wrap(function _callee79$(_context80) {
|
|
9436
9432
|
while (1) switch (_context80.prev = _context80.next) {
|
|
9437
9433
|
case 0:
|
|
9438
9434
|
_context80.next = 2;
|
|
@@ -9469,9 +9465,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9469
9465
|
}, {
|
|
9470
9466
|
key: "getNonceAndContext",
|
|
9471
9467
|
value: function () {
|
|
9472
|
-
var _getNonceAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9468
|
+
var _getNonceAndContext = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee80(nonceAccount, commitmentOrConfig) {
|
|
9473
9469
|
var _yield$this$getAccoun2, context, accountInfo, value;
|
|
9474
|
-
return _regeneratorRuntime
|
|
9470
|
+
return _regeneratorRuntime.wrap(function _callee80$(_context81) {
|
|
9475
9471
|
while (1) switch (_context81.prev = _context81.next) {
|
|
9476
9472
|
case 0:
|
|
9477
9473
|
_context81.next = 2;
|
|
@@ -9505,8 +9501,8 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9505
9501
|
}, {
|
|
9506
9502
|
key: "getNonce",
|
|
9507
9503
|
value: function () {
|
|
9508
|
-
var _getNonce = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9509
|
-
return _regeneratorRuntime
|
|
9504
|
+
var _getNonce = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee81(nonceAccount, commitmentOrConfig) {
|
|
9505
|
+
return _regeneratorRuntime.wrap(function _callee81$(_context82) {
|
|
9510
9506
|
while (1) switch (_context82.prev = _context82.next) {
|
|
9511
9507
|
case 0:
|
|
9512
9508
|
_context82.next = 2;
|
|
@@ -9545,9 +9541,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9545
9541
|
}, {
|
|
9546
9542
|
key: "requestAirdrop",
|
|
9547
9543
|
value: function () {
|
|
9548
|
-
var _requestAirdrop = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9544
|
+
var _requestAirdrop = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee82(to, lamports) {
|
|
9549
9545
|
var unsafeRes, res;
|
|
9550
|
-
return _regeneratorRuntime
|
|
9546
|
+
return _regeneratorRuntime.wrap(function _callee82$(_context83) {
|
|
9551
9547
|
while (1) switch (_context83.prev = _context83.next) {
|
|
9552
9548
|
case 0:
|
|
9553
9549
|
_context83.next = 2;
|
|
@@ -9579,9 +9575,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9579
9575
|
}, {
|
|
9580
9576
|
key: "_blockhashWithExpiryBlockHeight",
|
|
9581
9577
|
value: function () {
|
|
9582
|
-
var _blockhashWithExpiryBlockHeight2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9578
|
+
var _blockhashWithExpiryBlockHeight2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee83(disableCache) {
|
|
9583
9579
|
var timeSinceFetch, expired;
|
|
9584
|
-
return _regeneratorRuntime
|
|
9580
|
+
return _regeneratorRuntime.wrap(function _callee83$(_context84) {
|
|
9585
9581
|
while (1) switch (_context84.prev = _context84.next) {
|
|
9586
9582
|
case 0:
|
|
9587
9583
|
if (disableCache) {
|
|
@@ -9628,9 +9624,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9628
9624
|
}, {
|
|
9629
9625
|
key: "_pollNewBlockhash",
|
|
9630
9626
|
value: function () {
|
|
9631
|
-
var _pollNewBlockhash2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9627
|
+
var _pollNewBlockhash2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee84() {
|
|
9632
9628
|
var startTime, cachedLatestBlockhash, cachedBlockhash, i, latestBlockhash;
|
|
9633
|
-
return _regeneratorRuntime
|
|
9629
|
+
return _regeneratorRuntime.wrap(function _callee84$(_context85) {
|
|
9634
9630
|
while (1) switch (_context85.prev = _context85.next) {
|
|
9635
9631
|
case 0:
|
|
9636
9632
|
this._pollingBlockhash = true;
|
|
@@ -9689,9 +9685,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9689
9685
|
}, {
|
|
9690
9686
|
key: "getStakeMinimumDelegation",
|
|
9691
9687
|
value: function () {
|
|
9692
|
-
var _getStakeMinimumDelegation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9688
|
+
var _getStakeMinimumDelegation = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee85(config) {
|
|
9693
9689
|
var _extractCommitmentFro24, commitment, configArg, args, unsafeRes, res;
|
|
9694
|
-
return _regeneratorRuntime
|
|
9690
|
+
return _regeneratorRuntime.wrap(function _callee85$(_context86) {
|
|
9695
9691
|
while (1) switch (_context86.prev = _context86.next) {
|
|
9696
9692
|
case 0:
|
|
9697
9693
|
_extractCommitmentFro24 = extractCommitmentFromConfig(config), commitment = _extractCommitmentFro24.commitment, configArg = _extractCommitmentFro24.config;
|
|
@@ -9733,9 +9729,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9733
9729
|
*/
|
|
9734
9730
|
// eslint-disable-next-line no-dupe-class-members
|
|
9735
9731
|
function () {
|
|
9736
|
-
var _simulateTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9732
|
+
var _simulateTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee86(transactionOrMessage, configOrSigners, includeAccounts) {
|
|
9737
9733
|
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;
|
|
9738
|
-
return _regeneratorRuntime
|
|
9734
|
+
return _regeneratorRuntime.wrap(function _callee86$(_context87) {
|
|
9739
9735
|
while (1) switch (_context87.prev = _context87.next) {
|
|
9740
9736
|
case 0:
|
|
9741
9737
|
if (!('message' in transactionOrMessage)) {
|
|
@@ -9903,9 +9899,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9903
9899
|
*/
|
|
9904
9900
|
// eslint-disable-next-line no-dupe-class-members
|
|
9905
9901
|
function () {
|
|
9906
|
-
var _sendTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9902
|
+
var _sendTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee87(transaction, signersOrOptions, options) {
|
|
9907
9903
|
var _wireTransaction2, signers, disableCache, latestBlockhash, _signature2, wireTransaction;
|
|
9908
|
-
return _regeneratorRuntime
|
|
9904
|
+
return _regeneratorRuntime.wrap(function _callee87$(_context88) {
|
|
9909
9905
|
while (1) switch (_context88.prev = _context88.next) {
|
|
9910
9906
|
case 0:
|
|
9911
9907
|
if (!('version' in transaction)) {
|
|
@@ -9996,9 +9992,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
9996
9992
|
}, {
|
|
9997
9993
|
key: "sendRawTransaction",
|
|
9998
9994
|
value: function () {
|
|
9999
|
-
var _sendRawTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
9995
|
+
var _sendRawTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee88(rawTransaction, options) {
|
|
10000
9996
|
var encodedTransaction, result;
|
|
10001
|
-
return _regeneratorRuntime
|
|
9997
|
+
return _regeneratorRuntime.wrap(function _callee88$(_context89) {
|
|
10002
9998
|
while (1) switch (_context89.prev = _context89.next) {
|
|
10003
9999
|
case 0:
|
|
10004
10000
|
encodedTransaction = toBuffer(rawTransaction).toString('base64');
|
|
@@ -10025,9 +10021,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10025
10021
|
}, {
|
|
10026
10022
|
key: "sendEncodedTransaction",
|
|
10027
10023
|
value: function () {
|
|
10028
|
-
var _sendEncodedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
10024
|
+
var _sendEncodedTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee89(encodedTransaction, options) {
|
|
10029
10025
|
var config, skipPreflight, preflightCommitment, args, unsafeRes, res, _logs2;
|
|
10030
|
-
return _regeneratorRuntime
|
|
10026
|
+
return _regeneratorRuntime.wrap(function _callee89$(_context90) {
|
|
10031
10027
|
while (1) switch (_context90.prev = _context90.next) {
|
|
10032
10028
|
case 0:
|
|
10033
10029
|
config = {
|
|
@@ -10084,8 +10080,8 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10084
10080
|
this._rpcWebSocketConnected = true;
|
|
10085
10081
|
this._rpcWebSocketHeartbeat = setInterval(function () {
|
|
10086
10082
|
// Ping server every 5s to prevent idle timeouts
|
|
10087
|
-
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
10088
|
-
return _regeneratorRuntime
|
|
10083
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee90() {
|
|
10084
|
+
return _regeneratorRuntime.wrap(function _callee90$(_context91) {
|
|
10089
10085
|
while (1) switch (_context91.prev = _context91.next) {
|
|
10090
10086
|
case 0:
|
|
10091
10087
|
_context91.prev = 0;
|
|
@@ -10202,10 +10198,10 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10202
10198
|
}, {
|
|
10203
10199
|
key: "_updateSubscriptions",
|
|
10204
10200
|
value: function () {
|
|
10205
|
-
var _updateSubscriptions2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
10201
|
+
var _updateSubscriptions2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee94() {
|
|
10206
10202
|
var _this12 = this;
|
|
10207
10203
|
var activeWebSocketGeneration, isCurrentConnectionStillActive;
|
|
10208
|
-
return _regeneratorRuntime
|
|
10204
|
+
return _regeneratorRuntime.wrap(function _callee94$(_context95) {
|
|
10209
10205
|
while (1) switch (_context95.prev = _context95.next) {
|
|
10210
10206
|
case 0:
|
|
10211
10207
|
if (!(Object.keys(this._subscriptionsByHash).length === 0)) {
|
|
@@ -10251,9 +10247,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10251
10247
|
// so it's important that we look up the *current* version of
|
|
10252
10248
|
// each subscription, every time we process a hash.
|
|
10253
10249
|
Object.keys(this._subscriptionsByHash).map( /*#__PURE__*/function () {
|
|
10254
|
-
var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
10250
|
+
var _ref21 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee93(hash) {
|
|
10255
10251
|
var subscription;
|
|
10256
|
-
return _regeneratorRuntime
|
|
10252
|
+
return _regeneratorRuntime.wrap(function _callee93$(_context94) {
|
|
10257
10253
|
while (1) switch (_context94.prev = _context94.next) {
|
|
10258
10254
|
case 0:
|
|
10259
10255
|
subscription = _this12._subscriptionsByHash[hash];
|
|
@@ -10294,9 +10290,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10294
10290
|
return _context94.abrupt("return");
|
|
10295
10291
|
case 12:
|
|
10296
10292
|
_context94.next = 14;
|
|
10297
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
10293
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee91() {
|
|
10298
10294
|
var args, method, _serverSubscriptionId;
|
|
10299
|
-
return _regeneratorRuntime
|
|
10295
|
+
return _regeneratorRuntime.wrap(function _callee91$(_context92) {
|
|
10300
10296
|
while (1) switch (_context92.prev = _context92.next) {
|
|
10301
10297
|
case 0:
|
|
10302
10298
|
args = subscription.args, method = subscription.method;
|
|
@@ -10350,9 +10346,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10350
10346
|
break;
|
|
10351
10347
|
}
|
|
10352
10348
|
_context94.next = 18;
|
|
10353
|
-
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
10349
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee92() {
|
|
10354
10350
|
var serverSubscriptionId, unsubscribeMethod;
|
|
10355
|
-
return _regeneratorRuntime
|
|
10351
|
+
return _regeneratorRuntime.wrap(function _callee92$(_context93) {
|
|
10356
10352
|
while (1) switch (_context93.prev = _context93.next) {
|
|
10357
10353
|
case 0:
|
|
10358
10354
|
serverSubscriptionId = subscription.serverSubscriptionId, unsubscribeMethod = subscription.unsubscribeMethod;
|
|
@@ -10519,9 +10515,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10519
10515
|
existingSubscription.callbacks.add(subscriptionConfig.callback);
|
|
10520
10516
|
}
|
|
10521
10517
|
this._subscriptionHashByClientSubscriptionId[clientSubscriptionId] = hash;
|
|
10522
|
-
this._subscriptionDisposeFunctionsByClientSubscriptionId[clientSubscriptionId] = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
10518
|
+
this._subscriptionDisposeFunctionsByClientSubscriptionId[clientSubscriptionId] = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee95() {
|
|
10523
10519
|
var subscription;
|
|
10524
|
-
return _regeneratorRuntime
|
|
10520
|
+
return _regeneratorRuntime.wrap(function _callee95$(_context96) {
|
|
10525
10521
|
while (1) switch (_context96.prev = _context96.next) {
|
|
10526
10522
|
case 0:
|
|
10527
10523
|
delete _this13._subscriptionDisposeFunctionsByClientSubscriptionId[clientSubscriptionId];
|
|
@@ -10570,8 +10566,8 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10570
10566
|
}, {
|
|
10571
10567
|
key: "removeAccountChangeListener",
|
|
10572
10568
|
value: function () {
|
|
10573
|
-
var _removeAccountChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
10574
|
-
return _regeneratorRuntime
|
|
10569
|
+
var _removeAccountChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee96(clientSubscriptionId) {
|
|
10570
|
+
return _regeneratorRuntime.wrap(function _callee96$(_context97) {
|
|
10575
10571
|
while (1) switch (_context97.prev = _context97.next) {
|
|
10576
10572
|
case 0:
|
|
10577
10573
|
_context97.next = 2;
|
|
@@ -10636,8 +10632,8 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10636
10632
|
}, {
|
|
10637
10633
|
key: "removeProgramAccountChangeListener",
|
|
10638
10634
|
value: function () {
|
|
10639
|
-
var _removeProgramAccountChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
10640
|
-
return _regeneratorRuntime
|
|
10635
|
+
var _removeProgramAccountChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee97(clientSubscriptionId) {
|
|
10636
|
+
return _regeneratorRuntime.wrap(function _callee97$(_context98) {
|
|
10641
10637
|
while (1) switch (_context98.prev = _context98.next) {
|
|
10642
10638
|
case 0:
|
|
10643
10639
|
_context98.next = 2;
|
|
@@ -10679,8 +10675,8 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10679
10675
|
}, {
|
|
10680
10676
|
key: "removeOnLogsListener",
|
|
10681
10677
|
value: function () {
|
|
10682
|
-
var _removeOnLogsListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
10683
|
-
return _regeneratorRuntime
|
|
10678
|
+
var _removeOnLogsListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee98(clientSubscriptionId) {
|
|
10679
|
+
return _regeneratorRuntime.wrap(function _callee98$(_context99) {
|
|
10684
10680
|
while (1) switch (_context99.prev = _context99.next) {
|
|
10685
10681
|
case 0:
|
|
10686
10682
|
_context99.next = 2;
|
|
@@ -10744,8 +10740,8 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10744
10740
|
}, {
|
|
10745
10741
|
key: "removeSlotChangeListener",
|
|
10746
10742
|
value: function () {
|
|
10747
|
-
var _removeSlotChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
10748
|
-
return _regeneratorRuntime
|
|
10743
|
+
var _removeSlotChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee99(clientSubscriptionId) {
|
|
10744
|
+
return _regeneratorRuntime.wrap(function _callee99$(_context100) {
|
|
10749
10745
|
while (1) switch (_context100.prev = _context100.next) {
|
|
10750
10746
|
case 0:
|
|
10751
10747
|
_context100.next = 2;
|
|
@@ -10798,8 +10794,8 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10798
10794
|
}, {
|
|
10799
10795
|
key: "removeSlotUpdateListener",
|
|
10800
10796
|
value: function () {
|
|
10801
|
-
var _removeSlotUpdateListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
10802
|
-
return _regeneratorRuntime
|
|
10797
|
+
var _removeSlotUpdateListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee100(clientSubscriptionId) {
|
|
10798
|
+
return _regeneratorRuntime.wrap(function _callee100$(_context101) {
|
|
10803
10799
|
while (1) switch (_context101.prev = _context101.next) {
|
|
10804
10800
|
case 0:
|
|
10805
10801
|
_context101.next = 2;
|
|
@@ -10821,9 +10817,9 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10821
10817
|
}, {
|
|
10822
10818
|
key: "_unsubscribeClientSubscription",
|
|
10823
10819
|
value: function () {
|
|
10824
|
-
var _unsubscribeClientSubscription2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
10820
|
+
var _unsubscribeClientSubscription2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee101(clientSubscriptionId, subscriptionName) {
|
|
10825
10821
|
var dispose;
|
|
10826
|
-
return _regeneratorRuntime
|
|
10822
|
+
return _regeneratorRuntime.wrap(function _callee101$(_context102) {
|
|
10827
10823
|
while (1) switch (_context102.prev = _context102.next) {
|
|
10828
10824
|
case 0:
|
|
10829
10825
|
dispose = this._subscriptionDisposeFunctionsByClientSubscriptionId[clientSubscriptionId];
|
|
@@ -10996,8 +10992,8 @@ var Connection = /*#__PURE__*/function () {
|
|
|
10996
10992
|
}, {
|
|
10997
10993
|
key: "removeSignatureListener",
|
|
10998
10994
|
value: function () {
|
|
10999
|
-
var _removeSignatureListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
11000
|
-
return _regeneratorRuntime
|
|
10995
|
+
var _removeSignatureListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee102(clientSubscriptionId) {
|
|
10996
|
+
return _regeneratorRuntime.wrap(function _callee102$(_context103) {
|
|
11001
10997
|
while (1) switch (_context103.prev = _context103.next) {
|
|
11002
10998
|
case 0:
|
|
11003
10999
|
_context103.next = 2;
|
|
@@ -11049,8 +11045,8 @@ var Connection = /*#__PURE__*/function () {
|
|
|
11049
11045
|
}, {
|
|
11050
11046
|
key: "removeRootChangeListener",
|
|
11051
11047
|
value: function () {
|
|
11052
|
-
var _removeRootChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
11053
|
-
return _regeneratorRuntime
|
|
11048
|
+
var _removeRootChangeListener = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee103(clientSubscriptionId) {
|
|
11049
|
+
return _regeneratorRuntime.wrap(function _callee103$(_context104) {
|
|
11054
11050
|
while (1) switch (_context104.prev = _context104.next) {
|
|
11055
11051
|
case 0:
|
|
11056
11052
|
_context104.next = 2;
|
|
@@ -13411,7 +13407,6 @@ function clusterApiUrl(cluster, tls) {
|
|
|
13411
13407
|
return url;
|
|
13412
13408
|
}
|
|
13413
13409
|
|
|
13414
|
-
function _regeneratorRuntime() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
13415
13410
|
/**
|
|
13416
13411
|
* Send and confirm a raw transaction
|
|
13417
13412
|
*
|
|
@@ -13433,9 +13428,9 @@ function sendAndConfirmRawTransaction(_x, _x2, _x3, _x4) {
|
|
|
13433
13428
|
return _sendAndConfirmRawTransaction.apply(this, arguments);
|
|
13434
13429
|
}
|
|
13435
13430
|
function _sendAndConfirmRawTransaction() {
|
|
13436
|
-
_sendAndConfirmRawTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime
|
|
13431
|
+
_sendAndConfirmRawTransaction = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(connection, rawTransaction, confirmationStrategyOrConfirmOptions, maybeConfirmOptions) {
|
|
13437
13432
|
var confirmationStrategy, options, sendOptions, signature, commitment, confirmationPromise, status;
|
|
13438
|
-
return _regeneratorRuntime
|
|
13433
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
13439
13434
|
while (1) switch (_context.prev = _context.next) {
|
|
13440
13435
|
case 0:
|
|
13441
13436
|
if (confirmationStrategyOrConfirmOptions && Object.prototype.hasOwnProperty.call(confirmationStrategyOrConfirmOptions, 'lastValidBlockHeight')) {
|