@gardenfi/utils 3.0.0-beta.7 → 3.0.0-beta.8
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/index100.cjs +1 -2
- package/dist/index100.js +3 -121
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +18 -14
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +20 -24
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +33 -31
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +21 -42
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +8 -6
- package/dist/index106.cjs +4 -1
- package/dist/index106.js +193 -102
- package/dist/index107.cjs +3 -1
- package/dist/index107.js +451 -37
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +27 -8
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +160 -19
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +22 -2
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +127 -75
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +38 -15
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +6 -151
- package/dist/index114.cjs +1 -20
- package/dist/index114.js +27 -326
- package/dist/index115.cjs +1 -3
- package/dist/index115.js +55 -451
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +42 -70
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +191 -16
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +4 -11
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +68 -120
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +20 -5
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +3 -46
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +15 -37
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +23 -6
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +11 -90
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +18 -14
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +34 -3
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +3 -27
- package/dist/index128.cjs +1 -2
- package/dist/index128.js +18 -24
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +27 -9
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +36 -8
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +8 -10
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +10 -11
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +24 -12
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +27 -20
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +3 -14
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +75 -4
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +9 -6
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +21 -18
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +8 -10
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +9 -57
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +11 -6
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +6 -13
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +6 -7
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +12 -137
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +32 -7
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +5 -22
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +36 -16
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +109 -41
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +170 -20
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +46 -77
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +32 -11
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +7 -13
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +17 -6
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +20 -41
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +32 -5
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +41 -32
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +22 -9
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +19 -58
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +50 -18
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +11 -105
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +24 -78
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +24 -9
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +101 -87
- package/dist/index164.cjs +1 -2
- package/dist/index164.js +3 -3
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +6 -9
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +30 -12
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +3 -4
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +18 -2
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +6 -32
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +8 -21
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +103 -5
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +80 -5
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +5 -5
- package/dist/index174.cjs +1 -9
- package/dist/index174.js +6 -35
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +28 -3
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +33 -17
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +13 -20
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +16 -35
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +77 -7
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +8 -8
- package/dist/index180.cjs +1 -4
- package/dist/index180.js +2 -195
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +14 -27
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +18 -161
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +170 -126
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +17 -27
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +10 -191
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +31 -4
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +2 -21
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +14 -3
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +12 -16
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +44 -31
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +12 -3
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +7 -27
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +68 -23
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +45 -27
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +37 -6
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +17 -6
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +6 -32
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +10 -5
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +13 -37
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +13 -49
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +8 -32
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +34 -16
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +16 -42
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +29 -104
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +15 -3
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +6 -5
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +103 -3
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +73 -15
- package/dist/index209.cjs +2 -1
- package/dist/index209.js +24 -8
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +25 -5
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +18 -27
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +15 -78
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +6 -2
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +13 -18
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +10 -17
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +16 -10
- package/dist/index217.cjs +2 -1
- package/dist/index217.js +40 -102
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +2 -17
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +5 -214
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +9 -9
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +10 -42
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +18 -107
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +8 -78
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +67 -2
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +65 -24
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +184 -42
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +28 -9
- package/dist/index227.cjs +1 -2
- package/dist/index227.js +59 -24
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +41 -2
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +16 -5
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +12 -9
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +11 -19
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +12 -8
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +20 -67
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +106 -63
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +99 -184
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +6 -28
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +7 -77
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +25 -39
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +16 -16
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +213 -12
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +24 -11
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +47 -13
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +9 -19
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +206 -6
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +43 -7
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +74 -22
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +2 -12
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +11 -19
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +18 -656
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +2 -2
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +68 -206
- package/dist/index251.cjs +2 -1
- package/dist/index251.js +88 -174
- package/dist/index252.cjs +1 -2
- package/dist/index252.js +14 -91
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +657 -14
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +176 -67
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +5 -5
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +3 -3
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +7 -13
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +31 -34
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +27 -30
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +16 -55
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +31 -43
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +41 -22
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +151 -6
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +41 -18
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +57 -14
- package/dist/index38.cjs +2 -1
- package/dist/index38.js +59 -5
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +13 -13
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +37 -10
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +15 -12
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +8 -11
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +20 -3
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +2 -22
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +45 -8
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +33 -3
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +3 -16
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +9 -5
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +60 -171
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +75 -101
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +7 -171
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +15 -110
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +10 -30
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +6 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +15 -4
- package/dist/index56.cjs +1 -2
- package/dist/index56.js +3 -59
- package/dist/index57.cjs +1 -2
- package/dist/index57.js +25 -53
- package/dist/index58.cjs +1 -3
- package/dist/index58.js +159 -210
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +4 -23
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +6 -18
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +90 -10
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +10 -20
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +6 -13
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +13 -12
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +125 -24
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +136 -26
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +7 -47
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +21 -16
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +17 -11
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +39 -27
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +21 -36
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +11 -7
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +6 -29
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +5 -22
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +19 -7
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +106 -70
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +76 -44
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +6 -20
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +27 -36
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +13 -9
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +90 -17
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +4 -7
- package/dist/index82.cjs +2 -1
- package/dist/index82.js +3 -10
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +9 -14
- package/dist/index84.cjs +20 -1
- package/dist/index84.js +324 -162
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +13 -77
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +4 -13
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +12 -51
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +2 -8
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +1 -1
- package/dist/index90.cjs +2 -1
- package/dist/index90.js +54 -21
- package/dist/index91.cjs +3 -1
- package/dist/index91.js +215 -8
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +32 -32
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +21 -16
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +5 -73
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +72 -34
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +5 -16
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +5 -75
- package/dist/index98.cjs +9 -1
- package/dist/index98.js +35 -12
- package/dist/index99.cjs +2 -1
- package/dist/index99.js +119 -28
- package/package.json +1 -1
package/dist/index40.js
CHANGED
|
@@ -1,13 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
const f = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
2
|
+
let k = 0;
|
|
3
|
+
function y(s, l, m) {
|
|
4
|
+
const i = ++k, c = () => f.get(s) || [], w = () => {
|
|
5
|
+
const n = c();
|
|
6
|
+
f.set(s, n.filter((e) => e.id !== i));
|
|
7
|
+
}, r = () => {
|
|
8
|
+
const n = c();
|
|
9
|
+
if (!n.some((t) => t.id === i))
|
|
10
|
+
return;
|
|
11
|
+
const e = g.get(s);
|
|
12
|
+
if (n.length === 1 && e) {
|
|
13
|
+
const t = e();
|
|
14
|
+
t instanceof Promise && t.catch(() => {
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
w();
|
|
18
|
+
}, o = c();
|
|
19
|
+
if (f.set(s, [
|
|
20
|
+
...o,
|
|
21
|
+
{ id: i, fns: l }
|
|
22
|
+
]), o && o.length > 0)
|
|
23
|
+
return r;
|
|
24
|
+
const u = {};
|
|
25
|
+
for (const n in l)
|
|
26
|
+
u[n] = (...e) => {
|
|
27
|
+
var p, h;
|
|
28
|
+
const t = c();
|
|
29
|
+
if (t.length !== 0)
|
|
30
|
+
for (const C of t)
|
|
31
|
+
(h = (p = C.fns)[n]) == null || h.call(p, ...e);
|
|
32
|
+
};
|
|
33
|
+
const a = m(u);
|
|
34
|
+
return typeof a == "function" && g.set(s, a), r;
|
|
10
35
|
}
|
|
11
36
|
export {
|
|
12
|
-
|
|
37
|
+
g as cleanupCache,
|
|
38
|
+
f as listenersCache,
|
|
39
|
+
y as observe
|
|
13
40
|
};
|
package/dist/index41.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 u=require("./index167.cjs");function s(o,{emitOnBegin:w,initialWaitTime:t,interval:c}){let l=!0;const a=()=>l=!1;return(async()=>{let e;w&&(e=await o({unpoll:a}));const r=await(t==null?void 0:t(e))??c;await u.wait(r);const n=async()=>{l&&(await o({unpoll:a}),await u.wait(c),n())};n()})(),a}exports.poll=s;
|
package/dist/index41.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { wait as r } from "./index167.js";
|
|
2
|
+
function e(o, { emitOnBegin: s, initialWaitTime: t, interval: c }) {
|
|
3
|
+
let w = !0;
|
|
4
|
+
const a = () => w = !1;
|
|
5
|
+
return (async () => {
|
|
6
|
+
let n;
|
|
7
|
+
s && (n = await o({ unpoll: a }));
|
|
8
|
+
const u = await (t == null ? void 0 : t(n)) ?? c;
|
|
9
|
+
await r(u);
|
|
10
|
+
const l = async () => {
|
|
11
|
+
w && (await o({ unpoll: a }), await r(c), l());
|
|
12
|
+
};
|
|
13
|
+
l();
|
|
14
|
+
})(), a;
|
|
12
15
|
}
|
|
13
16
|
export {
|
|
14
|
-
|
|
17
|
+
e as poll
|
|
15
18
|
};
|
package/dist/index42.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 i(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}exports.withResolvers=i;
|
package/dist/index42.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const o = i.test(t) ? t.toLowerCase() === t ? !0 : n ? c(t) === t : !0 : !1;
|
|
9
|
-
return r.set(e, o), o;
|
|
1
|
+
function i() {
|
|
2
|
+
let e = () => {
|
|
3
|
+
}, n = () => {
|
|
4
|
+
};
|
|
5
|
+
return { promise: new Promise((r, o) => {
|
|
6
|
+
e = r, n = o;
|
|
7
|
+
}), resolve: e, reject: n };
|
|
10
8
|
}
|
|
11
9
|
export {
|
|
12
|
-
|
|
13
|
-
r as isAddressCache
|
|
10
|
+
i as withResolvers
|
|
14
11
|
};
|
package/dist/index43.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index167.cjs");function f(n,{delay:e=100,retryCount:o=2,shouldRetry:c=()=>!0}={}){return new Promise((s,y)=>{const a=async({count:r=0}={})=>{const w=async({error:t})=>{const i=typeof e=="function"?e({count:r,error:t}):e;i&&await u.wait(i),a({count:r+1})};try{const t=await n();s(t)}catch(t){if(r<o&&await c({count:r,error:t}))return w({error:t});y(t)}};a()})}exports.withRetry=f;
|
package/dist/index43.js
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { wait as w } from "./index167.js";
|
|
2
|
+
function p(n, { delay: e = 100, retryCount: o = 2, shouldRetry: c = () => !0 } = {}) {
|
|
3
|
+
return new Promise((s, y) => {
|
|
4
|
+
const a = async ({ count: r = 0 } = {}) => {
|
|
5
|
+
const f = async ({ error: t }) => {
|
|
6
|
+
const i = typeof e == "function" ? e({ count: r, error: t }) : e;
|
|
7
|
+
i && await w(i), a({ count: r + 1 });
|
|
8
|
+
};
|
|
9
|
+
try {
|
|
10
|
+
const t = await n();
|
|
11
|
+
s(t);
|
|
12
|
+
} catch (t) {
|
|
13
|
+
if (r < o && await c({ count: r, error: t }))
|
|
14
|
+
return f({ error: t });
|
|
15
|
+
y(t);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
a();
|
|
19
|
+
});
|
|
3
20
|
}
|
|
4
21
|
export {
|
|
5
|
-
|
|
22
|
+
p as withRetry
|
|
6
23
|
};
|
package/dist/index44.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 r=(e,n,i)=>JSON.stringify(e,(o,t)=>typeof t=="bigint"?t.toString():t,i);exports.stringify=r;
|
package/dist/index44.js
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { stringToBytes as m } from "./index32.js";
|
|
3
|
-
import { keccak256 as p } from "./index45.js";
|
|
4
|
-
import { LruMap as u } from "./index134.js";
|
|
5
|
-
import { isAddress as $ } from "./index42.js";
|
|
6
|
-
const s = /* @__PURE__ */ new u(8192);
|
|
7
|
-
function h(t, o) {
|
|
8
|
-
if (s.has(`${t}.${o}`))
|
|
9
|
-
return s.get(`${t}.${o}`);
|
|
10
|
-
const i = t.substring(2).toLowerCase(), n = p(m(i), "bytes"), e = i.split("");
|
|
11
|
-
for (let r = 0; r < 40; r += 2)
|
|
12
|
-
n[r >> 1] >> 4 >= 8 && e[r] && (e[r] = e[r].toUpperCase()), (n[r >> 1] & 15) >= 8 && e[r + 1] && (e[r + 1] = e[r + 1].toUpperCase());
|
|
13
|
-
const f = `0x${e.join("")}`;
|
|
14
|
-
return s.set(`${t}.${o}`, f), f;
|
|
15
|
-
}
|
|
16
|
-
function w(t, o) {
|
|
17
|
-
if (!$(t, { strict: !1 }))
|
|
18
|
-
throw new c({ address: t });
|
|
19
|
-
return h(t, o);
|
|
20
|
-
}
|
|
1
|
+
const g = (r, n, i) => JSON.stringify(r, (e, t) => typeof t == "bigint" ? t.toString() : t, i);
|
|
21
2
|
export {
|
|
22
|
-
|
|
23
|
-
w as getAddress
|
|
3
|
+
g as stringify
|
|
24
4
|
};
|
package/dist/index45.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index112.cjs"),I=require("./index113.cjs"),n=require("./index155.cjs"),T=require("./index161.cjs"),o=require("./index61.cjs");async function q(r,l){async function d(e){if(e.endsWith(o.fallbackMagicIdentifier.slice(2))){const p=I.trim(c.sliceHex(e,-64,-32)),b=c.sliceHex(e,0,-64).slice(2).match(/.{1,64}/g),s=await Promise.all(b.map(t=>o.fallbackTransactionErrorMagicIdentifier.slice(2)!==t?r.request({method:"eth_getTransactionReceipt",params:[`0x${t}`]},{dedupe:!0}):void 0)),x=s.some(t=>t===null)?100:s.every(t=>(t==null?void 0:t.status)==="0x1")?200:s.every(t=>(t==null?void 0:t.status)==="0x0")?500:600;return{atomic:!1,chainId:n.hexToNumber(p),receipts:s.filter(Boolean),status:x,version:"2.0.0"}}return r.request({method:"wallet_getCallsStatus",params:[e]})}const{atomic:f=!1,chainId:i,receipts:a,version:m="2.0.0",...u}=await d(l.id),[g,h]=(()=>{const e=u.status;return e>=100&&e<200?["pending",e]:e>=200&&e<300?["success",e]:e>=300&&e<700?["failure",e]:e==="CONFIRMED"?["success",200]:e==="PENDING"?["pending",100]:[void 0,e]})();return{...u,atomic:f,chainId:i?n.hexToNumber(i):void 0,receipts:(a==null?void 0:a.map(e=>({...e,blockNumber:n.hexToBigInt(e.blockNumber),gasUsed:n.hexToBigInt(e.gasUsed),status:T.receiptStatuses[e.status]})))??[],statusCode:h,status:g,version:m}}exports.getCallsStatus=q;
|
package/dist/index45.js
CHANGED
|
@@ -1,11 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { sliceHex as o } from "./index112.js";
|
|
2
|
+
import { trim as x } from "./index113.js";
|
|
3
|
+
import { hexToNumber as u, hexToBigInt as c } from "./index155.js";
|
|
4
|
+
import { receiptStatuses as N } from "./index161.js";
|
|
5
|
+
import { fallbackMagicIdentifier as T, fallbackTransactionErrorMagicIdentifier as C } from "./index61.js";
|
|
6
|
+
async function M(a, f) {
|
|
7
|
+
async function m(t) {
|
|
8
|
+
if (t.endsWith(T.slice(2))) {
|
|
9
|
+
const h = x(o(t, -64, -32)), I = o(t, 0, -64).slice(2).match(/.{1,64}/g), s = await Promise.all(I.map((e) => C.slice(2) !== e ? a.request({
|
|
10
|
+
method: "eth_getTransactionReceipt",
|
|
11
|
+
params: [`0x${e}`]
|
|
12
|
+
}, { dedupe: !0 }) : void 0)), b = s.some((e) => e === null) ? 100 : s.every((e) => (e == null ? void 0 : e.status) === "0x1") ? 200 : s.every((e) => (e == null ? void 0 : e.status) === "0x0") ? 500 : 600;
|
|
13
|
+
return {
|
|
14
|
+
atomic: !1,
|
|
15
|
+
chainId: u(h),
|
|
16
|
+
receipts: s.filter(Boolean),
|
|
17
|
+
status: b,
|
|
18
|
+
version: "2.0.0"
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return a.request({
|
|
22
|
+
method: "wallet_getCallsStatus",
|
|
23
|
+
params: [t]
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
const { atomic: l = !1, chainId: r, receipts: n, version: d = "2.0.0", ...i } = await m(f.id), [p, g] = (() => {
|
|
27
|
+
const t = i.status;
|
|
28
|
+
return t >= 100 && t < 200 ? ["pending", t] : t >= 200 && t < 300 ? ["success", t] : t >= 300 && t < 700 ? ["failure", t] : t === "CONFIRMED" ? ["success", 200] : t === "PENDING" ? ["pending", 100] : [void 0, t];
|
|
29
|
+
})();
|
|
30
|
+
return {
|
|
31
|
+
...i,
|
|
32
|
+
atomic: l,
|
|
33
|
+
// @ts-expect-error: for backwards compatibility
|
|
34
|
+
chainId: r ? u(r) : void 0,
|
|
35
|
+
receipts: (n == null ? void 0 : n.map((t) => ({
|
|
36
|
+
...t,
|
|
37
|
+
blockNumber: c(t.blockNumber),
|
|
38
|
+
gasUsed: c(t.gasUsed),
|
|
39
|
+
status: N[t.status]
|
|
40
|
+
}))) ?? [],
|
|
41
|
+
statusCode: g,
|
|
42
|
+
status: p,
|
|
43
|
+
version: d
|
|
44
|
+
};
|
|
8
45
|
}
|
|
9
46
|
export {
|
|
10
|
-
|
|
47
|
+
M as getCallsStatus
|
|
11
48
|
};
|
package/dist/index46.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./index47.cjs"),j=require("./index48.cjs");function q(n){const{batch:a,chain:e,ccipRead:d,key:b="base",name:f="Base Client",type:g="base"}=n,o=n.experimental_blockTag??(typeof(e==null?void 0:e.experimental_preconfirmationTime)=="number"?"pending":void 0),m=(e==null?void 0:e.blockTime)??12e3,p=Math.min(Math.max(Math.floor(m/2),500),4e3),t=n.pollingInterval??p,x=n.cacheTime??t,i=n.account?h.parseAccount(n.account):void 0,{config:T,request:k,value:y}=n.transport({account:i,chain:e,pollingInterval:t}),v={...T,...y},c={account:i,batch:a,cacheTime:x,ccipRead:d,chain:e,key:b,name:f,pollingInterval:t,request:k,transport:v,type:g,uid:j.uid(),...o?{experimental_blockTag:o}:{}};function l(u){return _=>{const r=_(u);for(const M in c)delete r[M];const s={...u,...r};return Object.assign(s,{extend:l(s)})}}return Object.assign(c,{extend:l(c)})}exports.createClient=q;
|
package/dist/index46.js
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { parseAccount as I } from "./index47.js";
|
|
2
|
+
import { uid as M } from "./index48.js";
|
|
3
|
+
function O(e) {
|
|
4
|
+
const { batch: a, chain: n, ccipRead: d, key: f = "base", name: m = "Base Client", type: b = "base" } = e, c = e.experimental_blockTag ?? (typeof (n == null ? void 0 : n.experimental_preconfirmationTime) == "number" ? "pending" : void 0), p = (n == null ? void 0 : n.blockTime) ?? 12e3, g = Math.min(Math.max(Math.floor(p / 2), 500), 4e3), t = e.pollingInterval ?? g, x = e.cacheTime ?? t, i = e.account ? I(e.account) : void 0, { config: T, request: k, value: _ } = e.transport({
|
|
5
|
+
account: i,
|
|
6
|
+
chain: n,
|
|
7
|
+
pollingInterval: t
|
|
8
|
+
}), v = { ...T, ..._ }, o = {
|
|
9
|
+
account: i,
|
|
10
|
+
batch: a,
|
|
11
|
+
cacheTime: x,
|
|
12
|
+
ccipRead: d,
|
|
13
|
+
chain: n,
|
|
14
|
+
key: f,
|
|
15
|
+
name: m,
|
|
16
|
+
pollingInterval: t,
|
|
17
|
+
request: k,
|
|
18
|
+
transport: v,
|
|
19
|
+
type: b,
|
|
20
|
+
uid: M(),
|
|
21
|
+
...c ? { experimental_blockTag: c } : {}
|
|
22
|
+
};
|
|
23
|
+
function l(r) {
|
|
24
|
+
return (y) => {
|
|
25
|
+
const s = y(r);
|
|
26
|
+
for (const h in o)
|
|
27
|
+
delete s[h];
|
|
28
|
+
const u = { ...r, ...s };
|
|
29
|
+
return Object.assign(u, { extend: l(u) });
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return Object.assign(o, { extend: l(o) });
|
|
3
33
|
}
|
|
4
34
|
export {
|
|
5
|
-
|
|
35
|
+
O as createClient
|
|
6
36
|
};
|
package/dist/index47.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 r(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}exports.parseAccount=r;
|
package/dist/index47.js
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { numberToHex as c } from "./index33.js";
|
|
4
|
-
import { toRlp as d } from "./index203.js";
|
|
5
|
-
import { keccak256 as f } from "./index45.js";
|
|
6
|
-
function b(o) {
|
|
7
|
-
const { chainId: t, nonce: r, to: s } = o, e = o.contractAddress ?? o.address, n = f(i([
|
|
8
|
-
"0x05",
|
|
9
|
-
d([
|
|
10
|
-
t ? c(t) : "0x",
|
|
11
|
-
e,
|
|
12
|
-
r ? c(r) : "0x"
|
|
13
|
-
])
|
|
14
|
-
]));
|
|
15
|
-
return s === "bytes" ? m(n) : n;
|
|
1
|
+
function e(r) {
|
|
2
|
+
return typeof r == "string" ? { address: r, type: "json-rpc" } : r;
|
|
16
3
|
}
|
|
17
4
|
export {
|
|
18
|
-
|
|
5
|
+
e as parseAccount
|
|
19
6
|
};
|
package/dist/index48.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=256;let t=i,e;function u(r=11){if(!e||t+r>i*2){e="",t=0;for(let n=0;n<i;n++)e+=(256+Math.random()*256|0).toString(16).substring(1)}return e.substring(t,t+++r)}exports.uid=u;
|
package/dist/index48.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
let i = 256, t;
|
|
2
|
+
function s(e = 11) {
|
|
3
|
+
if (!t || i + e > 256 * 2) {
|
|
4
|
+
t = "", i = 0;
|
|
5
|
+
for (let r = 0; r < 256; r++)
|
|
6
|
+
t += (256 + Math.random() * 256 | 0).toString(16).substring(1);
|
|
7
|
+
}
|
|
8
|
+
return t.substring(i, i++ + e);
|
|
5
9
|
}
|
|
6
10
|
export {
|
|
7
|
-
|
|
11
|
+
s as uid
|
|
8
12
|
};
|
package/dist/index49.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 r=require("./index50.cjs"),a=require("./index51.cjs"),t=require("./index52.cjs"),n=require("./index53.cjs"),i=require("./index54.cjs"),o=require("./index45.cjs"),u=require("./index55.cjs"),c=require("./index56.cjs"),d=require("./index57.cjs"),q=require("./index58.cjs"),C=require("./index59.cjs"),g=require("./index60.cjs"),w=require("./index61.cjs"),T=require("./index62.cjs"),h=require("./index63.cjs"),S=require("./index64.cjs"),l=require("./index65.cjs"),p=require("./index66.cjs"),y=require("./index67.cjs"),A=require("./index68.cjs"),R=require("./index69.cjs"),m=require("./index70.cjs"),P=require("./index71.cjs"),z=require("./index72.cjs"),b=require("./index37.cjs"),f=require("./index73.cjs"),M=require("./index36.cjs"),D=require("./index74.cjs");function F(e){return{addChain:s=>t.addChain(e,s),deployContract:s=>n.deployContract(e,s),fillTransaction:s=>r.fillTransaction(e,s),getAddresses:()=>i.getAddresses(e),getCallsStatus:s=>o.getCallsStatus(e,s),getCapabilities:s=>u.getCapabilities(e,s),getChainId:()=>a.getChainId(e),getPermissions:()=>c.getPermissions(e),prepareAuthorization:s=>d.prepareAuthorization(e,s),prepareTransactionRequest:s=>q.prepareTransactionRequest(e,s),requestAddresses:()=>C.requestAddresses(e),requestPermissions:s=>g.requestPermissions(e,s),sendCalls:s=>w.sendCalls(e,s),sendCallsSync:s=>T.sendCallsSync(e,s),sendRawTransaction:s=>h.sendRawTransaction(e,s),sendRawTransactionSync:s=>S.sendRawTransactionSync(e,s),sendTransaction:s=>l.sendTransaction(e,s),sendTransactionSync:s=>p.sendTransactionSync(e,s),showCallsStatus:s=>y.showCallsStatus(e,s),signAuthorization:s=>A.signAuthorization(e,s),signMessage:s=>R.signMessage(e,s),signTransaction:s=>m.signTransaction(e,s),signTypedData:s=>P.signTypedData(e,s),switchChain:s=>z.switchChain(e,s),waitForCallsStatus:s=>b.waitForCallsStatus(e,s),watchAsset:s=>f.watchAsset(e,s),writeContract:s=>M.writeContract(e,s),writeContractSync:s=>D.writeContractSync(e,s)}}exports.walletActions=F;
|
package/dist/index49.js
CHANGED
|
@@ -1,174 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
s ? o(s) : "0x",
|
|
61
|
-
c ?? "0x",
|
|
62
|
-
f ? o(f) : "0x",
|
|
63
|
-
l ?? "0x",
|
|
64
|
-
L,
|
|
65
|
-
a ? o(a) : "0x",
|
|
66
|
-
d ?? [],
|
|
67
|
-
...I(e, r)
|
|
68
|
-
], A = [], F = [], G = [];
|
|
69
|
-
if (m)
|
|
70
|
-
for (let u = 0; u < m.length; u++) {
|
|
71
|
-
const { blob: z, commitment: y, proof: P } = m[u];
|
|
72
|
-
A.push(z), F.push(y), G.push(P);
|
|
73
|
-
}
|
|
74
|
-
return h([
|
|
75
|
-
"0x03",
|
|
76
|
-
m ? (
|
|
77
|
-
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
78
|
-
b([E, A, F, G])
|
|
79
|
-
) : (
|
|
80
|
-
// If sidecars are disabled, standard envelope is used:
|
|
81
|
-
b(E)
|
|
82
|
-
)
|
|
83
|
-
]);
|
|
84
|
-
}
|
|
85
|
-
function K(e, r) {
|
|
86
|
-
const { chainId: i, gas: s, nonce: n, to: c, value: f, maxFeePerGas: a, maxPriorityFeePerGas: x, accessList: t, data: p } = e;
|
|
87
|
-
S(e);
|
|
88
|
-
const l = v(t), d = [
|
|
89
|
-
o(i),
|
|
90
|
-
n ? o(n) : "0x",
|
|
91
|
-
x ? o(x) : "0x",
|
|
92
|
-
a ? o(a) : "0x",
|
|
93
|
-
s ? o(s) : "0x",
|
|
94
|
-
c ?? "0x",
|
|
95
|
-
f ? o(f) : "0x",
|
|
96
|
-
p ?? "0x",
|
|
97
|
-
l,
|
|
98
|
-
...I(e, r)
|
|
99
|
-
];
|
|
100
|
-
return h([
|
|
101
|
-
"0x02",
|
|
102
|
-
b(d)
|
|
103
|
-
]);
|
|
104
|
-
}
|
|
105
|
-
function M(e, r) {
|
|
106
|
-
const { chainId: i, gas: s, data: n, nonce: c, to: f, value: a, accessList: x, gasPrice: t } = e;
|
|
107
|
-
_(e);
|
|
108
|
-
const p = v(x), l = [
|
|
109
|
-
o(i),
|
|
110
|
-
c ? o(c) : "0x",
|
|
111
|
-
t ? o(t) : "0x",
|
|
112
|
-
s ? o(s) : "0x",
|
|
113
|
-
f ?? "0x",
|
|
114
|
-
a ? o(a) : "0x",
|
|
115
|
-
n ?? "0x",
|
|
116
|
-
p,
|
|
117
|
-
...I(e, r)
|
|
118
|
-
];
|
|
119
|
-
return h([
|
|
120
|
-
"0x01",
|
|
121
|
-
b(l)
|
|
122
|
-
]);
|
|
123
|
-
}
|
|
124
|
-
function N(e, r) {
|
|
125
|
-
const { chainId: i = 0, gas: s, data: n, nonce: c, to: f, value: a, gasPrice: x } = e;
|
|
126
|
-
j(e);
|
|
127
|
-
let t = [
|
|
128
|
-
c ? o(c) : "0x",
|
|
129
|
-
x ? o(x) : "0x",
|
|
130
|
-
s ? o(s) : "0x",
|
|
131
|
-
f ?? "0x",
|
|
132
|
-
a ? o(a) : "0x",
|
|
133
|
-
n ?? "0x"
|
|
134
|
-
];
|
|
135
|
-
if (r) {
|
|
136
|
-
const p = (() => {
|
|
137
|
-
if (r.v >= 35n)
|
|
138
|
-
return (r.v - 35n) / 2n > 0 ? r.v : 27n + (r.v === 35n ? 0n : 1n);
|
|
139
|
-
if (i > 0)
|
|
140
|
-
return BigInt(i * 2) + BigInt(35n + r.v - 27n);
|
|
141
|
-
const m = 27n + (r.v === 27n ? 0n : 1n);
|
|
142
|
-
if (r.v !== m)
|
|
143
|
-
throw new H({ v: r.v });
|
|
144
|
-
return m;
|
|
145
|
-
})(), l = T(r.r), d = T(r.s);
|
|
146
|
-
t = [
|
|
147
|
-
...t,
|
|
148
|
-
o(p),
|
|
149
|
-
l === "0x00" ? "0x" : l,
|
|
150
|
-
d === "0x00" ? "0x" : d
|
|
151
|
-
];
|
|
152
|
-
} else i > 0 && (t = [
|
|
153
|
-
...t,
|
|
154
|
-
o(i),
|
|
155
|
-
"0x",
|
|
156
|
-
"0x"
|
|
157
|
-
]);
|
|
158
|
-
return b(t);
|
|
159
|
-
}
|
|
160
|
-
function I(e, r) {
|
|
161
|
-
const i = r ?? e, { v: s, yParity: n } = i;
|
|
162
|
-
if (typeof i.r > "u")
|
|
163
|
-
return [];
|
|
164
|
-
if (typeof i.s > "u")
|
|
165
|
-
return [];
|
|
166
|
-
if (typeof s > "u" && typeof n > "u")
|
|
167
|
-
return [];
|
|
168
|
-
const c = T(i.r), f = T(i.s);
|
|
169
|
-
return [typeof n == "number" ? n ? o(1) : "0x" : s === 0n ? "0x" : s === 1n ? o(1) : s === 27n ? "0x" : o(1), c === "0x00" ? "0x" : c, f === "0x00" ? "0x" : f];
|
|
1
|
+
import { fillTransaction as s } from "./index50.js";
|
|
2
|
+
import { getChainId as a } from "./index51.js";
|
|
3
|
+
import { addChain as t } from "./index52.js";
|
|
4
|
+
import { deployContract as i } from "./index53.js";
|
|
5
|
+
import { getAddresses as m } from "./index54.js";
|
|
6
|
+
import { getCallsStatus as n } from "./index45.js";
|
|
7
|
+
import { getCapabilities as e } from "./index55.js";
|
|
8
|
+
import { getPermissions as p } from "./index56.js";
|
|
9
|
+
import { prepareAuthorization as f } from "./index57.js";
|
|
10
|
+
import { prepareTransactionRequest as d } from "./index58.js";
|
|
11
|
+
import { requestAddresses as C } from "./index59.js";
|
|
12
|
+
import { requestPermissions as g } from "./index60.js";
|
|
13
|
+
import { sendCalls as u } from "./index61.js";
|
|
14
|
+
import { sendCallsSync as w } from "./index62.js";
|
|
15
|
+
import { sendRawTransaction as h } from "./index63.js";
|
|
16
|
+
import { sendRawTransactionSync as T } from "./index64.js";
|
|
17
|
+
import { sendTransaction as S } from "./index65.js";
|
|
18
|
+
import { sendTransactionSync as y } from "./index66.js";
|
|
19
|
+
import { showCallsStatus as A } from "./index67.js";
|
|
20
|
+
import { signAuthorization as c } from "./index68.js";
|
|
21
|
+
import { signMessage as q } from "./index69.js";
|
|
22
|
+
import { signTransaction as R } from "./index70.js";
|
|
23
|
+
import { signTypedData as z } from "./index71.js";
|
|
24
|
+
import { switchChain as P } from "./index72.js";
|
|
25
|
+
import { waitForCallsStatus as l } from "./index37.js";
|
|
26
|
+
import { watchAsset as b } from "./index73.js";
|
|
27
|
+
import { writeContract as D } from "./index36.js";
|
|
28
|
+
import { writeContractSync as F } from "./index74.js";
|
|
29
|
+
function tr(o) {
|
|
30
|
+
return {
|
|
31
|
+
addChain: (r) => t(o, r),
|
|
32
|
+
deployContract: (r) => i(o, r),
|
|
33
|
+
fillTransaction: (r) => s(o, r),
|
|
34
|
+
getAddresses: () => m(o),
|
|
35
|
+
getCallsStatus: (r) => n(o, r),
|
|
36
|
+
getCapabilities: (r) => e(o, r),
|
|
37
|
+
getChainId: () => a(o),
|
|
38
|
+
getPermissions: () => p(o),
|
|
39
|
+
prepareAuthorization: (r) => f(o, r),
|
|
40
|
+
prepareTransactionRequest: (r) => d(o, r),
|
|
41
|
+
requestAddresses: () => C(o),
|
|
42
|
+
requestPermissions: (r) => g(o, r),
|
|
43
|
+
sendCalls: (r) => u(o, r),
|
|
44
|
+
sendCallsSync: (r) => w(o, r),
|
|
45
|
+
sendRawTransaction: (r) => h(o, r),
|
|
46
|
+
sendRawTransactionSync: (r) => T(o, r),
|
|
47
|
+
sendTransaction: (r) => S(o, r),
|
|
48
|
+
sendTransactionSync: (r) => y(o, r),
|
|
49
|
+
showCallsStatus: (r) => A(o, r),
|
|
50
|
+
signAuthorization: (r) => c(o, r),
|
|
51
|
+
signMessage: (r) => q(o, r),
|
|
52
|
+
signTransaction: (r) => R(o, r),
|
|
53
|
+
signTypedData: (r) => z(o, r),
|
|
54
|
+
switchChain: (r) => P(o, r),
|
|
55
|
+
waitForCallsStatus: (r) => l(o, r),
|
|
56
|
+
watchAsset: (r) => b(o, r),
|
|
57
|
+
writeContract: (r) => D(o, r),
|
|
58
|
+
writeContractSync: (r) => F(o, r)
|
|
59
|
+
};
|
|
170
60
|
}
|
|
171
61
|
export {
|
|
172
|
-
|
|
173
|
-
I as toYParitySignatureArray
|
|
62
|
+
tr as walletActions
|
|
174
63
|
};
|