@solana/web3.js 1.73.0 → 1.73.1
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 +15 -24
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +15 -24
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +15 -24
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.esm.js +15 -24
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +188 -211
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +2 -4
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +15 -24
- package/lib/index.native.js.map +1 -1
- package/package.json +2 -2
- package/src/connection.ts +2 -2
- package/src/transaction/legacy.ts +1 -1
package/lib/index.iife.js
CHANGED
|
@@ -4005,16 +4005,16 @@ var solanaWeb3 = (function (exports) {
|
|
|
4005
4005
|
var w = this.words[i];
|
|
4006
4006
|
var word = (((w << off) | carry) & 0xffffff).toString(16);
|
|
4007
4007
|
carry = (w >>> (24 - off)) & 0xffffff;
|
|
4008
|
-
if (carry !== 0 || i !== this.length - 1) {
|
|
4009
|
-
out = zeros[6 - word.length] + word + out;
|
|
4010
|
-
} else {
|
|
4011
|
-
out = word + out;
|
|
4012
|
-
}
|
|
4013
4008
|
off += 2;
|
|
4014
4009
|
if (off >= 26) {
|
|
4015
4010
|
off -= 26;
|
|
4016
4011
|
i--;
|
|
4017
4012
|
}
|
|
4013
|
+
if (carry !== 0 || i !== this.length - 1) {
|
|
4014
|
+
out = zeros[6 - word.length] + word + out;
|
|
4015
|
+
} else {
|
|
4016
|
+
out = word + out;
|
|
4017
|
+
}
|
|
4018
4018
|
}
|
|
4019
4019
|
if (carry !== 0) {
|
|
4020
4020
|
out = carry.toString(16) + out;
|
|
@@ -12706,7 +12706,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
12706
12706
|
|
|
12707
12707
|
if (transaction.recentBlockhash != null && transaction.lastValidBlockHeight != null) {
|
|
12708
12708
|
status = (await connection.confirmTransaction({
|
|
12709
|
-
abortSignal: options
|
|
12709
|
+
abortSignal: options?.abortSignal,
|
|
12710
12710
|
signature: signature,
|
|
12711
12711
|
blockhash: transaction.recentBlockhash,
|
|
12712
12712
|
lastValidBlockHeight: transaction.lastValidBlockHeight
|
|
@@ -12717,14 +12717,14 @@ var solanaWeb3 = (function (exports) {
|
|
|
12717
12717
|
} = transaction.nonceInfo;
|
|
12718
12718
|
const nonceAccountPubkey = nonceInstruction.keys[0].pubkey;
|
|
12719
12719
|
status = (await connection.confirmTransaction({
|
|
12720
|
-
abortSignal: options
|
|
12720
|
+
abortSignal: options?.abortSignal,
|
|
12721
12721
|
minContextSlot: transaction.minNonceContextSlot,
|
|
12722
12722
|
nonceAccountPubkey,
|
|
12723
12723
|
nonceValue: transaction.nonceInfo.nonce,
|
|
12724
12724
|
signature
|
|
12725
12725
|
}, options && options.commitment)).value;
|
|
12726
12726
|
} else {
|
|
12727
|
-
if (
|
|
12727
|
+
if (options?.abortSignal != null) {
|
|
12728
12728
|
console.warn('sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was ' + 'supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` ' + 'or a combination of `nonceInfo` and `minNonceContextSlot` are abortable.');
|
|
12729
12729
|
}
|
|
12730
12730
|
|
|
@@ -14547,28 +14547,92 @@ var solanaWeb3 = (function (exports) {
|
|
|
14547
14547
|
"default": obj
|
|
14548
14548
|
};
|
|
14549
14549
|
}
|
|
14550
|
-
|
|
14551
14550
|
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14552
14551
|
} (interopRequireDefault));
|
|
14553
14552
|
|
|
14554
14553
|
var createClass = {exports: {}};
|
|
14555
14554
|
|
|
14555
|
+
var toPropertyKey = {exports: {}};
|
|
14556
|
+
|
|
14557
|
+
var _typeof = {exports: {}};
|
|
14558
|
+
|
|
14559
|
+
var hasRequired_typeof;
|
|
14560
|
+
|
|
14561
|
+
function require_typeof () {
|
|
14562
|
+
if (hasRequired_typeof) return _typeof.exports;
|
|
14563
|
+
hasRequired_typeof = 1;
|
|
14564
|
+
(function (module) {
|
|
14565
|
+
function _typeof(obj) {
|
|
14566
|
+
"@babel/helpers - typeof";
|
|
14567
|
+
|
|
14568
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
14569
|
+
return typeof obj;
|
|
14570
|
+
} : function (obj) {
|
|
14571
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
14572
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
14573
|
+
}
|
|
14574
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14575
|
+
} (_typeof));
|
|
14576
|
+
return _typeof.exports;
|
|
14577
|
+
}
|
|
14578
|
+
|
|
14579
|
+
var toPrimitive = {exports: {}};
|
|
14580
|
+
|
|
14581
|
+
var hasRequiredToPrimitive;
|
|
14582
|
+
|
|
14583
|
+
function requireToPrimitive () {
|
|
14584
|
+
if (hasRequiredToPrimitive) return toPrimitive.exports;
|
|
14585
|
+
hasRequiredToPrimitive = 1;
|
|
14586
|
+
(function (module) {
|
|
14587
|
+
var _typeof = require_typeof()["default"];
|
|
14588
|
+
function _toPrimitive(input, hint) {
|
|
14589
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
14590
|
+
var prim = input[Symbol.toPrimitive];
|
|
14591
|
+
if (prim !== undefined) {
|
|
14592
|
+
var res = prim.call(input, hint || "default");
|
|
14593
|
+
if (_typeof(res) !== "object") return res;
|
|
14594
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
14595
|
+
}
|
|
14596
|
+
return (hint === "string" ? String : Number)(input);
|
|
14597
|
+
}
|
|
14598
|
+
module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14599
|
+
} (toPrimitive));
|
|
14600
|
+
return toPrimitive.exports;
|
|
14601
|
+
}
|
|
14602
|
+
|
|
14603
|
+
var hasRequiredToPropertyKey;
|
|
14604
|
+
|
|
14605
|
+
function requireToPropertyKey () {
|
|
14606
|
+
if (hasRequiredToPropertyKey) return toPropertyKey.exports;
|
|
14607
|
+
hasRequiredToPropertyKey = 1;
|
|
14608
|
+
(function (module) {
|
|
14609
|
+
var _typeof = require_typeof()["default"];
|
|
14610
|
+
var toPrimitive = requireToPrimitive();
|
|
14611
|
+
function _toPropertyKey(arg) {
|
|
14612
|
+
var key = toPrimitive(arg, "string");
|
|
14613
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
14614
|
+
}
|
|
14615
|
+
module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14616
|
+
} (toPropertyKey));
|
|
14617
|
+
return toPropertyKey.exports;
|
|
14618
|
+
}
|
|
14619
|
+
|
|
14556
14620
|
var hasRequiredCreateClass;
|
|
14557
14621
|
|
|
14558
14622
|
function requireCreateClass () {
|
|
14559
14623
|
if (hasRequiredCreateClass) return createClass.exports;
|
|
14560
14624
|
hasRequiredCreateClass = 1;
|
|
14561
14625
|
(function (module) {
|
|
14626
|
+
var toPropertyKey = requireToPropertyKey();
|
|
14562
14627
|
function _defineProperties(target, props) {
|
|
14563
14628
|
for (var i = 0; i < props.length; i++) {
|
|
14564
14629
|
var descriptor = props[i];
|
|
14565
14630
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
14566
14631
|
descriptor.configurable = true;
|
|
14567
14632
|
if ("value" in descriptor) descriptor.writable = true;
|
|
14568
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14633
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
|
14569
14634
|
}
|
|
14570
14635
|
}
|
|
14571
|
-
|
|
14572
14636
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
14573
14637
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
14574
14638
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
@@ -14577,7 +14641,6 @@ var solanaWeb3 = (function (exports) {
|
|
|
14577
14641
|
});
|
|
14578
14642
|
return Constructor;
|
|
14579
14643
|
}
|
|
14580
|
-
|
|
14581
14644
|
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14582
14645
|
} (createClass));
|
|
14583
14646
|
return createClass.exports;
|
|
@@ -14596,7 +14659,6 @@ var solanaWeb3 = (function (exports) {
|
|
|
14596
14659
|
throw new TypeError("Cannot call a class as a function");
|
|
14597
14660
|
}
|
|
14598
14661
|
}
|
|
14599
|
-
|
|
14600
14662
|
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14601
14663
|
} (classCallCheck));
|
|
14602
14664
|
return classCallCheck.exports;
|
|
@@ -14613,13 +14675,12 @@ var solanaWeb3 = (function (exports) {
|
|
|
14613
14675
|
hasRequiredSetPrototypeOf = 1;
|
|
14614
14676
|
(function (module) {
|
|
14615
14677
|
function _setPrototypeOf(o, p) {
|
|
14616
|
-
module.exports = _setPrototypeOf = Object.setPrototypeOf
|
|
14678
|
+
module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
14617
14679
|
o.__proto__ = p;
|
|
14618
14680
|
return o;
|
|
14619
14681
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14620
14682
|
return _setPrototypeOf(o, p);
|
|
14621
14683
|
}
|
|
14622
|
-
|
|
14623
14684
|
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14624
14685
|
} (setPrototypeOf));
|
|
14625
14686
|
return setPrototypeOf.exports;
|
|
@@ -14632,12 +14693,10 @@ var solanaWeb3 = (function (exports) {
|
|
|
14632
14693
|
hasRequiredInherits = 1;
|
|
14633
14694
|
(function (module) {
|
|
14634
14695
|
var setPrototypeOf = requireSetPrototypeOf();
|
|
14635
|
-
|
|
14636
14696
|
function _inherits(subClass, superClass) {
|
|
14637
14697
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
14638
14698
|
throw new TypeError("Super expression must either be null or a function");
|
|
14639
14699
|
}
|
|
14640
|
-
|
|
14641
14700
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
14642
14701
|
constructor: {
|
|
14643
14702
|
value: subClass,
|
|
@@ -14650,7 +14709,6 @@ var solanaWeb3 = (function (exports) {
|
|
|
14650
14709
|
});
|
|
14651
14710
|
if (superClass) setPrototypeOf(subClass, superClass);
|
|
14652
14711
|
}
|
|
14653
|
-
|
|
14654
14712
|
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14655
14713
|
} (inherits));
|
|
14656
14714
|
return inherits.exports;
|
|
@@ -14658,29 +14716,6 @@ var solanaWeb3 = (function (exports) {
|
|
|
14658
14716
|
|
|
14659
14717
|
var possibleConstructorReturn = {exports: {}};
|
|
14660
14718
|
|
|
14661
|
-
var _typeof = {exports: {}};
|
|
14662
|
-
|
|
14663
|
-
var hasRequired_typeof;
|
|
14664
|
-
|
|
14665
|
-
function require_typeof () {
|
|
14666
|
-
if (hasRequired_typeof) return _typeof.exports;
|
|
14667
|
-
hasRequired_typeof = 1;
|
|
14668
|
-
(function (module) {
|
|
14669
|
-
function _typeof(obj) {
|
|
14670
|
-
"@babel/helpers - typeof";
|
|
14671
|
-
|
|
14672
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
14673
|
-
return typeof obj;
|
|
14674
|
-
} : function (obj) {
|
|
14675
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
14676
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
14677
|
-
}
|
|
14678
|
-
|
|
14679
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14680
|
-
} (_typeof));
|
|
14681
|
-
return _typeof.exports;
|
|
14682
|
-
}
|
|
14683
|
-
|
|
14684
14719
|
var assertThisInitialized = {exports: {}};
|
|
14685
14720
|
|
|
14686
14721
|
var hasRequiredAssertThisInitialized;
|
|
@@ -14693,10 +14728,8 @@ var solanaWeb3 = (function (exports) {
|
|
|
14693
14728
|
if (self === void 0) {
|
|
14694
14729
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
14695
14730
|
}
|
|
14696
|
-
|
|
14697
14731
|
return self;
|
|
14698
14732
|
}
|
|
14699
|
-
|
|
14700
14733
|
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14701
14734
|
} (assertThisInitialized));
|
|
14702
14735
|
return assertThisInitialized.exports;
|
|
@@ -14709,19 +14742,15 @@ var solanaWeb3 = (function (exports) {
|
|
|
14709
14742
|
hasRequiredPossibleConstructorReturn = 1;
|
|
14710
14743
|
(function (module) {
|
|
14711
14744
|
var _typeof = require_typeof()["default"];
|
|
14712
|
-
|
|
14713
14745
|
var assertThisInitialized = requireAssertThisInitialized();
|
|
14714
|
-
|
|
14715
14746
|
function _possibleConstructorReturn(self, call) {
|
|
14716
14747
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
14717
14748
|
return call;
|
|
14718
14749
|
} else if (call !== void 0) {
|
|
14719
14750
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
14720
14751
|
}
|
|
14721
|
-
|
|
14722
14752
|
return assertThisInitialized(self);
|
|
14723
14753
|
}
|
|
14724
|
-
|
|
14725
14754
|
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14726
14755
|
} (possibleConstructorReturn));
|
|
14727
14756
|
return possibleConstructorReturn.exports;
|
|
@@ -14736,12 +14765,11 @@ var solanaWeb3 = (function (exports) {
|
|
|
14736
14765
|
hasRequiredGetPrototypeOf = 1;
|
|
14737
14766
|
(function (module) {
|
|
14738
14767
|
function _getPrototypeOf(o) {
|
|
14739
|
-
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
14768
|
+
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
14740
14769
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
14741
14770
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14742
14771
|
return _getPrototypeOf(o);
|
|
14743
14772
|
}
|
|
14744
|
-
|
|
14745
14773
|
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
14746
14774
|
} (getPrototypeOf));
|
|
14747
14775
|
return getPrototypeOf.exports;
|
|
@@ -15230,30 +15258,29 @@ var solanaWeb3 = (function (exports) {
|
|
|
15230
15258
|
|
|
15231
15259
|
var client = {};
|
|
15232
15260
|
|
|
15233
|
-
var regeneratorRuntime = {exports: {}};
|
|
15261
|
+
var regeneratorRuntime$1 = {exports: {}};
|
|
15234
15262
|
|
|
15235
15263
|
var hasRequiredRegeneratorRuntime;
|
|
15236
15264
|
|
|
15237
15265
|
function requireRegeneratorRuntime () {
|
|
15238
|
-
if (hasRequiredRegeneratorRuntime) return regeneratorRuntime.exports;
|
|
15266
|
+
if (hasRequiredRegeneratorRuntime) return regeneratorRuntime$1.exports;
|
|
15239
15267
|
hasRequiredRegeneratorRuntime = 1;
|
|
15240
15268
|
(function (module) {
|
|
15241
15269
|
var _typeof = require_typeof()["default"];
|
|
15242
|
-
|
|
15243
15270
|
function _regeneratorRuntime() {
|
|
15244
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
15245
|
-
|
|
15246
15271
|
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
15247
15272
|
return exports;
|
|
15248
15273
|
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15249
15274
|
var exports = {},
|
|
15250
|
-
|
|
15251
|
-
|
|
15252
|
-
|
|
15253
|
-
|
|
15254
|
-
|
|
15255
|
-
|
|
15256
|
-
|
|
15275
|
+
Op = Object.prototype,
|
|
15276
|
+
hasOwn = Op.hasOwnProperty,
|
|
15277
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
15278
|
+
obj[key] = desc.value;
|
|
15279
|
+
},
|
|
15280
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
15281
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
15282
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
15283
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
15257
15284
|
function define(obj, key, value) {
|
|
15258
15285
|
return Object.defineProperty(obj, key, {
|
|
15259
15286
|
value: value,
|
|
@@ -15262,7 +15289,6 @@ var solanaWeb3 = (function (exports) {
|
|
|
15262
15289
|
writable: !0
|
|
15263
15290
|
}), obj[key];
|
|
15264
15291
|
}
|
|
15265
|
-
|
|
15266
15292
|
try {
|
|
15267
15293
|
define({}, "");
|
|
15268
15294
|
} catch (err) {
|
|
@@ -15270,54 +15296,14 @@ var solanaWeb3 = (function (exports) {
|
|
|
15270
15296
|
return obj[key] = value;
|
|
15271
15297
|
};
|
|
15272
15298
|
}
|
|
15273
|
-
|
|
15274
15299
|
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
15275
15300
|
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
15276
|
-
|
|
15277
|
-
|
|
15278
|
-
return generator
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
15282
|
-
|
|
15283
|
-
if ("completed" === state) {
|
|
15284
|
-
if ("throw" === method) throw arg;
|
|
15285
|
-
return doneResult();
|
|
15286
|
-
}
|
|
15287
|
-
|
|
15288
|
-
for (context.method = method, context.arg = arg;;) {
|
|
15289
|
-
var delegate = context.delegate;
|
|
15290
|
-
|
|
15291
|
-
if (delegate) {
|
|
15292
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
15293
|
-
|
|
15294
|
-
if (delegateResult) {
|
|
15295
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
15296
|
-
return delegateResult;
|
|
15297
|
-
}
|
|
15298
|
-
}
|
|
15299
|
-
|
|
15300
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
15301
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
15302
|
-
context.dispatchException(context.arg);
|
|
15303
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
15304
|
-
state = "executing";
|
|
15305
|
-
var record = tryCatch(innerFn, self, context);
|
|
15306
|
-
|
|
15307
|
-
if ("normal" === record.type) {
|
|
15308
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
15309
|
-
return {
|
|
15310
|
-
value: record.arg,
|
|
15311
|
-
done: context.done
|
|
15312
|
-
};
|
|
15313
|
-
}
|
|
15314
|
-
|
|
15315
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
15316
|
-
}
|
|
15317
|
-
};
|
|
15318
|
-
}(innerFn, self, context), generator;
|
|
15301
|
+
generator = Object.create(protoGenerator.prototype),
|
|
15302
|
+
context = new Context(tryLocsList || []);
|
|
15303
|
+
return defineProperty(generator, "_invoke", {
|
|
15304
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
15305
|
+
}), generator;
|
|
15319
15306
|
}
|
|
15320
|
-
|
|
15321
15307
|
function tryCatch(fn, obj, arg) {
|
|
15322
15308
|
try {
|
|
15323
15309
|
return {
|
|
@@ -15331,25 +15317,19 @@ var solanaWeb3 = (function (exports) {
|
|
|
15331
15317
|
};
|
|
15332
15318
|
}
|
|
15333
15319
|
}
|
|
15334
|
-
|
|
15335
15320
|
exports.wrap = wrap;
|
|
15336
15321
|
var ContinueSentinel = {};
|
|
15337
|
-
|
|
15338
15322
|
function Generator() {}
|
|
15339
|
-
|
|
15340
15323
|
function GeneratorFunction() {}
|
|
15341
|
-
|
|
15342
15324
|
function GeneratorFunctionPrototype() {}
|
|
15343
|
-
|
|
15344
15325
|
var IteratorPrototype = {};
|
|
15345
15326
|
define(IteratorPrototype, iteratorSymbol, function () {
|
|
15346
15327
|
return this;
|
|
15347
15328
|
});
|
|
15348
15329
|
var getProto = Object.getPrototypeOf,
|
|
15349
|
-
|
|
15330
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
15350
15331
|
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
15351
15332
|
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
15352
|
-
|
|
15353
15333
|
function defineIteratorMethods(prototype) {
|
|
15354
15334
|
["next", "throw", "return"].forEach(function (method) {
|
|
15355
15335
|
define(prototype, method, function (arg) {
|
|
@@ -15357,14 +15337,12 @@ var solanaWeb3 = (function (exports) {
|
|
|
15357
15337
|
});
|
|
15358
15338
|
});
|
|
15359
15339
|
}
|
|
15360
|
-
|
|
15361
15340
|
function AsyncIterator(generator, PromiseImpl) {
|
|
15362
15341
|
function invoke(method, arg, resolve, reject) {
|
|
15363
15342
|
var record = tryCatch(generator[method], generator, arg);
|
|
15364
|
-
|
|
15365
15343
|
if ("throw" !== record.type) {
|
|
15366
15344
|
var result = record.arg,
|
|
15367
|
-
|
|
15345
|
+
value = result.value;
|
|
15368
15346
|
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
15369
15347
|
invoke("next", value, resolve, reject);
|
|
15370
15348
|
}, function (err) {
|
|
@@ -15375,92 +15353,109 @@ var solanaWeb3 = (function (exports) {
|
|
|
15375
15353
|
return invoke("throw", error, resolve, reject);
|
|
15376
15354
|
});
|
|
15377
15355
|
}
|
|
15378
|
-
|
|
15379
15356
|
reject(record.arg);
|
|
15380
15357
|
}
|
|
15381
|
-
|
|
15382
15358
|
var previousPromise;
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
|
|
15359
|
+
defineProperty(this, "_invoke", {
|
|
15360
|
+
value: function value(method, arg) {
|
|
15361
|
+
function callInvokeWithMethodAndArg() {
|
|
15362
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
15363
|
+
invoke(method, arg, resolve, reject);
|
|
15364
|
+
});
|
|
15365
|
+
}
|
|
15366
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
15367
|
+
}
|
|
15368
|
+
});
|
|
15369
|
+
}
|
|
15370
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
15371
|
+
var state = "suspendedStart";
|
|
15372
|
+
return function (method, arg) {
|
|
15373
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
15374
|
+
if ("completed" === state) {
|
|
15375
|
+
if ("throw" === method) throw arg;
|
|
15376
|
+
return doneResult();
|
|
15377
|
+
}
|
|
15378
|
+
for (context.method = method, context.arg = arg;;) {
|
|
15379
|
+
var delegate = context.delegate;
|
|
15380
|
+
if (delegate) {
|
|
15381
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
15382
|
+
if (delegateResult) {
|
|
15383
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
15384
|
+
return delegateResult;
|
|
15385
|
+
}
|
|
15386
|
+
}
|
|
15387
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
15388
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
15389
|
+
context.dispatchException(context.arg);
|
|
15390
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
15391
|
+
state = "executing";
|
|
15392
|
+
var record = tryCatch(innerFn, self, context);
|
|
15393
|
+
if ("normal" === record.type) {
|
|
15394
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
15395
|
+
return {
|
|
15396
|
+
value: record.arg,
|
|
15397
|
+
done: context.done
|
|
15398
|
+
};
|
|
15399
|
+
}
|
|
15400
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
15389
15401
|
}
|
|
15390
|
-
|
|
15391
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
15392
15402
|
};
|
|
15393
15403
|
}
|
|
15394
|
-
|
|
15395
15404
|
function maybeInvokeDelegate(delegate, context) {
|
|
15396
|
-
var
|
|
15397
|
-
|
|
15398
|
-
if (undefined === method)
|
|
15399
|
-
if (context.delegate = null, "throw" === context.method) {
|
|
15400
|
-
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
15401
|
-
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
15402
|
-
}
|
|
15403
|
-
|
|
15404
|
-
return ContinueSentinel;
|
|
15405
|
-
}
|
|
15406
|
-
|
|
15405
|
+
var methodName = context.method,
|
|
15406
|
+
method = delegate.iterator[methodName];
|
|
15407
|
+
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;
|
|
15407
15408
|
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
15408
15409
|
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
15409
15410
|
var info = record.arg;
|
|
15410
15411
|
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);
|
|
15411
15412
|
}
|
|
15412
|
-
|
|
15413
15413
|
function pushTryEntry(locs) {
|
|
15414
15414
|
var entry = {
|
|
15415
15415
|
tryLoc: locs[0]
|
|
15416
15416
|
};
|
|
15417
15417
|
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
15418
15418
|
}
|
|
15419
|
-
|
|
15420
15419
|
function resetTryEntry(entry) {
|
|
15421
15420
|
var record = entry.completion || {};
|
|
15422
15421
|
record.type = "normal", delete record.arg, entry.completion = record;
|
|
15423
15422
|
}
|
|
15424
|
-
|
|
15425
15423
|
function Context(tryLocsList) {
|
|
15426
15424
|
this.tryEntries = [{
|
|
15427
15425
|
tryLoc: "root"
|
|
15428
15426
|
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
15429
15427
|
}
|
|
15430
|
-
|
|
15431
15428
|
function values(iterable) {
|
|
15432
15429
|
if (iterable) {
|
|
15433
15430
|
var iteratorMethod = iterable[iteratorSymbol];
|
|
15434
15431
|
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
15435
15432
|
if ("function" == typeof iterable.next) return iterable;
|
|
15436
|
-
|
|
15437
15433
|
if (!isNaN(iterable.length)) {
|
|
15438
15434
|
var i = -1,
|
|
15439
|
-
|
|
15440
|
-
|
|
15441
|
-
|
|
15442
|
-
}
|
|
15443
|
-
|
|
15444
|
-
return next.value = undefined, next.done = !0, next;
|
|
15445
|
-
};
|
|
15446
|
-
|
|
15435
|
+
next = function next() {
|
|
15436
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
15437
|
+
return next.value = undefined, next.done = !0, next;
|
|
15438
|
+
};
|
|
15447
15439
|
return next.next = next;
|
|
15448
15440
|
}
|
|
15449
15441
|
}
|
|
15450
|
-
|
|
15451
15442
|
return {
|
|
15452
15443
|
next: doneResult
|
|
15453
15444
|
};
|
|
15454
15445
|
}
|
|
15455
|
-
|
|
15456
15446
|
function doneResult() {
|
|
15457
15447
|
return {
|
|
15458
15448
|
value: undefined,
|
|
15459
15449
|
done: !0
|
|
15460
15450
|
};
|
|
15461
15451
|
}
|
|
15462
|
-
|
|
15463
|
-
|
|
15452
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
15453
|
+
value: GeneratorFunctionPrototype,
|
|
15454
|
+
configurable: !0
|
|
15455
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
15456
|
+
value: GeneratorFunction,
|
|
15457
|
+
configurable: !0
|
|
15458
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
15464
15459
|
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
15465
15460
|
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
15466
15461
|
}, exports.mark = function (genFun) {
|
|
@@ -15481,27 +15476,21 @@ var solanaWeb3 = (function (exports) {
|
|
|
15481
15476
|
return this;
|
|
15482
15477
|
}), define(Gp, "toString", function () {
|
|
15483
15478
|
return "[object Generator]";
|
|
15484
|
-
}), exports.keys = function (
|
|
15485
|
-
var
|
|
15486
|
-
|
|
15487
|
-
for (var key in object)
|
|
15488
|
-
keys.push(key);
|
|
15489
|
-
}
|
|
15490
|
-
|
|
15479
|
+
}), exports.keys = function (val) {
|
|
15480
|
+
var object = Object(val),
|
|
15481
|
+
keys = [];
|
|
15482
|
+
for (var key in object) keys.push(key);
|
|
15491
15483
|
return keys.reverse(), function next() {
|
|
15492
15484
|
for (; keys.length;) {
|
|
15493
15485
|
var key = keys.pop();
|
|
15494
15486
|
if (key in object) return next.value = key, next.done = !1, next;
|
|
15495
15487
|
}
|
|
15496
|
-
|
|
15497
15488
|
return next.done = !0, next;
|
|
15498
15489
|
};
|
|
15499
15490
|
}, exports.values = values, Context.prototype = {
|
|
15500
15491
|
constructor: Context,
|
|
15501
15492
|
reset: function reset(skipTempReset) {
|
|
15502
|
-
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)
|
|
15503
|
-
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
15504
|
-
}
|
|
15493
|
+
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);
|
|
15505
15494
|
},
|
|
15506
15495
|
stop: function stop() {
|
|
15507
15496
|
this.done = !0;
|
|
@@ -15512,20 +15501,16 @@ var solanaWeb3 = (function (exports) {
|
|
|
15512
15501
|
dispatchException: function dispatchException(exception) {
|
|
15513
15502
|
if (this.done) throw exception;
|
|
15514
15503
|
var context = this;
|
|
15515
|
-
|
|
15516
15504
|
function handle(loc, caught) {
|
|
15517
15505
|
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
15518
15506
|
}
|
|
15519
|
-
|
|
15520
15507
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
15521
15508
|
var entry = this.tryEntries[i],
|
|
15522
|
-
|
|
15509
|
+
record = entry.completion;
|
|
15523
15510
|
if ("root" === entry.tryLoc) return handle("end");
|
|
15524
|
-
|
|
15525
15511
|
if (entry.tryLoc <= this.prev) {
|
|
15526
15512
|
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
15527
|
-
|
|
15528
|
-
|
|
15513
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
15529
15514
|
if (hasCatch && hasFinally) {
|
|
15530
15515
|
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
15531
15516
|
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
@@ -15541,13 +15526,11 @@ var solanaWeb3 = (function (exports) {
|
|
|
15541
15526
|
abrupt: function abrupt(type, arg) {
|
|
15542
15527
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
15543
15528
|
var entry = this.tryEntries[i];
|
|
15544
|
-
|
|
15545
15529
|
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
15546
15530
|
var finallyEntry = entry;
|
|
15547
15531
|
break;
|
|
15548
15532
|
}
|
|
15549
15533
|
}
|
|
15550
|
-
|
|
15551
15534
|
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
15552
15535
|
var record = finallyEntry ? finallyEntry.completion : {};
|
|
15553
15536
|
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
@@ -15565,19 +15548,15 @@ var solanaWeb3 = (function (exports) {
|
|
|
15565
15548
|
"catch": function _catch(tryLoc) {
|
|
15566
15549
|
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
15567
15550
|
var entry = this.tryEntries[i];
|
|
15568
|
-
|
|
15569
15551
|
if (entry.tryLoc === tryLoc) {
|
|
15570
15552
|
var record = entry.completion;
|
|
15571
|
-
|
|
15572
15553
|
if ("throw" === record.type) {
|
|
15573
15554
|
var thrown = record.arg;
|
|
15574
15555
|
resetTryEntry(entry);
|
|
15575
15556
|
}
|
|
15576
|
-
|
|
15577
15557
|
return thrown;
|
|
15578
15558
|
}
|
|
15579
15559
|
}
|
|
15580
|
-
|
|
15581
15560
|
throw new Error("illegal catch attempt");
|
|
15582
15561
|
},
|
|
15583
15562
|
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
@@ -15589,10 +15568,9 @@ var solanaWeb3 = (function (exports) {
|
|
|
15589
15568
|
}
|
|
15590
15569
|
}, exports;
|
|
15591
15570
|
}
|
|
15592
|
-
|
|
15593
15571
|
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15594
|
-
} (regeneratorRuntime));
|
|
15595
|
-
return regeneratorRuntime.exports;
|
|
15572
|
+
} (regeneratorRuntime$1));
|
|
15573
|
+
return regeneratorRuntime$1.exports;
|
|
15596
15574
|
}
|
|
15597
15575
|
|
|
15598
15576
|
var regenerator;
|
|
@@ -15601,7 +15579,21 @@ var solanaWeb3 = (function (exports) {
|
|
|
15601
15579
|
function requireRegenerator () {
|
|
15602
15580
|
if (hasRequiredRegenerator) return regenerator;
|
|
15603
15581
|
hasRequiredRegenerator = 1;
|
|
15604
|
-
|
|
15582
|
+
// TODO(Babel 8): Remove this file.
|
|
15583
|
+
|
|
15584
|
+
var runtime = requireRegeneratorRuntime()();
|
|
15585
|
+
regenerator = runtime;
|
|
15586
|
+
|
|
15587
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
15588
|
+
try {
|
|
15589
|
+
regeneratorRuntime = runtime;
|
|
15590
|
+
} catch (accidentalStrictMode) {
|
|
15591
|
+
if (typeof globalThis === "object") {
|
|
15592
|
+
globalThis.regeneratorRuntime = runtime;
|
|
15593
|
+
} else {
|
|
15594
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
15595
|
+
}
|
|
15596
|
+
}
|
|
15605
15597
|
return regenerator;
|
|
15606
15598
|
}
|
|
15607
15599
|
|
|
@@ -15621,34 +15613,28 @@ var solanaWeb3 = (function (exports) {
|
|
|
15621
15613
|
reject(error);
|
|
15622
15614
|
return;
|
|
15623
15615
|
}
|
|
15624
|
-
|
|
15625
15616
|
if (info.done) {
|
|
15626
15617
|
resolve(value);
|
|
15627
15618
|
} else {
|
|
15628
15619
|
Promise.resolve(value).then(_next, _throw);
|
|
15629
15620
|
}
|
|
15630
15621
|
}
|
|
15631
|
-
|
|
15632
15622
|
function _asyncToGenerator(fn) {
|
|
15633
15623
|
return function () {
|
|
15634
15624
|
var self = this,
|
|
15635
|
-
|
|
15625
|
+
args = arguments;
|
|
15636
15626
|
return new Promise(function (resolve, reject) {
|
|
15637
15627
|
var gen = fn.apply(self, args);
|
|
15638
|
-
|
|
15639
15628
|
function _next(value) {
|
|
15640
15629
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
15641
15630
|
}
|
|
15642
|
-
|
|
15643
15631
|
function _throw(err) {
|
|
15644
15632
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
15645
15633
|
}
|
|
15646
|
-
|
|
15647
15634
|
_next(undefined);
|
|
15648
15635
|
});
|
|
15649
15636
|
};
|
|
15650
15637
|
}
|
|
15651
|
-
|
|
15652
15638
|
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
15653
15639
|
} (asyncToGenerator));
|
|
15654
15640
|
return asyncToGenerator.exports;
|
|
@@ -17279,7 +17265,6 @@ var solanaWeb3 = (function (exports) {
|
|
|
17279
17265
|
return `${protocol}//${hostish}${websocketPort}${rest}`;
|
|
17280
17266
|
}
|
|
17281
17267
|
|
|
17282
|
-
var _process$env$npm_pack;
|
|
17283
17268
|
const PublicKeyFromString = coerce(instance(PublicKey), string(), value => new PublicKey(value));
|
|
17284
17269
|
const RawAccountDataResult = tuple([string(), literal('base64')]);
|
|
17285
17270
|
const BufferFromRawAccountData = coerce(instance(buffer.Buffer), RawAccountDataResult, value => buffer.Buffer.from(value[0], 'base64'));
|
|
@@ -18344,7 +18329,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
18344
18329
|
|
|
18345
18330
|
/** @internal */
|
|
18346
18331
|
const COMMON_HTTP_HEADERS = {
|
|
18347
|
-
'solana-client': `js/${
|
|
18332
|
+
'solana-client': `js/${"0.0.0-development" }`
|
|
18348
18333
|
};
|
|
18349
18334
|
/**
|
|
18350
18335
|
* A connection to a fullnode JSON RPC endpoint
|
|
@@ -18890,7 +18875,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
18890
18875
|
const args = this._buildArgs([publicKey.toBase58()], commitment, undefined
|
|
18891
18876
|
/* encoding */
|
|
18892
18877
|
, { ...config,
|
|
18893
|
-
epoch: epoch != null ? epoch : config
|
|
18878
|
+
epoch: epoch != null ? epoch : config?.epoch
|
|
18894
18879
|
});
|
|
18895
18880
|
|
|
18896
18881
|
const unsafeRes = await this._rpcRequest('getStakeActivation', args);
|
|
@@ -18962,11 +18947,9 @@ var solanaWeb3 = (function (exports) {
|
|
|
18962
18947
|
if (typeof strategy == 'string') {
|
|
18963
18948
|
rawSignature = strategy;
|
|
18964
18949
|
} else {
|
|
18965
|
-
var _config$abortSignal;
|
|
18966
|
-
|
|
18967
18950
|
const config = strategy;
|
|
18968
18951
|
|
|
18969
|
-
if (
|
|
18952
|
+
if (config.abortSignal?.aborted) {
|
|
18970
18953
|
return Promise.reject(config.abortSignal.reason);
|
|
18971
18954
|
}
|
|
18972
18955
|
|
|
@@ -19068,7 +19051,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
19068
19051
|
return;
|
|
19069
19052
|
}
|
|
19070
19053
|
|
|
19071
|
-
if (value
|
|
19054
|
+
if (value?.err) {
|
|
19072
19055
|
reject(value.err);
|
|
19073
19056
|
} else {
|
|
19074
19057
|
switch (commitment) {
|
|
@@ -19218,7 +19201,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
19218
19201
|
minContextSlot
|
|
19219
19202
|
});
|
|
19220
19203
|
lastCheckedSlot = context.slot;
|
|
19221
|
-
return nonceAccount
|
|
19204
|
+
return nonceAccount?.nonce;
|
|
19222
19205
|
} catch (e) {
|
|
19223
19206
|
// If for whatever reason we can't reach/read the nonce
|
|
19224
19207
|
// account, just keep using the last-known value.
|
|
@@ -19263,22 +19246,18 @@ var solanaWeb3 = (function (exports) {
|
|
|
19263
19246
|
if (outcome.__type === exports.TransactionStatus.PROCESSED) {
|
|
19264
19247
|
result = outcome.response;
|
|
19265
19248
|
} else {
|
|
19266
|
-
var _signatureStatus;
|
|
19267
|
-
|
|
19268
19249
|
// Double check that the transaction is indeed unconfirmed.
|
|
19269
19250
|
let signatureStatus;
|
|
19270
19251
|
|
|
19271
19252
|
while (true // eslint-disable-line no-constant-condition
|
|
19272
19253
|
) {
|
|
19273
|
-
var _outcome$slotInWhichN;
|
|
19274
|
-
|
|
19275
19254
|
const status = await this.getSignatureStatus(signature);
|
|
19276
19255
|
|
|
19277
19256
|
if (status == null) {
|
|
19278
19257
|
break;
|
|
19279
19258
|
}
|
|
19280
19259
|
|
|
19281
|
-
if (status.context.slot < (
|
|
19260
|
+
if (status.context.slot < (outcome.slotInWhichNonceDidAdvance ?? minContextSlot)) {
|
|
19282
19261
|
await sleep(400);
|
|
19283
19262
|
continue;
|
|
19284
19263
|
}
|
|
@@ -19287,7 +19266,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
19287
19266
|
break;
|
|
19288
19267
|
}
|
|
19289
19268
|
|
|
19290
|
-
if (
|
|
19269
|
+
if (signatureStatus?.value) {
|
|
19291
19270
|
const commitmentForStatus = commitment || 'finalized';
|
|
19292
19271
|
const {
|
|
19293
19272
|
confirmationStatus
|
|
@@ -19600,7 +19579,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
19600
19579
|
const args = this._buildArgs([addresses.map(pubkey => pubkey.toBase58())], commitment, undefined
|
|
19601
19580
|
/* encoding */
|
|
19602
19581
|
, { ...config,
|
|
19603
|
-
epoch: epoch != null ? epoch : config
|
|
19582
|
+
epoch: epoch != null ? epoch : config?.epoch
|
|
19604
19583
|
});
|
|
19605
19584
|
|
|
19606
19585
|
const unsafeRes = await this._rpcRequest('getInflationReward', args);
|
|
@@ -19897,7 +19876,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
19897
19876
|
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
19898
19877
|
|
|
19899
19878
|
try {
|
|
19900
|
-
switch (config
|
|
19879
|
+
switch (config?.transactionDetails) {
|
|
19901
19880
|
case 'accounts':
|
|
19902
19881
|
{
|
|
19903
19882
|
const res = create(unsafeRes, GetAccountsModeBlockRpcResult);
|
|
@@ -19967,7 +19946,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
19967
19946
|
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
19968
19947
|
|
|
19969
19948
|
try {
|
|
19970
|
-
switch (config
|
|
19949
|
+
switch (config?.transactionDetails) {
|
|
19971
19950
|
case 'accounts':
|
|
19972
19951
|
{
|
|
19973
19952
|
const res = create(unsafeRes, GetParsedAccountsModeBlockRpcResult);
|
|
@@ -20982,9 +20961,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
20982
20961
|
|
|
20983
20962
|
|
|
20984
20963
|
_setSubscription(hash, nextSubscription) {
|
|
20985
|
-
|
|
20986
|
-
|
|
20987
|
-
const prevState = (_this$_subscriptionsB = this._subscriptionsByHash[hash]) === null || _this$_subscriptionsB === void 0 ? void 0 : _this$_subscriptionsB.state;
|
|
20964
|
+
const prevState = this._subscriptionsByHash[hash]?.state;
|
|
20988
20965
|
this._subscriptionsByHash[hash] = nextSubscription;
|
|
20989
20966
|
|
|
20990
20967
|
if (prevState !== nextSubscription.state) {
|
|
@@ -21742,7 +21719,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
21742
21719
|
*/
|
|
21743
21720
|
constructor(keypair) {
|
|
21744
21721
|
this._keypair = void 0;
|
|
21745
|
-
this._keypair = keypair
|
|
21722
|
+
this._keypair = keypair ?? generateKeypair();
|
|
21746
21723
|
}
|
|
21747
21724
|
/**
|
|
21748
21725
|
* Generate a new random keypair
|