@hinkal/common 0.0.29 → 0.0.31
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/assets/{snarkjsWorkerLauncher-CA30lfwg.js → snarkjsWorkerLauncher-Cv-YvgDH.js} +1 -1
- package/assets/{snarkjsWorkerLogic-CEwqbPan.js → snarkjsWorkerLogic-BQHzNbeq.js} +68 -50
- package/assets/{snarkjsWorkerLogic-b8peaANj.js → snarkjsWorkerLogic-DXEYSZwG.js} +2 -2
- package/assets/{utxoWorkerLauncher-DD2MTdrZ.js → utxoWorkerLauncher-DKuoY0Cm.js} +1 -1
- package/assets/{utxoWorkerLogic-C7Mo8QFn.js → utxoWorkerLogic--SvAHZvF.js} +2 -2
- package/assets/{utxoWorkerLogic-POijX68C.js → utxoWorkerLogic-UebOwVoA.js} +20801 -20832
- package/assets/viteWorkerURL.constant-mj-bKq7N.js +11 -0
- package/assets/{zkProofWorkerLauncher-D66Tc6on.js → zkProofWorkerLauncher-DbQzvpF9.js} +1 -1
- package/assets/{zkProofWorkerLogic-CrpL7Xvd.js → zkProofWorkerLogic-BiPfvEJ9.js} +69 -68
- package/{index-DOribkZE.js → index-D4oKU-nx.js} +62634 -62570
- package/index.js +1 -1
- package/package.json +1 -1
- package/{snarkjsWorkerLogic-B2ZdWASt.js → snarkjsWorkerLogic-DsFtMXqv.js} +7 -7
- package/{utxoWorkerLogic-OmQatabd.js → utxoWorkerLogic-BFOqF09O.js} +2 -2
- package/viteWorkerURL.constant-DhfW7Icy.js +9 -0
- package/{workerProxy-D7NNJJbH.js → workerProxy-CpMr-zJV.js} +1 -1
- package/{zkProofWorkerLogic-DM9Vi-SF.js → zkProofWorkerLogic-BAESRIoI.js} +15 -15
- package/assets/viteWorkerURL.constant-BoLfW0oX.js +0 -11
- package/viteWorkerURL.constant-CGfwcFbW.js +0 -9
|
@@ -1192,7 +1192,7 @@ const It = /* @__PURE__ */ dt(mt), Ft = () => {
|
|
|
1192
1192
|
};
|
|
1193
1193
|
globalThis.process = It;
|
|
1194
1194
|
globalThis.Buffer = gr;
|
|
1195
|
-
const Tt = import("./snarkjsWorkerLogic-
|
|
1195
|
+
const Tt = import("./snarkjsWorkerLogic-BQHzNbeq.js");
|
|
1196
1196
|
addEventListener("message", async (h) => {
|
|
1197
1197
|
console.log("addEventListener in Snarkjs Launcher starts");
|
|
1198
1198
|
const { onWorkerMessage: f } = await Tt;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1, d as dist, B as Buffer$C } from "./snarkjsWorkerLauncher-
|
|
1
|
+
import { p as process$1, d as dist, B as Buffer$C } from "./snarkjsWorkerLauncher-Cv-YvgDH.js";
|
|
2
2
|
class WorkerProxy {
|
|
3
3
|
isNode = !1;
|
|
4
4
|
/**
|
|
@@ -1657,7 +1657,11 @@ function eventTargetAgnosticAddListener(c, t, n, a) {
|
|
|
1657
1657
|
else
|
|
1658
1658
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof c);
|
|
1659
1659
|
}
|
|
1660
|
-
var eventsExports = events$1.exports, streamBrowser$1
|
|
1660
|
+
var eventsExports = events$1.exports, streamBrowser$1, hasRequiredStreamBrowser;
|
|
1661
|
+
function requireStreamBrowser() {
|
|
1662
|
+
return hasRequiredStreamBrowser || (hasRequiredStreamBrowser = 1, streamBrowser$1 = eventsExports.EventEmitter), streamBrowser$1;
|
|
1663
|
+
}
|
|
1664
|
+
var util$6 = {}, types = {}, shams$1 = function() {
|
|
1661
1665
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
1662
1666
|
return !1;
|
|
1663
1667
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2996,33 +3000,40 @@ function requireBuffer_list() {
|
|
|
2996
3000
|
}]), H;
|
|
2997
3001
|
}(), buffer_list;
|
|
2998
3002
|
}
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3003
|
+
var destroy_1$1, hasRequiredDestroy;
|
|
3004
|
+
function requireDestroy() {
|
|
3005
|
+
if (hasRequiredDestroy)
|
|
3006
|
+
return destroy_1$1;
|
|
3007
|
+
hasRequiredDestroy = 1;
|
|
3008
|
+
function c(A, M) {
|
|
3009
|
+
var S = this, B = this._readableState && this._readableState.destroyed, _ = this._writableState && this._writableState.destroyed;
|
|
3010
|
+
return B || _ ? (M ? M(A) : A && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process$1.nextTick(d, this, A)) : process$1.nextTick(d, this, A)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(A || null, function(I) {
|
|
3011
|
+
!M && I ? S._writableState ? S._writableState.errorEmitted ? process$1.nextTick(n, S) : (S._writableState.errorEmitted = !0, process$1.nextTick(t, S, I)) : process$1.nextTick(t, S, I) : M ? (process$1.nextTick(n, S), M(I)) : process$1.nextTick(n, S);
|
|
3012
|
+
}), this);
|
|
3013
|
+
}
|
|
3014
|
+
function t(A, M) {
|
|
3015
|
+
d(A, M), n(A);
|
|
3016
|
+
}
|
|
3017
|
+
function n(A) {
|
|
3018
|
+
A._writableState && !A._writableState.emitClose || A._readableState && !A._readableState.emitClose || A.emit("close");
|
|
3019
|
+
}
|
|
3020
|
+
function a() {
|
|
3021
|
+
this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
|
|
3022
|
+
}
|
|
3023
|
+
function d(A, M) {
|
|
3024
|
+
A.emit("error", M);
|
|
3025
|
+
}
|
|
3026
|
+
function u(A, M) {
|
|
3027
|
+
var S = A._readableState, B = A._writableState;
|
|
3028
|
+
S && S.autoDestroy || B && B.autoDestroy ? A.destroy(M) : A.emit("error", M);
|
|
3029
|
+
}
|
|
3030
|
+
return destroy_1$1 = {
|
|
3031
|
+
destroy: c,
|
|
3032
|
+
undestroy: a,
|
|
3033
|
+
errorOrDestroy: u
|
|
3034
|
+
}, destroy_1$1;
|
|
3020
3035
|
}
|
|
3021
|
-
var
|
|
3022
|
-
destroy: destroy$1,
|
|
3023
|
-
undestroy: undestroy$1,
|
|
3024
|
-
errorOrDestroy
|
|
3025
|
-
}, errorsBrowser = {};
|
|
3036
|
+
var errorsBrowser = {};
|
|
3026
3037
|
function _inheritsLoose(c, t) {
|
|
3027
3038
|
c.prototype = Object.create(t.prototype), c.prototype.constructor = c, c.__proto__ = t;
|
|
3028
3039
|
}
|
|
@@ -3091,24 +3102,31 @@ createErrorType("ERR_UNKNOWN_ENCODING", function(c) {
|
|
|
3091
3102
|
}, TypeError);
|
|
3092
3103
|
createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
|
|
3093
3104
|
errorsBrowser.codes = codes$1;
|
|
3094
|
-
var
|
|
3095
|
-
function
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
var
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
}
|
|
3105
|
+
var state, hasRequiredState;
|
|
3106
|
+
function requireState() {
|
|
3107
|
+
if (hasRequiredState)
|
|
3108
|
+
return state;
|
|
3109
|
+
hasRequiredState = 1;
|
|
3110
|
+
var c = errorsBrowser.codes.ERR_INVALID_OPT_VALUE;
|
|
3111
|
+
function t(a, d, u) {
|
|
3112
|
+
return a.highWaterMark != null ? a.highWaterMark : d ? a[u] : null;
|
|
3113
|
+
}
|
|
3114
|
+
function n(a, d, u, A) {
|
|
3115
|
+
var M = t(d, A, u);
|
|
3116
|
+
if (M != null) {
|
|
3117
|
+
if (!(isFinite(M) && Math.floor(M) === M) || M < 0) {
|
|
3118
|
+
var S = A ? u : "highWaterMark";
|
|
3119
|
+
throw new c(S, M);
|
|
3120
|
+
}
|
|
3121
|
+
return Math.floor(M);
|
|
3122
|
+
}
|
|
3123
|
+
return a.objectMode ? 16 : 16 * 1024;
|
|
3124
|
+
}
|
|
3125
|
+
return state = {
|
|
3126
|
+
getHighWaterMark: n
|
|
3127
|
+
}, state;
|
|
3128
|
+
}
|
|
3129
|
+
var browser$c = deprecate;
|
|
3112
3130
|
function deprecate(c, t) {
|
|
3113
3131
|
if (config("noDeprecation"))
|
|
3114
3132
|
return c;
|
|
@@ -3148,7 +3166,7 @@ function require_stream_writable$1() {
|
|
|
3148
3166
|
z.WritableState = et;
|
|
3149
3167
|
var n = {
|
|
3150
3168
|
deprecate: browser$c
|
|
3151
|
-
}, a =
|
|
3169
|
+
}, a = requireStreamBrowser(), d = require$$0$2.Buffer, u = (typeof commonjsGlobal < "u" ? commonjsGlobal : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
3152
3170
|
};
|
|
3153
3171
|
function A(x) {
|
|
3154
3172
|
return d.from(x);
|
|
@@ -3156,7 +3174,7 @@ function require_stream_writable$1() {
|
|
|
3156
3174
|
function M(x) {
|
|
3157
3175
|
return d.isBuffer(x) || x instanceof u;
|
|
3158
3176
|
}
|
|
3159
|
-
var S =
|
|
3177
|
+
var S = requireDestroy(), B = requireState(), _ = B.getHighWaterMark, I = errorsBrowser.codes, O = I.ERR_INVALID_ARG_TYPE, $ = I.ERR_METHOD_NOT_IMPLEMENTED, H = I.ERR_MULTIPLE_CALLBACK, tt = I.ERR_STREAM_CANNOT_PIPE, q = I.ERR_STREAM_DESTROYED, rt = I.ERR_STREAM_NULL_VALUES, Z = I.ERR_STREAM_WRITE_AFTER_END, ot = I.ERR_UNKNOWN_ENCODING, V = S.errorOrDestroy;
|
|
3160
3178
|
inherits_browserExports(z, a);
|
|
3161
3179
|
function nt() {
|
|
3162
3180
|
}
|
|
@@ -3781,7 +3799,7 @@ function require_stream_readable$1() {
|
|
|
3781
3799
|
it.ReadableState = z, eventsExports.EventEmitter;
|
|
3782
3800
|
var t = function(Y, ct) {
|
|
3783
3801
|
return Y.listeners(ct).length;
|
|
3784
|
-
}, n =
|
|
3802
|
+
}, n = requireStreamBrowser(), a = require$$0$2.Buffer, d = (typeof commonjsGlobal < "u" ? commonjsGlobal : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
3785
3803
|
};
|
|
3786
3804
|
function u(F) {
|
|
3787
3805
|
return a.from(F);
|
|
@@ -3792,7 +3810,7 @@ function require_stream_readable$1() {
|
|
|
3792
3810
|
var M = util$6, S;
|
|
3793
3811
|
M && M.debuglog ? S = M.debuglog("stream") : S = function() {
|
|
3794
3812
|
};
|
|
3795
|
-
var B = requireBuffer_list(), _ =
|
|
3813
|
+
var B = requireBuffer_list(), _ = requireDestroy(), I = requireState(), O = I.getHighWaterMark, $ = errorsBrowser.codes, H = $.ERR_INVALID_ARG_TYPE, tt = $.ERR_STREAM_PUSH_AFTER_EOF, q = $.ERR_METHOD_NOT_IMPLEMENTED, rt = $.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, Z, ot, V;
|
|
3796
3814
|
inherits_browserExports(it, n);
|
|
3797
3815
|
var nt = _.errorOrDestroy, et = ["error", "close", "destroy", "pause", "resume"];
|
|
3798
3816
|
function D(F, Y, ct) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as Se, B as po } from "./zkProofWorkerLauncher-
|
|
2
|
-
import { e as Ua, r as ho, g as Lo, a as mo, b as bo, c as en, d as ja, f as $a, u as zn, h as yo } from "./zkProofWorkerLogic-
|
|
1
|
+
import { p as Se, B as po } from "./zkProofWorkerLauncher-DbQzvpF9.js";
|
|
2
|
+
import { e as Ua, r as ho, g as Lo, a as mo, b as bo, c as en, d as ja, f as $a, u as zn, h as yo } from "./zkProofWorkerLogic-BiPfvEJ9.js";
|
|
3
3
|
const Co = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
|
|
4
4
|
function sn(c, t) {
|
|
5
5
|
if (!t || t == 10)
|
|
@@ -1192,7 +1192,7 @@ const It = /* @__PURE__ */ dt(mt), Ft = () => {
|
|
|
1192
1192
|
};
|
|
1193
1193
|
globalThis.process = It;
|
|
1194
1194
|
globalThis.Buffer = gr;
|
|
1195
|
-
const Tt = import("./utxoWorkerLogic-
|
|
1195
|
+
const Tt = import("./utxoWorkerLogic-UebOwVoA.js");
|
|
1196
1196
|
addEventListener("message", async (h) => {
|
|
1197
1197
|
console.log("addEventListener in Utxo Launcher starts");
|
|
1198
1198
|
const { onWorkerMessage: f } = await Tt;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as U } from "./zkProofWorkerLauncher-
|
|
2
|
-
import { U as l, i as T, h as I, j as f, k as y, l as m, m as h, p as x } from "./zkProofWorkerLogic-
|
|
1
|
+
import { B as U } from "./zkProofWorkerLauncher-DbQzvpF9.js";
|
|
2
|
+
import { U as l, i as T, h as I, j as f, k as y, l as m, m as h, p as x } from "./zkProofWorkerLogic-BiPfvEJ9.js";
|
|
3
3
|
const g = (e) => {
|
|
4
4
|
const t = T.decode(
|
|
5
5
|
["uint256", "address", "tuple(uint256, uint256, uint256, uint256)", "uint256", "uint256"],
|