@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/index69.js
CHANGED
|
@@ -1,241 +1,81 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
var s;
|
|
23
|
-
f.WritableState = d;
|
|
24
|
-
var B = {
|
|
25
|
-
deprecate: ne
|
|
26
|
-
}, v = fe, w = se.Buffer, m = (typeof q < "u" ? q : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
27
|
-
};
|
|
28
|
-
function x(r) {
|
|
29
|
-
return w.from(r);
|
|
30
|
-
}
|
|
31
|
-
function N(r) {
|
|
32
|
-
return w.isBuffer(r) || r instanceof m;
|
|
33
|
-
}
|
|
34
|
-
var y = oe, O = ue, C = O.getHighWaterMark, u = ae.codes, P = u.ERR_INVALID_ARG_TYPE, I = u.ERR_METHOD_NOT_IMPLEMENTED, L = u.ERR_MULTIPLE_CALLBACK, k = u.ERR_STREAM_CANNOT_PIPE, W = u.ERR_STREAM_DESTROYED, j = u.ERR_STREAM_NULL_VALUES, U = u.ERR_STREAM_WRITE_AFTER_END, F = u.ERR_UNKNOWN_ENCODING, a = y.errorOrDestroy;
|
|
35
|
-
le(f, v);
|
|
36
|
-
function H() {
|
|
37
|
-
}
|
|
38
|
-
function d(r, e, t) {
|
|
39
|
-
s = s || A(), r = r || {}, typeof t != "boolean" && (t = e instanceof s), this.objectMode = !!r.objectMode, t && (this.objectMode = this.objectMode || !!r.writableObjectMode), this.highWaterMark = C(this, r, "writableHighWaterMark", t), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
40
|
-
var i = r.decodeStrings === !1;
|
|
41
|
-
this.decodeStrings = !i, this.defaultEncoding = r.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(n) {
|
|
42
|
-
J(e, n);
|
|
43
|
-
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = r.emitClose !== !1, this.autoDestroy = !!r.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new g(this);
|
|
44
|
-
}
|
|
45
|
-
d.prototype.getBuffer = function() {
|
|
46
|
-
for (var e = this.bufferedRequest, t = []; e; )
|
|
47
|
-
t.push(e), e = e.next;
|
|
48
|
-
return t;
|
|
49
|
-
}, function() {
|
|
50
|
-
try {
|
|
51
|
-
Object.defineProperty(d.prototype, "buffer", {
|
|
52
|
-
get: B.deprecate(function() {
|
|
53
|
-
return this.getBuffer();
|
|
54
|
-
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
|
|
55
|
-
});
|
|
56
|
-
} catch {
|
|
57
|
-
}
|
|
58
|
-
}();
|
|
59
|
-
var b;
|
|
60
|
-
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (b = Function.prototype[Symbol.hasInstance], Object.defineProperty(f, Symbol.hasInstance, {
|
|
61
|
-
value: function(e) {
|
|
62
|
-
return b.call(this, e) ? !0 : this !== f ? !1 : e && e._writableState instanceof d;
|
|
63
|
-
}
|
|
64
|
-
})) : b = function(e) {
|
|
65
|
-
return e instanceof this;
|
|
66
|
-
};
|
|
67
|
-
function f(r) {
|
|
68
|
-
s = s || A();
|
|
69
|
-
var e = this instanceof s;
|
|
70
|
-
if (!e && !b.call(f, this)) return new f(r);
|
|
71
|
-
this._writableState = new d(r, this, e), this.writable = !0, r && (typeof r.write == "function" && (this._write = r.write), typeof r.writev == "function" && (this._writev = r.writev), typeof r.destroy == "function" && (this._destroy = r.destroy), typeof r.final == "function" && (this._final = r.final)), v.call(this);
|
|
72
|
-
}
|
|
73
|
-
f.prototype.pipe = function() {
|
|
74
|
-
a(this, new k());
|
|
75
|
-
};
|
|
76
|
-
function G(r, e) {
|
|
77
|
-
var t = new U();
|
|
78
|
-
a(r, t), process.nextTick(e, t);
|
|
79
|
-
}
|
|
80
|
-
function K(r, e, t, i) {
|
|
81
|
-
var n;
|
|
82
|
-
return t === null ? n = new j() : typeof t != "string" && !e.objectMode && (n = new P("chunk", ["string", "Buffer"], t)), n ? (a(r, n), process.nextTick(i, n), !1) : !0;
|
|
83
|
-
}
|
|
84
|
-
f.prototype.write = function(r, e, t) {
|
|
85
|
-
var i = this._writableState, n = !1, o = !i.objectMode && N(r);
|
|
86
|
-
return o && !w.isBuffer(r) && (r = x(r)), typeof e == "function" && (t = e, e = null), o ? e = "buffer" : e || (e = i.defaultEncoding), typeof t != "function" && (t = H), i.ending ? G(this, t) : (o || K(this, i, r, t)) && (i.pendingcb++, n = Y(this, i, o, r, e, t)), n;
|
|
87
|
-
}, f.prototype.cork = function() {
|
|
88
|
-
this._writableState.corked++;
|
|
89
|
-
}, f.prototype.uncork = function() {
|
|
90
|
-
var r = this._writableState;
|
|
91
|
-
r.corked && (r.corked--, !r.writing && !r.corked && !r.bufferProcessing && r.bufferedRequest && M(this, r));
|
|
92
|
-
}, f.prototype.setDefaultEncoding = function(e) {
|
|
93
|
-
if (typeof e == "string" && (e = e.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((e + "").toLowerCase()) > -1)) throw new F(e);
|
|
94
|
-
return this._writableState.defaultEncoding = e, this;
|
|
95
|
-
}, Object.defineProperty(f.prototype, "writableBuffer", {
|
|
96
|
-
// making it explicit this property is not enumerable
|
|
97
|
-
// because otherwise some prototype manipulation in
|
|
98
|
-
// userland will fail
|
|
99
|
-
enumerable: !1,
|
|
100
|
-
get: function() {
|
|
101
|
-
return this._writableState && this._writableState.getBuffer();
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
function V(r, e, t) {
|
|
105
|
-
return !r.objectMode && r.decodeStrings !== !1 && typeof e == "string" && (e = w.from(e, t)), e;
|
|
106
|
-
}
|
|
107
|
-
Object.defineProperty(f.prototype, "writableHighWaterMark", {
|
|
108
|
-
// making it explicit this property is not enumerable
|
|
109
|
-
// because otherwise some prototype manipulation in
|
|
110
|
-
// userland will fail
|
|
111
|
-
enumerable: !1,
|
|
112
|
-
get: function() {
|
|
113
|
-
return this._writableState.highWaterMark;
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
function Y(r, e, t, i, n, o) {
|
|
117
|
-
if (!t) {
|
|
118
|
-
var l = V(e, i, n);
|
|
119
|
-
i !== l && (t = !0, n = "buffer", i = l);
|
|
120
|
-
}
|
|
121
|
-
var h = e.objectMode ? 1 : i.length;
|
|
122
|
-
e.length += h;
|
|
123
|
-
var _ = e.length < e.highWaterMark;
|
|
124
|
-
if (_ || (e.needDrain = !0), e.writing || e.corked) {
|
|
125
|
-
var p = e.lastBufferedRequest;
|
|
126
|
-
e.lastBufferedRequest = {
|
|
127
|
-
chunk: i,
|
|
128
|
-
encoding: n,
|
|
129
|
-
isBuf: t,
|
|
130
|
-
callback: o,
|
|
131
|
-
next: null
|
|
132
|
-
}, p ? p.next = e.lastBufferedRequest : e.bufferedRequest = e.lastBufferedRequest, e.bufferedRequestCount += 1;
|
|
133
|
-
} else
|
|
134
|
-
R(r, e, !1, h, i, n, o);
|
|
135
|
-
return _;
|
|
136
|
-
}
|
|
137
|
-
function R(r, e, t, i, n, o, l) {
|
|
138
|
-
e.writelen = i, e.writecb = l, e.writing = !0, e.sync = !0, e.destroyed ? e.onwrite(new W("write")) : t ? r._writev(n, e.onwrite) : r._write(n, o, e.onwrite), e.sync = !1;
|
|
139
|
-
}
|
|
140
|
-
function $(r, e, t, i, n) {
|
|
141
|
-
--e.pendingcb, t ? (process.nextTick(n, i), process.nextTick(c, r, e), r._writableState.errorEmitted = !0, a(r, i)) : (n(i), r._writableState.errorEmitted = !0, a(r, i), c(r, e));
|
|
142
|
-
}
|
|
143
|
-
function z(r) {
|
|
144
|
-
r.writing = !1, r.writecb = null, r.length -= r.writelen, r.writelen = 0;
|
|
145
|
-
}
|
|
146
|
-
function J(r, e) {
|
|
147
|
-
var t = r._writableState, i = t.sync, n = t.writecb;
|
|
148
|
-
if (typeof n != "function") throw new L();
|
|
149
|
-
if (z(t), e) $(r, t, i, e, n);
|
|
150
|
-
else {
|
|
151
|
-
var o = T(t) || r.destroyed;
|
|
152
|
-
!o && !t.corked && !t.bufferProcessing && t.bufferedRequest && M(r, t), i ? process.nextTick(S, r, t, o, n) : S(r, t, o, n);
|
|
1
|
+
import { versionedHashVersionKzg as d } from "./index92.js";
|
|
2
|
+
import { maxUint256 as m } from "./index75.js";
|
|
3
|
+
import { InvalidAddressError as s } from "./index42.js";
|
|
4
|
+
import { BaseError as h } from "./index59.js";
|
|
5
|
+
import { EmptyBlobError as P, InvalidVersionedHashSizeError as p, InvalidVersionedHashVersionError as x } from "./index93.js";
|
|
6
|
+
import { InvalidChainIdError as n } from "./index72.js";
|
|
7
|
+
import { FeeCapTooHighError as w, TipAboveFeeCapError as E } from "./index77.js";
|
|
8
|
+
import { isAddress as f } from "./index43.js";
|
|
9
|
+
import { size as F } from "./index49.js";
|
|
10
|
+
import { slice as I } from "./index94.js";
|
|
11
|
+
import { hexToNumber as G } from "./index30.js";
|
|
12
|
+
function C(t) {
|
|
13
|
+
const { authorizationList: e } = t;
|
|
14
|
+
if (e)
|
|
15
|
+
for (const o of e) {
|
|
16
|
+
const { contractAddress: r, chainId: i } = o;
|
|
17
|
+
if (!f(r))
|
|
18
|
+
throw new s({ address: r });
|
|
19
|
+
if (i <= 0)
|
|
20
|
+
throw new n({ chainId: i });
|
|
153
21
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
e.length === 0
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
} else {
|
|
171
|
-
for (; t; ) {
|
|
172
|
-
var _ = t.chunk, p = t.encoding, te = t.callback, ie = e.objectMode ? 1 : _.length;
|
|
173
|
-
if (R(r, e, !1, ie, _, p, te), t = t.next, e.bufferedRequestCount--, e.writing)
|
|
174
|
-
break;
|
|
175
|
-
}
|
|
176
|
-
t === null && (e.lastBufferedRequest = null);
|
|
177
|
-
}
|
|
178
|
-
e.bufferedRequest = t, e.bufferProcessing = !1;
|
|
179
|
-
}
|
|
180
|
-
f.prototype._write = function(r, e, t) {
|
|
181
|
-
t(new I("_write()"));
|
|
182
|
-
}, f.prototype._writev = null, f.prototype.end = function(r, e, t) {
|
|
183
|
-
var i = this._writableState;
|
|
184
|
-
return typeof r == "function" ? (t = r, r = null, e = null) : typeof e == "function" && (t = e, e = null), r != null && this.write(r, e), i.corked && (i.corked = 1, this.uncork()), i.ending || ee(this, i, t), this;
|
|
185
|
-
}, Object.defineProperty(f.prototype, "writableLength", {
|
|
186
|
-
// making it explicit this property is not enumerable
|
|
187
|
-
// because otherwise some prototype manipulation in
|
|
188
|
-
// userland will fail
|
|
189
|
-
enumerable: !1,
|
|
190
|
-
get: function() {
|
|
191
|
-
return this._writableState.length;
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
function T(r) {
|
|
195
|
-
return r.ending && r.length === 0 && r.bufferedRequest === null && !r.finished && !r.writing;
|
|
196
|
-
}
|
|
197
|
-
function X(r, e) {
|
|
198
|
-
r._final(function(t) {
|
|
199
|
-
e.pendingcb--, t && a(r, t), e.prefinished = !0, r.emit("prefinish"), c(r, e);
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
function Z(r, e) {
|
|
203
|
-
!e.prefinished && !e.finalCalled && (typeof r._final == "function" && !e.destroyed ? (e.pendingcb++, e.finalCalled = !0, process.nextTick(X, r, e)) : (e.prefinished = !0, r.emit("prefinish")));
|
|
204
|
-
}
|
|
205
|
-
function c(r, e) {
|
|
206
|
-
var t = T(e);
|
|
207
|
-
if (t && (Z(r, e), e.pendingcb === 0 && (e.finished = !0, r.emit("finish"), e.autoDestroy))) {
|
|
208
|
-
var i = r._readableState;
|
|
209
|
-
(!i || i.autoDestroy && i.endEmitted) && r.destroy();
|
|
210
|
-
}
|
|
211
|
-
return t;
|
|
212
|
-
}
|
|
213
|
-
function ee(r, e, t) {
|
|
214
|
-
e.ending = !0, c(r, e), t && (e.finished ? process.nextTick(t) : r.once("finish", t)), e.ended = !0, r.writable = !1;
|
|
215
|
-
}
|
|
216
|
-
function re(r, e, t) {
|
|
217
|
-
var i = r.entry;
|
|
218
|
-
for (r.entry = null; i; ) {
|
|
219
|
-
var n = i.callback;
|
|
220
|
-
e.pendingcb--, n(t), i = i.next;
|
|
22
|
+
c(t);
|
|
23
|
+
}
|
|
24
|
+
function L(t) {
|
|
25
|
+
const { blobVersionedHashes: e } = t;
|
|
26
|
+
if (e) {
|
|
27
|
+
if (e.length === 0)
|
|
28
|
+
throw new P();
|
|
29
|
+
for (const o of e) {
|
|
30
|
+
const r = F(o), i = G(I(o, 0, 1));
|
|
31
|
+
if (r !== 32)
|
|
32
|
+
throw new p({ hash: o, size: r });
|
|
33
|
+
if (i !== d)
|
|
34
|
+
throw new x({
|
|
35
|
+
hash: o,
|
|
36
|
+
version: i
|
|
37
|
+
});
|
|
221
38
|
}
|
|
222
|
-
e.corkedRequestsFree.next = r;
|
|
223
39
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
40
|
+
c(t);
|
|
41
|
+
}
|
|
42
|
+
function c(t) {
|
|
43
|
+
const { chainId: e, maxPriorityFeePerGas: o, maxFeePerGas: r, to: i } = t;
|
|
44
|
+
if (e <= 0)
|
|
45
|
+
throw new n({ chainId: e });
|
|
46
|
+
if (i && !f(i))
|
|
47
|
+
throw new s({ address: i });
|
|
48
|
+
if (r && r > m)
|
|
49
|
+
throw new w({ maxFeePerGas: r });
|
|
50
|
+
if (o && r && o > r)
|
|
51
|
+
throw new E({ maxFeePerGas: r, maxPriorityFeePerGas: o });
|
|
52
|
+
}
|
|
53
|
+
function B(t) {
|
|
54
|
+
const { chainId: e, maxPriorityFeePerGas: o, gasPrice: r, maxFeePerGas: i, to: a } = t;
|
|
55
|
+
if (e <= 0)
|
|
56
|
+
throw new n({ chainId: e });
|
|
57
|
+
if (a && !f(a))
|
|
58
|
+
throw new s({ address: a });
|
|
59
|
+
if (o || i)
|
|
60
|
+
throw new h("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
61
|
+
if (r && r > m)
|
|
62
|
+
throw new w({ maxFeePerGas: r });
|
|
63
|
+
}
|
|
64
|
+
function K(t) {
|
|
65
|
+
const { chainId: e, maxPriorityFeePerGas: o, gasPrice: r, maxFeePerGas: i, to: a } = t;
|
|
66
|
+
if (a && !f(a))
|
|
67
|
+
throw new s({ address: a });
|
|
68
|
+
if (typeof e < "u" && e <= 0)
|
|
69
|
+
throw new n({ chainId: e });
|
|
70
|
+
if (o || i)
|
|
71
|
+
throw new h("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
72
|
+
if (r && r > m)
|
|
73
|
+
throw new w({ maxFeePerGas: r });
|
|
238
74
|
}
|
|
239
75
|
export {
|
|
240
|
-
|
|
76
|
+
c as assertTransactionEIP1559,
|
|
77
|
+
B as assertTransactionEIP2930,
|
|
78
|
+
L as assertTransactionEIP4844,
|
|
79
|
+
C as assertTransactionEIP7702,
|
|
80
|
+
K as assertTransactionLegacy
|
|
241
81
|
};
|
package/dist/index70.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 i=require("./index62.cjs");function f(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new i.InvalidSerializableTransactionError({transaction:e})}exports.getTransactionType=f;
|
package/dist/index70.js
CHANGED
|
@@ -1,70 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
u
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var s = h(), a = p();
|
|
15
|
-
c(t, s);
|
|
16
|
-
for (var f = o(a.prototype), i = 0; i < f.length; i++) {
|
|
17
|
-
var n = f[i];
|
|
18
|
-
t.prototype[n] || (t.prototype[n] = a.prototype[n]);
|
|
19
|
-
}
|
|
20
|
-
function t(e) {
|
|
21
|
-
if (!(this instanceof t)) return new t(e);
|
|
22
|
-
s.call(this, e), a.call(this, e), this.allowHalfOpen = !0, e && (e.readable === !1 && (this.readable = !1), e.writable === !1 && (this.writable = !1), e.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", d)));
|
|
23
|
-
}
|
|
24
|
-
Object.defineProperty(t.prototype, "writableHighWaterMark", {
|
|
25
|
-
// making it explicit this property is not enumerable
|
|
26
|
-
// because otherwise some prototype manipulation in
|
|
27
|
-
// userland will fail
|
|
28
|
-
enumerable: !1,
|
|
29
|
-
get: function() {
|
|
30
|
-
return this._writableState.highWaterMark;
|
|
31
|
-
}
|
|
32
|
-
}), Object.defineProperty(t.prototype, "writableBuffer", {
|
|
33
|
-
// making it explicit this property is not enumerable
|
|
34
|
-
// because otherwise some prototype manipulation in
|
|
35
|
-
// userland will fail
|
|
36
|
-
enumerable: !1,
|
|
37
|
-
get: function() {
|
|
38
|
-
return this._writableState && this._writableState.getBuffer();
|
|
39
|
-
}
|
|
40
|
-
}), Object.defineProperty(t.prototype, "writableLength", {
|
|
41
|
-
// making it explicit this property is not enumerable
|
|
42
|
-
// because otherwise some prototype manipulation in
|
|
43
|
-
// userland will fail
|
|
44
|
-
enumerable: !1,
|
|
45
|
-
get: function() {
|
|
46
|
-
return this._writableState.length;
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
function d() {
|
|
50
|
-
this._writableState.ended || process.nextTick(b, this);
|
|
51
|
-
}
|
|
52
|
-
function b(e) {
|
|
53
|
-
e.end();
|
|
54
|
-
}
|
|
55
|
-
return Object.defineProperty(t.prototype, "destroyed", {
|
|
56
|
-
// making it explicit this property is not enumerable
|
|
57
|
-
// because otherwise some prototype manipulation in
|
|
58
|
-
// userland will fail
|
|
59
|
-
enumerable: !1,
|
|
60
|
-
get: function() {
|
|
61
|
-
return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed;
|
|
62
|
-
},
|
|
63
|
-
set: function(r) {
|
|
64
|
-
this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = r, this._writableState.destroyed = r);
|
|
65
|
-
}
|
|
66
|
-
}), l;
|
|
1
|
+
import { InvalidSerializableTransactionError as f } from "./index62.js";
|
|
2
|
+
function d(e) {
|
|
3
|
+
if (e.type)
|
|
4
|
+
return e.type;
|
|
5
|
+
if (typeof e.authorizationList < "u")
|
|
6
|
+
return "eip7702";
|
|
7
|
+
if (typeof e.blobs < "u" || typeof e.blobVersionedHashes < "u" || typeof e.maxFeePerBlobGas < "u" || typeof e.sidecars < "u")
|
|
8
|
+
return "eip4844";
|
|
9
|
+
if (typeof e.maxFeePerGas < "u" || typeof e.maxPriorityFeePerGas < "u")
|
|
10
|
+
return "eip1559";
|
|
11
|
+
if (typeof e.gasPrice < "u")
|
|
12
|
+
return typeof e.accessList < "u" ? "eip2930" : "legacy";
|
|
13
|
+
throw new f({ transaction: e });
|
|
67
14
|
}
|
|
68
15
|
export {
|
|
69
|
-
|
|
16
|
+
d as getTransactionType
|
|
70
17
|
};
|
package/dist/index71.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 o=require("./index42.cjs"),d=require("./index62.cjs"),l=require("./index43.cjs");function a(e){if(!e||e.length===0)return[];const n=[];for(let t=0;t<e.length;t++){const{address:i,storageKeys:r}=e[t];for(let s=0;s<r.length;s++)if(r[s].length-2!==64)throw new d.InvalidStorageKeySizeError({storageKey:r[s]});if(!l.isAddress(i,{strict:!1}))throw new o.InvalidAddressError({address:i});n.push([i,r])}return n}exports.serializeAccessList=a;
|
package/dist/index71.js
CHANGED
|
@@ -1,64 +1,21 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
function i(r) {
|
|
18
|
-
if (!(this instanceof i)) return new i(r);
|
|
19
|
-
f.call(this, r), this._transformState = {
|
|
20
|
-
afterTransform: d.bind(this),
|
|
21
|
-
needTransform: !1,
|
|
22
|
-
transforming: !1,
|
|
23
|
-
writecb: null,
|
|
24
|
-
writechunk: null,
|
|
25
|
-
writeencoding: null
|
|
26
|
-
}, this._readableState.needReadable = !0, this._readableState.sync = !1, r && (typeof r.transform == "function" && (this._transform = r.transform), typeof r.flush == "function" && (this._flush = r.flush)), this.on("prefinish", p);
|
|
27
|
-
}
|
|
28
|
-
function p() {
|
|
29
|
-
var r = this;
|
|
30
|
-
typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(t, e) {
|
|
31
|
-
o(r, t, e);
|
|
32
|
-
}) : o(this, null, null);
|
|
33
|
-
}
|
|
34
|
-
i.prototype.push = function(r, t) {
|
|
35
|
-
return this._transformState.needTransform = !1, f.prototype.push.call(this, r, t);
|
|
36
|
-
};
|
|
37
|
-
i.prototype._transform = function(r, t, e) {
|
|
38
|
-
e(new u("_transform()"));
|
|
39
|
-
};
|
|
40
|
-
i.prototype._write = function(r, t, e) {
|
|
41
|
-
var a = this._transformState;
|
|
42
|
-
if (a.writecb = e, a.writechunk = r, a.writeencoding = t, !a.transforming) {
|
|
43
|
-
var n = this._readableState;
|
|
44
|
-
(a.needTransform || n.needReadable || n.length < n.highWaterMark) && this._read(n.highWaterMark);
|
|
1
|
+
import { InvalidAddressError as s } from "./index42.js";
|
|
2
|
+
import { InvalidStorageKeySizeError as l } from "./index62.js";
|
|
3
|
+
import { isAddress as f } from "./index43.js";
|
|
4
|
+
function a(r) {
|
|
5
|
+
if (!r || r.length === 0)
|
|
6
|
+
return [];
|
|
7
|
+
const n = [];
|
|
8
|
+
for (let o = 0; o < r.length; o++) {
|
|
9
|
+
const { address: i, storageKeys: e } = r[o];
|
|
10
|
+
for (let t = 0; t < e.length; t++)
|
|
11
|
+
if (e[t].length - 2 !== 64)
|
|
12
|
+
throw new l({ storageKey: e[t] });
|
|
13
|
+
if (!f(i, { strict: !1 }))
|
|
14
|
+
throw new s({ address: i });
|
|
15
|
+
n.push([i, e]);
|
|
45
16
|
}
|
|
46
|
-
|
|
47
|
-
i.prototype._read = function(r) {
|
|
48
|
-
var t = this._transformState;
|
|
49
|
-
t.writechunk !== null && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0;
|
|
50
|
-
};
|
|
51
|
-
i.prototype._destroy = function(r, t) {
|
|
52
|
-
f.prototype._destroy.call(this, r, function(e) {
|
|
53
|
-
t(e);
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
function o(r, t, e) {
|
|
57
|
-
if (t) return r.emit("error", t);
|
|
58
|
-
if (e != null && r.push(e), r._writableState.length) throw new R();
|
|
59
|
-
if (r._transformState.transforming) throw new m();
|
|
60
|
-
return r.push(null);
|
|
17
|
+
return n;
|
|
61
18
|
}
|
|
62
19
|
export {
|
|
63
|
-
|
|
20
|
+
a as serializeAccessList
|
|
64
21
|
};
|
package/dist/index72.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 e=require("./index59.cjs");class i extends e.BaseError{constructor({chainId:r}){super(typeof r=="number"?`Chain ID "${r}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}exports.InvalidChainIdError=i;
|
package/dist/index72.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
if (!(this instanceof r)) return new r(s);
|
|
7
|
-
t.call(this, s);
|
|
1
|
+
import { BaseError as i } from "./index59.js";
|
|
2
|
+
class o extends i {
|
|
3
|
+
constructor({ chainId: r }) {
|
|
4
|
+
super(typeof r == "number" ? `Chain ID "${r}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
5
|
+
}
|
|
8
6
|
}
|
|
9
|
-
r.prototype._transform = function(s, i, o) {
|
|
10
|
-
o(null, s);
|
|
11
|
-
};
|
|
12
7
|
export {
|
|
13
|
-
|
|
8
|
+
o as InvalidChainIdError
|
|
14
9
|
};
|
package/dist/index73.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class i extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&t!==void 0&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){const s=this.keys().next().value;s&&this.delete(s)}return this}}exports.LruMap=i;
|
package/dist/index73.js
CHANGED
|
@@ -1,47 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
class r extends Map {
|
|
2
|
+
constructor(e) {
|
|
3
|
+
super(), Object.defineProperty(this, "maxSize", {
|
|
4
|
+
enumerable: !0,
|
|
5
|
+
configurable: !0,
|
|
6
|
+
writable: !0,
|
|
7
|
+
value: void 0
|
|
8
|
+
}), this.maxSize = e;
|
|
9
|
+
}
|
|
10
|
+
get(e) {
|
|
11
|
+
const t = super.get(e);
|
|
12
|
+
return super.has(e) && t !== void 0 && (this.delete(e), super.set(e, t)), t;
|
|
13
|
+
}
|
|
14
|
+
set(e, t) {
|
|
15
|
+
if (super.set(e, t), this.maxSize && this.size > this.maxSize) {
|
|
16
|
+
const s = this.keys().next().value;
|
|
17
|
+
s && this.delete(s);
|
|
12
18
|
}
|
|
13
|
-
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
14
21
|
}
|
|
15
|
-
function h() {
|
|
16
|
-
}
|
|
17
|
-
function R(e) {
|
|
18
|
-
return e.setHeader && typeof e.abort == "function";
|
|
19
|
-
}
|
|
20
|
-
function E(e, n, r) {
|
|
21
|
-
if (typeof n == "function") return E(e, null, n);
|
|
22
|
-
n || (n = {}), r = L(r || h);
|
|
23
|
-
var f = n.readable || n.readable !== !1 && e.readable, i = n.writable || n.writable !== !1 && e.writable, u = function() {
|
|
24
|
-
e.writable || o();
|
|
25
|
-
}, a = e._writableState && e._writableState.finished, o = function() {
|
|
26
|
-
i = !1, a = !0, f || r.call(e);
|
|
27
|
-
}, c = e._readableState && e._readableState.endEmitted, b = function() {
|
|
28
|
-
f = !1, c = !0, i || r.call(e);
|
|
29
|
-
}, w = function(l) {
|
|
30
|
-
r.call(e, l);
|
|
31
|
-
}, d = function() {
|
|
32
|
-
var l;
|
|
33
|
-
if (f && !c)
|
|
34
|
-
return (!e._readableState || !e._readableState.ended) && (l = new S()), r.call(e, l);
|
|
35
|
-
if (i && !a)
|
|
36
|
-
return (!e._writableState || !e._writableState.ended) && (l = new S()), r.call(e, l);
|
|
37
|
-
}, v = function() {
|
|
38
|
-
e.req.on("finish", o);
|
|
39
|
-
};
|
|
40
|
-
return R(e) ? (e.on("complete", o), e.on("abort", d), e.req ? v() : e.on("request", v)) : i && !e._writableState && (e.on("end", u), e.on("close", u)), e.on("end", b), e.on("finish", o), n.error !== !1 && e.on("error", w), e.on("close", d), function() {
|
|
41
|
-
e.removeListener("complete", o), e.removeListener("abort", d), e.removeListener("request", v), e.req && e.req.removeListener("finish", o), e.removeListener("end", u), e.removeListener("close", u), e.removeListener("finish", o), e.removeListener("end", b), e.removeListener("error", w), e.removeListener("close", d);
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
var g = E;
|
|
45
22
|
export {
|
|
46
|
-
|
|
23
|
+
r as LruMap
|
|
47
24
|
};
|
package/dist/index74.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 i=require("./index58.cjs"),a=require("./index96.cjs"),f=require("./index73.cjs"),o=new f.LruMap(8192);function k(t,r){if(o.has(`${t}.${r}`))return o.get(`${t}.${r}`);const c=t.substring(2).toLowerCase(),n=a.keccak256(i.stringToBytes(c)),s=c.split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&s[e]&&(s[e]=s[e].toUpperCase()),(n[e>>1]&15)>=8&&s[e+1]&&(s[e+1]=s[e+1].toUpperCase());const u=`0x${s.join("")}`;return o.set(`${t}.${r}`,u),u}exports.checksumAddress=k;
|