@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/index145.js
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { e as k } from "./index137.js";
|
|
2
|
+
var S, h;
|
|
3
|
+
function I() {
|
|
4
|
+
if (h) return S;
|
|
5
|
+
h = 1;
|
|
6
|
+
var m;
|
|
7
|
+
function i(t, e, n) {
|
|
8
|
+
return e = _(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
9
|
+
}
|
|
10
|
+
function _(t) {
|
|
11
|
+
var e = R(t, "string");
|
|
12
|
+
return typeof e == "symbol" ? e : String(e);
|
|
13
|
+
}
|
|
14
|
+
function R(t, e) {
|
|
15
|
+
if (typeof t != "object" || t === null) return t;
|
|
16
|
+
var n = t[Symbol.toPrimitive];
|
|
17
|
+
if (n !== void 0) {
|
|
18
|
+
var r = n.call(t, e || "default");
|
|
19
|
+
if (typeof r != "object") return r;
|
|
20
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
21
|
+
}
|
|
22
|
+
return (e === "string" ? String : Number)(t);
|
|
23
|
+
}
|
|
24
|
+
var p = k, u = Symbol("lastResolve"), s = Symbol("lastReject"), d = Symbol("error"), b = Symbol("ended"), f = Symbol("lastPromise"), P = Symbol("handlePromise"), c = Symbol("stream");
|
|
25
|
+
function a(t, e) {
|
|
26
|
+
return {
|
|
27
|
+
value: t,
|
|
28
|
+
done: e
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function w(t) {
|
|
32
|
+
var e = t[u];
|
|
33
|
+
if (e !== null) {
|
|
34
|
+
var n = t[c].read();
|
|
35
|
+
n !== null && (t[f] = null, t[u] = null, t[s] = null, e(a(n, !1)));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function O(t) {
|
|
39
|
+
process.nextTick(w, t);
|
|
40
|
+
}
|
|
41
|
+
function A(t, e) {
|
|
42
|
+
return function(n, r) {
|
|
43
|
+
t.then(function() {
|
|
44
|
+
if (e[b]) {
|
|
45
|
+
n(a(void 0, !0));
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
e[P](n, r);
|
|
49
|
+
}, r);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
var E = Object.getPrototypeOf(function() {
|
|
53
|
+
}), g = Object.setPrototypeOf((m = {
|
|
54
|
+
get stream() {
|
|
55
|
+
return this[c];
|
|
56
|
+
},
|
|
57
|
+
next: function() {
|
|
58
|
+
var e = this, n = this[d];
|
|
59
|
+
if (n !== null)
|
|
60
|
+
return Promise.reject(n);
|
|
61
|
+
if (this[b])
|
|
62
|
+
return Promise.resolve(a(void 0, !0));
|
|
63
|
+
if (this[c].destroyed)
|
|
64
|
+
return new Promise(function(v, y) {
|
|
65
|
+
process.nextTick(function() {
|
|
66
|
+
e[d] ? y(e[d]) : v(a(void 0, !0));
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
var r = this[f], l;
|
|
70
|
+
if (r)
|
|
71
|
+
l = new Promise(A(r, this));
|
|
72
|
+
else {
|
|
73
|
+
var o = this[c].read();
|
|
74
|
+
if (o !== null)
|
|
75
|
+
return Promise.resolve(a(o, !1));
|
|
76
|
+
l = new Promise(this[P]);
|
|
77
|
+
}
|
|
78
|
+
return this[f] = l, l;
|
|
79
|
+
}
|
|
80
|
+
}, i(m, Symbol.asyncIterator, function() {
|
|
81
|
+
return this;
|
|
82
|
+
}), i(m, "return", function() {
|
|
83
|
+
var e = this;
|
|
84
|
+
return new Promise(function(n, r) {
|
|
85
|
+
e[c].destroy(null, function(l) {
|
|
86
|
+
if (l) {
|
|
87
|
+
r(l);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
n(a(void 0, !0));
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
}), m), E), j = function(e) {
|
|
94
|
+
var n, r = Object.create(g, (n = {}, i(n, c, {
|
|
95
|
+
value: e,
|
|
96
|
+
writable: !0
|
|
97
|
+
}), i(n, u, {
|
|
98
|
+
value: null,
|
|
99
|
+
writable: !0
|
|
100
|
+
}), i(n, s, {
|
|
101
|
+
value: null,
|
|
102
|
+
writable: !0
|
|
103
|
+
}), i(n, d, {
|
|
104
|
+
value: null,
|
|
105
|
+
writable: !0
|
|
106
|
+
}), i(n, b, {
|
|
107
|
+
value: e._readableState.endEmitted,
|
|
108
|
+
writable: !0
|
|
109
|
+
}), i(n, P, {
|
|
110
|
+
value: function(o, v) {
|
|
111
|
+
var y = r[c].read();
|
|
112
|
+
y ? (r[f] = null, r[u] = null, r[s] = null, o(a(y, !1))) : (r[u] = o, r[s] = v);
|
|
113
|
+
},
|
|
114
|
+
writable: !0
|
|
115
|
+
}), n));
|
|
116
|
+
return r[f] = null, p(e, function(l) {
|
|
117
|
+
if (l && l.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
118
|
+
var o = r[s];
|
|
119
|
+
o !== null && (r[f] = null, r[u] = null, r[s] = null, o(l)), r[d] = l;
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
var v = r[u];
|
|
123
|
+
v !== null && (r[f] = null, r[u] = null, r[s] = null, v(a(void 0, !0))), r[b] = !0;
|
|
124
|
+
}), e.on("readable", O.bind(null, r)), r;
|
|
125
|
+
};
|
|
126
|
+
return S = j, S;
|
|
127
|
+
}
|
|
128
|
+
export {
|
|
129
|
+
I as __require
|
|
130
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r,e;function o(){return e||(e=1,r=function(){throw new Error("Readable.from is not available in the browser")}),r}exports.__require=o;
|
package/dist/index146.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r={};exports.__exports=r;
|
package/dist/index147.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index53.cjs");var l=c;function c(r,e){if(t("noDeprecation"))return r;var o=!1;function a(){if(!o){if(t("throwDeprecation"))throw new Error(e);t("traceDeprecation")?console.trace(e):console.warn(e),o=!0}return r.apply(this,arguments)}return a}function t(r){try{if(!n.commonjsGlobal.localStorage)return!1}catch{return!1}var e=n.commonjsGlobal.localStorage[r];return e==null?!1:String(e).toLowerCase()==="true"}exports.browser=l;
|
package/dist/index148.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { commonjsGlobal as a } from "./index53.js";
|
|
2
|
+
var i = c;
|
|
3
|
+
function c(e, r) {
|
|
4
|
+
if (o("noDeprecation"))
|
|
5
|
+
return e;
|
|
6
|
+
var t = !1;
|
|
7
|
+
function n() {
|
|
8
|
+
if (!t) {
|
|
9
|
+
if (o("throwDeprecation"))
|
|
10
|
+
throw new Error(r);
|
|
11
|
+
o("traceDeprecation") ? console.trace(r) : console.warn(r), t = !0;
|
|
12
|
+
}
|
|
13
|
+
return e.apply(this, arguments);
|
|
14
|
+
}
|
|
15
|
+
return n;
|
|
16
|
+
}
|
|
17
|
+
function o(e) {
|
|
18
|
+
try {
|
|
19
|
+
if (!a.localStorage) return !1;
|
|
20
|
+
} catch {
|
|
21
|
+
return !1;
|
|
22
|
+
}
|
|
23
|
+
var r = a.localStorage[e];
|
|
24
|
+
return r == null ? !1 : String(r).toLowerCase() === "true";
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
i as b
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/dist/index149.js
ADDED
package/dist/index16.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index21.cjs"),a=e.defineChain({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cloudflare-eth.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}});exports.mainnet=a;
|
package/dist/index16.js
CHANGED
|
@@ -1,140 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
if (s.typeforce(s.Buffer256bit, o), !e.isPrivate(o))
|
|
30
|
-
throw new TypeError("Private key not in range [1, n)");
|
|
31
|
-
return s.typeforce(u, r), new d(o, void 0, r);
|
|
32
|
-
}
|
|
33
|
-
function h(o, r) {
|
|
34
|
-
return s.typeforce(e.isPoint, o), s.typeforce(u, r), new d(void 0, o, r);
|
|
35
|
-
}
|
|
36
|
-
function l(o, r) {
|
|
37
|
-
const t = m.decode(o), i = t.version;
|
|
38
|
-
if (s.Array(r)) {
|
|
39
|
-
if (r = r.filter((a) => i === a.wif).pop(), !r) throw new Error("Unknown network version");
|
|
40
|
-
} else if (r = r || c.bitcoin, i !== r.wif) throw new Error("Invalid network version");
|
|
41
|
-
return f(t.privateKey, {
|
|
42
|
-
compressed: t.compressed,
|
|
43
|
-
network: r
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
function _(o) {
|
|
47
|
-
s.typeforce(u, o), o === void 0 && (o = {});
|
|
48
|
-
const r = o.rng || x;
|
|
49
|
-
let t;
|
|
50
|
-
do
|
|
51
|
-
t = r(32), s.typeforce(s.Buffer256bit, t);
|
|
52
|
-
while (!e.isPrivate(t));
|
|
53
|
-
return f(t, o);
|
|
54
|
-
}
|
|
55
|
-
class d {
|
|
56
|
-
constructor(r, t, i) {
|
|
57
|
-
y(this, "__D");
|
|
58
|
-
y(this, "__Q");
|
|
59
|
-
y(this, "compressed");
|
|
60
|
-
y(this, "network");
|
|
61
|
-
y(this, "lowR");
|
|
62
|
-
this.__D = r, this.__Q = t, this.lowR = !1, i === void 0 && (i = {}), this.compressed = i.compressed === void 0 ? !0 : i.compressed, this.network = i.network || c.bitcoin, t !== void 0 && (this.__Q = Buffer.from(e.pointCompress(t, this.compressed)));
|
|
63
|
-
}
|
|
64
|
-
get privateKey() {
|
|
65
|
-
return this.__D;
|
|
66
|
-
}
|
|
67
|
-
get publicKey() {
|
|
68
|
-
if (!this.__Q) {
|
|
69
|
-
const r = e.pointFromScalar(this.__D, this.compressed);
|
|
70
|
-
this.__Q = Buffer.from(r);
|
|
71
|
-
}
|
|
72
|
-
return this.__Q;
|
|
73
|
-
}
|
|
74
|
-
toWIF() {
|
|
75
|
-
if (!this.__D) throw new Error("Missing private key");
|
|
76
|
-
return m.encode(this.network.wif, this.__D, this.compressed);
|
|
77
|
-
}
|
|
78
|
-
tweak(r) {
|
|
79
|
-
return this.privateKey ? this.tweakFromPrivateKey(r) : this.tweakFromPublicKey(r);
|
|
80
|
-
}
|
|
81
|
-
sign(r, t) {
|
|
82
|
-
if (!this.__D) throw new Error("Missing private key");
|
|
83
|
-
if (t === void 0 && (t = this.lowR), t === !1)
|
|
84
|
-
return Buffer.from(e.sign(r, this.__D));
|
|
85
|
-
{
|
|
86
|
-
let i = e.sign(r, this.__D);
|
|
87
|
-
const a = Buffer.alloc(32, 0);
|
|
88
|
-
let w = 0;
|
|
89
|
-
for (; i[0] > 127; )
|
|
90
|
-
w++, a.writeUIntLE(w, 0, 6), i = e.sign(r, this.__D, a);
|
|
91
|
-
return Buffer.from(i);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
signSchnorr(r) {
|
|
95
|
-
if (!this.privateKey) throw new Error("Missing private key");
|
|
96
|
-
if (!e.signSchnorr)
|
|
97
|
-
throw new Error("signSchnorr not supported by ecc library");
|
|
98
|
-
return Buffer.from(e.signSchnorr(r, this.privateKey));
|
|
99
|
-
}
|
|
100
|
-
verify(r, t) {
|
|
101
|
-
return e.verify(r, this.publicKey, t);
|
|
102
|
-
}
|
|
103
|
-
verifySchnorr(r, t) {
|
|
104
|
-
if (!e.verifySchnorr)
|
|
105
|
-
throw new Error("verifySchnorr not supported by ecc library");
|
|
106
|
-
return e.verifySchnorr(r, this.publicKey.subarray(1, 33), t);
|
|
107
|
-
}
|
|
108
|
-
tweakFromPublicKey(r) {
|
|
109
|
-
const t = D(this.publicKey), i = e.xOnlyPointAddTweak(t, r);
|
|
110
|
-
if (!i || i.xOnlyPubkey === null)
|
|
111
|
-
throw new Error("Cannot tweak public key!");
|
|
112
|
-
const a = Buffer.from([
|
|
113
|
-
i.parity === 0 ? 2 : 3
|
|
114
|
-
]);
|
|
115
|
-
return h(
|
|
116
|
-
Buffer.concat([a, i.xOnlyPubkey]),
|
|
117
|
-
{ network: this.network, compressed: this.compressed }
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
tweakFromPrivateKey(r) {
|
|
121
|
-
const i = this.publicKey[0] === 3 || this.publicKey[0] === 4 && (this.publicKey[64] & 1) === 1 ? e.privateNegate(this.privateKey) : this.privateKey, a = e.privateAdd(i, r);
|
|
122
|
-
if (!a) throw new Error("Invalid tweaked private key!");
|
|
123
|
-
return f(Buffer.from(a), {
|
|
124
|
-
network: this.network,
|
|
125
|
-
compressed: this.compressed
|
|
126
|
-
});
|
|
1
|
+
import { defineChain as e } from "./index21.js";
|
|
2
|
+
const t = /* @__PURE__ */ e({
|
|
3
|
+
id: 1,
|
|
4
|
+
name: "Ethereum",
|
|
5
|
+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
6
|
+
rpcUrls: {
|
|
7
|
+
default: {
|
|
8
|
+
http: ["https://cloudflare-eth.com"]
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
blockExplorers: {
|
|
12
|
+
default: {
|
|
13
|
+
name: "Etherscan",
|
|
14
|
+
url: "https://etherscan.io",
|
|
15
|
+
apiUrl: "https://api.etherscan.io/api"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
contracts: {
|
|
19
|
+
ensRegistry: {
|
|
20
|
+
address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
|
|
21
|
+
},
|
|
22
|
+
ensUniversalResolver: {
|
|
23
|
+
address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67",
|
|
24
|
+
blockCreated: 19258213
|
|
25
|
+
},
|
|
26
|
+
multicall3: {
|
|
27
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
28
|
+
blockCreated: 14353601
|
|
127
29
|
}
|
|
128
30
|
}
|
|
129
|
-
|
|
130
|
-
isPoint: n,
|
|
131
|
-
fromPrivateKey: f,
|
|
132
|
-
fromPublicKey: h,
|
|
133
|
-
fromWIF: l,
|
|
134
|
-
makeRandom: _
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
p.ECPairFactory = F;
|
|
31
|
+
});
|
|
138
32
|
export {
|
|
139
|
-
|
|
33
|
+
t as mainnet
|
|
140
34
|
};
|
package/dist/index17.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 r=require("./index21.cjs"),a=r.defineChain({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}});exports.arbitrum=a;
|
package/dist/index17.js
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
import { defineChain as a } from "./index21.js";
|
|
2
|
+
const t = /* @__PURE__ */ a({
|
|
3
|
+
id: 42161,
|
|
4
|
+
name: "Arbitrum One",
|
|
5
|
+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
6
|
+
rpcUrls: {
|
|
7
|
+
default: {
|
|
8
|
+
http: ["https://arb1.arbitrum.io/rpc"]
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
blockExplorers: {
|
|
12
|
+
default: {
|
|
13
|
+
name: "Arbiscan",
|
|
14
|
+
url: "https://arbiscan.io",
|
|
15
|
+
apiUrl: "https://api.arbiscan.io/api"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
contracts: {
|
|
19
|
+
multicall3: {
|
|
20
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
21
|
+
blockCreated: 7654707
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
2
25
|
export {
|
|
3
|
-
|
|
26
|
+
t as arbitrum
|
|
4
27
|
};
|
package/dist/index18.cjs
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./
|
|
2
|
-
`,bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128};e.__exports.testnet={messagePrefix:`Bitcoin Signed Message:
|
|
3
|
-
`,bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239};module.exports=e.__exports;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index21.cjs"),a=e.defineChain({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc2.sepolia.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0});exports.sepolia=a;
|
package/dist/index18.js
CHANGED
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
private: 76066276
|
|
1
|
+
import { defineChain as e } from "./index21.js";
|
|
2
|
+
const s = /* @__PURE__ */ e({
|
|
3
|
+
id: 11155111,
|
|
4
|
+
name: "Sepolia",
|
|
5
|
+
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
6
|
+
rpcUrls: {
|
|
7
|
+
default: {
|
|
8
|
+
http: ["https://rpc2.sepolia.org"]
|
|
9
|
+
}
|
|
11
10
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
`,
|
|
19
|
-
bech32: "tb",
|
|
20
|
-
bip32: {
|
|
21
|
-
public: 70617039,
|
|
22
|
-
private: 70615956
|
|
11
|
+
blockExplorers: {
|
|
12
|
+
default: {
|
|
13
|
+
name: "Etherscan",
|
|
14
|
+
url: "https://sepolia.etherscan.io",
|
|
15
|
+
apiUrl: "https://api-sepolia.etherscan.io/api"
|
|
16
|
+
}
|
|
23
17
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
contracts: {
|
|
19
|
+
multicall3: {
|
|
20
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
21
|
+
blockCreated: 751532
|
|
22
|
+
},
|
|
23
|
+
ensRegistry: { address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" },
|
|
24
|
+
ensUniversalResolver: {
|
|
25
|
+
address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",
|
|
26
|
+
blockCreated: 5317080
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
testnet: !0
|
|
30
|
+
});
|
|
28
31
|
export {
|
|
29
|
-
|
|
32
|
+
s as sepolia
|
|
30
33
|
};
|
package/dist/index19.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index21.cjs"),a=e.defineChain({id:421614,name:"Arbitrum Sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io",apiUrl:"https://api-sepolia.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0});exports.arbitrumSepolia=a;
|
package/dist/index19.js
CHANGED
|
@@ -1,17 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { defineChain as a } from "./index21.js";
|
|
2
|
+
const e = /* @__PURE__ */ a({
|
|
3
|
+
id: 421614,
|
|
4
|
+
name: "Arbitrum Sepolia",
|
|
5
|
+
nativeCurrency: {
|
|
6
|
+
name: "Arbitrum Sepolia Ether",
|
|
7
|
+
symbol: "ETH",
|
|
8
|
+
decimals: 18
|
|
9
|
+
},
|
|
10
|
+
rpcUrls: {
|
|
11
|
+
default: {
|
|
12
|
+
http: ["https://sepolia-rollup.arbitrum.io/rpc"]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
blockExplorers: {
|
|
16
|
+
default: {
|
|
17
|
+
name: "Arbiscan",
|
|
18
|
+
url: "https://sepolia.arbiscan.io",
|
|
19
|
+
apiUrl: "https://api-sepolia.arbiscan.io/api"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
contracts: {
|
|
23
|
+
multicall3: {
|
|
24
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
25
|
+
blockCreated: 81930
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
testnet: !0
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
e as arbitrumSepolia
|
|
32
|
+
};
|
package/dist/index20.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./
|
|
2
|
-
Use Chrome, Firefox or Internet Explorer 11`)}var c=l.safeBufferExports.Buffer,t=a.commonjsGlobal.crypto||a.commonjsGlobal.msCrypto;t&&t.getRandomValues?s.__module.exports=i:s.__module.exports=m;function i(r,u){if(r>f)throw new RangeError("requested too many random bytes");var o=c.allocUnsafe(r);if(r>0)if(r>n)for(var e=0;e<r;e+=n)t.getRandomValues(o.slice(e,e+n));else t.getRandomValues(o);return typeof u=="function"?process.nextTick(function(){u(null,o)}):o}var p=s.__module.exports;exports.browserExports=p;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index22.cjs"),s=require("./index21.cjs"),e=11155111,t=s.defineChain({...a.chainConfig,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...a.chainConfig.contracts,disputeGameFactory:{[e]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[e]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[e]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[e]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:e});exports.baseSepolia=t;
|
package/dist/index20.js
CHANGED
|
@@ -1,27 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { chainConfig as a } from "./index22.js";
|
|
2
|
+
import { defineChain as s } from "./index21.js";
|
|
3
|
+
const e = 11155111, o = /* @__PURE__ */ s({
|
|
4
|
+
...a,
|
|
5
|
+
id: 84532,
|
|
6
|
+
network: "base-sepolia",
|
|
7
|
+
name: "Base Sepolia",
|
|
8
|
+
nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
|
|
9
|
+
rpcUrls: {
|
|
10
|
+
default: {
|
|
11
|
+
http: ["https://sepolia.base.org"]
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
blockExplorers: {
|
|
15
|
+
default: {
|
|
16
|
+
name: "Basescan",
|
|
17
|
+
url: "https://sepolia.basescan.org",
|
|
18
|
+
apiUrl: "https://api-sepolia.basescan.org/api"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
contracts: {
|
|
22
|
+
...a.contracts,
|
|
23
|
+
disputeGameFactory: {
|
|
24
|
+
[e]: {
|
|
25
|
+
address: "0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
l2OutputOracle: {
|
|
29
|
+
[e]: {
|
|
30
|
+
address: "0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
portal: {
|
|
34
|
+
[e]: {
|
|
35
|
+
address: "0x49f53e41452c74589e85ca1677426ba426459e85",
|
|
36
|
+
blockCreated: 4446677
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
l1StandardBridge: {
|
|
40
|
+
[e]: {
|
|
41
|
+
address: "0xfd0Bf71F60660E2f608ed56e1659C450eB113120",
|
|
42
|
+
blockCreated: 4446677
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
multicall3: {
|
|
46
|
+
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
47
|
+
blockCreated: 1059647
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
testnet: !0,
|
|
51
|
+
sourceId: e
|
|
52
|
+
});
|
|
25
53
|
export {
|
|
26
|
-
|
|
54
|
+
o as baseSepolia
|
|
27
55
|
};
|
package/dist/index21.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}exports.defineChain=n;
|