@gardenfi/core 0.2.0-beta.72 → 0.2.0-beta.74
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/dist/index.cjs +1 -1
- package/dist/index.js +15 -14
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +55 -41
- package/dist/index100.cjs +1 -0
- package/dist/index100.js +37 -0
- package/dist/index101.cjs +1 -0
- package/dist/index101.js +369 -0
- package/dist/index102.cjs +1 -0
- package/dist/index102.js +23 -0
- package/dist/index103.cjs +1 -0
- package/dist/index103.js +58 -0
- package/dist/index104.cjs +1 -0
- package/dist/index104.js +5 -0
- package/dist/index105.cjs +1 -0
- package/dist/index105.js +51 -0
- package/dist/index106.cjs +1 -0
- package/dist/index106.js +28 -0
- package/dist/index107.cjs +1 -0
- package/dist/index107.js +4 -0
- package/dist/index108.cjs +1 -0
- package/dist/index108.js +4 -0
- package/dist/index109.cjs +1 -0
- package/dist/index109.js +64 -0
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +1 -0
- package/dist/index110.js +37 -0
- package/dist/index111.cjs +1 -0
- package/dist/index111.js +7 -0
- package/dist/index112.cjs +1 -0
- package/dist/index112.js +4 -0
- package/dist/index113.cjs +1 -0
- package/dist/index113.js +60 -0
- package/dist/index114.cjs +1 -0
- package/dist/index114.js +4 -0
- package/dist/index115.cjs +1 -0
- package/dist/index115.js +42 -0
- package/dist/index116.cjs +1 -0
- package/dist/index116.js +45 -0
- package/dist/index117.cjs +1 -0
- package/dist/index117.js +20 -0
- package/dist/index118.cjs +1 -0
- package/dist/index118.js +111 -0
- package/dist/index119.cjs +1 -0
- package/dist/index119.js +23 -0
- package/dist/index120.cjs +1 -0
- package/dist/index120.js +228 -0
- package/dist/index121.cjs +1 -0
- package/dist/index121.js +6 -0
- package/dist/index122.cjs +1 -0
- package/dist/index122.js +160 -0
- package/dist/index123.cjs +1 -0
- package/dist/index123.js +4 -0
- package/dist/index124.cjs +1 -0
- package/dist/index124.js +75 -0
- package/dist/index125.cjs +1 -0
- package/dist/index125.js +107 -0
- package/dist/index126.cjs +1 -0
- package/dist/index126.js +15 -0
- package/dist/index127.cjs +1 -0
- package/dist/index127.js +35 -0
- package/dist/index128.cjs +1 -0
- package/dist/index128.js +4 -0
- package/dist/index129.cjs +1 -0
- package/dist/index129.js +32 -0
- package/dist/index130.cjs +1 -0
- package/dist/index130.js +21 -0
- package/dist/index131.cjs +1 -0
- package/dist/index131.js +4 -0
- package/dist/index132.cjs +1 -0
- package/dist/index132.js +358 -0
- package/dist/index133.cjs +1 -0
- package/dist/index133.js +241 -0
- package/dist/index134.cjs +1 -0
- package/dist/index134.js +70 -0
- package/dist/index135.cjs +1 -0
- package/dist/index135.js +64 -0
- package/dist/index136.cjs +1 -0
- package/dist/index136.js +14 -0
- package/dist/index137.cjs +1 -0
- package/dist/index137.js +47 -0
- package/dist/index138.cjs +1 -0
- package/dist/index138.js +65 -0
- package/dist/index139.cjs +1 -0
- package/dist/index139.js +228 -0
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +2 -2
- package/dist/index140.cjs +1 -0
- package/dist/index140.js +5 -0
- package/dist/index141.cjs +1 -0
- package/dist/index141.js +171 -0
- package/dist/index142.cjs +1 -0
- package/dist/index142.js +30 -0
- package/dist/index143.cjs +1 -0
- package/dist/index143.js +23 -0
- package/dist/index144.cjs +1 -0
- package/dist/index144.js +72 -0
- package/dist/index145.cjs +1 -0
- package/dist/index145.js +130 -0
- package/dist/index146.cjs +1 -0
- package/dist/index146.js +9 -0
- package/dist/index147.cjs +1 -0
- package/dist/index147.js +4 -0
- package/dist/index148.cjs +1 -0
- package/dist/index148.js +28 -0
- package/dist/index149.cjs +1 -0
- package/dist/index149.js +4 -0
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +30 -136
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +25 -2
- package/dist/index18.cjs +1 -3
- package/dist/index18.js +29 -26
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +32 -17
- package/dist/index20.cjs +1 -2
- package/dist/index20.js +53 -25
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +6 -38
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +9 -199
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +138 -2
- package/dist/index24.js +2 -2
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +13 -2
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +36 -27
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +41 -14
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +26 -173
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +15 -22
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +24 -2
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +25 -34
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +54 -8
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +28 -2
- package/dist/index34.cjs +3 -6
- package/dist/index34.js +30 -949
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +17 -4
- package/dist/index36.cjs +2 -1
- package/dist/index36.js +23 -18
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +38 -29
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +197 -60
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +2 -33
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +2 -87
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +2 -49
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +12 -25
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +12 -2
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +4 -2
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +45 -19
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +38 -30
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +165 -360
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +13 -21
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +3 -54
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +17 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +9 -70
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +175 -2
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +21 -57
- package/dist/index54.js +2 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +34 -39
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +9 -43
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +34 -17
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +50 -103
- package/dist/index59.cjs +2 -1
- package/dist/index59.js +58 -19
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +3 -225
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +128 -4
- package/dist/index62.cjs +2 -1
- package/dist/index62.js +37 -152
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +9 -2
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +11 -13
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +12 -2
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +13 -32
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +7 -2
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +17 -355
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +75 -235
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +14 -67
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +17 -60
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +6 -11
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +20 -43
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +13 -62
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +2 -226
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +2 -3
- package/dist/index77.cjs +2 -1
- package/dist/index77.js +32 -166
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +5 -27
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +18 -19
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +30 -68
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +2 -128
- package/dist/index82.cjs +6 -1
- package/dist/index82.js +949 -9
- package/dist/index83.cjs +1 -1
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +61 -25
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +33 -2
- package/dist/index86.cjs +1 -0
- package/dist/index86.js +89 -0
- package/dist/index87.cjs +1 -0
- package/dist/index87.js +15 -0
- package/dist/index88.cjs +1 -0
- package/dist/index88.js +9 -0
- package/dist/index89.cjs +1 -0
- package/dist/index89.js +115 -0
- package/dist/index90.cjs +1 -0
- package/dist/index90.js +9 -0
- package/dist/index91.cjs +1 -0
- package/dist/index91.js +35 -0
- package/dist/index92.cjs +1 -0
- package/dist/index92.js +4 -0
- package/dist/index93.cjs +1 -0
- package/dist/index93.js +40 -0
- package/dist/index94.cjs +1 -0
- package/dist/index94.js +31 -0
- package/dist/index95.cjs +1 -0
- package/dist/index95.js +23 -0
- package/dist/index96.cjs +1 -0
- package/dist/index96.js +9 -0
- package/dist/index97.cjs +1 -0
- package/dist/index97.js +7 -0
- package/dist/index98.cjs +1 -0
- package/dist/index98.js +13 -0
- package/dist/index99.cjs +1 -0
- package/dist/index99.js +22 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/utils.d.ts +3 -1
- package/package.json +2 -2
package/dist/index74.js
CHANGED
|
@@ -1,65 +1,16 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { stringToBytes as p } from "./index58.js";
|
|
2
|
+
import { keccak256 as f } from "./index96.js";
|
|
3
|
+
import { LruMap as m } from "./index73.js";
|
|
4
|
+
const r = /* @__PURE__ */ new m(8192);
|
|
5
|
+
function a(s, o) {
|
|
6
|
+
if (r.has(`${s}.${o}`))
|
|
7
|
+
return r.get(`${s}.${o}`);
|
|
8
|
+
const c = s.substring(2).toLowerCase(), n = f(p(c)), e = c.split("");
|
|
9
|
+
for (let t = 0; t < 40; t += 2)
|
|
10
|
+
n[t >> 1] >> 4 >= 8 && e[t] && (e[t] = e[t].toUpperCase()), (n[t >> 1] & 15) >= 8 && e[t + 1] && (e[t + 1] = e[t + 1].toUpperCase());
|
|
11
|
+
const i = `0x${e.join("")}`;
|
|
12
|
+
return r.set(`${s}.${o}`, i), i;
|
|
10
13
|
}
|
|
11
|
-
var l = S.codes, h = l.ERR_MISSING_ARGS, y = l.ERR_STREAM_DESTROYED;
|
|
12
|
-
function d(r) {
|
|
13
|
-
if (r) throw r;
|
|
14
|
-
}
|
|
15
|
-
function w(r) {
|
|
16
|
-
return r.setHeader && typeof r.abort == "function";
|
|
17
|
-
}
|
|
18
|
-
function _(r, n, t, e) {
|
|
19
|
-
e = g(e);
|
|
20
|
-
var o = !1;
|
|
21
|
-
r.on("close", function() {
|
|
22
|
-
o = !0;
|
|
23
|
-
}), u === void 0 && (u = E), u(r, {
|
|
24
|
-
readable: n,
|
|
25
|
-
writable: t
|
|
26
|
-
}, function(i) {
|
|
27
|
-
if (i) return e(i);
|
|
28
|
-
o = !0, e();
|
|
29
|
-
});
|
|
30
|
-
var f = !1;
|
|
31
|
-
return function(i) {
|
|
32
|
-
if (!o && !f) {
|
|
33
|
-
if (f = !0, w(r)) return r.abort();
|
|
34
|
-
if (typeof r.destroy == "function") return r.destroy();
|
|
35
|
-
e(i || new y("pipe"));
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function R(r) {
|
|
40
|
-
r();
|
|
41
|
-
}
|
|
42
|
-
function A(r, n) {
|
|
43
|
-
return r.pipe(n);
|
|
44
|
-
}
|
|
45
|
-
function D(r) {
|
|
46
|
-
return !r.length || typeof r[r.length - 1] != "function" ? d : r.pop();
|
|
47
|
-
}
|
|
48
|
-
function G() {
|
|
49
|
-
for (var r = arguments.length, n = new Array(r), t = 0; t < r; t++)
|
|
50
|
-
n[t] = arguments[t];
|
|
51
|
-
var e = D(n);
|
|
52
|
-
if (Array.isArray(n[0]) && (n = n[0]), n.length < 2)
|
|
53
|
-
throw new h("streams");
|
|
54
|
-
var o, f = n.map(function(i, p) {
|
|
55
|
-
var c = p < n.length - 1, v = p > 0;
|
|
56
|
-
return _(i, c, v, function(a) {
|
|
57
|
-
o || (o = a), a && f.forEach(R), !c && (f.forEach(R), e(o));
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
return n.reduce(A);
|
|
61
|
-
}
|
|
62
|
-
var O = G;
|
|
63
14
|
export {
|
|
64
|
-
|
|
15
|
+
a as checksumAddress
|
|
65
16
|
};
|
package/dist/index75.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=2n**256n-1n;exports.maxUint256=t;
|
package/dist/index75.js
CHANGED
|
@@ -1,228 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var a = typeof Reflect == "object" ? Reflect : null, h = a && typeof a.apply == "function" ? a.apply : function(e, n, r) {
|
|
3
|
-
return Function.prototype.apply.call(e, n, r);
|
|
4
|
-
}, l;
|
|
5
|
-
a && typeof a.ownKeys == "function" ? l = a.ownKeys : Object.getOwnPropertySymbols ? l = function(e) {
|
|
6
|
-
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
7
|
-
} : l = function(e) {
|
|
8
|
-
return Object.getOwnPropertyNames(e);
|
|
9
|
-
};
|
|
10
|
-
function C(t) {
|
|
11
|
-
console && console.warn && console.warn(t);
|
|
12
|
-
}
|
|
13
|
-
var L = Number.isNaN || function(e) {
|
|
14
|
-
return e !== e;
|
|
15
|
-
};
|
|
16
|
-
function o() {
|
|
17
|
-
o.init.call(this);
|
|
18
|
-
}
|
|
19
|
-
p.exports = o;
|
|
20
|
-
p.exports.once = M;
|
|
21
|
-
o.EventEmitter = o;
|
|
22
|
-
o.prototype._events = void 0;
|
|
23
|
-
o.prototype._eventsCount = 0;
|
|
24
|
-
o.prototype._maxListeners = void 0;
|
|
25
|
-
var m = 10;
|
|
26
|
-
function v(t) {
|
|
27
|
-
if (typeof t != "function")
|
|
28
|
-
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
|
|
29
|
-
}
|
|
30
|
-
Object.defineProperty(o, "defaultMaxListeners", {
|
|
31
|
-
enumerable: !0,
|
|
32
|
-
get: function() {
|
|
33
|
-
return m;
|
|
34
|
-
},
|
|
35
|
-
set: function(t) {
|
|
36
|
-
if (typeof t != "number" || t < 0 || L(t))
|
|
37
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
|
|
38
|
-
m = t;
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
o.init = function() {
|
|
42
|
-
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
43
|
-
};
|
|
44
|
-
o.prototype.setMaxListeners = function(e) {
|
|
45
|
-
if (typeof e != "number" || e < 0 || L(e))
|
|
46
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
47
|
-
return this._maxListeners = e, this;
|
|
48
|
-
};
|
|
49
|
-
function y(t) {
|
|
50
|
-
return t._maxListeners === void 0 ? o.defaultMaxListeners : t._maxListeners;
|
|
51
|
-
}
|
|
52
|
-
o.prototype.getMaxListeners = function() {
|
|
53
|
-
return y(this);
|
|
54
|
-
};
|
|
55
|
-
o.prototype.emit = function(e) {
|
|
56
|
-
for (var n = [], r = 1; r < arguments.length; r++) n.push(arguments[r]);
|
|
57
|
-
var i = e === "error", f = this._events;
|
|
58
|
-
if (f !== void 0)
|
|
59
|
-
i = i && f.error === void 0;
|
|
60
|
-
else if (!i)
|
|
61
|
-
return !1;
|
|
62
|
-
if (i) {
|
|
63
|
-
var s;
|
|
64
|
-
if (n.length > 0 && (s = n[0]), s instanceof Error)
|
|
65
|
-
throw s;
|
|
66
|
-
var u = new Error("Unhandled error." + (s ? " (" + s.message + ")" : ""));
|
|
67
|
-
throw u.context = s, u;
|
|
68
|
-
}
|
|
69
|
-
var c = f[e];
|
|
70
|
-
if (c === void 0)
|
|
71
|
-
return !1;
|
|
72
|
-
if (typeof c == "function")
|
|
73
|
-
h(c, this, n);
|
|
74
|
-
else
|
|
75
|
-
for (var d = c.length, x = E(c, d), r = 0; r < d; ++r)
|
|
76
|
-
h(x[r], this, n);
|
|
77
|
-
return !0;
|
|
78
|
-
};
|
|
79
|
-
function g(t, e, n, r) {
|
|
80
|
-
var i, f, s;
|
|
81
|
-
if (v(n), f = t._events, f === void 0 ? (f = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (f.newListener !== void 0 && (t.emit(
|
|
82
|
-
"newListener",
|
|
83
|
-
e,
|
|
84
|
-
n.listener ? n.listener : n
|
|
85
|
-
), f = t._events), s = f[e]), s === void 0)
|
|
86
|
-
s = f[e] = n, ++t._eventsCount;
|
|
87
|
-
else if (typeof s == "function" ? s = f[e] = r ? [n, s] : [s, n] : r ? s.unshift(n) : s.push(n), i = y(t), i > 0 && s.length > i && !s.warned) {
|
|
88
|
-
s.warned = !0;
|
|
89
|
-
var u = new Error("Possible EventEmitter memory leak detected. " + s.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
90
|
-
u.name = "MaxListenersExceededWarning", u.emitter = t, u.type = e, u.count = s.length, C(u);
|
|
91
|
-
}
|
|
92
|
-
return t;
|
|
93
|
-
}
|
|
94
|
-
o.prototype.addListener = function(e, n) {
|
|
95
|
-
return g(this, e, n, !1);
|
|
96
|
-
};
|
|
97
|
-
o.prototype.on = o.prototype.addListener;
|
|
98
|
-
o.prototype.prependListener = function(e, n) {
|
|
99
|
-
return g(this, e, n, !0);
|
|
100
|
-
};
|
|
101
|
-
function j() {
|
|
102
|
-
if (!this.fired)
|
|
103
|
-
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
104
|
-
}
|
|
105
|
-
function _(t, e, n) {
|
|
106
|
-
var r = { fired: !1, wrapFn: void 0, target: t, type: e, listener: n }, i = j.bind(r);
|
|
107
|
-
return i.listener = n, r.wrapFn = i, i;
|
|
108
|
-
}
|
|
109
|
-
o.prototype.once = function(e, n) {
|
|
110
|
-
return v(n), this.on(e, _(this, e, n)), this;
|
|
111
|
-
};
|
|
112
|
-
o.prototype.prependOnceListener = function(e, n) {
|
|
113
|
-
return v(n), this.prependListener(e, _(this, e, n)), this;
|
|
114
|
-
};
|
|
115
|
-
o.prototype.removeListener = function(e, n) {
|
|
116
|
-
var r, i, f, s, u;
|
|
117
|
-
if (v(n), i = this._events, i === void 0)
|
|
118
|
-
return this;
|
|
119
|
-
if (r = i[e], r === void 0)
|
|
120
|
-
return this;
|
|
121
|
-
if (r === n || r.listener === n)
|
|
122
|
-
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete i[e], i.removeListener && this.emit("removeListener", e, r.listener || n));
|
|
123
|
-
else if (typeof r != "function") {
|
|
124
|
-
for (f = -1, s = r.length - 1; s >= 0; s--)
|
|
125
|
-
if (r[s] === n || r[s].listener === n) {
|
|
126
|
-
u = r[s].listener, f = s;
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
if (f < 0)
|
|
130
|
-
return this;
|
|
131
|
-
f === 0 ? r.shift() : R(r, f), r.length === 1 && (i[e] = r[0]), i.removeListener !== void 0 && this.emit("removeListener", e, u || n);
|
|
132
|
-
}
|
|
133
|
-
return this;
|
|
134
|
-
};
|
|
135
|
-
o.prototype.off = o.prototype.removeListener;
|
|
136
|
-
o.prototype.removeAllListeners = function(e) {
|
|
137
|
-
var n, r, i;
|
|
138
|
-
if (r = this._events, r === void 0)
|
|
139
|
-
return this;
|
|
140
|
-
if (r.removeListener === void 0)
|
|
141
|
-
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : r[e] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete r[e]), this;
|
|
142
|
-
if (arguments.length === 0) {
|
|
143
|
-
var f = Object.keys(r), s;
|
|
144
|
-
for (i = 0; i < f.length; ++i)
|
|
145
|
-
s = f[i], s !== "removeListener" && this.removeAllListeners(s);
|
|
146
|
-
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
147
|
-
}
|
|
148
|
-
if (n = r[e], typeof n == "function")
|
|
149
|
-
this.removeListener(e, n);
|
|
150
|
-
else if (n !== void 0)
|
|
151
|
-
for (i = n.length - 1; i >= 0; i--)
|
|
152
|
-
this.removeListener(e, n[i]);
|
|
153
|
-
return this;
|
|
154
|
-
};
|
|
155
|
-
function w(t, e, n) {
|
|
156
|
-
var r = t._events;
|
|
157
|
-
if (r === void 0)
|
|
158
|
-
return [];
|
|
159
|
-
var i = r[e];
|
|
160
|
-
return i === void 0 ? [] : typeof i == "function" ? n ? [i.listener || i] : [i] : n ? N(i) : E(i, i.length);
|
|
161
|
-
}
|
|
162
|
-
o.prototype.listeners = function(e) {
|
|
163
|
-
return w(this, e, !0);
|
|
164
|
-
};
|
|
165
|
-
o.prototype.rawListeners = function(e) {
|
|
166
|
-
return w(this, e, !1);
|
|
167
|
-
};
|
|
168
|
-
o.listenerCount = function(t, e) {
|
|
169
|
-
return typeof t.listenerCount == "function" ? t.listenerCount(e) : b.call(t, e);
|
|
170
|
-
};
|
|
171
|
-
o.prototype.listenerCount = b;
|
|
172
|
-
function b(t) {
|
|
173
|
-
var e = this._events;
|
|
174
|
-
if (e !== void 0) {
|
|
175
|
-
var n = e[t];
|
|
176
|
-
if (typeof n == "function")
|
|
177
|
-
return 1;
|
|
178
|
-
if (n !== void 0)
|
|
179
|
-
return n.length;
|
|
180
|
-
}
|
|
181
|
-
return 0;
|
|
182
|
-
}
|
|
183
|
-
o.prototype.eventNames = function() {
|
|
184
|
-
return this._eventsCount > 0 ? l(this._events) : [];
|
|
185
|
-
};
|
|
186
|
-
function E(t, e) {
|
|
187
|
-
for (var n = new Array(e), r = 0; r < e; ++r)
|
|
188
|
-
n[r] = t[r];
|
|
189
|
-
return n;
|
|
190
|
-
}
|
|
191
|
-
function R(t, e) {
|
|
192
|
-
for (; e + 1 < t.length; e++)
|
|
193
|
-
t[e] = t[e + 1];
|
|
194
|
-
t.pop();
|
|
195
|
-
}
|
|
196
|
-
function N(t) {
|
|
197
|
-
for (var e = new Array(t.length), n = 0; n < e.length; ++n)
|
|
198
|
-
e[n] = t[n].listener || t[n];
|
|
199
|
-
return e;
|
|
200
|
-
}
|
|
201
|
-
function M(t, e) {
|
|
202
|
-
return new Promise(function(n, r) {
|
|
203
|
-
function i(s) {
|
|
204
|
-
t.removeListener(e, f), r(s);
|
|
205
|
-
}
|
|
206
|
-
function f() {
|
|
207
|
-
typeof t.removeListener == "function" && t.removeListener("error", i), n([].slice.call(arguments));
|
|
208
|
-
}
|
|
209
|
-
O(t, e, f, { once: !0 }), e !== "error" && A(t, i, { once: !0 });
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
function A(t, e, n) {
|
|
213
|
-
typeof t.on == "function" && O(t, "error", e, n);
|
|
214
|
-
}
|
|
215
|
-
function O(t, e, n, r) {
|
|
216
|
-
if (typeof t.on == "function")
|
|
217
|
-
r.once ? t.once(e, n) : t.on(e, n);
|
|
218
|
-
else if (typeof t.addEventListener == "function")
|
|
219
|
-
t.addEventListener(e, function i(f) {
|
|
220
|
-
r.once && t.removeEventListener(e, i), n(f);
|
|
221
|
-
});
|
|
222
|
-
else
|
|
223
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
|
|
224
|
-
}
|
|
225
|
-
var T = p.exports;
|
|
1
|
+
const n = 2n ** 256n - 1n;
|
|
226
2
|
export {
|
|
227
|
-
|
|
3
|
+
n as maxUint256
|
|
228
4
|
};
|
package/dist/index76.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="2.21.30";exports.version=e;
|
package/dist/index76.js
CHANGED
package/dist/index77.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index78.cjs"),t=require("./index59.cjs");class i extends t.BaseError{constructor({cause:r,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${a.formatGwei(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:r,name:"FeeCapTooHighError"})}}Object.defineProperty(i,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class n extends t.BaseError{constructor({cause:r,maxPriorityFeePerGas:e,maxFeePerGas:o}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${a.formatGwei(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${o?` = ${a.formatGwei(o)} gwei`:""}).`].join(`
|
|
2
|
+
`),{cause:r,name:"TipAboveFeeCapError"})}}Object.defineProperty(n,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});exports.FeeCapTooHighError=i;exports.TipAboveFeeCapError=n;
|
package/dist/index77.js
CHANGED
|
@@ -1,171 +1,37 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var e = Object.keys(i);
|
|
10
|
-
if (Object.getOwnPropertySymbols) {
|
|
11
|
-
var t = Object.getOwnPropertySymbols(i);
|
|
12
|
-
r && (t = t.filter(function(a) {
|
|
13
|
-
return Object.getOwnPropertyDescriptor(i, a).enumerable;
|
|
14
|
-
})), e.push.apply(e, t);
|
|
15
|
-
}
|
|
16
|
-
return e;
|
|
1
|
+
import { formatGwei as a } from "./index78.js";
|
|
2
|
+
import { BaseError as o } from "./index59.js";
|
|
3
|
+
class n extends o {
|
|
4
|
+
constructor({ cause: r, maxFeePerGas: e } = {}) {
|
|
5
|
+
super(`The fee cap (\`maxFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
6
|
+
cause: r,
|
|
7
|
+
name: "FeeCapTooHighError"
|
|
8
|
+
});
|
|
17
9
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
throw new TypeError("Cannot call a class as a function");
|
|
35
|
-
}
|
|
36
|
-
function y(i, r) {
|
|
37
|
-
for (var e = 0; e < r.length; e++) {
|
|
38
|
-
var t = r[e];
|
|
39
|
-
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(i, d(t.key), t);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
function m(i, r, e) {
|
|
43
|
-
return r && y(i.prototype, r), Object.defineProperty(i, "prototype", { writable: !1 }), i;
|
|
44
|
-
}
|
|
45
|
-
function d(i) {
|
|
46
|
-
var r = _(i, "string");
|
|
47
|
-
return typeof r == "symbol" ? r : String(r);
|
|
48
|
-
}
|
|
49
|
-
function _(i, r) {
|
|
50
|
-
if (typeof i != "object" || i === null) return i;
|
|
51
|
-
var e = i[Symbol.toPrimitive];
|
|
52
|
-
if (e !== void 0) {
|
|
53
|
-
var t = e.call(i, r || "default");
|
|
54
|
-
if (typeof t != "object") return t;
|
|
55
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
56
|
-
}
|
|
57
|
-
return (r === "string" ? String : Number)(i);
|
|
58
|
-
}
|
|
59
|
-
var O = x, u = O.Buffer, b = j, f = b.inspect, w = f && f.custom || "inspect";
|
|
60
|
-
function P(i, r, e) {
|
|
61
|
-
u.prototype.copy.call(i, r, e);
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(n, "nodeMessage", {
|
|
12
|
+
enumerable: !0,
|
|
13
|
+
configurable: !0,
|
|
14
|
+
writable: !0,
|
|
15
|
+
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
16
|
+
});
|
|
17
|
+
class h extends o {
|
|
18
|
+
constructor({ cause: r, maxPriorityFeePerGas: e, maxFeePerGas: t } = {}) {
|
|
19
|
+
super([
|
|
20
|
+
`The provided tip (\`maxPriorityFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t ? ` = ${a(t)} gwei` : ""}).`
|
|
21
|
+
].join(`
|
|
22
|
+
`), {
|
|
23
|
+
cause: r,
|
|
24
|
+
name: "TipAboveFeeCapError"
|
|
25
|
+
});
|
|
62
26
|
}
|
|
63
|
-
return s = /* @__PURE__ */ function() {
|
|
64
|
-
function i() {
|
|
65
|
-
p(this, i), this.head = null, this.tail = null, this.length = 0;
|
|
66
|
-
}
|
|
67
|
-
return m(i, [{
|
|
68
|
-
key: "push",
|
|
69
|
-
value: function(e) {
|
|
70
|
-
var t = {
|
|
71
|
-
data: e,
|
|
72
|
-
next: null
|
|
73
|
-
};
|
|
74
|
-
this.length > 0 ? this.tail.next = t : this.head = t, this.tail = t, ++this.length;
|
|
75
|
-
}
|
|
76
|
-
}, {
|
|
77
|
-
key: "unshift",
|
|
78
|
-
value: function(e) {
|
|
79
|
-
var t = {
|
|
80
|
-
data: e,
|
|
81
|
-
next: this.head
|
|
82
|
-
};
|
|
83
|
-
this.length === 0 && (this.tail = t), this.head = t, ++this.length;
|
|
84
|
-
}
|
|
85
|
-
}, {
|
|
86
|
-
key: "shift",
|
|
87
|
-
value: function() {
|
|
88
|
-
if (this.length !== 0) {
|
|
89
|
-
var e = this.head.data;
|
|
90
|
-
return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, e;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}, {
|
|
94
|
-
key: "clear",
|
|
95
|
-
value: function() {
|
|
96
|
-
this.head = this.tail = null, this.length = 0;
|
|
97
|
-
}
|
|
98
|
-
}, {
|
|
99
|
-
key: "join",
|
|
100
|
-
value: function(e) {
|
|
101
|
-
if (this.length === 0) return "";
|
|
102
|
-
for (var t = this.head, a = "" + t.data; t = t.next; ) a += e + t.data;
|
|
103
|
-
return a;
|
|
104
|
-
}
|
|
105
|
-
}, {
|
|
106
|
-
key: "concat",
|
|
107
|
-
value: function(e) {
|
|
108
|
-
if (this.length === 0) return u.alloc(0);
|
|
109
|
-
for (var t = u.allocUnsafe(e >>> 0), a = this.head, l = 0; a; )
|
|
110
|
-
P(a.data, t, l), l += a.data.length, a = a.next;
|
|
111
|
-
return t;
|
|
112
|
-
}
|
|
113
|
-
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
114
|
-
}, {
|
|
115
|
-
key: "consume",
|
|
116
|
-
value: function(e, t) {
|
|
117
|
-
var a;
|
|
118
|
-
return e < this.head.data.length ? (a = this.head.data.slice(0, e), this.head.data = this.head.data.slice(e)) : e === this.head.data.length ? a = this.shift() : a = t ? this._getString(e) : this._getBuffer(e), a;
|
|
119
|
-
}
|
|
120
|
-
}, {
|
|
121
|
-
key: "first",
|
|
122
|
-
value: function() {
|
|
123
|
-
return this.head.data;
|
|
124
|
-
}
|
|
125
|
-
// Consumes a specified amount of characters from the buffered data.
|
|
126
|
-
}, {
|
|
127
|
-
key: "_getString",
|
|
128
|
-
value: function(e) {
|
|
129
|
-
var t = this.head, a = 1, l = t.data;
|
|
130
|
-
for (e -= l.length; t = t.next; ) {
|
|
131
|
-
var n = t.data, h = e > n.length ? n.length : e;
|
|
132
|
-
if (h === n.length ? l += n : l += n.slice(0, e), e -= h, e === 0) {
|
|
133
|
-
h === n.length ? (++a, t.next ? this.head = t.next : this.head = this.tail = null) : (this.head = t, t.data = n.slice(h));
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
++a;
|
|
137
|
-
}
|
|
138
|
-
return this.length -= a, l;
|
|
139
|
-
}
|
|
140
|
-
// Consumes a specified amount of bytes from the buffered data.
|
|
141
|
-
}, {
|
|
142
|
-
key: "_getBuffer",
|
|
143
|
-
value: function(e) {
|
|
144
|
-
var t = u.allocUnsafe(e), a = this.head, l = 1;
|
|
145
|
-
for (a.data.copy(t), e -= a.data.length; a = a.next; ) {
|
|
146
|
-
var n = a.data, h = e > n.length ? n.length : e;
|
|
147
|
-
if (n.copy(t, t.length - e, 0, h), e -= h, e === 0) {
|
|
148
|
-
h === n.length ? (++l, a.next ? this.head = a.next : this.head = this.tail = null) : (this.head = a, a.data = n.slice(h));
|
|
149
|
-
break;
|
|
150
|
-
}
|
|
151
|
-
++l;
|
|
152
|
-
}
|
|
153
|
-
return this.length -= l, t;
|
|
154
|
-
}
|
|
155
|
-
// Make sure the linked list only shows the minimal necessary information.
|
|
156
|
-
}, {
|
|
157
|
-
key: w,
|
|
158
|
-
value: function(e, t) {
|
|
159
|
-
return f(this, c(c({}, t), {}, {
|
|
160
|
-
// Only inspect one level.
|
|
161
|
-
depth: 0,
|
|
162
|
-
// It should not recurse.
|
|
163
|
-
customInspect: !1
|
|
164
|
-
}));
|
|
165
|
-
}
|
|
166
|
-
}]), i;
|
|
167
|
-
}(), s;
|
|
168
27
|
}
|
|
28
|
+
Object.defineProperty(h, "nodeMessage", {
|
|
29
|
+
enumerable: !0,
|
|
30
|
+
configurable: !0,
|
|
31
|
+
writable: !0,
|
|
32
|
+
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
33
|
+
});
|
|
169
34
|
export {
|
|
170
|
-
|
|
35
|
+
n as FeeCapTooHighError,
|
|
36
|
+
h as TipAboveFeeCapError
|
|
171
37
|
};
|
package/dist/index78.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index97.cjs"),r=require("./index98.cjs");function n(t,e="wei"){return r.formatUnits(t,i.gweiUnits[e])}exports.formatGwei=n;
|
package/dist/index78.js
CHANGED
|
@@ -1,30 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}), this);
|
|
1
|
+
import { gweiUnits as i } from "./index97.js";
|
|
2
|
+
import { formatUnits as o } from "./index98.js";
|
|
3
|
+
function f(r, t = "wei") {
|
|
4
|
+
return o(r, i[t]);
|
|
6
5
|
}
|
|
7
|
-
function d(t, e) {
|
|
8
|
-
l(t, e), s(t);
|
|
9
|
-
}
|
|
10
|
-
function s(t) {
|
|
11
|
-
t._writableState && !t._writableState.emitClose || t._readableState && !t._readableState.emitClose || t.emit("close");
|
|
12
|
-
}
|
|
13
|
-
function _() {
|
|
14
|
-
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);
|
|
15
|
-
}
|
|
16
|
-
function l(t, e) {
|
|
17
|
-
t.emit("error", e);
|
|
18
|
-
}
|
|
19
|
-
function S(t, e) {
|
|
20
|
-
var i = t._readableState, a = t._writableState;
|
|
21
|
-
i && i.autoDestroy || a && a.autoDestroy ? t.destroy(e) : t.emit("error", e);
|
|
22
|
-
}
|
|
23
|
-
var h = {
|
|
24
|
-
destroy: n,
|
|
25
|
-
undestroy: _,
|
|
26
|
-
errorOrDestroy: S
|
|
27
|
-
};
|
|
28
6
|
export {
|
|
29
|
-
|
|
7
|
+
f as formatGwei
|
|
30
8
|
};
|
package/dist/index79.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index99.cjs"),n=require("./index100.cjs"),o=require("./index101.cjs"),a=require("./index102.cjs"),h=require("./index103.cjs");var u=s.inherits_browserExports,d=n.md5_js,c=o.ripemd160,p=a.sha_jsExports,i=h.cipherBase;function t(r){i.call(this,"digest"),this._hash=r}u(t,i);t.prototype._update=function(r){this._hash.update(r)};t.prototype._final=function(){return this._hash.digest()};var _=function(e){return e=e.toLowerCase(),e==="md5"?new d:e==="rmd160"||e==="ripemd160"?new c:new t(p(e))};exports.browser=_;
|
package/dist/index79.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { i } from "./index99.js";
|
|
2
|
+
import { m as o } from "./index100.js";
|
|
3
|
+
import { r as a } from "./index101.js";
|
|
4
|
+
import { s as n } from "./index102.js";
|
|
5
|
+
import { c as h } from "./index103.js";
|
|
6
|
+
var p = i, m = o, f = a, u = n, e = h;
|
|
7
|
+
function s(t) {
|
|
8
|
+
e.call(this, "digest"), this._hash = t;
|
|
6
9
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return t.objectMode ? 16 : 16 * 1024;
|
|
17
|
-
}
|
|
18
|
-
var k = {
|
|
19
|
-
getHighWaterMark: g
|
|
10
|
+
p(s, e);
|
|
11
|
+
s.prototype._update = function(t) {
|
|
12
|
+
this._hash.update(t);
|
|
13
|
+
};
|
|
14
|
+
s.prototype._final = function() {
|
|
15
|
+
return this._hash.digest();
|
|
16
|
+
};
|
|
17
|
+
var b = function(r) {
|
|
18
|
+
return r = r.toLowerCase(), r === "md5" ? new m() : r === "rmd160" || r === "ripemd160" ? new f() : new s(u(r));
|
|
20
19
|
};
|
|
21
20
|
export {
|
|
22
|
-
|
|
21
|
+
b
|
|
23
22
|
};
|