@sentio/sdk 2.57.12-rc.c → 2.57.12-rc.e
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/aptos/ext/token.d.ts.map +1 -1
- package/lib/aptos/ext/token.js +6 -4
- package/lib/aptos/ext/token.js.map +1 -1
- package/lib/{chunk-7S6WQ4RL.js → chunk-2S4VBXER.js} +3 -3
- package/lib/{chunk-4OCWUYSJ.js → chunk-3NTVNR24.js} +2 -2
- package/lib/{chunk-LPSNAS2G.js → chunk-BRHYXWEW.js} +3 -3
- package/lib/{chunk-GE6BRIGS.js → chunk-E4OYLQTE.js} +5 -5
- package/lib/{chunk-2F2KNF4Z.js → chunk-FDFFHCFA.js} +3891 -16117
- package/lib/chunk-FDFFHCFA.js.map +1 -0
- package/lib/{chunk-OJG2VJ5T.js → chunk-FLCIAA4G.js} +5 -5
- package/lib/{chunk-OJG2VJ5T.js.map → chunk-FLCIAA4G.js.map} +1 -1
- package/lib/{chunk-AZFMPZRN.js → chunk-FTNDYH4A.js} +418 -200
- package/lib/chunk-FTNDYH4A.js.map +1 -0
- package/lib/{chunk-UIBPOKNT.js → chunk-FV4WLDIZ.js} +16 -16
- package/lib/chunk-FV4WLDIZ.js.map +1 -0
- package/lib/{chunk-E2DS6WZF.js → chunk-H6T626NV.js} +10 -10
- package/lib/{chunk-E2DS6WZF.js.map → chunk-H6T626NV.js.map} +1 -1
- package/lib/{chunk-73SHERGU.js → chunk-M2LXR3BO.js} +1459 -968
- package/lib/chunk-M2LXR3BO.js.map +1 -0
- package/lib/{chunk-J3I3VNTV.js → chunk-MERD27M6.js} +3 -3
- package/lib/{chunk-J3QOJ2RV.js → chunk-NMHIV5TJ.js} +4 -4
- package/lib/{chunk-DUYQHA3W.js → chunk-ONH4BP25.js} +3006 -2892
- package/lib/chunk-ONH4BP25.js.map +1 -0
- package/lib/{chunk-BZCXYTDE.js → chunk-QSUUYUJL.js} +3 -3
- package/lib/{chunk-4HPFNKDX.js → chunk-QT2RHOVE.js} +146 -76
- package/lib/chunk-QT2RHOVE.js.map +1 -0
- package/lib/{chunk-S6MJ3KIL.js → chunk-SIVNMNYW.js} +381 -266
- package/lib/chunk-SIVNMNYW.js.map +1 -0
- package/lib/{chunk-N36N7RXJ.js → chunk-TOXC2A6K.js} +3 -3
- package/lib/{chunk-ONBEMKI5.js → chunk-U5FYYK4Y.js} +2 -2
- package/lib/{chunk-PVX2LIM5.js → chunk-W43SMJ3Y.js} +4 -4
- package/lib/{chunk-RMT2JEWA.js → chunk-ZAY2PRBU.js} +37 -37
- package/lib/{chunk-RMT2JEWA.js.map → chunk-ZAY2PRBU.js.map} +1 -1
- package/lib/store/decorators.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/aptos/ext/token.ts +6 -4
- package/lib/chunk-2F2KNF4Z.js.map +0 -1
- package/lib/chunk-4HPFNKDX.js.map +0 -1
- package/lib/chunk-73SHERGU.js.map +0 -1
- package/lib/chunk-AZFMPZRN.js.map +0 -1
- package/lib/chunk-DUYQHA3W.js.map +0 -1
- package/lib/chunk-LR232ZJV.js +0 -2593
- package/lib/chunk-LR232ZJV.js.map +0 -1
- package/lib/chunk-S6MJ3KIL.js.map +0 -1
- package/lib/chunk-UIBPOKNT.js.map +0 -1
- /package/lib/{chunk-7S6WQ4RL.js.map → chunk-2S4VBXER.js.map} +0 -0
- /package/lib/{chunk-4OCWUYSJ.js.map → chunk-3NTVNR24.js.map} +0 -0
- /package/lib/{chunk-LPSNAS2G.js.map → chunk-BRHYXWEW.js.map} +0 -0
- /package/lib/{chunk-GE6BRIGS.js.map → chunk-E4OYLQTE.js.map} +0 -0
- /package/lib/{chunk-J3I3VNTV.js.map → chunk-MERD27M6.js.map} +0 -0
- /package/lib/{chunk-J3QOJ2RV.js.map → chunk-NMHIV5TJ.js.map} +0 -0
- /package/lib/{chunk-BZCXYTDE.js.map → chunk-QSUUYUJL.js.map} +0 -0
- /package/lib/{chunk-N36N7RXJ.js.map → chunk-TOXC2A6K.js.map} +0 -0
- /package/lib/{chunk-ONBEMKI5.js.map → chunk-U5FYYK4Y.js.map} +0 -0
- /package/lib/{chunk-PVX2LIM5.js.map → chunk-W43SMJ3Y.js.map} +0 -0
@@ -7,7 +7,7 @@ import {
|
|
7
7
|
import_index,
|
8
8
|
init_ed25519,
|
9
9
|
init_eventemitter3
|
10
|
-
} from "./chunk-
|
10
|
+
} from "./chunk-FV4WLDIZ.js";
|
11
11
|
import {
|
12
12
|
BaseContext,
|
13
13
|
ContractConfig,
|
@@ -24,10 +24,10 @@ import {
|
|
24
24
|
require_node_ponyfill,
|
25
25
|
secp256k1,
|
26
26
|
sha256
|
27
|
-
} from "./chunk-
|
27
|
+
} from "./chunk-FDFFHCFA.js";
|
28
28
|
import {
|
29
29
|
require_lib
|
30
|
-
} from "./chunk-
|
30
|
+
} from "./chunk-M2LXR3BO.js";
|
31
31
|
import {
|
32
32
|
__commonJS,
|
33
33
|
__esm,
|
@@ -99,9 +99,9 @@ var require_safe_buffer = __commonJS({
|
|
99
99
|
}
|
100
100
|
});
|
101
101
|
|
102
|
-
// ../../node_modules/.pnpm/base-x@3.0.
|
102
|
+
// ../../node_modules/.pnpm/base-x@3.0.11/node_modules/base-x/src/index.js
|
103
103
|
var require_src = __commonJS({
|
104
|
-
"../../node_modules/.pnpm/base-x@3.0.
|
104
|
+
"../../node_modules/.pnpm/base-x@3.0.11/node_modules/base-x/src/index.js"(exports, module) {
|
105
105
|
"use strict";
|
106
106
|
var _Buffer = require_safe_buffer().Buffer;
|
107
107
|
function base(ALPHABET) {
|
@@ -185,8 +185,12 @@ var require_src = __commonJS({
|
|
185
185
|
}
|
186
186
|
var size = (source.length - psz) * FACTOR + 1 >>> 0;
|
187
187
|
var b256 = new Uint8Array(size);
|
188
|
-
while (source
|
189
|
-
var
|
188
|
+
while (psz < source.length) {
|
189
|
+
var charCode = source.charCodeAt(psz);
|
190
|
+
if (charCode > 255) {
|
191
|
+
return;
|
192
|
+
}
|
193
|
+
var carry = BASE_MAP[charCode];
|
190
194
|
if (carry === 255) {
|
191
195
|
return;
|
192
196
|
}
|
@@ -2314,7 +2318,7 @@ var require_Layout = __commonJS({
|
|
2314
2318
|
}
|
2315
2319
|
};
|
2316
2320
|
exports.Boolean = Boolean2;
|
2317
|
-
var
|
2321
|
+
var Blob2 = class extends Layout4 {
|
2318
2322
|
static {
|
2319
2323
|
__name(this, "Blob");
|
2320
2324
|
}
|
@@ -2369,7 +2373,7 @@ var require_Layout = __commonJS({
|
|
2369
2373
|
return span;
|
2370
2374
|
}
|
2371
2375
|
};
|
2372
|
-
exports.Blob =
|
2376
|
+
exports.Blob = Blob2;
|
2373
2377
|
var CString = class extends Layout4 {
|
2374
2378
|
static {
|
2375
2379
|
__name(this, "CString");
|
@@ -2511,7 +2515,7 @@ var require_Layout = __commonJS({
|
|
2511
2515
|
exports.seq = (elementLayout, count, property) => new Sequence(elementLayout, count, property);
|
2512
2516
|
exports.union = (discr, defaultLayout, property) => new Union(discr, defaultLayout, property);
|
2513
2517
|
exports.unionLayoutDiscriminator = (layout, property) => new UnionLayoutDiscriminator(layout, property);
|
2514
|
-
exports.blob = (length, property) => new
|
2518
|
+
exports.blob = (length, property) => new Blob2(length, property);
|
2515
2519
|
exports.cstr = (property) => new CString(property);
|
2516
2520
|
exports.utf8 = (maxSpan, property) => new UTF8(maxSpan, property);
|
2517
2521
|
exports.constant = (value, property) => new Constant(value, property);
|
@@ -3570,9 +3574,9 @@ var init_esm_node = __esm({
|
|
3570
3574
|
}
|
3571
3575
|
});
|
3572
3576
|
|
3573
|
-
// ../../node_modules/.pnpm/jayson@4.1.
|
3577
|
+
// ../../node_modules/.pnpm/jayson@4.1.3_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/jayson/lib/generateRequest.js
|
3574
3578
|
var require_generateRequest = __commonJS({
|
3575
|
-
"../../node_modules/.pnpm/jayson@4.1.
|
3579
|
+
"../../node_modules/.pnpm/jayson@4.1.3_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/jayson/lib/generateRequest.js"(exports, module) {
|
3576
3580
|
"use strict";
|
3577
3581
|
var uuid = (init_esm_node(), __toCommonJS(esm_node_exports)).v4;
|
3578
3582
|
var generateRequest = /* @__PURE__ */ __name(function(method, params, id, options) {
|
@@ -3614,9 +3618,9 @@ var require_generateRequest = __commonJS({
|
|
3614
3618
|
}
|
3615
3619
|
});
|
3616
3620
|
|
3617
|
-
// ../../node_modules/.pnpm/jayson@4.1.
|
3621
|
+
// ../../node_modules/.pnpm/jayson@4.1.3_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/jayson/lib/client/browser/index.js
|
3618
3622
|
var require_browser = __commonJS({
|
3619
|
-
"../../node_modules/.pnpm/jayson@4.1.
|
3623
|
+
"../../node_modules/.pnpm/jayson@4.1.3_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/jayson/lib/client/browser/index.js"(exports, module) {
|
3620
3624
|
"use strict";
|
3621
3625
|
var uuid = (init_esm_node(), __toCommonJS(esm_node_exports)).v4;
|
3622
3626
|
var generateRequest = require_generateRequest();
|
@@ -3715,115 +3719,18 @@ var require_browser = __commonJS({
|
|
3715
3719
|
}
|
3716
3720
|
});
|
3717
3721
|
|
3718
|
-
// ../../node_modules/.pnpm/ws@8.
|
3719
|
-
var require_stream = __commonJS({
|
3720
|
-
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/stream.js"(exports, module) {
|
3721
|
-
"use strict";
|
3722
|
-
var { Duplex } = __require("stream");
|
3723
|
-
function emitClose(stream) {
|
3724
|
-
stream.emit("close");
|
3725
|
-
}
|
3726
|
-
__name(emitClose, "emitClose");
|
3727
|
-
function duplexOnEnd() {
|
3728
|
-
if (!this.destroyed && this._writableState.finished) {
|
3729
|
-
this.destroy();
|
3730
|
-
}
|
3731
|
-
}
|
3732
|
-
__name(duplexOnEnd, "duplexOnEnd");
|
3733
|
-
function duplexOnError(err) {
|
3734
|
-
this.removeListener("error", duplexOnError);
|
3735
|
-
this.destroy();
|
3736
|
-
if (this.listenerCount("error") === 0) {
|
3737
|
-
this.emit("error", err);
|
3738
|
-
}
|
3739
|
-
}
|
3740
|
-
__name(duplexOnError, "duplexOnError");
|
3741
|
-
function createWebSocketStream2(ws, options) {
|
3742
|
-
let terminateOnDestroy = true;
|
3743
|
-
const duplex = new Duplex({
|
3744
|
-
...options,
|
3745
|
-
autoDestroy: false,
|
3746
|
-
emitClose: false,
|
3747
|
-
objectMode: false,
|
3748
|
-
writableObjectMode: false
|
3749
|
-
});
|
3750
|
-
ws.on("message", /* @__PURE__ */ __name(function message(msg, isBinary) {
|
3751
|
-
const data = !isBinary && duplex._readableState.objectMode ? msg.toString() : msg;
|
3752
|
-
if (!duplex.push(data)) ws.pause();
|
3753
|
-
}, "message"));
|
3754
|
-
ws.once("error", /* @__PURE__ */ __name(function error(err) {
|
3755
|
-
if (duplex.destroyed) return;
|
3756
|
-
terminateOnDestroy = false;
|
3757
|
-
duplex.destroy(err);
|
3758
|
-
}, "error"));
|
3759
|
-
ws.once("close", /* @__PURE__ */ __name(function close() {
|
3760
|
-
if (duplex.destroyed) return;
|
3761
|
-
duplex.push(null);
|
3762
|
-
}, "close"));
|
3763
|
-
duplex._destroy = function(err, callback) {
|
3764
|
-
if (ws.readyState === ws.CLOSED) {
|
3765
|
-
callback(err);
|
3766
|
-
process.nextTick(emitClose, duplex);
|
3767
|
-
return;
|
3768
|
-
}
|
3769
|
-
let called = false;
|
3770
|
-
ws.once("error", /* @__PURE__ */ __name(function error(err2) {
|
3771
|
-
called = true;
|
3772
|
-
callback(err2);
|
3773
|
-
}, "error"));
|
3774
|
-
ws.once("close", /* @__PURE__ */ __name(function close() {
|
3775
|
-
if (!called) callback(err);
|
3776
|
-
process.nextTick(emitClose, duplex);
|
3777
|
-
}, "close"));
|
3778
|
-
if (terminateOnDestroy) ws.terminate();
|
3779
|
-
};
|
3780
|
-
duplex._final = function(callback) {
|
3781
|
-
if (ws.readyState === ws.CONNECTING) {
|
3782
|
-
ws.once("open", /* @__PURE__ */ __name(function open() {
|
3783
|
-
duplex._final(callback);
|
3784
|
-
}, "open"));
|
3785
|
-
return;
|
3786
|
-
}
|
3787
|
-
if (ws._socket === null) return;
|
3788
|
-
if (ws._socket._writableState.finished) {
|
3789
|
-
callback();
|
3790
|
-
if (duplex._readableState.endEmitted) duplex.destroy();
|
3791
|
-
} else {
|
3792
|
-
ws._socket.once("finish", /* @__PURE__ */ __name(function finish() {
|
3793
|
-
callback();
|
3794
|
-
}, "finish"));
|
3795
|
-
ws.close();
|
3796
|
-
}
|
3797
|
-
};
|
3798
|
-
duplex._read = function() {
|
3799
|
-
if (ws.isPaused) ws.resume();
|
3800
|
-
};
|
3801
|
-
duplex._write = function(chunk, encoding, callback) {
|
3802
|
-
if (ws.readyState === ws.CONNECTING) {
|
3803
|
-
ws.once("open", /* @__PURE__ */ __name(function open() {
|
3804
|
-
duplex._write(chunk, encoding, callback);
|
3805
|
-
}, "open"));
|
3806
|
-
return;
|
3807
|
-
}
|
3808
|
-
ws.send(chunk, callback);
|
3809
|
-
};
|
3810
|
-
duplex.on("end", duplexOnEnd);
|
3811
|
-
duplex.on("error", duplexOnError);
|
3812
|
-
return duplex;
|
3813
|
-
}
|
3814
|
-
__name(createWebSocketStream2, "createWebSocketStream");
|
3815
|
-
module.exports = createWebSocketStream2;
|
3816
|
-
}
|
3817
|
-
});
|
3818
|
-
|
3819
|
-
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/constants.js
|
3722
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/constants.js
|
3820
3723
|
var require_constants = __commonJS({
|
3821
|
-
"../../node_modules/.pnpm/ws@8.
|
3724
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/constants.js"(exports, module) {
|
3822
3725
|
"use strict";
|
3726
|
+
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
3727
|
+
var hasBlob = typeof Blob !== "undefined";
|
3728
|
+
if (hasBlob) BINARY_TYPES.push("blob");
|
3823
3729
|
module.exports = {
|
3824
|
-
BINARY_TYPES
|
3730
|
+
BINARY_TYPES,
|
3825
3731
|
EMPTY_BUFFER: Buffer.alloc(0),
|
3826
3732
|
GUID: "258EAFA5-E914-47DA-95CA-C5AB0DC85B11",
|
3733
|
+
hasBlob,
|
3827
3734
|
kForOnEventAttribute: Symbol("kIsForOnEventAttribute"),
|
3828
3735
|
kListener: Symbol("kListener"),
|
3829
3736
|
kStatusCode: Symbol("status-code"),
|
@@ -3834,9 +3741,9 @@ var require_constants = __commonJS({
|
|
3834
3741
|
}
|
3835
3742
|
});
|
3836
3743
|
|
3837
|
-
// ../../node_modules/.pnpm/node-gyp-build@4.8.
|
3744
|
+
// ../../node_modules/.pnpm/node-gyp-build@4.8.4/node_modules/node-gyp-build/node-gyp-build.js
|
3838
3745
|
var require_node_gyp_build = __commonJS({
|
3839
|
-
"../../node_modules/.pnpm/node-gyp-build@4.8.
|
3746
|
+
"../../node_modules/.pnpm/node-gyp-build@4.8.4/node_modules/node-gyp-build/node-gyp-build.js"(exports, module) {
|
3840
3747
|
"use strict";
|
3841
3748
|
var fs = __require("fs");
|
3842
3749
|
var path = __require("path");
|
@@ -4019,9 +3926,9 @@ var require_node_gyp_build = __commonJS({
|
|
4019
3926
|
}
|
4020
3927
|
});
|
4021
3928
|
|
4022
|
-
// ../../node_modules/.pnpm/node-gyp-build@4.8.
|
3929
|
+
// ../../node_modules/.pnpm/node-gyp-build@4.8.4/node_modules/node-gyp-build/index.js
|
4023
3930
|
var require_node_gyp_build2 = __commonJS({
|
4024
|
-
"../../node_modules/.pnpm/node-gyp-build@4.8.
|
3931
|
+
"../../node_modules/.pnpm/node-gyp-build@4.8.4/node_modules/node-gyp-build/index.js"(exports, module) {
|
4025
3932
|
"use strict";
|
4026
3933
|
var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
|
4027
3934
|
if (typeof runtimeRequire.addon === "function") {
|
@@ -4032,9 +3939,9 @@ var require_node_gyp_build2 = __commonJS({
|
|
4032
3939
|
}
|
4033
3940
|
});
|
4034
3941
|
|
4035
|
-
// ../../node_modules/.pnpm/bufferutil@4.0.
|
3942
|
+
// ../../node_modules/.pnpm/bufferutil@4.0.9/node_modules/bufferutil/fallback.js
|
4036
3943
|
var require_fallback = __commonJS({
|
4037
|
-
"../../node_modules/.pnpm/bufferutil@4.0.
|
3944
|
+
"../../node_modules/.pnpm/bufferutil@4.0.9/node_modules/bufferutil/fallback.js"(exports, module) {
|
4038
3945
|
"use strict";
|
4039
3946
|
var mask3 = /* @__PURE__ */ __name((source, mask4, output, offset3, length) => {
|
4040
3947
|
for (var i = 0; i < length; i++) {
|
@@ -4051,9 +3958,9 @@ var require_fallback = __commonJS({
|
|
4051
3958
|
}
|
4052
3959
|
});
|
4053
3960
|
|
4054
|
-
// ../../node_modules/.pnpm/bufferutil@4.0.
|
3961
|
+
// ../../node_modules/.pnpm/bufferutil@4.0.9/node_modules/bufferutil/index.js
|
4055
3962
|
var require_bufferutil = __commonJS({
|
4056
|
-
"../../node_modules/.pnpm/bufferutil@4.0.
|
3963
|
+
"../../node_modules/.pnpm/bufferutil@4.0.9/node_modules/bufferutil/index.js"(exports, module) {
|
4057
3964
|
"use strict";
|
4058
3965
|
try {
|
4059
3966
|
module.exports = require_node_gyp_build2()(__dirname);
|
@@ -4063,9 +3970,9 @@ var require_bufferutil = __commonJS({
|
|
4063
3970
|
}
|
4064
3971
|
});
|
4065
3972
|
|
4066
|
-
// ../../node_modules/.pnpm/ws@8.
|
3973
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/buffer-util.js
|
4067
3974
|
var require_buffer_util = __commonJS({
|
4068
|
-
"../../node_modules/.pnpm/ws@8.
|
3975
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/buffer-util.js"(exports, module) {
|
4069
3976
|
"use strict";
|
4070
3977
|
var { EMPTY_BUFFER } = require_constants();
|
4071
3978
|
var FastBuffer = Buffer[Symbol.species];
|
@@ -4143,9 +4050,9 @@ var require_buffer_util = __commonJS({
|
|
4143
4050
|
}
|
4144
4051
|
});
|
4145
4052
|
|
4146
|
-
// ../../node_modules/.pnpm/ws@8.
|
4053
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/limiter.js
|
4147
4054
|
var require_limiter = __commonJS({
|
4148
|
-
"../../node_modules/.pnpm/ws@8.
|
4055
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/limiter.js"(exports, module) {
|
4149
4056
|
"use strict";
|
4150
4057
|
var kDone = Symbol("kDone");
|
4151
4058
|
var kRun = Symbol("kRun");
|
@@ -4196,9 +4103,9 @@ var require_limiter = __commonJS({
|
|
4196
4103
|
}
|
4197
4104
|
});
|
4198
4105
|
|
4199
|
-
// ../../node_modules/.pnpm/ws@8.
|
4106
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/permessage-deflate.js
|
4200
4107
|
var require_permessage_deflate = __commonJS({
|
4201
|
-
"../../node_modules/.pnpm/ws@8.
|
4108
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
4202
4109
|
"use strict";
|
4203
4110
|
var zlib = __require("zlib");
|
4204
4111
|
var bufferUtil = require_buffer_util();
|
@@ -4631,11 +4538,12 @@ var require_utf_8_validate = __commonJS({
|
|
4631
4538
|
}
|
4632
4539
|
});
|
4633
4540
|
|
4634
|
-
// ../../node_modules/.pnpm/ws@8.
|
4541
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/validation.js
|
4635
4542
|
var require_validation = __commonJS({
|
4636
|
-
"../../node_modules/.pnpm/ws@8.
|
4543
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/validation.js"(exports, module) {
|
4637
4544
|
"use strict";
|
4638
4545
|
var { isUtf8 } = __require("buffer");
|
4546
|
+
var { hasBlob } = require_constants();
|
4639
4547
|
var tokenChars = [
|
4640
4548
|
0,
|
4641
4549
|
0,
|
@@ -4808,7 +4716,12 @@ var require_validation = __commonJS({
|
|
4808
4716
|
return true;
|
4809
4717
|
}
|
4810
4718
|
__name(_isValidUTF8, "_isValidUTF8");
|
4719
|
+
function isBlob(value) {
|
4720
|
+
return hasBlob && typeof value === "object" && typeof value.arrayBuffer === "function" && typeof value.type === "string" && typeof value.stream === "function" && (value[Symbol.toStringTag] === "Blob" || value[Symbol.toStringTag] === "File");
|
4721
|
+
}
|
4722
|
+
__name(isBlob, "isBlob");
|
4811
4723
|
module.exports = {
|
4724
|
+
isBlob,
|
4812
4725
|
isValidStatusCode,
|
4813
4726
|
isValidUTF8: _isValidUTF8,
|
4814
4727
|
tokenChars
|
@@ -4829,9 +4742,9 @@ var require_validation = __commonJS({
|
|
4829
4742
|
}
|
4830
4743
|
});
|
4831
4744
|
|
4832
|
-
// ../../node_modules/.pnpm/ws@8.
|
4745
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/receiver.js
|
4833
4746
|
var require_receiver = __commonJS({
|
4834
|
-
"../../node_modules/.pnpm/ws@8.
|
4747
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/receiver.js"(exports, module) {
|
4835
4748
|
"use strict";
|
4836
4749
|
var { Writable } = __require("stream");
|
4837
4750
|
var PerMessageDeflate = require_permessage_deflate();
|
@@ -5293,6 +5206,8 @@ var require_receiver = __commonJS({
|
|
5293
5206
|
data = concat(fragments, messageLength);
|
5294
5207
|
} else if (this._binaryType === "arraybuffer") {
|
5295
5208
|
data = toArrayBuffer(concat(fragments, messageLength));
|
5209
|
+
} else if (this._binaryType === "blob") {
|
5210
|
+
data = new Blob(fragments);
|
5296
5211
|
} else {
|
5297
5212
|
data = fragments;
|
5298
5213
|
}
|
@@ -5422,21 +5337,24 @@ var require_receiver = __commonJS({
|
|
5422
5337
|
}
|
5423
5338
|
});
|
5424
5339
|
|
5425
|
-
// ../../node_modules/.pnpm/ws@8.
|
5340
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/sender.js
|
5426
5341
|
var require_sender = __commonJS({
|
5427
|
-
"../../node_modules/.pnpm/ws@8.
|
5342
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/sender.js"(exports, module) {
|
5428
5343
|
"use strict";
|
5429
5344
|
var { Duplex } = __require("stream");
|
5430
5345
|
var { randomFillSync } = __require("crypto");
|
5431
5346
|
var PerMessageDeflate = require_permessage_deflate();
|
5432
|
-
var { EMPTY_BUFFER } = require_constants();
|
5433
|
-
var { isValidStatusCode } = require_validation();
|
5347
|
+
var { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants();
|
5348
|
+
var { isBlob, isValidStatusCode } = require_validation();
|
5434
5349
|
var { mask: applyMask, toBuffer: toBuffer2 } = require_buffer_util();
|
5435
5350
|
var kByteLength = Symbol("kByteLength");
|
5436
5351
|
var maskBuffer = Buffer.alloc(4);
|
5437
5352
|
var RANDOM_POOL_SIZE = 8 * 1024;
|
5438
5353
|
var randomPool;
|
5439
5354
|
var randomPoolPointer = RANDOM_POOL_SIZE;
|
5355
|
+
var DEFAULT = 0;
|
5356
|
+
var DEFLATING = 1;
|
5357
|
+
var GET_BLOB_DATA = 2;
|
5440
5358
|
var Sender2 = class _Sender {
|
5441
5359
|
static {
|
5442
5360
|
__name(this, "Sender");
|
@@ -5459,8 +5377,10 @@ var require_sender = __commonJS({
|
|
5459
5377
|
this._firstFragment = true;
|
5460
5378
|
this._compress = false;
|
5461
5379
|
this._bufferedBytes = 0;
|
5462
|
-
this._deflating = false;
|
5463
5380
|
this._queue = [];
|
5381
|
+
this._state = DEFAULT;
|
5382
|
+
this.onerror = NOOP;
|
5383
|
+
this[kWebSocket] = void 0;
|
5464
5384
|
}
|
5465
5385
|
/**
|
5466
5386
|
* Frames a piece of data according to the HyBi WebSocket protocol.
|
@@ -5593,7 +5513,7 @@ var require_sender = __commonJS({
|
|
5593
5513
|
readOnly: false,
|
5594
5514
|
rsv1: false
|
5595
5515
|
};
|
5596
|
-
if (this.
|
5516
|
+
if (this._state !== DEFAULT) {
|
5597
5517
|
this.enqueue([this.dispatch, buf, false, options, cb]);
|
5598
5518
|
} else {
|
5599
5519
|
this.sendFrame(_Sender.frame(buf, options), cb);
|
@@ -5613,6 +5533,9 @@ var require_sender = __commonJS({
|
|
5613
5533
|
if (typeof data === "string") {
|
5614
5534
|
byteLength = Buffer.byteLength(data);
|
5615
5535
|
readOnly = false;
|
5536
|
+
} else if (isBlob(data)) {
|
5537
|
+
byteLength = data.size;
|
5538
|
+
readOnly = false;
|
5616
5539
|
} else {
|
5617
5540
|
data = toBuffer2(data);
|
5618
5541
|
byteLength = data.length;
|
@@ -5631,7 +5554,13 @@ var require_sender = __commonJS({
|
|
5631
5554
|
readOnly,
|
5632
5555
|
rsv1: false
|
5633
5556
|
};
|
5634
|
-
if (
|
5557
|
+
if (isBlob(data)) {
|
5558
|
+
if (this._state !== DEFAULT) {
|
5559
|
+
this.enqueue([this.getBlobData, data, false, options, cb]);
|
5560
|
+
} else {
|
5561
|
+
this.getBlobData(data, false, options, cb);
|
5562
|
+
}
|
5563
|
+
} else if (this._state !== DEFAULT) {
|
5635
5564
|
this.enqueue([this.dispatch, data, false, options, cb]);
|
5636
5565
|
} else {
|
5637
5566
|
this.sendFrame(_Sender.frame(data, options), cb);
|
@@ -5651,6 +5580,9 @@ var require_sender = __commonJS({
|
|
5651
5580
|
if (typeof data === "string") {
|
5652
5581
|
byteLength = Buffer.byteLength(data);
|
5653
5582
|
readOnly = false;
|
5583
|
+
} else if (isBlob(data)) {
|
5584
|
+
byteLength = data.size;
|
5585
|
+
readOnly = false;
|
5654
5586
|
} else {
|
5655
5587
|
data = toBuffer2(data);
|
5656
5588
|
byteLength = data.length;
|
@@ -5669,7 +5601,13 @@ var require_sender = __commonJS({
|
|
5669
5601
|
readOnly,
|
5670
5602
|
rsv1: false
|
5671
5603
|
};
|
5672
|
-
if (
|
5604
|
+
if (isBlob(data)) {
|
5605
|
+
if (this._state !== DEFAULT) {
|
5606
|
+
this.enqueue([this.getBlobData, data, false, options, cb]);
|
5607
|
+
} else {
|
5608
|
+
this.getBlobData(data, false, options, cb);
|
5609
|
+
}
|
5610
|
+
} else if (this._state !== DEFAULT) {
|
5673
5611
|
this.enqueue([this.dispatch, data, false, options, cb]);
|
5674
5612
|
} else {
|
5675
5613
|
this.sendFrame(_Sender.frame(data, options), cb);
|
@@ -5700,6 +5638,9 @@ var require_sender = __commonJS({
|
|
5700
5638
|
if (typeof data === "string") {
|
5701
5639
|
byteLength = Buffer.byteLength(data);
|
5702
5640
|
readOnly = false;
|
5641
|
+
} else if (isBlob(data)) {
|
5642
|
+
byteLength = data.size;
|
5643
|
+
readOnly = false;
|
5703
5644
|
} else {
|
5704
5645
|
data = toBuffer2(data);
|
5705
5646
|
byteLength = data.length;
|
@@ -5716,38 +5657,75 @@ var require_sender = __commonJS({
|
|
5716
5657
|
opcode = 0;
|
5717
5658
|
}
|
5718
5659
|
if (options.fin) this._firstFragment = true;
|
5719
|
-
|
5720
|
-
|
5721
|
-
|
5722
|
-
|
5723
|
-
|
5724
|
-
|
5725
|
-
|
5726
|
-
|
5727
|
-
|
5728
|
-
|
5729
|
-
|
5730
|
-
if (this.
|
5731
|
-
this.enqueue([this.
|
5660
|
+
const opts = {
|
5661
|
+
[kByteLength]: byteLength,
|
5662
|
+
fin: options.fin,
|
5663
|
+
generateMask: this._generateMask,
|
5664
|
+
mask: options.mask,
|
5665
|
+
maskBuffer: this._maskBuffer,
|
5666
|
+
opcode,
|
5667
|
+
readOnly,
|
5668
|
+
rsv1
|
5669
|
+
};
|
5670
|
+
if (isBlob(data)) {
|
5671
|
+
if (this._state !== DEFAULT) {
|
5672
|
+
this.enqueue([this.getBlobData, data, this._compress, opts, cb]);
|
5732
5673
|
} else {
|
5733
|
-
this.
|
5674
|
+
this.getBlobData(data, this._compress, opts, cb);
|
5734
5675
|
}
|
5676
|
+
} else if (this._state !== DEFAULT) {
|
5677
|
+
this.enqueue([this.dispatch, data, this._compress, opts, cb]);
|
5735
5678
|
} else {
|
5736
|
-
this.
|
5737
|
-
_Sender.frame(data, {
|
5738
|
-
[kByteLength]: byteLength,
|
5739
|
-
fin: options.fin,
|
5740
|
-
generateMask: this._generateMask,
|
5741
|
-
mask: options.mask,
|
5742
|
-
maskBuffer: this._maskBuffer,
|
5743
|
-
opcode,
|
5744
|
-
readOnly,
|
5745
|
-
rsv1: false
|
5746
|
-
}),
|
5747
|
-
cb
|
5748
|
-
);
|
5679
|
+
this.dispatch(data, this._compress, opts, cb);
|
5749
5680
|
}
|
5750
5681
|
}
|
5682
|
+
/**
|
5683
|
+
* Gets the contents of a blob as binary data.
|
5684
|
+
*
|
5685
|
+
* @param {Blob} blob The blob
|
5686
|
+
* @param {Boolean} [compress=false] Specifies whether or not to compress
|
5687
|
+
* the data
|
5688
|
+
* @param {Object} options Options object
|
5689
|
+
* @param {Boolean} [options.fin=false] Specifies whether or not to set the
|
5690
|
+
* FIN bit
|
5691
|
+
* @param {Function} [options.generateMask] The function used to generate the
|
5692
|
+
* masking key
|
5693
|
+
* @param {Boolean} [options.mask=false] Specifies whether or not to mask
|
5694
|
+
* `data`
|
5695
|
+
* @param {Buffer} [options.maskBuffer] The buffer used to store the masking
|
5696
|
+
* key
|
5697
|
+
* @param {Number} options.opcode The opcode
|
5698
|
+
* @param {Boolean} [options.readOnly=false] Specifies whether `data` can be
|
5699
|
+
* modified
|
5700
|
+
* @param {Boolean} [options.rsv1=false] Specifies whether or not to set the
|
5701
|
+
* RSV1 bit
|
5702
|
+
* @param {Function} [cb] Callback
|
5703
|
+
* @private
|
5704
|
+
*/
|
5705
|
+
getBlobData(blob6, compress, options, cb) {
|
5706
|
+
this._bufferedBytes += options[kByteLength];
|
5707
|
+
this._state = GET_BLOB_DATA;
|
5708
|
+
blob6.arrayBuffer().then((arrayBuffer) => {
|
5709
|
+
if (this._socket.destroyed) {
|
5710
|
+
const err = new Error(
|
5711
|
+
"The socket was closed while the blob was being read"
|
5712
|
+
);
|
5713
|
+
process.nextTick(callCallbacks, this, err, cb);
|
5714
|
+
return;
|
5715
|
+
}
|
5716
|
+
this._bufferedBytes -= options[kByteLength];
|
5717
|
+
const data = toBuffer2(arrayBuffer);
|
5718
|
+
if (!compress) {
|
5719
|
+
this._state = DEFAULT;
|
5720
|
+
this.sendFrame(_Sender.frame(data, options), cb);
|
5721
|
+
this.dequeue();
|
5722
|
+
} else {
|
5723
|
+
this.dispatch(data, compress, options, cb);
|
5724
|
+
}
|
5725
|
+
}).catch((err) => {
|
5726
|
+
process.nextTick(onError, this, err, cb);
|
5727
|
+
});
|
5728
|
+
}
|
5751
5729
|
/**
|
5752
5730
|
* Dispatches a message.
|
5753
5731
|
*
|
@@ -5778,22 +5756,17 @@ var require_sender = __commonJS({
|
|
5778
5756
|
}
|
5779
5757
|
const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName];
|
5780
5758
|
this._bufferedBytes += options[kByteLength];
|
5781
|
-
this.
|
5759
|
+
this._state = DEFLATING;
|
5782
5760
|
perMessageDeflate.compress(data, options.fin, (_, buf) => {
|
5783
5761
|
if (this._socket.destroyed) {
|
5784
5762
|
const err = new Error(
|
5785
5763
|
"The socket was closed while data was being compressed"
|
5786
5764
|
);
|
5787
|
-
|
5788
|
-
for (let i = 0; i < this._queue.length; i++) {
|
5789
|
-
const params = this._queue[i];
|
5790
|
-
const callback = params[params.length - 1];
|
5791
|
-
if (typeof callback === "function") callback(err);
|
5792
|
-
}
|
5765
|
+
callCallbacks(this, err, cb);
|
5793
5766
|
return;
|
5794
5767
|
}
|
5795
5768
|
this._bufferedBytes -= options[kByteLength];
|
5796
|
-
this.
|
5769
|
+
this._state = DEFAULT;
|
5797
5770
|
options.readOnly = false;
|
5798
5771
|
this.sendFrame(_Sender.frame(buf, options), cb);
|
5799
5772
|
this.dequeue();
|
@@ -5805,7 +5778,7 @@ var require_sender = __commonJS({
|
|
5805
5778
|
* @private
|
5806
5779
|
*/
|
5807
5780
|
dequeue() {
|
5808
|
-
while (
|
5781
|
+
while (this._state === DEFAULT && this._queue.length) {
|
5809
5782
|
const params = this._queue.shift();
|
5810
5783
|
this._bufferedBytes -= params[3][kByteLength];
|
5811
5784
|
Reflect.apply(params[0], this, params.slice(1));
|
@@ -5824,7 +5797,7 @@ var require_sender = __commonJS({
|
|
5824
5797
|
/**
|
5825
5798
|
* Sends a frame.
|
5826
5799
|
*
|
5827
|
-
* @param {Buffer[]} list The frame to send
|
5800
|
+
* @param {(Buffer | String)[]} list The frame to send
|
5828
5801
|
* @param {Function} [cb] Callback
|
5829
5802
|
* @private
|
5830
5803
|
*/
|
@@ -5840,12 +5813,26 @@ var require_sender = __commonJS({
|
|
5840
5813
|
}
|
5841
5814
|
};
|
5842
5815
|
module.exports = Sender2;
|
5816
|
+
function callCallbacks(sender, err, cb) {
|
5817
|
+
if (typeof cb === "function") cb(err);
|
5818
|
+
for (let i = 0; i < sender._queue.length; i++) {
|
5819
|
+
const params = sender._queue[i];
|
5820
|
+
const callback = params[params.length - 1];
|
5821
|
+
if (typeof callback === "function") callback(err);
|
5822
|
+
}
|
5823
|
+
}
|
5824
|
+
__name(callCallbacks, "callCallbacks");
|
5825
|
+
function onError(sender, err, cb) {
|
5826
|
+
callCallbacks(sender, err, cb);
|
5827
|
+
sender.onerror(err);
|
5828
|
+
}
|
5829
|
+
__name(onError, "onError");
|
5843
5830
|
}
|
5844
5831
|
});
|
5845
5832
|
|
5846
|
-
// ../../node_modules/.pnpm/ws@8.
|
5833
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/event-target.js
|
5847
5834
|
var require_event_target = __commonJS({
|
5848
|
-
"../../node_modules/.pnpm/ws@8.
|
5835
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/event-target.js"(exports, module) {
|
5849
5836
|
"use strict";
|
5850
5837
|
var { kForOnEventAttribute, kListener } = require_constants();
|
5851
5838
|
var kCode = Symbol("kCode");
|
@@ -6085,9 +6072,9 @@ var require_event_target = __commonJS({
|
|
6085
6072
|
}
|
6086
6073
|
});
|
6087
6074
|
|
6088
|
-
// ../../node_modules/.pnpm/ws@8.
|
6075
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/extension.js
|
6089
6076
|
var require_extension = __commonJS({
|
6090
|
-
"../../node_modules/.pnpm/ws@8.
|
6077
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/extension.js"(exports, module) {
|
6091
6078
|
"use strict";
|
6092
6079
|
var { tokenChars } = require_validation();
|
6093
6080
|
function push(dest, name, elem) {
|
@@ -6241,9 +6228,9 @@ var require_extension = __commonJS({
|
|
6241
6228
|
}
|
6242
6229
|
});
|
6243
6230
|
|
6244
|
-
// ../../node_modules/.pnpm/ws@8.
|
6231
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/websocket.js
|
6245
6232
|
var require_websocket = __commonJS({
|
6246
|
-
"../../node_modules/.pnpm/ws@8.
|
6233
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/websocket.js"(exports, module) {
|
6247
6234
|
"use strict";
|
6248
6235
|
var EventEmitter3 = __require("events");
|
6249
6236
|
var https = __require("https");
|
@@ -6256,6 +6243,7 @@ var require_websocket = __commonJS({
|
|
6256
6243
|
var PerMessageDeflate = require_permessage_deflate();
|
6257
6244
|
var Receiver2 = require_receiver();
|
6258
6245
|
var Sender2 = require_sender();
|
6246
|
+
var { isBlob } = require_validation();
|
6259
6247
|
var {
|
6260
6248
|
BINARY_TYPES,
|
6261
6249
|
EMPTY_BUFFER,
|
@@ -6295,6 +6283,7 @@ var require_websocket = __commonJS({
|
|
6295
6283
|
this._closeFrameSent = false;
|
6296
6284
|
this._closeMessage = EMPTY_BUFFER;
|
6297
6285
|
this._closeTimer = null;
|
6286
|
+
this._errorEmitted = false;
|
6298
6287
|
this._extensions = {};
|
6299
6288
|
this._paused = false;
|
6300
6289
|
this._protocol = "";
|
@@ -6323,9 +6312,8 @@ var require_websocket = __commonJS({
|
|
6323
6312
|
}
|
6324
6313
|
}
|
6325
6314
|
/**
|
6326
|
-
*
|
6327
|
-
*
|
6328
|
-
* type).
|
6315
|
+
* For historical reasons, the custom "nodebuffer" type is used by the default
|
6316
|
+
* instead of "blob".
|
6329
6317
|
*
|
6330
6318
|
* @type {String}
|
6331
6319
|
*/
|
@@ -6427,10 +6415,12 @@ var require_websocket = __commonJS({
|
|
6427
6415
|
maxPayload: options.maxPayload,
|
6428
6416
|
skipUTF8Validation: options.skipUTF8Validation
|
6429
6417
|
});
|
6430
|
-
|
6418
|
+
const sender = new Sender2(socket, this._extensions, options.generateMask);
|
6431
6419
|
this._receiver = receiver;
|
6420
|
+
this._sender = sender;
|
6432
6421
|
this._socket = socket;
|
6433
6422
|
receiver[kWebSocket] = this;
|
6423
|
+
sender[kWebSocket] = this;
|
6434
6424
|
socket[kWebSocket] = this;
|
6435
6425
|
receiver.on("conclude", receiverOnConclude);
|
6436
6426
|
receiver.on("drain", receiverOnDrain);
|
@@ -6438,6 +6428,7 @@ var require_websocket = __commonJS({
|
|
6438
6428
|
receiver.on("message", receiverOnMessage);
|
6439
6429
|
receiver.on("ping", receiverOnPing);
|
6440
6430
|
receiver.on("pong", receiverOnPong);
|
6431
|
+
sender.onerror = senderOnError;
|
6441
6432
|
if (socket.setTimeout) socket.setTimeout(0);
|
6442
6433
|
if (socket.setNoDelay) socket.setNoDelay();
|
6443
6434
|
if (head.length > 0) socket.unshift(head);
|
@@ -6507,10 +6498,7 @@ var require_websocket = __commonJS({
|
|
6507
6498
|
this._socket.end();
|
6508
6499
|
}
|
6509
6500
|
});
|
6510
|
-
this
|
6511
|
-
this._socket.destroy.bind(this._socket),
|
6512
|
-
closeTimeout
|
6513
|
-
);
|
6501
|
+
setCloseTimer(this);
|
6514
6502
|
}
|
6515
6503
|
/**
|
6516
6504
|
* Pause the socket.
|
@@ -6976,6 +6964,7 @@ var require_websocket = __commonJS({
|
|
6976
6964
|
__name(initAsClient, "initAsClient");
|
6977
6965
|
function emitErrorAndClose(websocket, err) {
|
6978
6966
|
websocket._readyState = WebSocket3.CLOSING;
|
6967
|
+
websocket._errorEmitted = true;
|
6979
6968
|
websocket.emit("error", err);
|
6980
6969
|
websocket.emitClose();
|
6981
6970
|
}
|
@@ -7013,7 +7002,7 @@ var require_websocket = __commonJS({
|
|
7013
7002
|
__name(abortHandshake, "abortHandshake");
|
7014
7003
|
function sendAfterClose(websocket, data, cb) {
|
7015
7004
|
if (data) {
|
7016
|
-
const length = toBuffer2(data).length;
|
7005
|
+
const length = isBlob(data) ? data.size : toBuffer2(data).length;
|
7017
7006
|
if (websocket._socket) websocket._sender._bufferedBytes += length;
|
7018
7007
|
else websocket._bufferedAmount += length;
|
7019
7008
|
}
|
@@ -7049,7 +7038,10 @@ var require_websocket = __commonJS({
|
|
7049
7038
|
process.nextTick(resume, websocket._socket);
|
7050
7039
|
websocket.close(err[kStatusCode]);
|
7051
7040
|
}
|
7052
|
-
websocket.
|
7041
|
+
if (!websocket._errorEmitted) {
|
7042
|
+
websocket._errorEmitted = true;
|
7043
|
+
websocket.emit("error", err);
|
7044
|
+
}
|
7053
7045
|
}
|
7054
7046
|
__name(receiverOnError, "receiverOnError");
|
7055
7047
|
function receiverOnFinish() {
|
@@ -7074,6 +7066,27 @@ var require_websocket = __commonJS({
|
|
7074
7066
|
stream.resume();
|
7075
7067
|
}
|
7076
7068
|
__name(resume, "resume");
|
7069
|
+
function senderOnError(err) {
|
7070
|
+
const websocket = this[kWebSocket];
|
7071
|
+
if (websocket.readyState === WebSocket3.CLOSED) return;
|
7072
|
+
if (websocket.readyState === WebSocket3.OPEN) {
|
7073
|
+
websocket._readyState = WebSocket3.CLOSING;
|
7074
|
+
setCloseTimer(websocket);
|
7075
|
+
}
|
7076
|
+
this._socket.end();
|
7077
|
+
if (!websocket._errorEmitted) {
|
7078
|
+
websocket._errorEmitted = true;
|
7079
|
+
websocket.emit("error", err);
|
7080
|
+
}
|
7081
|
+
}
|
7082
|
+
__name(senderOnError, "senderOnError");
|
7083
|
+
function setCloseTimer(websocket) {
|
7084
|
+
websocket._closeTimer = setTimeout(
|
7085
|
+
websocket._socket.destroy.bind(websocket._socket),
|
7086
|
+
closeTimeout
|
7087
|
+
);
|
7088
|
+
}
|
7089
|
+
__name(setCloseTimer, "setCloseTimer");
|
7077
7090
|
function socketOnClose() {
|
7078
7091
|
const websocket = this[kWebSocket];
|
7079
7092
|
this.removeListener("close", socketOnClose);
|
@@ -7121,9 +7134,111 @@ var require_websocket = __commonJS({
|
|
7121
7134
|
}
|
7122
7135
|
});
|
7123
7136
|
|
7124
|
-
// ../../node_modules/.pnpm/ws@8.
|
7137
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/stream.js
|
7138
|
+
var require_stream = __commonJS({
|
7139
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/stream.js"(exports, module) {
|
7140
|
+
"use strict";
|
7141
|
+
var WebSocket3 = require_websocket();
|
7142
|
+
var { Duplex } = __require("stream");
|
7143
|
+
function emitClose(stream) {
|
7144
|
+
stream.emit("close");
|
7145
|
+
}
|
7146
|
+
__name(emitClose, "emitClose");
|
7147
|
+
function duplexOnEnd() {
|
7148
|
+
if (!this.destroyed && this._writableState.finished) {
|
7149
|
+
this.destroy();
|
7150
|
+
}
|
7151
|
+
}
|
7152
|
+
__name(duplexOnEnd, "duplexOnEnd");
|
7153
|
+
function duplexOnError(err) {
|
7154
|
+
this.removeListener("error", duplexOnError);
|
7155
|
+
this.destroy();
|
7156
|
+
if (this.listenerCount("error") === 0) {
|
7157
|
+
this.emit("error", err);
|
7158
|
+
}
|
7159
|
+
}
|
7160
|
+
__name(duplexOnError, "duplexOnError");
|
7161
|
+
function createWebSocketStream2(ws, options) {
|
7162
|
+
let terminateOnDestroy = true;
|
7163
|
+
const duplex = new Duplex({
|
7164
|
+
...options,
|
7165
|
+
autoDestroy: false,
|
7166
|
+
emitClose: false,
|
7167
|
+
objectMode: false,
|
7168
|
+
writableObjectMode: false
|
7169
|
+
});
|
7170
|
+
ws.on("message", /* @__PURE__ */ __name(function message(msg, isBinary) {
|
7171
|
+
const data = !isBinary && duplex._readableState.objectMode ? msg.toString() : msg;
|
7172
|
+
if (!duplex.push(data)) ws.pause();
|
7173
|
+
}, "message"));
|
7174
|
+
ws.once("error", /* @__PURE__ */ __name(function error(err) {
|
7175
|
+
if (duplex.destroyed) return;
|
7176
|
+
terminateOnDestroy = false;
|
7177
|
+
duplex.destroy(err);
|
7178
|
+
}, "error"));
|
7179
|
+
ws.once("close", /* @__PURE__ */ __name(function close() {
|
7180
|
+
if (duplex.destroyed) return;
|
7181
|
+
duplex.push(null);
|
7182
|
+
}, "close"));
|
7183
|
+
duplex._destroy = function(err, callback) {
|
7184
|
+
if (ws.readyState === ws.CLOSED) {
|
7185
|
+
callback(err);
|
7186
|
+
process.nextTick(emitClose, duplex);
|
7187
|
+
return;
|
7188
|
+
}
|
7189
|
+
let called = false;
|
7190
|
+
ws.once("error", /* @__PURE__ */ __name(function error(err2) {
|
7191
|
+
called = true;
|
7192
|
+
callback(err2);
|
7193
|
+
}, "error"));
|
7194
|
+
ws.once("close", /* @__PURE__ */ __name(function close() {
|
7195
|
+
if (!called) callback(err);
|
7196
|
+
process.nextTick(emitClose, duplex);
|
7197
|
+
}, "close"));
|
7198
|
+
if (terminateOnDestroy) ws.terminate();
|
7199
|
+
};
|
7200
|
+
duplex._final = function(callback) {
|
7201
|
+
if (ws.readyState === ws.CONNECTING) {
|
7202
|
+
ws.once("open", /* @__PURE__ */ __name(function open() {
|
7203
|
+
duplex._final(callback);
|
7204
|
+
}, "open"));
|
7205
|
+
return;
|
7206
|
+
}
|
7207
|
+
if (ws._socket === null) return;
|
7208
|
+
if (ws._socket._writableState.finished) {
|
7209
|
+
callback();
|
7210
|
+
if (duplex._readableState.endEmitted) duplex.destroy();
|
7211
|
+
} else {
|
7212
|
+
ws._socket.once("finish", /* @__PURE__ */ __name(function finish() {
|
7213
|
+
callback();
|
7214
|
+
}, "finish"));
|
7215
|
+
ws.close();
|
7216
|
+
}
|
7217
|
+
};
|
7218
|
+
duplex._read = function() {
|
7219
|
+
if (ws.isPaused) ws.resume();
|
7220
|
+
};
|
7221
|
+
duplex._write = function(chunk, encoding, callback) {
|
7222
|
+
if (ws.readyState === ws.CONNECTING) {
|
7223
|
+
ws.once("open", /* @__PURE__ */ __name(function open() {
|
7224
|
+
duplex._write(chunk, encoding, callback);
|
7225
|
+
}, "open"));
|
7226
|
+
return;
|
7227
|
+
}
|
7228
|
+
ws.send(chunk, callback);
|
7229
|
+
};
|
7230
|
+
duplex.on("end", duplexOnEnd);
|
7231
|
+
duplex.on("error", duplexOnError);
|
7232
|
+
return duplex;
|
7233
|
+
}
|
7234
|
+
__name(createWebSocketStream2, "createWebSocketStream");
|
7235
|
+
module.exports = createWebSocketStream2;
|
7236
|
+
}
|
7237
|
+
});
|
7238
|
+
|
7239
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/subprotocol.js
|
7125
7240
|
var require_subprotocol = __commonJS({
|
7126
|
-
"../../node_modules/.pnpm/ws@8.
|
7241
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/subprotocol.js"(exports, module) {
|
7127
7242
|
"use strict";
|
7128
7243
|
var { tokenChars } = require_validation();
|
7129
7244
|
function parse3(header) {
|
@@ -7167,9 +7282,9 @@ var require_subprotocol = __commonJS({
|
|
7167
7282
|
}
|
7168
7283
|
});
|
7169
7284
|
|
7170
|
-
// ../../node_modules/.pnpm/ws@8.
|
7285
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/websocket-server.js
|
7171
7286
|
var require_websocket_server = __commonJS({
|
7172
|
-
"../../node_modules/.pnpm/ws@8.
|
7287
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/websocket-server.js"(exports, module) {
|
7173
7288
|
"use strict";
|
7174
7289
|
var EventEmitter3 = __require("events");
|
7175
7290
|
var http = __require("http");
|
@@ -7562,10 +7677,10 @@ var require_websocket_server = __commonJS({
|
|
7562
7677
|
}
|
7563
7678
|
});
|
7564
7679
|
|
7565
|
-
// ../../node_modules/.pnpm/ws@8.
|
7680
|
+
// ../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/wrapper.mjs
|
7566
7681
|
var import_stream, import_receiver, import_sender, import_websocket, import_websocket_server, wrapper_default;
|
7567
7682
|
var init_wrapper = __esm({
|
7568
|
-
"../../node_modules/.pnpm/ws@8.
|
7683
|
+
"../../node_modules/.pnpm/ws@8.18.1_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/wrapper.mjs"() {
|
7569
7684
|
"use strict";
|
7570
7685
|
import_stream = __toESM(require_stream(), 1);
|
7571
7686
|
import_receiver = __toESM(require_receiver(), 1);
|
@@ -7576,13 +7691,13 @@ var init_wrapper = __esm({
|
|
7576
7691
|
}
|
7577
7692
|
});
|
7578
7693
|
|
7579
|
-
// ../../node_modules/.pnpm/rpc-websockets@9.
|
7694
|
+
// ../../node_modules/.pnpm/rpc-websockets@9.1.1/node_modules/rpc-websockets/dist/index.mjs
|
7580
7695
|
function WebSocket2(address, options) {
|
7581
7696
|
return new wrapper_default(address, options);
|
7582
7697
|
}
|
7583
7698
|
var DefaultDataPack, CommonClient;
|
7584
7699
|
var init_dist2 = __esm({
|
7585
|
-
"../../node_modules/.pnpm/rpc-websockets@9.
|
7700
|
+
"../../node_modules/.pnpm/rpc-websockets@9.1.1/node_modules/rpc-websockets/dist/index.mjs"() {
|
7586
7701
|
"use strict";
|
7587
7702
|
init_wrapper();
|
7588
7703
|
init_eventemitter3();
|
@@ -7648,7 +7763,7 @@ var init_dist2 = __esm({
|
|
7648
7763
|
this.max_reconnects = max_reconnects;
|
7649
7764
|
this.rest_options = rest_options;
|
7650
7765
|
this.current_reconnects = 0;
|
7651
|
-
this.generate_request_id = generate_request_id || (() => ++this.rpc_id);
|
7766
|
+
this.generate_request_id = generate_request_id || (() => typeof this.rpc_id === "number" ? ++this.rpc_id : Number(this.rpc_id) + 1);
|
7652
7767
|
if (!dataPack) this.dataPack = new DefaultDataPack();
|
7653
7768
|
else this.dataPack = dataPack;
|
7654
7769
|
if (this.autoconnect)
|
@@ -7892,7 +8007,7 @@ var init_dist2 = __esm({
|
|
7892
8007
|
}
|
7893
8008
|
});
|
7894
8009
|
|
7895
|
-
// ../../node_modules/.pnpm/@solana+web3.js@1.95.8_bufferutil@4.0.
|
8010
|
+
// ../../node_modules/.pnpm/@solana+web3.js@1.95.8_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@solana/web3.js/lib/index.esm.js
|
7896
8011
|
var index_esm_exports = {};
|
7897
8012
|
__export(index_esm_exports, {
|
7898
8013
|
Account: () => Account,
|
@@ -9093,7 +9208,7 @@ async function sendAndConfirmRawTransaction(connection, rawTransaction, confirma
|
|
9093
9208
|
}
|
9094
9209
|
var import_bn, import_bs58, import_borsh, BufferLayout, import_buffer_layout, import_bigint_buffer, import_browser, generatePrivateKey, generateKeypair, getPublicKey, sign, verify, toBuffer, Struct2, Enum, SOLANA_SCHEMA, _PublicKey, MAX_SEED_LENGTH, PUBLIC_KEY_LENGTH, uniquePublicKeyCounter, PublicKey, Account, BPF_LOADER_DEPRECATED_PROGRAM_ID, PACKET_DATA_SIZE, VERSION_PREFIX_MASK, SIGNATURE_LENGTH_IN_BYTES, TransactionExpiredBlockheightExceededError, TransactionExpiredTimeoutError, TransactionExpiredNonceInvalidError, MessageAccountKeys, publicKey, signature, rustString, authorized, lockup, voteInit, voteAuthorizeWithSeedArgs, CompiledKeys, END_OF_BUFFER_ERROR_MESSAGE, Message, MessageV0, VersionedMessage, TransactionStatus, DEFAULT_SIGNATURE, TransactionInstruction, Transaction, TransactionMessage, VersionedTransaction, NUM_TICKS_PER_SECOND, DEFAULT_TICKS_PER_SLOT, NUM_SLOTS_PER_SECOND, MS_PER_SLOT, SYSVAR_CLOCK_PUBKEY, SYSVAR_EPOCH_SCHEDULE_PUBKEY, SYSVAR_INSTRUCTIONS_PUBKEY, SYSVAR_RECENT_BLOCKHASHES_PUBKEY, SYSVAR_RENT_PUBKEY, SYSVAR_REWARDS_PUBKEY, SYSVAR_SLOT_HASHES_PUBKEY, SYSVAR_SLOT_HISTORY_PUBKEY, SYSVAR_STAKE_HISTORY_PUBKEY, SendTransactionError, SolanaJSONRPCErrorCode, SolanaJSONRPCError, FeeCalculatorLayout, NonceAccountLayout, NONCE_ACCOUNT_LENGTH, NonceAccount, encodeDecode, bigInt, u64, SystemInstruction, SYSTEM_INSTRUCTION_LAYOUTS, SystemProgram, CHUNK_SIZE, Loader, BPF_LOADER_PROGRAM_ID, BpfLoader, agentkeepalive, ms, hasRequiredMs, humanizeMs, hasRequiredHumanizeMs, constants, hasRequiredConstants, agent, hasRequiredAgent, https_agent, hasRequiredHttps_agent, hasRequiredAgentkeepalive, agentkeepaliveExports, HttpKeepAliveAgent, fastStableStringify$1, hasRequiredFastStableStringify, fastStableStringifyExports, fastStableStringify, MINIMUM_SLOT_PER_EPOCH, EpochSchedule, fetchImpl, RpcWebSocketClient, LOOKUP_TABLE_META_SIZE, AddressLookupTableAccount, LookupTableMetaLayout, URL_RE, PublicKeyFromString, RawAccountDataResult, BufferFromRawAccountData, BLOCKHASH_CACHE_TIMEOUT_MS, UnknownRpcResult, GetInflationGovernorResult, GetInflationRewardResult, GetRecentPrioritizationFeesResult, GetInflationRateResult, GetEpochInfoResult, GetEpochScheduleResult, GetLeaderScheduleResult, TransactionErrorResult, SignatureStatusResult, SignatureReceivedResult, VersionResult, ParsedInstructionStruct, PartiallyDecodedInstructionStruct, SimulatedTransactionResponseStruct, BlockProductionResponseStruct, GetInflationGovernorRpcResult, GetInflationRateRpcResult, GetRecentPrioritizationFeesRpcResult, GetEpochInfoRpcResult, GetEpochScheduleRpcResult, GetLeaderScheduleRpcResult, SlotRpcResult, GetSupplyRpcResult, TokenAmountResult, GetTokenLargestAccountsResult, GetTokenAccountsByOwner, ParsedAccountDataResult, GetParsedTokenAccountsByOwner, GetLargestAccountsRpcResult, AccountInfoResult, KeyedAccountInfoResult, ParsedOrRawAccountData, ParsedAccountInfoResult, KeyedParsedAccountInfoResult, StakeActivationResult, GetConfirmedSignaturesForAddress2RpcResult, GetSignaturesForAddressRpcResult, AccountNotificationResult, ProgramAccountInfoResult, ProgramAccountNotificationResult, SlotInfoResult, SlotNotificationResult, SlotUpdateResult, SlotUpdateNotificationResult, SignatureNotificationResult, RootNotificationResult, ContactInfoResult, VoteAccountInfoResult, GetVoteAccounts, ConfirmationStatus, SignatureStatusResponse, GetSignatureStatusesRpcResult, GetMinimumBalanceForRentExemptionRpcResult, AddressTableLookupStruct, ConfirmedTransactionResult, AnnotatedAccountKey, ConfirmedTransactionAccountsModeResult, ParsedInstructionResult, RawInstructionResult, InstructionResult, UnknownInstructionResult, ParsedOrRawInstruction, ParsedConfirmedTransactionResult, TokenBalanceResult, LoadedAddressesResult, ConfirmedTransactionMetaResult, ParsedConfirmedTransactionMetaResult, TransactionVersionStruct, RewardsResult, GetBlockRpcResult, GetNoneModeBlockRpcResult, GetAccountsModeBlockRpcResult, GetParsedBlockRpcResult, GetParsedAccountsModeBlockRpcResult, GetParsedNoneModeBlockRpcResult, GetConfirmedBlockRpcResult, GetBlockSignaturesRpcResult, GetTransactionRpcResult, GetParsedTransactionRpcResult, GetRecentBlockhashAndContextRpcResult, GetLatestBlockhashRpcResult, IsBlockhashValidRpcResult, PerfSampleResult, GetRecentPerformanceSamplesRpcResult, GetFeeCalculatorRpcResult, RequestAirdropRpcResult, SendTransactionRpcResult, LogsResult, LogsNotificationResult, COMMON_HTTP_HEADERS, Connection, Keypair, LOOKUP_TABLE_INSTRUCTION_LAYOUTS, AddressLookupTableInstruction, AddressLookupTableProgram, ComputeBudgetInstruction, COMPUTE_BUDGET_INSTRUCTION_LAYOUTS, ComputeBudgetProgram, PRIVATE_KEY_BYTES$1, PUBLIC_KEY_BYTES$1, SIGNATURE_BYTES, ED25519_INSTRUCTION_LAYOUT, Ed25519Program, ecdsaSign, publicKeyCreate, PRIVATE_KEY_BYTES, ETHEREUM_ADDRESS_BYTES, PUBLIC_KEY_BYTES, SIGNATURE_OFFSETS_SERIALIZED_SIZE, SECP256K1_INSTRUCTION_LAYOUT, Secp256k1Program, _Lockup, STAKE_CONFIG_ID, Authorized, Lockup, StakeInstruction, STAKE_INSTRUCTION_LAYOUTS, StakeAuthorizationLayout, StakeProgram, VoteInit, VoteInstruction, VOTE_INSTRUCTION_LAYOUTS, VoteAuthorizationLayout, VoteProgram, VALIDATOR_INFO_KEY, InfoString, ValidatorInfo, VOTE_PROGRAM_ID, VoteAccountLayout, VoteAccount, endpoint, LAMPORTS_PER_SOL;
|
9095
9210
|
var init_index_esm = __esm({
|
9096
|
-
"../../node_modules/.pnpm/@solana+web3.js@1.95.8_bufferutil@4.0.
|
9211
|
+
"../../node_modules/.pnpm/@solana+web3.js@1.95.8_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@solana/web3.js/lib/index.esm.js"() {
|
9097
9212
|
"use strict";
|
9098
9213
|
init_ed25519();
|
9099
9214
|
import_bn = __toESM(require_bn());
|
@@ -17209,13 +17324,13 @@ Message: ${transactionMessage}.
|
|
17209
17324
|
}
|
17210
17325
|
});
|
17211
17326
|
|
17212
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
17327
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/common.js
|
17213
17328
|
function chunks(array4, size) {
|
17214
17329
|
return Array.apply(0, new Array(Math.ceil(array4.length / size))).map((_, index) => array4.slice(index * size, (index + 1) * size));
|
17215
17330
|
}
|
17216
17331
|
var _a, isBrowser, isVersionedTransaction;
|
17217
17332
|
var init_common = __esm({
|
17218
|
-
"../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
17333
|
+
"../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/common.js"() {
|
17219
17334
|
"use strict";
|
17220
17335
|
isBrowser = process.env.ANCHOR_BROWSER || typeof window !== "undefined" && !((_a = window.process) === null || _a === void 0 ? void 0 : _a.hasOwnProperty("type"));
|
17221
17336
|
__name(chunks, "chunks");
|
@@ -17225,7 +17340,7 @@ var init_common = __esm({
|
|
17225
17340
|
}
|
17226
17341
|
});
|
17227
17342
|
|
17228
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
17343
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/nodewallet.js
|
17229
17344
|
var nodewallet_exports = {};
|
17230
17345
|
__export(nodewallet_exports, {
|
17231
17346
|
default: () => NodeWallet
|
@@ -17233,7 +17348,7 @@ __export(nodewallet_exports, {
|
|
17233
17348
|
import { Buffer as Buffer3 } from "buffer";
|
17234
17349
|
var NodeWallet;
|
17235
17350
|
var init_nodewallet = __esm({
|
17236
|
-
"../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
17351
|
+
"../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/nodewallet.js"() {
|
17237
17352
|
"use strict";
|
17238
17353
|
init_index_esm();
|
17239
17354
|
init_common();
|
@@ -18724,7 +18839,7 @@ var require_Layout2 = __commonJS({
|
|
18724
18839
|
return BitField.prototype.encode.call(this, value);
|
18725
18840
|
}
|
18726
18841
|
};
|
18727
|
-
var
|
18842
|
+
var Blob2 = class extends Layout4 {
|
18728
18843
|
static {
|
18729
18844
|
__name(this, "Blob");
|
18730
18845
|
}
|
@@ -18923,7 +19038,7 @@ var require_Layout2 = __commonJS({
|
|
18923
19038
|
exports.BitStructure = BitStructure;
|
18924
19039
|
exports.BitField = BitField;
|
18925
19040
|
exports.Boolean = Boolean2;
|
18926
|
-
exports.Blob =
|
19041
|
+
exports.Blob = Blob2;
|
18927
19042
|
exports.CString = CString;
|
18928
19043
|
exports.UTF8 = UTF8;
|
18929
19044
|
exports.Constant = Constant;
|
@@ -18964,16 +19079,16 @@ var require_Layout2 = __commonJS({
|
|
18964
19079
|
exports.seq = (elementLayout, count, property) => new Sequence(elementLayout, count, property);
|
18965
19080
|
exports.union = (discr, defaultLayout, property) => new Union(discr, defaultLayout, property);
|
18966
19081
|
exports.unionLayoutDiscriminator = (layout, property) => new UnionLayoutDiscriminator(layout, property);
|
18967
|
-
exports.blob = (length, property) => new
|
19082
|
+
exports.blob = (length, property) => new Blob2(length, property);
|
18968
19083
|
exports.cstr = (property) => new CString(property);
|
18969
19084
|
exports.utf8 = (maxSpan, property) => new UTF8(maxSpan, property);
|
18970
19085
|
exports.const = (value, property) => new Constant(value, property);
|
18971
19086
|
}
|
18972
19087
|
});
|
18973
19088
|
|
18974
|
-
// ../../node_modules/.pnpm/@coral-xyz+borsh@0.30.1_@solana+web3.js@1.95.8_bufferutil@4.0.
|
19089
|
+
// ../../node_modules/.pnpm/@coral-xyz+borsh@0.30.1_@solana+web3.js@1.95.8_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10_/node_modules/@coral-xyz/borsh/dist/index.js
|
18975
19090
|
var require_dist = __commonJS({
|
18976
|
-
"../../node_modules/.pnpm/@coral-xyz+borsh@0.30.1_@solana+web3.js@1.95.8_bufferutil@4.0.
|
19091
|
+
"../../node_modules/.pnpm/@coral-xyz+borsh@0.30.1_@solana+web3.js@1.95.8_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10_/node_modules/@coral-xyz/borsh/dist/index.js"(exports) {
|
18977
19092
|
"use strict";
|
18978
19093
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
18979
19094
|
return mod && mod.__esModule ? mod : { "default": mod };
|
@@ -23544,16 +23659,16 @@ var SolanaBindOptions = class {
|
|
23544
23659
|
};
|
23545
23660
|
import("node:process").then((p) => p.stdout.write(""));
|
23546
23661
|
|
23547
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23662
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/index.js
|
23548
23663
|
init_nodewallet();
|
23549
23664
|
init_common();
|
23550
23665
|
var import_bn5 = __toESM(require_bn());
|
23551
23666
|
init_index_esm();
|
23552
23667
|
|
23553
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23668
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/provider.js
|
23554
23669
|
init_index_esm();
|
23555
23670
|
|
23556
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23671
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/utf8.js
|
23557
23672
|
var utf8_exports = {};
|
23558
23673
|
__export(utf8_exports, {
|
23559
23674
|
decode: () => decode,
|
@@ -23571,7 +23686,7 @@ function encode(input) {
|
|
23571
23686
|
}
|
23572
23687
|
__name(encode, "encode");
|
23573
23688
|
|
23574
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23689
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/bs58.js
|
23575
23690
|
var bs58_exports = {};
|
23576
23691
|
__export(bs58_exports, {
|
23577
23692
|
decode: () => decode2,
|
@@ -23587,7 +23702,7 @@ function decode2(data) {
|
|
23587
23702
|
}
|
23588
23703
|
__name(decode2, "decode");
|
23589
23704
|
|
23590
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23705
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/base64.js
|
23591
23706
|
import { Buffer as Buffer4 } from "buffer";
|
23592
23707
|
function encode3(data) {
|
23593
23708
|
return data.toString("base64");
|
@@ -23598,17 +23713,17 @@ function decode3(data) {
|
|
23598
23713
|
}
|
23599
23714
|
__name(decode3, "decode");
|
23600
23715
|
|
23601
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23716
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/provider.js
|
23602
23717
|
init_common();
|
23603
23718
|
|
23604
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23719
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/rpc.js
|
23605
23720
|
init_index_esm();
|
23606
23721
|
init_common();
|
23607
23722
|
|
23608
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23723
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/common.js
|
23609
23724
|
init_index_esm();
|
23610
23725
|
|
23611
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23726
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/idl.js
|
23612
23727
|
var import_camelcase = __toESM(require_camelcase());
|
23613
23728
|
init_index_esm();
|
23614
23729
|
var borsh = __toESM(require_dist());
|
@@ -23661,7 +23776,7 @@ function handleDefinedFields(fields, unitCb, namedCb, tupleCb) {
|
|
23661
23776
|
}
|
23662
23777
|
__name(handleDefinedFields, "handleDefinedFields");
|
23663
23778
|
|
23664
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23779
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/common.js
|
23665
23780
|
function parseIdlErrors(idl) {
|
23666
23781
|
const errors2 = /* @__PURE__ */ new Map();
|
23667
23782
|
if (idl.errors) {
|
@@ -24147,7 +24262,7 @@ function coerce2(struct9, condition, coercer) {
|
|
24147
24262
|
}
|
24148
24263
|
__name(coerce2, "coerce");
|
24149
24264
|
|
24150
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
24265
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/rpc.js
|
24151
24266
|
var GET_MULTIPLE_ACCOUNTS_LIMIT = 99;
|
24152
24267
|
async function getMultipleAccountsAndContext(connection, publicKeys, commitment) {
|
24153
24268
|
if (publicKeys.length <= GET_MULTIPLE_ACCOUNTS_LIMIT) {
|
@@ -24271,7 +24386,7 @@ var SimulatedTransactionResponseStruct2 = jsonRpcResultAndContext2(type2({
|
|
24271
24386
|
unitsConsumed: optional2(number2())
|
24272
24387
|
}));
|
24273
24388
|
|
24274
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
24389
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/provider.js
|
24275
24390
|
var AnchorProvider = class _AnchorProvider {
|
24276
24391
|
static {
|
24277
24392
|
__name(this, "AnchorProvider");
|
@@ -24511,18 +24626,18 @@ function getProvider() {
|
|
24511
24626
|
__name(getProvider, "getProvider");
|
24512
24627
|
var _provider = null;
|
24513
24628
|
|
24514
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
24629
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/error.js
|
24515
24630
|
init_index_esm();
|
24516
24631
|
var errors = __toESM(require_dist2());
|
24517
24632
|
|
24518
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
24633
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/features.js
|
24519
24634
|
var _FEATURES = /* @__PURE__ */ new Map();
|
24520
24635
|
function isSet(key) {
|
24521
24636
|
return _FEATURES.get(key) !== void 0;
|
24522
24637
|
}
|
24523
24638
|
__name(isSet, "isSet");
|
24524
24639
|
|
24525
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
24640
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/error.js
|
24526
24641
|
var IdlError = class extends Error {
|
24527
24642
|
static {
|
24528
24643
|
__name(this, "IdlError");
|
@@ -25060,12 +25175,12 @@ var LangErrorMessage = /* @__PURE__ */ new Map([
|
|
25060
25175
|
]
|
25061
25176
|
]);
|
25062
25177
|
|
25063
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25178
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/instruction.js
|
25064
25179
|
var import_bs583 = __toESM(require_bs58());
|
25065
25180
|
var borsh3 = __toESM(require_dist());
|
25066
25181
|
import { Buffer as Buffer5 } from "buffer";
|
25067
25182
|
|
25068
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25183
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/idl.js
|
25069
25184
|
var borsh2 = __toESM(require_dist());
|
25070
25185
|
var IdlCoder = class _IdlCoder {
|
25071
25186
|
static {
|
@@ -25442,7 +25557,7 @@ var IdlCoder = class _IdlCoder {
|
|
25442
25557
|
}
|
25443
25558
|
};
|
25444
25559
|
|
25445
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25560
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/instruction.js
|
25446
25561
|
var BorshInstructionCoder = class {
|
25447
25562
|
static {
|
25448
25563
|
__name(this, "BorshInstructionCoder");
|
@@ -25658,14 +25773,14 @@ function sentenceCase(field) {
|
|
25658
25773
|
}
|
25659
25774
|
__name(sentenceCase, "sentenceCase");
|
25660
25775
|
|
25661
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25776
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/accounts.js
|
25662
25777
|
var import_bs584 = __toESM(require_bs58());
|
25663
25778
|
import { Buffer as Buffer6 } from "buffer";
|
25664
25779
|
|
25665
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25780
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/discriminator.js
|
25666
25781
|
var DISCRIMINATOR_SIZE = 8;
|
25667
25782
|
|
25668
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25783
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/accounts.js
|
25669
25784
|
var BorshAccountsCoder = class {
|
25670
25785
|
static {
|
25671
25786
|
__name(this, "BorshAccountsCoder");
|
@@ -25748,7 +25863,7 @@ var BorshAccountsCoder = class {
|
|
25748
25863
|
}
|
25749
25864
|
};
|
25750
25865
|
|
25751
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25866
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/event.js
|
25752
25867
|
import { Buffer as Buffer7 } from "buffer";
|
25753
25868
|
var BorshEventCoder = class {
|
25754
25869
|
static {
|
@@ -25798,7 +25913,7 @@ var BorshEventCoder = class {
|
|
25798
25913
|
}
|
25799
25914
|
};
|
25800
25915
|
|
25801
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25916
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/types.js
|
25802
25917
|
import { Buffer as Buffer8 } from "buffer";
|
25803
25918
|
var BorshTypesCoder = class {
|
25804
25919
|
static {
|
@@ -25834,7 +25949,7 @@ var BorshTypesCoder = class {
|
|
25834
25949
|
}
|
25835
25950
|
};
|
25836
25951
|
|
25837
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25952
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/index.js
|
25838
25953
|
var BorshCoder = class {
|
25839
25954
|
static {
|
25840
25955
|
__name(this, "BorshCoder");
|
@@ -25847,7 +25962,7 @@ var BorshCoder = class {
|
|
25847
25962
|
}
|
25848
25963
|
};
|
25849
25964
|
|
25850
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25965
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/system/instruction.js
|
25851
25966
|
var import_bn2 = __toESM(require_bn());
|
25852
25967
|
var BufferLayout2 = __toESM(require_Layout2());
|
25853
25968
|
var RustStringLayout = class extends BufferLayout2.Layout {
|
@@ -25926,7 +26041,7 @@ LAYOUT.addVariant(11, BufferLayout2.struct([
|
|
25926
26041
|
]), "transferWithSeed");
|
25927
26042
|
var instructionMaxSpan = Math.max(...Object.values(LAYOUT.registry).map((r) => r.span));
|
25928
26043
|
|
25929
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26044
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/system/accounts.js
|
25930
26045
|
var BufferLayout3 = __toESM(require_Layout2());
|
25931
26046
|
init_index_esm();
|
25932
26047
|
var WrappedLayout = class extends BufferLayout3.Layout {
|
@@ -25961,15 +26076,15 @@ var NONCE_ACCOUNT_LAYOUT = BufferLayout3.struct([
|
|
25961
26076
|
BufferLayout3.struct([BufferLayout3.nu64("lamportsPerSignature")], "feeCalculator")
|
25962
26077
|
]);
|
25963
26078
|
|
25964
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26079
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/pubkey.js
|
25965
26080
|
init_index_esm();
|
25966
26081
|
|
25967
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26082
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/token.js
|
25968
26083
|
init_index_esm();
|
25969
26084
|
var TOKEN_PROGRAM_ID = new PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
|
25970
26085
|
var ASSOCIATED_PROGRAM_ID = new PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");
|
25971
26086
|
|
25972
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26087
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/registry.js
|
25973
26088
|
var import_cross_fetch = __toESM(require_node_ponyfill());
|
25974
26089
|
var borsh4 = __toESM(require_dist());
|
25975
26090
|
var UPGRADEABLE_LOADER_STATE_LAYOUT = borsh4.rustEnum([
|
@@ -25982,10 +26097,10 @@ var UPGRADEABLE_LOADER_STATE_LAYOUT = borsh4.rustEnum([
|
|
25982
26097
|
], "programData")
|
25983
26098
|
], void 0, borsh4.u32());
|
25984
26099
|
|
25985
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26100
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/instruction.js
|
25986
26101
|
init_index_esm();
|
25987
26102
|
|
25988
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26103
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/context.js
|
25989
26104
|
function splitArgsAndCtx(idlIx, args) {
|
25990
26105
|
var _a2, _b;
|
25991
26106
|
let options = {};
|
@@ -26000,7 +26115,7 @@ function splitArgsAndCtx(idlIx, args) {
|
|
26000
26115
|
}
|
26001
26116
|
__name(splitArgsAndCtx, "splitArgsAndCtx");
|
26002
26117
|
|
26003
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26118
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/instruction.js
|
26004
26119
|
var InstructionNamespaceFactory = class _InstructionNamespaceFactory {
|
26005
26120
|
static {
|
26006
26121
|
__name(this, "InstructionNamespaceFactory");
|
@@ -26061,7 +26176,7 @@ function validateInstruction(ix, ...args) {
|
|
26061
26176
|
}
|
26062
26177
|
__name(validateInstruction, "validateInstruction");
|
26063
26178
|
|
26064
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26179
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/transaction.js
|
26065
26180
|
init_index_esm();
|
26066
26181
|
var TransactionFactory = class {
|
26067
26182
|
static {
|
@@ -26085,7 +26200,7 @@ var TransactionFactory = class {
|
|
26085
26200
|
}
|
26086
26201
|
};
|
26087
26202
|
|
26088
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26203
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/rpc.js
|
26089
26204
|
var RpcFactory = class {
|
26090
26205
|
static {
|
26091
26206
|
__name(this, "RpcFactory");
|
@@ -26108,7 +26223,7 @@ var RpcFactory = class {
|
|
26108
26223
|
}
|
26109
26224
|
};
|
26110
26225
|
|
26111
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26226
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/account.js
|
26112
26227
|
var import_eventemitter32 = __toESM(require_eventemitter3());
|
26113
26228
|
init_index_esm();
|
26114
26229
|
var AccountFactory = class {
|
@@ -26330,7 +26445,7 @@ var AccountClient = class {
|
|
26330
26445
|
};
|
26331
26446
|
var subscriptions = /* @__PURE__ */ new Map();
|
26332
26447
|
|
26333
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26448
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/event.js
|
26334
26449
|
var PROGRAM_LOG = "Program log: ";
|
26335
26450
|
var PROGRAM_DATA = "Program data: ";
|
26336
26451
|
var PROGRAM_LOG_START_INDEX = PROGRAM_LOG.length;
|
@@ -26520,7 +26635,7 @@ var LogScanner = class {
|
|
26520
26635
|
}
|
26521
26636
|
};
|
26522
26637
|
|
26523
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26638
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/simulate.js
|
26524
26639
|
var SimulateFactory = class {
|
26525
26640
|
static {
|
26526
26641
|
__name(this, "SimulateFactory");
|
@@ -26559,11 +26674,11 @@ var SimulateFactory = class {
|
|
26559
26674
|
}
|
26560
26675
|
};
|
26561
26676
|
|
26562
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26677
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.js
|
26563
26678
|
var import_bn4 = __toESM(require_bn());
|
26564
26679
|
init_index_esm();
|
26565
26680
|
|
26566
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26681
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/token-account-layout.js
|
26567
26682
|
var import_bn3 = __toESM(require_bn());
|
26568
26683
|
var BufferLayout4 = __toESM(require_Layout2());
|
26569
26684
|
var import_buffer_layout2 = __toESM(require_Layout2());
|
@@ -26680,7 +26795,7 @@ function decodeTokenAccount(b) {
|
|
26680
26795
|
}
|
26681
26796
|
__name(decodeTokenAccount, "decodeTokenAccount");
|
26682
26797
|
|
26683
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26798
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.js
|
26684
26799
|
var AccountsResolver = class {
|
26685
26800
|
static {
|
26686
26801
|
__name(this, "AccountsResolver");
|
@@ -27046,7 +27161,7 @@ var AccountStore = class {
|
|
27046
27161
|
}
|
27047
27162
|
};
|
27048
27163
|
|
27049
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27164
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/methods.js
|
27050
27165
|
var MethodsBuilderFactory = class {
|
27051
27166
|
static {
|
27052
27167
|
__name(this, "MethodsBuilderFactory");
|
@@ -27257,7 +27372,7 @@ var MethodsBuilder = class {
|
|
27257
27372
|
}
|
27258
27373
|
};
|
27259
27374
|
|
27260
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27375
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/views.js
|
27261
27376
|
var ViewFactory = class {
|
27262
27377
|
static {
|
27263
27378
|
__name(this, "ViewFactory");
|
@@ -27286,7 +27401,7 @@ var ViewFactory = class {
|
|
27286
27401
|
}
|
27287
27402
|
};
|
27288
27403
|
|
27289
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27404
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/index.js
|
27290
27405
|
var NamespaceFactory = class {
|
27291
27406
|
static {
|
27292
27407
|
__name(this, "NamespaceFactory");
|
@@ -27332,7 +27447,7 @@ var NamespaceFactory = class {
|
|
27332
27447
|
}
|
27333
27448
|
};
|
27334
27449
|
|
27335
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27450
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/index.js
|
27336
27451
|
var Program = class _Program {
|
27337
27452
|
static {
|
27338
27453
|
__name(this, "Program");
|
@@ -27452,11 +27567,11 @@ var Program = class _Program {
|
|
27452
27567
|
}
|
27453
27568
|
};
|
27454
27569
|
|
27455
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27570
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/native/system.js
|
27456
27571
|
init_index_esm();
|
27457
27572
|
var SYSTEM_PROGRAM_ID = new PublicKey("11111111111111111111111111111111");
|
27458
27573
|
|
27459
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27574
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/workspace.js
|
27460
27575
|
var toml = __toESM(require_toml());
|
27461
27576
|
|
27462
27577
|
// ../../node_modules/.pnpm/lower-case@2.0.2/node_modules/lower-case/dist.es2015/index.js
|
@@ -27510,7 +27625,7 @@ function snakeCase(input, options) {
|
|
27510
27625
|
}
|
27511
27626
|
__name(snakeCase, "snakeCase");
|
27512
27627
|
|
27513
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27628
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/workspace.js
|
27514
27629
|
init_common();
|
27515
27630
|
var workspace = new Proxy({}, {
|
27516
27631
|
get(workspaceCache, programName) {
|
@@ -27549,7 +27664,7 @@ var workspace = new Proxy({}, {
|
|
27549
27664
|
}
|
27550
27665
|
});
|
27551
27666
|
|
27552
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27667
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.9_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/index.js
|
27553
27668
|
init_nodewallet();
|
27554
27669
|
|
27555
27670
|
// src/solana/index.ts
|
@@ -27795,4 +27910,4 @@ buffer-layout/lib/Layout.js:
|
|
27795
27910
|
* @see {@link https://github.com/pabigot/buffer-layout|buffer-layout on GitHub}
|
27796
27911
|
*)
|
27797
27912
|
*/
|
27798
|
-
//# sourceMappingURL=chunk-
|
27913
|
+
//# sourceMappingURL=chunk-SIVNMNYW.js.map
|