@sentio/sdk 2.57.12-rc.f → 2.57.12-rc.g
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/{chunk-FDFFHCFA.js → chunk-2F2KNF4Z.js} +16113 -3887
- package/lib/chunk-2F2KNF4Z.js.map +1 -0
- package/lib/{chunk-QT2RHOVE.js → chunk-4HPFNKDX.js} +76 -146
- package/lib/chunk-4HPFNKDX.js.map +1 -0
- package/lib/{chunk-3NTVNR24.js → chunk-4OCWUYSJ.js} +2 -2
- package/lib/{chunk-M2LXR3BO.js → chunk-73SHERGU.js} +968 -1459
- package/lib/chunk-73SHERGU.js.map +1 -0
- package/lib/{chunk-MNZ4WYMA.js → chunk-7ECRTQD7.js} +2900 -3012
- package/lib/chunk-7ECRTQD7.js.map +1 -0
- package/lib/{chunk-2S4VBXER.js → chunk-7S6WQ4RL.js} +3 -3
- package/lib/{chunk-FTNDYH4A.js → chunk-AZFMPZRN.js} +200 -418
- package/lib/chunk-AZFMPZRN.js.map +1 -0
- package/lib/{chunk-QSUUYUJL.js → chunk-BZCXYTDE.js} +3 -3
- package/lib/{chunk-Q52U5JD3.js → chunk-E2DS6WZF.js} +14 -14
- package/lib/{chunk-Q52U5JD3.js.map → chunk-E2DS6WZF.js.map} +1 -1
- package/lib/{chunk-QUMTLHC5.js → chunk-GE6BRIGS.js} +5 -5
- package/lib/{chunk-MERD27M6.js → chunk-J3I3VNTV.js} +3 -3
- package/lib/{chunk-NMHIV5TJ.js → chunk-J3QOJ2RV.js} +4 -4
- package/lib/{chunk-BRHYXWEW.js → chunk-LPSNAS2G.js} +3 -3
- package/lib/chunk-LR232ZJV.js +2593 -0
- package/lib/chunk-LR232ZJV.js.map +1 -0
- package/lib/{chunk-TOXC2A6K.js → chunk-N36N7RXJ.js} +3 -3
- package/lib/{chunk-FLCIAA4G.js → chunk-OJG2VJ5T.js} +5 -5
- package/lib/{chunk-FLCIAA4G.js.map → chunk-OJG2VJ5T.js.map} +1 -1
- package/lib/{chunk-U5FYYK4Y.js → chunk-ONBEMKI5.js} +2 -2
- package/lib/{chunk-IGFULPWN.js → chunk-PVX2LIM5.js} +4 -4
- package/lib/{chunk-ZAY2PRBU.js → chunk-RMT2JEWA.js} +37 -37
- package/lib/{chunk-ZAY2PRBU.js.map → chunk-RMT2JEWA.js.map} +1 -1
- package/lib/{chunk-VWXVCB2D.js → chunk-S6MJ3KIL.js} +269 -384
- package/lib/chunk-S6MJ3KIL.js.map +1 -0
- package/lib/{chunk-FV4WLDIZ.js → chunk-UIBPOKNT.js} +16 -16
- package/lib/chunk-UIBPOKNT.js.map +1 -0
- package/package.json +3 -3
- package/lib/chunk-FDFFHCFA.js.map +0 -1
- package/lib/chunk-FTNDYH4A.js.map +0 -1
- package/lib/chunk-FV4WLDIZ.js.map +0 -1
- package/lib/chunk-M2LXR3BO.js.map +0 -1
- package/lib/chunk-MNZ4WYMA.js.map +0 -1
- package/lib/chunk-QT2RHOVE.js.map +0 -1
- package/lib/chunk-VWXVCB2D.js.map +0 -1
- /package/lib/{chunk-3NTVNR24.js.map → chunk-4OCWUYSJ.js.map} +0 -0
- /package/lib/{chunk-2S4VBXER.js.map → chunk-7S6WQ4RL.js.map} +0 -0
- /package/lib/{chunk-QSUUYUJL.js.map → chunk-BZCXYTDE.js.map} +0 -0
- /package/lib/{chunk-QUMTLHC5.js.map → chunk-GE6BRIGS.js.map} +0 -0
- /package/lib/{chunk-MERD27M6.js.map → chunk-J3I3VNTV.js.map} +0 -0
- /package/lib/{chunk-NMHIV5TJ.js.map → chunk-J3QOJ2RV.js.map} +0 -0
- /package/lib/{chunk-BRHYXWEW.js.map → chunk-LPSNAS2G.js.map} +0 -0
- /package/lib/{chunk-TOXC2A6K.js.map → chunk-N36N7RXJ.js.map} +0 -0
- /package/lib/{chunk-U5FYYK4Y.js.map → chunk-ONBEMKI5.js.map} +0 -0
- /package/lib/{chunk-IGFULPWN.js.map → chunk-PVX2LIM5.js.map} +0 -0
@@ -1,13 +1,13 @@
|
|
1
1
|
import { createRequire as createRequireSdkShim } from 'module'; const require = createRequireSdkShim(import.meta.url);
|
2
|
+
import {
|
3
|
+
inflate_1
|
4
|
+
} from "./chunk-6UVWNOIX.js";
|
2
5
|
import {
|
3
6
|
ed25519,
|
4
7
|
import_index,
|
5
8
|
init_ed25519,
|
6
9
|
init_eventemitter3
|
7
|
-
} from "./chunk-
|
8
|
-
import {
|
9
|
-
inflate_1
|
10
|
-
} from "./chunk-6UVWNOIX.js";
|
10
|
+
} from "./chunk-UIBPOKNT.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-2F2KNF4Z.js";
|
28
28
|
import {
|
29
29
|
require_lib
|
30
|
-
} from "./chunk-
|
30
|
+
} from "./chunk-73SHERGU.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.9/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.9/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,12 +185,8 @@ 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 (psz
|
189
|
-
var
|
190
|
-
if (charCode > 255) {
|
191
|
-
return;
|
192
|
-
}
|
193
|
-
var carry = BASE_MAP[charCode];
|
188
|
+
while (source[psz]) {
|
189
|
+
var carry = BASE_MAP[source.charCodeAt(psz)];
|
194
190
|
if (carry === 255) {
|
195
191
|
return;
|
196
192
|
}
|
@@ -2318,7 +2314,7 @@ var require_Layout = __commonJS({
|
|
2318
2314
|
}
|
2319
2315
|
};
|
2320
2316
|
exports.Boolean = Boolean2;
|
2321
|
-
var
|
2317
|
+
var Blob = class extends Layout4 {
|
2322
2318
|
static {
|
2323
2319
|
__name(this, "Blob");
|
2324
2320
|
}
|
@@ -2373,7 +2369,7 @@ var require_Layout = __commonJS({
|
|
2373
2369
|
return span;
|
2374
2370
|
}
|
2375
2371
|
};
|
2376
|
-
exports.Blob =
|
2372
|
+
exports.Blob = Blob;
|
2377
2373
|
var CString = class extends Layout4 {
|
2378
2374
|
static {
|
2379
2375
|
__name(this, "CString");
|
@@ -2515,7 +2511,7 @@ var require_Layout = __commonJS({
|
|
2515
2511
|
exports.seq = (elementLayout, count, property) => new Sequence(elementLayout, count, property);
|
2516
2512
|
exports.union = (discr, defaultLayout, property) => new Union(discr, defaultLayout, property);
|
2517
2513
|
exports.unionLayoutDiscriminator = (layout, property) => new UnionLayoutDiscriminator(layout, property);
|
2518
|
-
exports.blob = (length, property) => new
|
2514
|
+
exports.blob = (length, property) => new Blob(length, property);
|
2519
2515
|
exports.cstr = (property) => new CString(property);
|
2520
2516
|
exports.utf8 = (maxSpan, property) => new UTF8(maxSpan, property);
|
2521
2517
|
exports.constant = (value, property) => new Constant(value, property);
|
@@ -3574,9 +3570,9 @@ var init_esm_node = __esm({
|
|
3574
3570
|
}
|
3575
3571
|
});
|
3576
3572
|
|
3577
|
-
// ../../node_modules/.pnpm/jayson@4.1.
|
3573
|
+
// ../../node_modules/.pnpm/jayson@4.1.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/jayson/lib/generateRequest.js
|
3578
3574
|
var require_generateRequest = __commonJS({
|
3579
|
-
"../../node_modules/.pnpm/jayson@4.1.
|
3575
|
+
"../../node_modules/.pnpm/jayson@4.1.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/jayson/lib/generateRequest.js"(exports, module) {
|
3580
3576
|
"use strict";
|
3581
3577
|
var uuid = (init_esm_node(), __toCommonJS(esm_node_exports)).v4;
|
3582
3578
|
var generateRequest = /* @__PURE__ */ __name(function(method, params, id, options) {
|
@@ -3618,9 +3614,9 @@ var require_generateRequest = __commonJS({
|
|
3618
3614
|
}
|
3619
3615
|
});
|
3620
3616
|
|
3621
|
-
// ../../node_modules/.pnpm/jayson@4.1.
|
3617
|
+
// ../../node_modules/.pnpm/jayson@4.1.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/jayson/lib/client/browser/index.js
|
3622
3618
|
var require_browser = __commonJS({
|
3623
|
-
"../../node_modules/.pnpm/jayson@4.1.
|
3619
|
+
"../../node_modules/.pnpm/jayson@4.1.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/jayson/lib/client/browser/index.js"(exports, module) {
|
3624
3620
|
"use strict";
|
3625
3621
|
var uuid = (init_esm_node(), __toCommonJS(esm_node_exports)).v4;
|
3626
3622
|
var generateRequest = require_generateRequest();
|
@@ -3719,18 +3715,115 @@ var require_browser = __commonJS({
|
|
3719
3715
|
}
|
3720
3716
|
});
|
3721
3717
|
|
3722
|
-
// ../../node_modules/.pnpm/ws@8.
|
3718
|
+
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/stream.js
|
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
|
3723
3820
|
var require_constants = __commonJS({
|
3724
|
-
"../../node_modules/.pnpm/ws@8.
|
3821
|
+
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/constants.js"(exports, module) {
|
3725
3822
|
"use strict";
|
3726
|
-
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
3727
|
-
var hasBlob = typeof Blob !== "undefined";
|
3728
|
-
if (hasBlob) BINARY_TYPES.push("blob");
|
3729
3823
|
module.exports = {
|
3730
|
-
BINARY_TYPES,
|
3824
|
+
BINARY_TYPES: ["nodebuffer", "arraybuffer", "fragments"],
|
3731
3825
|
EMPTY_BUFFER: Buffer.alloc(0),
|
3732
3826
|
GUID: "258EAFA5-E914-47DA-95CA-C5AB0DC85B11",
|
3733
|
-
hasBlob,
|
3734
3827
|
kForOnEventAttribute: Symbol("kIsForOnEventAttribute"),
|
3735
3828
|
kListener: Symbol("kListener"),
|
3736
3829
|
kStatusCode: Symbol("status-code"),
|
@@ -3741,9 +3834,9 @@ var require_constants = __commonJS({
|
|
3741
3834
|
}
|
3742
3835
|
});
|
3743
3836
|
|
3744
|
-
// ../../node_modules/.pnpm/node-gyp-build@4.8.
|
3837
|
+
// ../../node_modules/.pnpm/node-gyp-build@4.8.1/node_modules/node-gyp-build/node-gyp-build.js
|
3745
3838
|
var require_node_gyp_build = __commonJS({
|
3746
|
-
"../../node_modules/.pnpm/node-gyp-build@4.8.
|
3839
|
+
"../../node_modules/.pnpm/node-gyp-build@4.8.1/node_modules/node-gyp-build/node-gyp-build.js"(exports, module) {
|
3747
3840
|
"use strict";
|
3748
3841
|
var fs = __require("fs");
|
3749
3842
|
var path = __require("path");
|
@@ -3926,9 +4019,9 @@ var require_node_gyp_build = __commonJS({
|
|
3926
4019
|
}
|
3927
4020
|
});
|
3928
4021
|
|
3929
|
-
// ../../node_modules/.pnpm/node-gyp-build@4.8.
|
4022
|
+
// ../../node_modules/.pnpm/node-gyp-build@4.8.1/node_modules/node-gyp-build/index.js
|
3930
4023
|
var require_node_gyp_build2 = __commonJS({
|
3931
|
-
"../../node_modules/.pnpm/node-gyp-build@4.8.
|
4024
|
+
"../../node_modules/.pnpm/node-gyp-build@4.8.1/node_modules/node-gyp-build/index.js"(exports, module) {
|
3932
4025
|
"use strict";
|
3933
4026
|
var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
|
3934
4027
|
if (typeof runtimeRequire.addon === "function") {
|
@@ -3939,9 +4032,9 @@ var require_node_gyp_build2 = __commonJS({
|
|
3939
4032
|
}
|
3940
4033
|
});
|
3941
4034
|
|
3942
|
-
// ../../node_modules/.pnpm/bufferutil@4.0.
|
4035
|
+
// ../../node_modules/.pnpm/bufferutil@4.0.8/node_modules/bufferutil/fallback.js
|
3943
4036
|
var require_fallback = __commonJS({
|
3944
|
-
"../../node_modules/.pnpm/bufferutil@4.0.
|
4037
|
+
"../../node_modules/.pnpm/bufferutil@4.0.8/node_modules/bufferutil/fallback.js"(exports, module) {
|
3945
4038
|
"use strict";
|
3946
4039
|
var mask3 = /* @__PURE__ */ __name((source, mask4, output, offset3, length) => {
|
3947
4040
|
for (var i = 0; i < length; i++) {
|
@@ -3958,9 +4051,9 @@ var require_fallback = __commonJS({
|
|
3958
4051
|
}
|
3959
4052
|
});
|
3960
4053
|
|
3961
|
-
// ../../node_modules/.pnpm/bufferutil@4.0.
|
4054
|
+
// ../../node_modules/.pnpm/bufferutil@4.0.8/node_modules/bufferutil/index.js
|
3962
4055
|
var require_bufferutil = __commonJS({
|
3963
|
-
"../../node_modules/.pnpm/bufferutil@4.0.
|
4056
|
+
"../../node_modules/.pnpm/bufferutil@4.0.8/node_modules/bufferutil/index.js"(exports, module) {
|
3964
4057
|
"use strict";
|
3965
4058
|
try {
|
3966
4059
|
module.exports = require_node_gyp_build2()(__dirname);
|
@@ -3970,9 +4063,9 @@ var require_bufferutil = __commonJS({
|
|
3970
4063
|
}
|
3971
4064
|
});
|
3972
4065
|
|
3973
|
-
// ../../node_modules/.pnpm/ws@8.
|
4066
|
+
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/buffer-util.js
|
3974
4067
|
var require_buffer_util = __commonJS({
|
3975
|
-
"../../node_modules/.pnpm/ws@8.
|
4068
|
+
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/buffer-util.js"(exports, module) {
|
3976
4069
|
"use strict";
|
3977
4070
|
var { EMPTY_BUFFER } = require_constants();
|
3978
4071
|
var FastBuffer = Buffer[Symbol.species];
|
@@ -4050,9 +4143,9 @@ var require_buffer_util = __commonJS({
|
|
4050
4143
|
}
|
4051
4144
|
});
|
4052
4145
|
|
4053
|
-
// ../../node_modules/.pnpm/ws@8.
|
4146
|
+
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/limiter.js
|
4054
4147
|
var require_limiter = __commonJS({
|
4055
|
-
"../../node_modules/.pnpm/ws@8.
|
4148
|
+
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/limiter.js"(exports, module) {
|
4056
4149
|
"use strict";
|
4057
4150
|
var kDone = Symbol("kDone");
|
4058
4151
|
var kRun = Symbol("kRun");
|
@@ -4103,9 +4196,9 @@ var require_limiter = __commonJS({
|
|
4103
4196
|
}
|
4104
4197
|
});
|
4105
4198
|
|
4106
|
-
// ../../node_modules/.pnpm/ws@8.
|
4199
|
+
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/permessage-deflate.js
|
4107
4200
|
var require_permessage_deflate = __commonJS({
|
4108
|
-
"../../node_modules/.pnpm/ws@8.
|
4201
|
+
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
4109
4202
|
"use strict";
|
4110
4203
|
var zlib = __require("zlib");
|
4111
4204
|
var bufferUtil = require_buffer_util();
|
@@ -4538,12 +4631,11 @@ var require_utf_8_validate = __commonJS({
|
|
4538
4631
|
}
|
4539
4632
|
});
|
4540
4633
|
|
4541
|
-
// ../../node_modules/.pnpm/ws@8.
|
4634
|
+
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/validation.js
|
4542
4635
|
var require_validation = __commonJS({
|
4543
|
-
"../../node_modules/.pnpm/ws@8.
|
4636
|
+
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/validation.js"(exports, module) {
|
4544
4637
|
"use strict";
|
4545
4638
|
var { isUtf8 } = __require("buffer");
|
4546
|
-
var { hasBlob } = require_constants();
|
4547
4639
|
var tokenChars = [
|
4548
4640
|
0,
|
4549
4641
|
0,
|
@@ -4716,12 +4808,7 @@ var require_validation = __commonJS({
|
|
4716
4808
|
return true;
|
4717
4809
|
}
|
4718
4810
|
__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");
|
4723
4811
|
module.exports = {
|
4724
|
-
isBlob,
|
4725
4812
|
isValidStatusCode,
|
4726
4813
|
isValidUTF8: _isValidUTF8,
|
4727
4814
|
tokenChars
|
@@ -4742,9 +4829,9 @@ var require_validation = __commonJS({
|
|
4742
4829
|
}
|
4743
4830
|
});
|
4744
4831
|
|
4745
|
-
// ../../node_modules/.pnpm/ws@8.
|
4832
|
+
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/receiver.js
|
4746
4833
|
var require_receiver = __commonJS({
|
4747
|
-
"../../node_modules/.pnpm/ws@8.
|
4834
|
+
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/receiver.js"(exports, module) {
|
4748
4835
|
"use strict";
|
4749
4836
|
var { Writable } = __require("stream");
|
4750
4837
|
var PerMessageDeflate = require_permessage_deflate();
|
@@ -5206,8 +5293,6 @@ var require_receiver = __commonJS({
|
|
5206
5293
|
data = concat(fragments, messageLength);
|
5207
5294
|
} else if (this._binaryType === "arraybuffer") {
|
5208
5295
|
data = toArrayBuffer(concat(fragments, messageLength));
|
5209
|
-
} else if (this._binaryType === "blob") {
|
5210
|
-
data = new Blob(fragments);
|
5211
5296
|
} else {
|
5212
5297
|
data = fragments;
|
5213
5298
|
}
|
@@ -5337,24 +5422,21 @@ var require_receiver = __commonJS({
|
|
5337
5422
|
}
|
5338
5423
|
});
|
5339
5424
|
|
5340
|
-
// ../../node_modules/.pnpm/ws@8.
|
5425
|
+
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/sender.js
|
5341
5426
|
var require_sender = __commonJS({
|
5342
|
-
"../../node_modules/.pnpm/ws@8.
|
5427
|
+
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/sender.js"(exports, module) {
|
5343
5428
|
"use strict";
|
5344
5429
|
var { Duplex } = __require("stream");
|
5345
5430
|
var { randomFillSync } = __require("crypto");
|
5346
5431
|
var PerMessageDeflate = require_permessage_deflate();
|
5347
|
-
var { EMPTY_BUFFER
|
5348
|
-
var {
|
5432
|
+
var { EMPTY_BUFFER } = require_constants();
|
5433
|
+
var { isValidStatusCode } = require_validation();
|
5349
5434
|
var { mask: applyMask, toBuffer: toBuffer2 } = require_buffer_util();
|
5350
5435
|
var kByteLength = Symbol("kByteLength");
|
5351
5436
|
var maskBuffer = Buffer.alloc(4);
|
5352
5437
|
var RANDOM_POOL_SIZE = 8 * 1024;
|
5353
5438
|
var randomPool;
|
5354
5439
|
var randomPoolPointer = RANDOM_POOL_SIZE;
|
5355
|
-
var DEFAULT = 0;
|
5356
|
-
var DEFLATING = 1;
|
5357
|
-
var GET_BLOB_DATA = 2;
|
5358
5440
|
var Sender2 = class _Sender {
|
5359
5441
|
static {
|
5360
5442
|
__name(this, "Sender");
|
@@ -5377,10 +5459,8 @@ var require_sender = __commonJS({
|
|
5377
5459
|
this._firstFragment = true;
|
5378
5460
|
this._compress = false;
|
5379
5461
|
this._bufferedBytes = 0;
|
5462
|
+
this._deflating = false;
|
5380
5463
|
this._queue = [];
|
5381
|
-
this._state = DEFAULT;
|
5382
|
-
this.onerror = NOOP;
|
5383
|
-
this[kWebSocket] = void 0;
|
5384
5464
|
}
|
5385
5465
|
/**
|
5386
5466
|
* Frames a piece of data according to the HyBi WebSocket protocol.
|
@@ -5513,7 +5593,7 @@ var require_sender = __commonJS({
|
|
5513
5593
|
readOnly: false,
|
5514
5594
|
rsv1: false
|
5515
5595
|
};
|
5516
|
-
if (this.
|
5596
|
+
if (this._deflating) {
|
5517
5597
|
this.enqueue([this.dispatch, buf, false, options, cb]);
|
5518
5598
|
} else {
|
5519
5599
|
this.sendFrame(_Sender.frame(buf, options), cb);
|
@@ -5533,9 +5613,6 @@ var require_sender = __commonJS({
|
|
5533
5613
|
if (typeof data === "string") {
|
5534
5614
|
byteLength = Buffer.byteLength(data);
|
5535
5615
|
readOnly = false;
|
5536
|
-
} else if (isBlob(data)) {
|
5537
|
-
byteLength = data.size;
|
5538
|
-
readOnly = false;
|
5539
5616
|
} else {
|
5540
5617
|
data = toBuffer2(data);
|
5541
5618
|
byteLength = data.length;
|
@@ -5554,13 +5631,7 @@ var require_sender = __commonJS({
|
|
5554
5631
|
readOnly,
|
5555
5632
|
rsv1: false
|
5556
5633
|
};
|
5557
|
-
if (
|
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) {
|
5634
|
+
if (this._deflating) {
|
5564
5635
|
this.enqueue([this.dispatch, data, false, options, cb]);
|
5565
5636
|
} else {
|
5566
5637
|
this.sendFrame(_Sender.frame(data, options), cb);
|
@@ -5580,9 +5651,6 @@ var require_sender = __commonJS({
|
|
5580
5651
|
if (typeof data === "string") {
|
5581
5652
|
byteLength = Buffer.byteLength(data);
|
5582
5653
|
readOnly = false;
|
5583
|
-
} else if (isBlob(data)) {
|
5584
|
-
byteLength = data.size;
|
5585
|
-
readOnly = false;
|
5586
5654
|
} else {
|
5587
5655
|
data = toBuffer2(data);
|
5588
5656
|
byteLength = data.length;
|
@@ -5601,13 +5669,7 @@ var require_sender = __commonJS({
|
|
5601
5669
|
readOnly,
|
5602
5670
|
rsv1: false
|
5603
5671
|
};
|
5604
|
-
if (
|
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) {
|
5672
|
+
if (this._deflating) {
|
5611
5673
|
this.enqueue([this.dispatch, data, false, options, cb]);
|
5612
5674
|
} else {
|
5613
5675
|
this.sendFrame(_Sender.frame(data, options), cb);
|
@@ -5638,9 +5700,6 @@ var require_sender = __commonJS({
|
|
5638
5700
|
if (typeof data === "string") {
|
5639
5701
|
byteLength = Buffer.byteLength(data);
|
5640
5702
|
readOnly = false;
|
5641
|
-
} else if (isBlob(data)) {
|
5642
|
-
byteLength = data.size;
|
5643
|
-
readOnly = false;
|
5644
5703
|
} else {
|
5645
5704
|
data = toBuffer2(data);
|
5646
5705
|
byteLength = data.length;
|
@@ -5657,75 +5716,38 @@ var require_sender = __commonJS({
|
|
5657
5716
|
opcode = 0;
|
5658
5717
|
}
|
5659
5718
|
if (options.fin) this._firstFragment = true;
|
5660
|
-
|
5661
|
-
|
5662
|
-
|
5663
|
-
|
5664
|
-
|
5665
|
-
|
5666
|
-
|
5667
|
-
|
5668
|
-
|
5669
|
-
|
5670
|
-
|
5671
|
-
if (this.
|
5672
|
-
this.enqueue([this.
|
5719
|
+
if (perMessageDeflate) {
|
5720
|
+
const opts = {
|
5721
|
+
[kByteLength]: byteLength,
|
5722
|
+
fin: options.fin,
|
5723
|
+
generateMask: this._generateMask,
|
5724
|
+
mask: options.mask,
|
5725
|
+
maskBuffer: this._maskBuffer,
|
5726
|
+
opcode,
|
5727
|
+
readOnly,
|
5728
|
+
rsv1
|
5729
|
+
};
|
5730
|
+
if (this._deflating) {
|
5731
|
+
this.enqueue([this.dispatch, data, this._compress, opts, cb]);
|
5673
5732
|
} else {
|
5674
|
-
this.
|
5733
|
+
this.dispatch(data, this._compress, opts, cb);
|
5675
5734
|
}
|
5676
|
-
} else if (this._state !== DEFAULT) {
|
5677
|
-
this.enqueue([this.dispatch, data, this._compress, opts, cb]);
|
5678
5735
|
} else {
|
5679
|
-
this.
|
5736
|
+
this.sendFrame(
|
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
|
+
);
|
5680
5749
|
}
|
5681
5750
|
}
|
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
|
-
}
|
5729
5751
|
/**
|
5730
5752
|
* Dispatches a message.
|
5731
5753
|
*
|
@@ -5756,17 +5778,22 @@ var require_sender = __commonJS({
|
|
5756
5778
|
}
|
5757
5779
|
const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName];
|
5758
5780
|
this._bufferedBytes += options[kByteLength];
|
5759
|
-
this.
|
5781
|
+
this._deflating = true;
|
5760
5782
|
perMessageDeflate.compress(data, options.fin, (_, buf) => {
|
5761
5783
|
if (this._socket.destroyed) {
|
5762
5784
|
const err = new Error(
|
5763
5785
|
"The socket was closed while data was being compressed"
|
5764
5786
|
);
|
5765
|
-
|
5787
|
+
if (typeof cb === "function") cb(err);
|
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
|
+
}
|
5766
5793
|
return;
|
5767
5794
|
}
|
5768
5795
|
this._bufferedBytes -= options[kByteLength];
|
5769
|
-
this.
|
5796
|
+
this._deflating = false;
|
5770
5797
|
options.readOnly = false;
|
5771
5798
|
this.sendFrame(_Sender.frame(buf, options), cb);
|
5772
5799
|
this.dequeue();
|
@@ -5778,7 +5805,7 @@ var require_sender = __commonJS({
|
|
5778
5805
|
* @private
|
5779
5806
|
*/
|
5780
5807
|
dequeue() {
|
5781
|
-
while (this.
|
5808
|
+
while (!this._deflating && this._queue.length) {
|
5782
5809
|
const params = this._queue.shift();
|
5783
5810
|
this._bufferedBytes -= params[3][kByteLength];
|
5784
5811
|
Reflect.apply(params[0], this, params.slice(1));
|
@@ -5797,7 +5824,7 @@ var require_sender = __commonJS({
|
|
5797
5824
|
/**
|
5798
5825
|
* Sends a frame.
|
5799
5826
|
*
|
5800
|
-
* @param {
|
5827
|
+
* @param {Buffer[]} list The frame to send
|
5801
5828
|
* @param {Function} [cb] Callback
|
5802
5829
|
* @private
|
5803
5830
|
*/
|
@@ -5813,26 +5840,12 @@ var require_sender = __commonJS({
|
|
5813
5840
|
}
|
5814
5841
|
};
|
5815
5842
|
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");
|
5830
5843
|
}
|
5831
5844
|
});
|
5832
5845
|
|
5833
|
-
// ../../node_modules/.pnpm/ws@8.
|
5846
|
+
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/event-target.js
|
5834
5847
|
var require_event_target = __commonJS({
|
5835
|
-
"../../node_modules/.pnpm/ws@8.
|
5848
|
+
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/event-target.js"(exports, module) {
|
5836
5849
|
"use strict";
|
5837
5850
|
var { kForOnEventAttribute, kListener } = require_constants();
|
5838
5851
|
var kCode = Symbol("kCode");
|
@@ -6072,9 +6085,9 @@ var require_event_target = __commonJS({
|
|
6072
6085
|
}
|
6073
6086
|
});
|
6074
6087
|
|
6075
|
-
// ../../node_modules/.pnpm/ws@8.
|
6088
|
+
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/extension.js
|
6076
6089
|
var require_extension = __commonJS({
|
6077
|
-
"../../node_modules/.pnpm/ws@8.
|
6090
|
+
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/extension.js"(exports, module) {
|
6078
6091
|
"use strict";
|
6079
6092
|
var { tokenChars } = require_validation();
|
6080
6093
|
function push(dest, name, elem) {
|
@@ -6228,9 +6241,9 @@ var require_extension = __commonJS({
|
|
6228
6241
|
}
|
6229
6242
|
});
|
6230
6243
|
|
6231
|
-
// ../../node_modules/.pnpm/ws@8.
|
6244
|
+
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/websocket.js
|
6232
6245
|
var require_websocket = __commonJS({
|
6233
|
-
"../../node_modules/.pnpm/ws@8.
|
6246
|
+
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/websocket.js"(exports, module) {
|
6234
6247
|
"use strict";
|
6235
6248
|
var EventEmitter3 = __require("events");
|
6236
6249
|
var https = __require("https");
|
@@ -6243,7 +6256,6 @@ var require_websocket = __commonJS({
|
|
6243
6256
|
var PerMessageDeflate = require_permessage_deflate();
|
6244
6257
|
var Receiver2 = require_receiver();
|
6245
6258
|
var Sender2 = require_sender();
|
6246
|
-
var { isBlob } = require_validation();
|
6247
6259
|
var {
|
6248
6260
|
BINARY_TYPES,
|
6249
6261
|
EMPTY_BUFFER,
|
@@ -6283,7 +6295,6 @@ var require_websocket = __commonJS({
|
|
6283
6295
|
this._closeFrameSent = false;
|
6284
6296
|
this._closeMessage = EMPTY_BUFFER;
|
6285
6297
|
this._closeTimer = null;
|
6286
|
-
this._errorEmitted = false;
|
6287
6298
|
this._extensions = {};
|
6288
6299
|
this._paused = false;
|
6289
6300
|
this._protocol = "";
|
@@ -6312,8 +6323,9 @@ var require_websocket = __commonJS({
|
|
6312
6323
|
}
|
6313
6324
|
}
|
6314
6325
|
/**
|
6315
|
-
*
|
6316
|
-
*
|
6326
|
+
* This deviates from the WHATWG interface since ws doesn't support the
|
6327
|
+
* required default "blob" type (instead we define a custom "nodebuffer"
|
6328
|
+
* type).
|
6317
6329
|
*
|
6318
6330
|
* @type {String}
|
6319
6331
|
*/
|
@@ -6415,12 +6427,10 @@ var require_websocket = __commonJS({
|
|
6415
6427
|
maxPayload: options.maxPayload,
|
6416
6428
|
skipUTF8Validation: options.skipUTF8Validation
|
6417
6429
|
});
|
6418
|
-
|
6430
|
+
this._sender = new Sender2(socket, this._extensions, options.generateMask);
|
6419
6431
|
this._receiver = receiver;
|
6420
|
-
this._sender = sender;
|
6421
6432
|
this._socket = socket;
|
6422
6433
|
receiver[kWebSocket] = this;
|
6423
|
-
sender[kWebSocket] = this;
|
6424
6434
|
socket[kWebSocket] = this;
|
6425
6435
|
receiver.on("conclude", receiverOnConclude);
|
6426
6436
|
receiver.on("drain", receiverOnDrain);
|
@@ -6428,7 +6438,6 @@ var require_websocket = __commonJS({
|
|
6428
6438
|
receiver.on("message", receiverOnMessage);
|
6429
6439
|
receiver.on("ping", receiverOnPing);
|
6430
6440
|
receiver.on("pong", receiverOnPong);
|
6431
|
-
sender.onerror = senderOnError;
|
6432
6441
|
if (socket.setTimeout) socket.setTimeout(0);
|
6433
6442
|
if (socket.setNoDelay) socket.setNoDelay();
|
6434
6443
|
if (head.length > 0) socket.unshift(head);
|
@@ -6498,7 +6507,10 @@ var require_websocket = __commonJS({
|
|
6498
6507
|
this._socket.end();
|
6499
6508
|
}
|
6500
6509
|
});
|
6501
|
-
|
6510
|
+
this._closeTimer = setTimeout(
|
6511
|
+
this._socket.destroy.bind(this._socket),
|
6512
|
+
closeTimeout
|
6513
|
+
);
|
6502
6514
|
}
|
6503
6515
|
/**
|
6504
6516
|
* Pause the socket.
|
@@ -6964,7 +6976,6 @@ var require_websocket = __commonJS({
|
|
6964
6976
|
__name(initAsClient, "initAsClient");
|
6965
6977
|
function emitErrorAndClose(websocket, err) {
|
6966
6978
|
websocket._readyState = WebSocket3.CLOSING;
|
6967
|
-
websocket._errorEmitted = true;
|
6968
6979
|
websocket.emit("error", err);
|
6969
6980
|
websocket.emitClose();
|
6970
6981
|
}
|
@@ -7002,7 +7013,7 @@ var require_websocket = __commonJS({
|
|
7002
7013
|
__name(abortHandshake, "abortHandshake");
|
7003
7014
|
function sendAfterClose(websocket, data, cb) {
|
7004
7015
|
if (data) {
|
7005
|
-
const length =
|
7016
|
+
const length = toBuffer2(data).length;
|
7006
7017
|
if (websocket._socket) websocket._sender._bufferedBytes += length;
|
7007
7018
|
else websocket._bufferedAmount += length;
|
7008
7019
|
}
|
@@ -7038,10 +7049,7 @@ var require_websocket = __commonJS({
|
|
7038
7049
|
process.nextTick(resume, websocket._socket);
|
7039
7050
|
websocket.close(err[kStatusCode]);
|
7040
7051
|
}
|
7041
|
-
|
7042
|
-
websocket._errorEmitted = true;
|
7043
|
-
websocket.emit("error", err);
|
7044
|
-
}
|
7052
|
+
websocket.emit("error", err);
|
7045
7053
|
}
|
7046
7054
|
__name(receiverOnError, "receiverOnError");
|
7047
7055
|
function receiverOnFinish() {
|
@@ -7066,27 +7074,6 @@ var require_websocket = __commonJS({
|
|
7066
7074
|
stream.resume();
|
7067
7075
|
}
|
7068
7076
|
__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");
|
7090
7077
|
function socketOnClose() {
|
7091
7078
|
const websocket = this[kWebSocket];
|
7092
7079
|
this.removeListener("close", socketOnClose);
|
@@ -7134,111 +7121,9 @@ var require_websocket = __commonJS({
|
|
7134
7121
|
}
|
7135
7122
|
});
|
7136
7123
|
|
7137
|
-
// ../../node_modules/.pnpm/ws@8.
|
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
|
7124
|
+
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/subprotocol.js
|
7240
7125
|
var require_subprotocol = __commonJS({
|
7241
|
-
"../../node_modules/.pnpm/ws@8.
|
7126
|
+
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/subprotocol.js"(exports, module) {
|
7242
7127
|
"use strict";
|
7243
7128
|
var { tokenChars } = require_validation();
|
7244
7129
|
function parse3(header) {
|
@@ -7282,9 +7167,9 @@ var require_subprotocol = __commonJS({
|
|
7282
7167
|
}
|
7283
7168
|
});
|
7284
7169
|
|
7285
|
-
// ../../node_modules/.pnpm/ws@8.
|
7170
|
+
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/websocket-server.js
|
7286
7171
|
var require_websocket_server = __commonJS({
|
7287
|
-
"../../node_modules/.pnpm/ws@8.
|
7172
|
+
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/lib/websocket-server.js"(exports, module) {
|
7288
7173
|
"use strict";
|
7289
7174
|
var EventEmitter3 = __require("events");
|
7290
7175
|
var http = __require("http");
|
@@ -7677,10 +7562,10 @@ var require_websocket_server = __commonJS({
|
|
7677
7562
|
}
|
7678
7563
|
});
|
7679
7564
|
|
7680
|
-
// ../../node_modules/.pnpm/ws@8.
|
7565
|
+
// ../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/wrapper.mjs
|
7681
7566
|
var import_stream, import_receiver, import_sender, import_websocket, import_websocket_server, wrapper_default;
|
7682
7567
|
var init_wrapper = __esm({
|
7683
|
-
"../../node_modules/.pnpm/ws@8.
|
7568
|
+
"../../node_modules/.pnpm/ws@8.17.1_bufferutil@4.0.8_utf-8-validate@5.0.10/node_modules/ws/wrapper.mjs"() {
|
7684
7569
|
"use strict";
|
7685
7570
|
import_stream = __toESM(require_stream(), 1);
|
7686
7571
|
import_receiver = __toESM(require_receiver(), 1);
|
@@ -7691,13 +7576,13 @@ var init_wrapper = __esm({
|
|
7691
7576
|
}
|
7692
7577
|
});
|
7693
7578
|
|
7694
|
-
// ../../node_modules/.pnpm/rpc-websockets@9.
|
7579
|
+
// ../../node_modules/.pnpm/rpc-websockets@9.0.4/node_modules/rpc-websockets/dist/index.mjs
|
7695
7580
|
function WebSocket2(address, options) {
|
7696
7581
|
return new wrapper_default(address, options);
|
7697
7582
|
}
|
7698
7583
|
var DefaultDataPack, CommonClient;
|
7699
7584
|
var init_dist2 = __esm({
|
7700
|
-
"../../node_modules/.pnpm/rpc-websockets@9.
|
7585
|
+
"../../node_modules/.pnpm/rpc-websockets@9.0.4/node_modules/rpc-websockets/dist/index.mjs"() {
|
7701
7586
|
"use strict";
|
7702
7587
|
init_wrapper();
|
7703
7588
|
init_eventemitter3();
|
@@ -7763,7 +7648,7 @@ var init_dist2 = __esm({
|
|
7763
7648
|
this.max_reconnects = max_reconnects;
|
7764
7649
|
this.rest_options = rest_options;
|
7765
7650
|
this.current_reconnects = 0;
|
7766
|
-
this.generate_request_id = generate_request_id || (() =>
|
7651
|
+
this.generate_request_id = generate_request_id || (() => ++this.rpc_id);
|
7767
7652
|
if (!dataPack) this.dataPack = new DefaultDataPack();
|
7768
7653
|
else this.dataPack = dataPack;
|
7769
7654
|
if (this.autoconnect)
|
@@ -8007,7 +7892,7 @@ var init_dist2 = __esm({
|
|
8007
7892
|
}
|
8008
7893
|
});
|
8009
7894
|
|
8010
|
-
// ../../node_modules/.pnpm/@solana+web3.js@1.95.8_bufferutil@4.0.
|
7895
|
+
// ../../node_modules/.pnpm/@solana+web3.js@1.95.8_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@solana/web3.js/lib/index.esm.js
|
8011
7896
|
var index_esm_exports = {};
|
8012
7897
|
__export(index_esm_exports, {
|
8013
7898
|
Account: () => Account,
|
@@ -9208,7 +9093,7 @@ async function sendAndConfirmRawTransaction(connection, rawTransaction, confirma
|
|
9208
9093
|
}
|
9209
9094
|
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;
|
9210
9095
|
var init_index_esm = __esm({
|
9211
|
-
"../../node_modules/.pnpm/@solana+web3.js@1.95.8_bufferutil@4.0.
|
9096
|
+
"../../node_modules/.pnpm/@solana+web3.js@1.95.8_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@solana/web3.js/lib/index.esm.js"() {
|
9212
9097
|
"use strict";
|
9213
9098
|
init_ed25519();
|
9214
9099
|
import_bn = __toESM(require_bn());
|
@@ -17324,13 +17209,13 @@ Message: ${transactionMessage}.
|
|
17324
17209
|
}
|
17325
17210
|
});
|
17326
17211
|
|
17327
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
17212
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/common.js
|
17328
17213
|
function chunks(array4, size) {
|
17329
17214
|
return Array.apply(0, new Array(Math.ceil(array4.length / size))).map((_, index) => array4.slice(index * size, (index + 1) * size));
|
17330
17215
|
}
|
17331
17216
|
var _a, isBrowser, isVersionedTransaction;
|
17332
17217
|
var init_common = __esm({
|
17333
|
-
"../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
17218
|
+
"../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/common.js"() {
|
17334
17219
|
"use strict";
|
17335
17220
|
isBrowser = process.env.ANCHOR_BROWSER || typeof window !== "undefined" && !((_a = window.process) === null || _a === void 0 ? void 0 : _a.hasOwnProperty("type"));
|
17336
17221
|
__name(chunks, "chunks");
|
@@ -17340,7 +17225,7 @@ var init_common = __esm({
|
|
17340
17225
|
}
|
17341
17226
|
});
|
17342
17227
|
|
17343
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
17228
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/nodewallet.js
|
17344
17229
|
var nodewallet_exports = {};
|
17345
17230
|
__export(nodewallet_exports, {
|
17346
17231
|
default: () => NodeWallet
|
@@ -17348,7 +17233,7 @@ __export(nodewallet_exports, {
|
|
17348
17233
|
import { Buffer as Buffer3 } from "buffer";
|
17349
17234
|
var NodeWallet;
|
17350
17235
|
var init_nodewallet = __esm({
|
17351
|
-
"../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
17236
|
+
"../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/nodewallet.js"() {
|
17352
17237
|
"use strict";
|
17353
17238
|
init_index_esm();
|
17354
17239
|
init_common();
|
@@ -18839,7 +18724,7 @@ var require_Layout2 = __commonJS({
|
|
18839
18724
|
return BitField.prototype.encode.call(this, value);
|
18840
18725
|
}
|
18841
18726
|
};
|
18842
|
-
var
|
18727
|
+
var Blob = class extends Layout4 {
|
18843
18728
|
static {
|
18844
18729
|
__name(this, "Blob");
|
18845
18730
|
}
|
@@ -19038,7 +18923,7 @@ var require_Layout2 = __commonJS({
|
|
19038
18923
|
exports.BitStructure = BitStructure;
|
19039
18924
|
exports.BitField = BitField;
|
19040
18925
|
exports.Boolean = Boolean2;
|
19041
|
-
exports.Blob =
|
18926
|
+
exports.Blob = Blob;
|
19042
18927
|
exports.CString = CString;
|
19043
18928
|
exports.UTF8 = UTF8;
|
19044
18929
|
exports.Constant = Constant;
|
@@ -19079,16 +18964,16 @@ var require_Layout2 = __commonJS({
|
|
19079
18964
|
exports.seq = (elementLayout, count, property) => new Sequence(elementLayout, count, property);
|
19080
18965
|
exports.union = (discr, defaultLayout, property) => new Union(discr, defaultLayout, property);
|
19081
18966
|
exports.unionLayoutDiscriminator = (layout, property) => new UnionLayoutDiscriminator(layout, property);
|
19082
|
-
exports.blob = (length, property) => new
|
18967
|
+
exports.blob = (length, property) => new Blob(length, property);
|
19083
18968
|
exports.cstr = (property) => new CString(property);
|
19084
18969
|
exports.utf8 = (maxSpan, property) => new UTF8(maxSpan, property);
|
19085
18970
|
exports.const = (value, property) => new Constant(value, property);
|
19086
18971
|
}
|
19087
18972
|
});
|
19088
18973
|
|
19089
|
-
// ../../node_modules/.pnpm/@coral-xyz+borsh@0.30.1_@solana+web3.js@1.95.8_bufferutil@4.0.
|
18974
|
+
// ../../node_modules/.pnpm/@coral-xyz+borsh@0.30.1_@solana+web3.js@1.95.8_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10_/node_modules/@coral-xyz/borsh/dist/index.js
|
19090
18975
|
var require_dist = __commonJS({
|
19091
|
-
"../../node_modules/.pnpm/@coral-xyz+borsh@0.30.1_@solana+web3.js@1.95.8_bufferutil@4.0.
|
18976
|
+
"../../node_modules/.pnpm/@coral-xyz+borsh@0.30.1_@solana+web3.js@1.95.8_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10_/node_modules/@coral-xyz/borsh/dist/index.js"(exports) {
|
19092
18977
|
"use strict";
|
19093
18978
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
19094
18979
|
return mod && mod.__esModule ? mod : { "default": mod };
|
@@ -23659,16 +23544,16 @@ var SolanaBindOptions = class {
|
|
23659
23544
|
};
|
23660
23545
|
import("node:process").then((p) => p.stdout.write(""));
|
23661
23546
|
|
23662
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23547
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/index.js
|
23663
23548
|
init_nodewallet();
|
23664
23549
|
init_common();
|
23665
23550
|
var import_bn5 = __toESM(require_bn());
|
23666
23551
|
init_index_esm();
|
23667
23552
|
|
23668
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23553
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/provider.js
|
23669
23554
|
init_index_esm();
|
23670
23555
|
|
23671
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23556
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/utf8.js
|
23672
23557
|
var utf8_exports = {};
|
23673
23558
|
__export(utf8_exports, {
|
23674
23559
|
decode: () => decode,
|
@@ -23686,7 +23571,7 @@ function encode(input) {
|
|
23686
23571
|
}
|
23687
23572
|
__name(encode, "encode");
|
23688
23573
|
|
23689
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23574
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/bs58.js
|
23690
23575
|
var bs58_exports = {};
|
23691
23576
|
__export(bs58_exports, {
|
23692
23577
|
decode: () => decode2,
|
@@ -23702,7 +23587,7 @@ function decode2(data) {
|
|
23702
23587
|
}
|
23703
23588
|
__name(decode2, "decode");
|
23704
23589
|
|
23705
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23590
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/bytes/base64.js
|
23706
23591
|
import { Buffer as Buffer4 } from "buffer";
|
23707
23592
|
function encode3(data) {
|
23708
23593
|
return data.toString("base64");
|
@@ -23713,17 +23598,17 @@ function decode3(data) {
|
|
23713
23598
|
}
|
23714
23599
|
__name(decode3, "decode");
|
23715
23600
|
|
23716
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23601
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/provider.js
|
23717
23602
|
init_common();
|
23718
23603
|
|
23719
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23604
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/rpc.js
|
23720
23605
|
init_index_esm();
|
23721
23606
|
init_common();
|
23722
23607
|
|
23723
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23608
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/common.js
|
23724
23609
|
init_index_esm();
|
23725
23610
|
|
23726
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23611
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/idl.js
|
23727
23612
|
var import_camelcase = __toESM(require_camelcase());
|
23728
23613
|
init_index_esm();
|
23729
23614
|
var borsh = __toESM(require_dist());
|
@@ -23776,7 +23661,7 @@ function handleDefinedFields(fields, unitCb, namedCb, tupleCb) {
|
|
23776
23661
|
}
|
23777
23662
|
__name(handleDefinedFields, "handleDefinedFields");
|
23778
23663
|
|
23779
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
23664
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/common.js
|
23780
23665
|
function parseIdlErrors(idl) {
|
23781
23666
|
const errors2 = /* @__PURE__ */ new Map();
|
23782
23667
|
if (idl.errors) {
|
@@ -24262,7 +24147,7 @@ function coerce2(struct9, condition, coercer) {
|
|
24262
24147
|
}
|
24263
24148
|
__name(coerce2, "coerce");
|
24264
24149
|
|
24265
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
24150
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/rpc.js
|
24266
24151
|
var GET_MULTIPLE_ACCOUNTS_LIMIT = 99;
|
24267
24152
|
async function getMultipleAccountsAndContext(connection, publicKeys, commitment) {
|
24268
24153
|
if (publicKeys.length <= GET_MULTIPLE_ACCOUNTS_LIMIT) {
|
@@ -24386,7 +24271,7 @@ var SimulatedTransactionResponseStruct2 = jsonRpcResultAndContext2(type2({
|
|
24386
24271
|
unitsConsumed: optional2(number2())
|
24387
24272
|
}));
|
24388
24273
|
|
24389
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
24274
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/provider.js
|
24390
24275
|
var AnchorProvider = class _AnchorProvider {
|
24391
24276
|
static {
|
24392
24277
|
__name(this, "AnchorProvider");
|
@@ -24626,18 +24511,18 @@ function getProvider() {
|
|
24626
24511
|
__name(getProvider, "getProvider");
|
24627
24512
|
var _provider = null;
|
24628
24513
|
|
24629
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
24514
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/error.js
|
24630
24515
|
init_index_esm();
|
24631
24516
|
var errors = __toESM(require_dist2());
|
24632
24517
|
|
24633
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
24518
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/features.js
|
24634
24519
|
var _FEATURES = /* @__PURE__ */ new Map();
|
24635
24520
|
function isSet(key) {
|
24636
24521
|
return _FEATURES.get(key) !== void 0;
|
24637
24522
|
}
|
24638
24523
|
__name(isSet, "isSet");
|
24639
24524
|
|
24640
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
24525
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/error.js
|
24641
24526
|
var IdlError = class extends Error {
|
24642
24527
|
static {
|
24643
24528
|
__name(this, "IdlError");
|
@@ -25175,12 +25060,12 @@ var LangErrorMessage = /* @__PURE__ */ new Map([
|
|
25175
25060
|
]
|
25176
25061
|
]);
|
25177
25062
|
|
25178
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25063
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/instruction.js
|
25179
25064
|
var import_bs583 = __toESM(require_bs58());
|
25180
25065
|
var borsh3 = __toESM(require_dist());
|
25181
25066
|
import { Buffer as Buffer5 } from "buffer";
|
25182
25067
|
|
25183
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25068
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/idl.js
|
25184
25069
|
var borsh2 = __toESM(require_dist());
|
25185
25070
|
var IdlCoder = class _IdlCoder {
|
25186
25071
|
static {
|
@@ -25557,7 +25442,7 @@ var IdlCoder = class _IdlCoder {
|
|
25557
25442
|
}
|
25558
25443
|
};
|
25559
25444
|
|
25560
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25445
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/instruction.js
|
25561
25446
|
var BorshInstructionCoder = class {
|
25562
25447
|
static {
|
25563
25448
|
__name(this, "BorshInstructionCoder");
|
@@ -25773,14 +25658,14 @@ function sentenceCase(field) {
|
|
25773
25658
|
}
|
25774
25659
|
__name(sentenceCase, "sentenceCase");
|
25775
25660
|
|
25776
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25661
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/accounts.js
|
25777
25662
|
var import_bs584 = __toESM(require_bs58());
|
25778
25663
|
import { Buffer as Buffer6 } from "buffer";
|
25779
25664
|
|
25780
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25665
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/discriminator.js
|
25781
25666
|
var DISCRIMINATOR_SIZE = 8;
|
25782
25667
|
|
25783
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25668
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/accounts.js
|
25784
25669
|
var BorshAccountsCoder = class {
|
25785
25670
|
static {
|
25786
25671
|
__name(this, "BorshAccountsCoder");
|
@@ -25863,7 +25748,7 @@ var BorshAccountsCoder = class {
|
|
25863
25748
|
}
|
25864
25749
|
};
|
25865
25750
|
|
25866
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25751
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/event.js
|
25867
25752
|
import { Buffer as Buffer7 } from "buffer";
|
25868
25753
|
var BorshEventCoder = class {
|
25869
25754
|
static {
|
@@ -25913,7 +25798,7 @@ var BorshEventCoder = class {
|
|
25913
25798
|
}
|
25914
25799
|
};
|
25915
25800
|
|
25916
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25801
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/types.js
|
25917
25802
|
import { Buffer as Buffer8 } from "buffer";
|
25918
25803
|
var BorshTypesCoder = class {
|
25919
25804
|
static {
|
@@ -25949,7 +25834,7 @@ var BorshTypesCoder = class {
|
|
25949
25834
|
}
|
25950
25835
|
};
|
25951
25836
|
|
25952
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25837
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/borsh/index.js
|
25953
25838
|
var BorshCoder = class {
|
25954
25839
|
static {
|
25955
25840
|
__name(this, "BorshCoder");
|
@@ -25962,7 +25847,7 @@ var BorshCoder = class {
|
|
25962
25847
|
}
|
25963
25848
|
};
|
25964
25849
|
|
25965
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25850
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/system/instruction.js
|
25966
25851
|
var import_bn2 = __toESM(require_bn());
|
25967
25852
|
var BufferLayout2 = __toESM(require_Layout2());
|
25968
25853
|
var RustStringLayout = class extends BufferLayout2.Layout {
|
@@ -26041,7 +25926,7 @@ LAYOUT.addVariant(11, BufferLayout2.struct([
|
|
26041
25926
|
]), "transferWithSeed");
|
26042
25927
|
var instructionMaxSpan = Math.max(...Object.values(LAYOUT.registry).map((r) => r.span));
|
26043
25928
|
|
26044
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25929
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/coder/system/accounts.js
|
26045
25930
|
var BufferLayout3 = __toESM(require_Layout2());
|
26046
25931
|
init_index_esm();
|
26047
25932
|
var WrappedLayout = class extends BufferLayout3.Layout {
|
@@ -26076,15 +25961,15 @@ var NONCE_ACCOUNT_LAYOUT = BufferLayout3.struct([
|
|
26076
25961
|
BufferLayout3.struct([BufferLayout3.nu64("lamportsPerSignature")], "feeCalculator")
|
26077
25962
|
]);
|
26078
25963
|
|
26079
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25964
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/pubkey.js
|
26080
25965
|
init_index_esm();
|
26081
25966
|
|
26082
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25967
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/token.js
|
26083
25968
|
init_index_esm();
|
26084
25969
|
var TOKEN_PROGRAM_ID = new PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
|
26085
25970
|
var ASSOCIATED_PROGRAM_ID = new PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");
|
26086
25971
|
|
26087
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25972
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/utils/registry.js
|
26088
25973
|
var import_cross_fetch = __toESM(require_node_ponyfill());
|
26089
25974
|
var borsh4 = __toESM(require_dist());
|
26090
25975
|
var UPGRADEABLE_LOADER_STATE_LAYOUT = borsh4.rustEnum([
|
@@ -26097,10 +25982,10 @@ var UPGRADEABLE_LOADER_STATE_LAYOUT = borsh4.rustEnum([
|
|
26097
25982
|
], "programData")
|
26098
25983
|
], void 0, borsh4.u32());
|
26099
25984
|
|
26100
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25985
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/instruction.js
|
26101
25986
|
init_index_esm();
|
26102
25987
|
|
26103
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
25988
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/context.js
|
26104
25989
|
function splitArgsAndCtx(idlIx, args) {
|
26105
25990
|
var _a2, _b;
|
26106
25991
|
let options = {};
|
@@ -26115,7 +26000,7 @@ function splitArgsAndCtx(idlIx, args) {
|
|
26115
26000
|
}
|
26116
26001
|
__name(splitArgsAndCtx, "splitArgsAndCtx");
|
26117
26002
|
|
26118
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26003
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/instruction.js
|
26119
26004
|
var InstructionNamespaceFactory = class _InstructionNamespaceFactory {
|
26120
26005
|
static {
|
26121
26006
|
__name(this, "InstructionNamespaceFactory");
|
@@ -26176,7 +26061,7 @@ function validateInstruction(ix, ...args) {
|
|
26176
26061
|
}
|
26177
26062
|
__name(validateInstruction, "validateInstruction");
|
26178
26063
|
|
26179
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26064
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/transaction.js
|
26180
26065
|
init_index_esm();
|
26181
26066
|
var TransactionFactory = class {
|
26182
26067
|
static {
|
@@ -26200,7 +26085,7 @@ var TransactionFactory = class {
|
|
26200
26085
|
}
|
26201
26086
|
};
|
26202
26087
|
|
26203
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26088
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/rpc.js
|
26204
26089
|
var RpcFactory = class {
|
26205
26090
|
static {
|
26206
26091
|
__name(this, "RpcFactory");
|
@@ -26223,7 +26108,7 @@ var RpcFactory = class {
|
|
26223
26108
|
}
|
26224
26109
|
};
|
26225
26110
|
|
26226
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26111
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/account.js
|
26227
26112
|
var import_eventemitter32 = __toESM(require_eventemitter3());
|
26228
26113
|
init_index_esm();
|
26229
26114
|
var AccountFactory = class {
|
@@ -26445,7 +26330,7 @@ var AccountClient = class {
|
|
26445
26330
|
};
|
26446
26331
|
var subscriptions = /* @__PURE__ */ new Map();
|
26447
26332
|
|
26448
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26333
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/event.js
|
26449
26334
|
var PROGRAM_LOG = "Program log: ";
|
26450
26335
|
var PROGRAM_DATA = "Program data: ";
|
26451
26336
|
var PROGRAM_LOG_START_INDEX = PROGRAM_LOG.length;
|
@@ -26635,7 +26520,7 @@ var LogScanner = class {
|
|
26635
26520
|
}
|
26636
26521
|
};
|
26637
26522
|
|
26638
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26523
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/simulate.js
|
26639
26524
|
var SimulateFactory = class {
|
26640
26525
|
static {
|
26641
26526
|
__name(this, "SimulateFactory");
|
@@ -26674,11 +26559,11 @@ var SimulateFactory = class {
|
|
26674
26559
|
}
|
26675
26560
|
};
|
26676
26561
|
|
26677
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26562
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.js
|
26678
26563
|
var import_bn4 = __toESM(require_bn());
|
26679
26564
|
init_index_esm();
|
26680
26565
|
|
26681
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26566
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/token-account-layout.js
|
26682
26567
|
var import_bn3 = __toESM(require_bn());
|
26683
26568
|
var BufferLayout4 = __toESM(require_Layout2());
|
26684
26569
|
var import_buffer_layout2 = __toESM(require_Layout2());
|
@@ -26795,7 +26680,7 @@ function decodeTokenAccount(b) {
|
|
26795
26680
|
}
|
26796
26681
|
__name(decodeTokenAccount, "decodeTokenAccount");
|
26797
26682
|
|
26798
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
26683
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/accounts-resolver.js
|
26799
26684
|
var AccountsResolver = class {
|
26800
26685
|
static {
|
26801
26686
|
__name(this, "AccountsResolver");
|
@@ -27161,7 +27046,7 @@ var AccountStore = class {
|
|
27161
27046
|
}
|
27162
27047
|
};
|
27163
27048
|
|
27164
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27049
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/methods.js
|
27165
27050
|
var MethodsBuilderFactory = class {
|
27166
27051
|
static {
|
27167
27052
|
__name(this, "MethodsBuilderFactory");
|
@@ -27372,7 +27257,7 @@ var MethodsBuilder = class {
|
|
27372
27257
|
}
|
27373
27258
|
};
|
27374
27259
|
|
27375
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27260
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/views.js
|
27376
27261
|
var ViewFactory = class {
|
27377
27262
|
static {
|
27378
27263
|
__name(this, "ViewFactory");
|
@@ -27401,7 +27286,7 @@ var ViewFactory = class {
|
|
27401
27286
|
}
|
27402
27287
|
};
|
27403
27288
|
|
27404
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27289
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/namespace/index.js
|
27405
27290
|
var NamespaceFactory = class {
|
27406
27291
|
static {
|
27407
27292
|
__name(this, "NamespaceFactory");
|
@@ -27447,7 +27332,7 @@ var NamespaceFactory = class {
|
|
27447
27332
|
}
|
27448
27333
|
};
|
27449
27334
|
|
27450
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27335
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/program/index.js
|
27451
27336
|
var Program = class _Program {
|
27452
27337
|
static {
|
27453
27338
|
__name(this, "Program");
|
@@ -27567,11 +27452,11 @@ var Program = class _Program {
|
|
27567
27452
|
}
|
27568
27453
|
};
|
27569
27454
|
|
27570
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27455
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/native/system.js
|
27571
27456
|
init_index_esm();
|
27572
27457
|
var SYSTEM_PROGRAM_ID = new PublicKey("11111111111111111111111111111111");
|
27573
27458
|
|
27574
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27459
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/workspace.js
|
27575
27460
|
var toml = __toESM(require_toml());
|
27576
27461
|
|
27577
27462
|
// ../../node_modules/.pnpm/lower-case@2.0.2/node_modules/lower-case/dist.es2015/index.js
|
@@ -27625,7 +27510,7 @@ function snakeCase(input, options) {
|
|
27625
27510
|
}
|
27626
27511
|
__name(snakeCase, "snakeCase");
|
27627
27512
|
|
27628
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27513
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/workspace.js
|
27629
27514
|
init_common();
|
27630
27515
|
var workspace = new Proxy({}, {
|
27631
27516
|
get(workspaceCache, programName) {
|
@@ -27664,7 +27549,7 @@ var workspace = new Proxy({}, {
|
|
27664
27549
|
}
|
27665
27550
|
});
|
27666
27551
|
|
27667
|
-
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.
|
27552
|
+
// ../../node_modules/.pnpm/@coral-xyz+anchor@0.30.1_patch_hash=clsetxooki5gt3bqisxpc22mka_bufferutil@4.0.8_encoding@0.1.13_utf-8-validate@5.0.10/node_modules/@coral-xyz/anchor/dist/esm/index.js
|
27668
27553
|
init_nodewallet();
|
27669
27554
|
|
27670
27555
|
// src/solana/index.ts
|
@@ -27910,4 +27795,4 @@ buffer-layout/lib/Layout.js:
|
|
27910
27795
|
* @see {@link https://github.com/pabigot/buffer-layout|buffer-layout on GitHub}
|
27911
27796
|
*)
|
27912
27797
|
*/
|
27913
|
-
//# sourceMappingURL=chunk-
|
27798
|
+
//# sourceMappingURL=chunk-S6MJ3KIL.js.map
|