@gardenfi/utils 3.0.0-beta.4 → 3.0.0-beta.6
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/index10.cjs +1 -1
- package/dist/index10.js +4 -4
- package/dist/index100.cjs +2 -1
- package/dist/index100.js +121 -3
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +14 -18
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +24 -20
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +31 -33
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +42 -21
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +6 -8
- package/dist/index106.cjs +1 -4
- package/dist/index106.js +102 -193
- package/dist/index107.cjs +1 -3
- package/dist/index107.js +37 -451
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +8 -27
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +19 -160
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +2 -22
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +75 -127
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +15 -38
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +151 -6
- package/dist/index114.cjs +20 -1
- package/dist/index114.js +326 -27
- package/dist/index115.cjs +3 -1
- package/dist/index115.js +451 -55
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +70 -42
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +16 -191
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +11 -4
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +120 -59
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +5 -20
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +46 -3
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +37 -15
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +6 -23
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +90 -11
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +14 -18
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +3 -34
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +27 -3
- package/dist/index128.cjs +2 -1
- package/dist/index128.js +24 -18
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +9 -27
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +8 -36
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +10 -8
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +11 -10
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +12 -24
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +20 -27
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +14 -3
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +4 -75
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +6 -9
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +18 -21
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +10 -8
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +57 -9
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +6 -11
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +13 -6
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +7 -6
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +137 -12
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +7 -32
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +22 -5
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +16 -36
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +41 -109
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +20 -170
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +2 -2
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +77 -46
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +11 -32
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +13 -7
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +6 -17
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +41 -20
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +5 -23
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +32 -41
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +9 -22
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +58 -19
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +18 -50
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +105 -11
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +78 -24
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +9 -24
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +87 -101
- package/dist/index164.cjs +2 -1
- package/dist/index164.js +3 -3
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +9 -6
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +12 -30
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +4 -3
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +2 -18
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +32 -6
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +2 -2
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +21 -8
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +5 -103
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +5 -80
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +5 -5
- package/dist/index174.cjs +9 -1
- package/dist/index174.js +35 -6
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +3 -28
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +17 -33
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +20 -13
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +35 -16
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +7 -77
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +8 -8
- package/dist/index180.cjs +4 -1
- package/dist/index180.js +195 -2
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +27 -14
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +161 -18
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +126 -170
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +27 -17
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +191 -10
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +4 -26
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +20 -18
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +3 -16
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +16 -5
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +34 -13
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +3 -11
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +27 -16
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +23 -28
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +29 -2
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +6 -13
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +6 -12
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +31 -46
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +5 -12
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +37 -7
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +47 -68
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +32 -46
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +16 -36
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +42 -17
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +104 -6
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +3 -10
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +5 -13
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +3 -13
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +17 -8
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +8 -35
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +5 -16
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +27 -29
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +78 -14
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +2 -7
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +18 -103
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +16 -74
- package/dist/index216.cjs +1 -2
- package/dist/index216.js +10 -24
- package/dist/index217.cjs +1 -2
- package/dist/index217.js +102 -40
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +17 -2
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +214 -5
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +9 -9
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +42 -10
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +107 -18
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +78 -8
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +2 -67
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +42 -61
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +7 -186
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +24 -28
- package/dist/index227.cjs +2 -1
- package/dist/index227.js +24 -59
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +2 -41
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +5 -16
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +26 -12
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +9 -12
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +19 -11
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +8 -12
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +67 -20
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +63 -106
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +188 -6
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +29 -7
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +75 -25
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +37 -100
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +16 -16
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +8 -59
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +12 -213
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +11 -206
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +12 -42
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +6 -78
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +7 -2
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +19 -24
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +25 -45
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +11 -9
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +19 -11
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +656 -18
- package/dist/index25.cjs +1 -16
- package/dist/index25.js +12 -113
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +206 -68
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +154 -634
- package/dist/index252.cjs +2 -1
- package/dist/index252.js +88 -174
- package/dist/index253.cjs +1 -2
- package/dist/index253.js +14 -91
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +68 -14
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +59 -30
- package/dist/index27.cjs +16 -1
- package/dist/index27.js +111 -24
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +29 -7
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +13 -7
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +34 -31
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +30 -27
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +55 -16
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +43 -31
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +22 -41
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +6 -151
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +18 -41
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +14 -57
- package/dist/index38.cjs +1 -2
- package/dist/index38.js +5 -59
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +13 -13
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +10 -37
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +12 -15
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +11 -8
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +3 -20
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +22 -2
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +8 -45
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +3 -33
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +16 -3
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +5 -9
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +171 -60
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +101 -75
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +171 -7
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +110 -15
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +30 -10
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +2 -6
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +4 -15
- package/dist/index56.cjs +2 -1
- package/dist/index56.js +59 -3
- package/dist/index57.cjs +2 -1
- package/dist/index57.js +53 -25
- package/dist/index58.cjs +3 -1
- package/dist/index58.js +210 -159
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +23 -4
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +18 -6
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +10 -90
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +20 -10
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +13 -6
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +12 -13
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +24 -125
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +26 -135
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +47 -7
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +16 -21
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +11 -17
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +27 -39
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +36 -21
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +7 -11
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +29 -6
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +22 -5
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +7 -19
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +70 -106
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +44 -76
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +20 -6
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +36 -27
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +17 -71
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +7 -4
- package/dist/index82.cjs +1 -2
- package/dist/index82.js +10 -3
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +14 -9
- package/dist/index84.cjs +1 -20
- package/dist/index84.js +162 -324
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +77 -13
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +13 -4
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +51 -12
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +8 -2
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +1 -1
- package/dist/index90.cjs +1 -2
- package/dist/index90.js +21 -54
- package/dist/index91.cjs +1 -3
- package/dist/index91.js +8 -215
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +32 -32
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +16 -21
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +73 -5
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +34 -72
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +16 -5
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +75 -5
- package/dist/index98.cjs +1 -9
- package/dist/index98.js +12 -35
- package/dist/index99.cjs +1 -2
- package/dist/index99.js +28 -119
- package/dist/src/lib/store/store.interface.d.ts +2 -1
- package/package.json +1 -1
package/dist/index109.js
CHANGED
|
@@ -1,164 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
size: p(e)
|
|
20
|
-
});
|
|
21
|
-
let i = 0;
|
|
22
|
-
const d = [];
|
|
23
|
-
for (let s = 0; s < t.length; ++s) {
|
|
24
|
-
const r = t[s];
|
|
25
|
-
o.setPosition(i);
|
|
26
|
-
const [f, c] = u(o, r, {
|
|
27
|
-
staticPosition: 0
|
|
28
|
-
});
|
|
29
|
-
i += c, d.push(f);
|
|
30
|
-
}
|
|
31
|
-
return d;
|
|
32
|
-
}
|
|
33
|
-
function u(t, e, { staticPosition: n }) {
|
|
34
|
-
const o = A(e.type);
|
|
35
|
-
if (o) {
|
|
36
|
-
const [i, d] = o;
|
|
37
|
-
return k(t, { ...e, type: d }, { length: i, staticPosition: n });
|
|
38
|
-
}
|
|
39
|
-
if (e.type === "tuple")
|
|
40
|
-
return Z(t, e, { staticPosition: n });
|
|
41
|
-
if (e.type === "address")
|
|
42
|
-
return E(t);
|
|
43
|
-
if (e.type === "bool")
|
|
44
|
-
return H(t);
|
|
45
|
-
if (e.type.startsWith("bytes"))
|
|
46
|
-
return L(t, e, { staticPosition: n });
|
|
47
|
-
if (e.type.startsWith("uint") || e.type.startsWith("int"))
|
|
48
|
-
return U(t, e);
|
|
49
|
-
if (e.type === "string")
|
|
50
|
-
return j(t, { staticPosition: n });
|
|
51
|
-
throw new D(e.type, {
|
|
52
|
-
docsPath: "/docs/contract/decodeAbiParameters"
|
|
1
|
+
import { wait as w } from "./index207.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();
|
|
53
19
|
});
|
|
54
20
|
}
|
|
55
|
-
const P = 32, b = 32;
|
|
56
|
-
function E(t) {
|
|
57
|
-
const e = t.readBytes(32);
|
|
58
|
-
return [w(g(W(e, -20))), 32];
|
|
59
|
-
}
|
|
60
|
-
function k(t, e, { length: n, staticPosition: o }) {
|
|
61
|
-
if (!n) {
|
|
62
|
-
const s = y(t.readBytes(b)), r = o + s, f = r + P;
|
|
63
|
-
t.setPosition(r);
|
|
64
|
-
const c = y(t.readBytes(P)), l = h(e);
|
|
65
|
-
let m = 0;
|
|
66
|
-
const v = [];
|
|
67
|
-
for (let B = 0; B < c; ++B) {
|
|
68
|
-
t.setPosition(f + (l ? B * 32 : m));
|
|
69
|
-
const [T, z] = u(t, e, {
|
|
70
|
-
staticPosition: f
|
|
71
|
-
});
|
|
72
|
-
m += z, v.push(T);
|
|
73
|
-
}
|
|
74
|
-
return t.setPosition(o + 32), [v, 32];
|
|
75
|
-
}
|
|
76
|
-
if (h(e)) {
|
|
77
|
-
const s = y(t.readBytes(b)), r = o + s, f = [];
|
|
78
|
-
for (let c = 0; c < n; ++c) {
|
|
79
|
-
t.setPosition(r + c * 32);
|
|
80
|
-
const [l] = u(t, e, {
|
|
81
|
-
staticPosition: r
|
|
82
|
-
});
|
|
83
|
-
f.push(l);
|
|
84
|
-
}
|
|
85
|
-
return t.setPosition(o + 32), [f, 32];
|
|
86
|
-
}
|
|
87
|
-
let i = 0;
|
|
88
|
-
const d = [];
|
|
89
|
-
for (let s = 0; s < n; ++s) {
|
|
90
|
-
const [r, f] = u(t, e, {
|
|
91
|
-
staticPosition: o + i
|
|
92
|
-
});
|
|
93
|
-
i += f, d.push(r);
|
|
94
|
-
}
|
|
95
|
-
return [d, i];
|
|
96
|
-
}
|
|
97
|
-
function H(t) {
|
|
98
|
-
return [I(t.readBytes(32), { size: 32 }), 32];
|
|
99
|
-
}
|
|
100
|
-
function L(t, e, { staticPosition: n }) {
|
|
101
|
-
const [o, i] = e.type.split("bytes");
|
|
102
|
-
if (!i) {
|
|
103
|
-
const s = y(t.readBytes(32));
|
|
104
|
-
t.setPosition(n + s);
|
|
105
|
-
const r = y(t.readBytes(32));
|
|
106
|
-
if (r === 0)
|
|
107
|
-
return t.setPosition(n + 32), ["0x", 32];
|
|
108
|
-
const f = t.readBytes(r);
|
|
109
|
-
return t.setPosition(n + 32), [g(f), 32];
|
|
110
|
-
}
|
|
111
|
-
return [g(t.readBytes(Number.parseInt(i, 10), 32)), 32];
|
|
112
|
-
}
|
|
113
|
-
function U(t, e) {
|
|
114
|
-
const n = e.type.startsWith("int"), o = Number.parseInt(e.type.split("int")[1] || "256", 10), i = t.readBytes(32);
|
|
115
|
-
return [
|
|
116
|
-
o > 48 ? N(i, { signed: n }) : y(i, { signed: n }),
|
|
117
|
-
32
|
|
118
|
-
];
|
|
119
|
-
}
|
|
120
|
-
function Z(t, e, { staticPosition: n }) {
|
|
121
|
-
const o = e.components.length === 0 || e.components.some(({ name: s }) => !s), i = o ? [] : {};
|
|
122
|
-
let d = 0;
|
|
123
|
-
if (h(e)) {
|
|
124
|
-
const s = y(t.readBytes(b)), r = n + s;
|
|
125
|
-
for (let f = 0; f < e.components.length; ++f) {
|
|
126
|
-
const c = e.components[f];
|
|
127
|
-
t.setPosition(r + d);
|
|
128
|
-
const [l, m] = u(t, c, {
|
|
129
|
-
staticPosition: r
|
|
130
|
-
});
|
|
131
|
-
d += m, i[o ? f : c == null ? void 0 : c.name] = l;
|
|
132
|
-
}
|
|
133
|
-
return t.setPosition(n + 32), [i, 32];
|
|
134
|
-
}
|
|
135
|
-
for (let s = 0; s < e.components.length; ++s) {
|
|
136
|
-
const r = e.components[s], [f, c] = u(t, r, {
|
|
137
|
-
staticPosition: n
|
|
138
|
-
});
|
|
139
|
-
i[o ? s : r == null ? void 0 : r.name] = f, d += c;
|
|
140
|
-
}
|
|
141
|
-
return [i, d];
|
|
142
|
-
}
|
|
143
|
-
function j(t, { staticPosition: e }) {
|
|
144
|
-
const n = y(t.readBytes(32)), o = e + n;
|
|
145
|
-
t.setPosition(o);
|
|
146
|
-
const i = y(t.readBytes(32));
|
|
147
|
-
if (i === 0)
|
|
148
|
-
return t.setPosition(e + 32), ["", 32];
|
|
149
|
-
const d = t.readBytes(i, 32), s = O(x(d));
|
|
150
|
-
return t.setPosition(e + 32), [s, 32];
|
|
151
|
-
}
|
|
152
|
-
function h(t) {
|
|
153
|
-
var o;
|
|
154
|
-
const { type: e } = t;
|
|
155
|
-
if (e === "string" || e === "bytes" || e.endsWith("[]"))
|
|
156
|
-
return !0;
|
|
157
|
-
if (e === "tuple")
|
|
158
|
-
return (o = t.components) == null ? void 0 : o.some(h);
|
|
159
|
-
const n = A(t.type);
|
|
160
|
-
return !!(n && h({ ...t, type: n[1] }));
|
|
161
|
-
}
|
|
162
21
|
export {
|
|
163
|
-
|
|
22
|
+
p as withRetry
|
|
164
23
|
};
|
package/dist/index110.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/index110.js
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { stringToBytes as m } from "./index115.js";
|
|
3
|
-
import { keccak256 as p } from "./index131.js";
|
|
4
|
-
import { LruMap as u } from "./index138.js";
|
|
5
|
-
import { isAddress as $ } from "./index124.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/index111.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 v=require("./index31.cjs"),w=require("./index75.cjs"),N=require("./index107.cjs"),h=require("./index112.cjs"),g=require("./index110.cjs"),m=require("./index91.cjs");function q(r,{emitOnBegin:b=!1,emitMissed:f=!1,onBlockNumber:p,onError:a,poll:i,pollingInterval:k=r.pollingInterval}){const B=typeof i<"u"?i:!(r.transport.type==="webSocket"||r.transport.type==="ipc"||r.transport.type==="fallback"&&(r.transport.transports[0].config.type==="webSocket"||r.transport.transports[0].config.type==="ipc"));let e;return B?(()=>{const l=g.stringify(["watchBlockNumber",r.uid,b,f,k]);return N.observe(l,{onBlockNumber:p,onError:a},o=>h.poll(async()=>{var u;try{const t=await w.getAction(r,m.getBlockNumber,"getBlockNumber")({cacheTime:0});if(e!==void 0){if(t===e)return;if(t-e>1&&f)for(let s=e+1n;s<t;s++)o.onBlockNumber(s,e),e=s}(e===void 0||t>e)&&(o.onBlockNumber(t,e),e=t)}catch(t){(u=o.onError)==null||u.call(o,t)}},{emitOnBegin:b,interval:k}))})():(()=>{const l=g.stringify(["watchBlockNumber",r.uid,b,f]);return N.observe(l,{onBlockNumber:p,onError:a},o=>{let u=!0,t=()=>u=!1;return(async()=>{try{const s=(()=>{if(r.transport.type==="fallback"){const c=r.transport.transports.find(n=>n.config.type==="webSocket"||n.config.type==="ipc");return c?c.value:r.transport}return r.transport})(),{unsubscribe:d}=await s.subscribe({params:["newHeads"],onData(c){var y;if(!u)return;const n=v.hexToBigInt((y=c.result)==null?void 0:y.number);o.onBlockNumber(n,e),e=n},onError(c){var n;(n=o.onError)==null||n.call(o,c)}});t=d,u||t()}catch(s){a==null||a(s)}})(),()=>t()})})()}exports.watchBlockNumber=q;
|
package/dist/index111.js
CHANGED
|
@@ -1,130 +1,78 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
this.assertPosition(this.position + 2), this.dataView.setUint16(this.position, t >> 8), this.dataView.setUint8(this.position + 2, t & 255), this.position += 3;
|
|
76
|
-
},
|
|
77
|
-
pushUint32(t) {
|
|
78
|
-
this.assertPosition(this.position + 3), this.dataView.setUint32(this.position, t), this.position += 4;
|
|
79
|
-
},
|
|
80
|
-
readByte() {
|
|
81
|
-
this.assertReadLimit(), this._touch();
|
|
82
|
-
const t = this.inspectByte();
|
|
83
|
-
return this.position++, t;
|
|
84
|
-
},
|
|
85
|
-
readBytes(t, i) {
|
|
86
|
-
this.assertReadLimit(), this._touch();
|
|
87
|
-
const s = this.inspectBytes(t);
|
|
88
|
-
return this.position += i ?? t, s;
|
|
89
|
-
},
|
|
90
|
-
readUint8() {
|
|
91
|
-
this.assertReadLimit(), this._touch();
|
|
92
|
-
const t = this.inspectUint8();
|
|
93
|
-
return this.position += 1, t;
|
|
94
|
-
},
|
|
95
|
-
readUint16() {
|
|
96
|
-
this.assertReadLimit(), this._touch();
|
|
97
|
-
const t = this.inspectUint16();
|
|
98
|
-
return this.position += 2, t;
|
|
99
|
-
},
|
|
100
|
-
readUint24() {
|
|
101
|
-
this.assertReadLimit(), this._touch();
|
|
102
|
-
const t = this.inspectUint24();
|
|
103
|
-
return this.position += 3, t;
|
|
104
|
-
},
|
|
105
|
-
readUint32() {
|
|
106
|
-
this.assertReadLimit(), this._touch();
|
|
107
|
-
const t = this.inspectUint32();
|
|
108
|
-
return this.position += 4, t;
|
|
109
|
-
},
|
|
110
|
-
get remaining() {
|
|
111
|
-
return this.bytes.length - this.position;
|
|
112
|
-
},
|
|
113
|
-
setPosition(t) {
|
|
114
|
-
const i = this.position;
|
|
115
|
-
return this.assertPosition(t), this.position = t, () => this.position = i;
|
|
116
|
-
},
|
|
117
|
-
_touch() {
|
|
118
|
-
if (this.recursiveReadLimit === Number.POSITIVE_INFINITY)
|
|
119
|
-
return;
|
|
120
|
-
const t = this.getReadCount();
|
|
121
|
-
this.positionReadCount.set(this.position, t + 1), t > 0 && this.recursiveReadCount++;
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
function a(t, { recursiveReadLimit: i = 8192 } = {}) {
|
|
125
|
-
const s = Object.create(h);
|
|
126
|
-
return s.bytes = t, s.dataView = new DataView(t.buffer ?? t, t.byteOffset, t.byteLength), s.positionReadCount = /* @__PURE__ */ new Map(), s.recursiveReadLimit = i, s;
|
|
1
|
+
import { hexToBigInt as w } from "./index31.js";
|
|
2
|
+
import { getAction as g } from "./index75.js";
|
|
3
|
+
import { observe as y } from "./index107.js";
|
|
4
|
+
import { poll as h } from "./index112.js";
|
|
5
|
+
import { stringify as N } from "./index110.js";
|
|
6
|
+
import { getBlockNumber as v } from "./index91.js";
|
|
7
|
+
function j(r, { emitOnBegin: b = !1, emitMissed: p = !1, onBlockNumber: l, onError: a, poll: k, pollingInterval: i = r.pollingInterval }) {
|
|
8
|
+
const B = typeof k < "u" ? k : !(r.transport.type === "webSocket" || r.transport.type === "ipc" || r.transport.type === "fallback" && (r.transport.transports[0].config.type === "webSocket" || r.transport.transports[0].config.type === "ipc"));
|
|
9
|
+
let t;
|
|
10
|
+
return B ? (() => {
|
|
11
|
+
const f = N([
|
|
12
|
+
"watchBlockNumber",
|
|
13
|
+
r.uid,
|
|
14
|
+
b,
|
|
15
|
+
p,
|
|
16
|
+
i
|
|
17
|
+
]);
|
|
18
|
+
return y(f, { onBlockNumber: l, onError: a }, (e) => h(async () => {
|
|
19
|
+
var u;
|
|
20
|
+
try {
|
|
21
|
+
const o = await g(r, v, "getBlockNumber")({ cacheTime: 0 });
|
|
22
|
+
if (t !== void 0) {
|
|
23
|
+
if (o === t)
|
|
24
|
+
return;
|
|
25
|
+
if (o - t > 1 && p)
|
|
26
|
+
for (let s = t + 1n; s < o; s++)
|
|
27
|
+
e.onBlockNumber(s, t), t = s;
|
|
28
|
+
}
|
|
29
|
+
(t === void 0 || o > t) && (e.onBlockNumber(o, t), t = o);
|
|
30
|
+
} catch (o) {
|
|
31
|
+
(u = e.onError) == null || u.call(e, o);
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
emitOnBegin: b,
|
|
35
|
+
interval: i
|
|
36
|
+
}));
|
|
37
|
+
})() : (() => {
|
|
38
|
+
const f = N([
|
|
39
|
+
"watchBlockNumber",
|
|
40
|
+
r.uid,
|
|
41
|
+
b,
|
|
42
|
+
p
|
|
43
|
+
]);
|
|
44
|
+
return y(f, { onBlockNumber: l, onError: a }, (e) => {
|
|
45
|
+
let u = !0, o = () => u = !1;
|
|
46
|
+
return (async () => {
|
|
47
|
+
try {
|
|
48
|
+
const s = (() => {
|
|
49
|
+
if (r.transport.type === "fallback") {
|
|
50
|
+
const c = r.transport.transports.find((n) => n.config.type === "webSocket" || n.config.type === "ipc");
|
|
51
|
+
return c ? c.value : r.transport;
|
|
52
|
+
}
|
|
53
|
+
return r.transport;
|
|
54
|
+
})(), { unsubscribe: d } = await s.subscribe({
|
|
55
|
+
params: ["newHeads"],
|
|
56
|
+
onData(c) {
|
|
57
|
+
var m;
|
|
58
|
+
if (!u)
|
|
59
|
+
return;
|
|
60
|
+
const n = w((m = c.result) == null ? void 0 : m.number);
|
|
61
|
+
e.onBlockNumber(n, t), t = n;
|
|
62
|
+
},
|
|
63
|
+
onError(c) {
|
|
64
|
+
var n;
|
|
65
|
+
(n = e.onError) == null || n.call(e, c);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
o = d, u || o();
|
|
69
|
+
} catch (s) {
|
|
70
|
+
a == null || a(s);
|
|
71
|
+
}
|
|
72
|
+
})(), () => o();
|
|
73
|
+
});
|
|
74
|
+
})();
|
|
127
75
|
}
|
|
128
76
|
export {
|
|
129
|
-
|
|
77
|
+
j as watchBlockNumber
|
|
130
78
|
};
|
package/dist/index112.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("./index207.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/index112.js
CHANGED
|
@@ -1,41 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
position: "start",
|
|
16
|
-
size: r(e)
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function c(e, f, i) {
|
|
20
|
-
if (typeof f == "number" && typeof i == "number" && r(e) !== i - f)
|
|
21
|
-
throw new t({
|
|
22
|
-
offset: i,
|
|
23
|
-
position: "end",
|
|
24
|
-
size: r(e)
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function m(e, f, i, { strict: o } = {}) {
|
|
28
|
-
s(e, f);
|
|
29
|
-
const n = e.slice(f, i);
|
|
30
|
-
return o && c(n, f, i), n;
|
|
31
|
-
}
|
|
32
|
-
function u(e, f, i, { strict: o } = {}) {
|
|
33
|
-
s(e, f);
|
|
34
|
-
const n = `0x${e.replace("0x", "").slice((f ?? 0) * 2, (i ?? e.length) * 2)}`;
|
|
35
|
-
return o && c(n, f, i), n;
|
|
1
|
+
import { wait as r } from "./index207.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;
|
|
36
15
|
}
|
|
37
16
|
export {
|
|
38
|
-
|
|
39
|
-
m as sliceBytes,
|
|
40
|
-
u as sliceHex
|
|
17
|
+
e as poll
|
|
41
18
|
};
|
package/dist/index113.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 B=require("./index114.cjs"),M=require("./index115.cjs"),P=require("./index116.cjs"),_=require("./index71.cjs"),I=require("./index98.cjs"),b=require("./index75.cjs"),A=require("./index107.cjs"),O=require("./index112.cjs"),S=require("./index110.cjs"),$=require("./index70.cjs"),j=require("./index91.cjs"),z=require("./index93.cjs"),R=require("./index96.cjs"),U=require("./index105.cjs");function G(t,D){const{abi:v,address:l,args:u,batch:C=!0,eventName:c,fromBlock:g,onError:f,onLogs:k,poll:L,pollingInterval:h=t.pollingInterval,strict:d}=D;return(typeof L<"u"?L:typeof g=="bigint"?!0:!(t.transport.type==="webSocket"||t.transport.type==="ipc"||t.transport.type==="fallback"&&(t.transport.transports[0].config.type==="webSocket"||t.transport.transports[0].config.type==="ipc")))?(()=>{const p=d??!1,q=S.stringify(["watchContractEvent",l,u,C,t.uid,c,h,p,g]);return A.observe(q,{onLogs:k,onError:f},o=>{let s;g!==void 0&&(s=g-1n);let n,a=!1;const w=O.poll(async()=>{var y;if(!a){try{n=await b.getAction(t,$.createContractEventFilter,"createContractEventFilter")({abi:v,address:l,args:u,eventName:c,strict:p,fromBlock:g})}catch{}a=!0;return}try{let e;if(n)e=await b.getAction(t,R.getFilterChanges,"getFilterChanges")({filter:n});else{const r=await b.getAction(t,j.getBlockNumber,"getBlockNumber")({});s&&s<r?e=await b.getAction(t,z.getContractEvents,"getContractEvents")({abi:v,address:l,args:u,eventName:c,fromBlock:s+1n,toBlock:r,strict:p}):e=[],s=r}if(e.length===0)return;if(C)o.onLogs(e);else for(const r of e)o.onLogs([r])}catch(e){n&&e instanceof M.InvalidInputRpcError&&(a=!1),(y=o.onError)==null||y.call(o,e)}},{emitOnBegin:!0,interval:h});return async()=>{n&&await b.getAction(t,U.uninstallFilter,"uninstallFilter")({filter:n}),w()}})})():(()=>{const p=d??!1,q=S.stringify(["watchContractEvent",l,u,C,t.uid,c,h,p]);let o=!0,s=()=>o=!1;return A.observe(q,{onLogs:k,onError:f},n=>((async()=>{try{const a=(()=>{if(t.transport.type==="fallback"){const e=t.transport.transports.find(r=>r.config.type==="webSocket"||r.config.type==="ipc");return e?e.value:t.transport}return t.transport})(),w=c?_.encodeEventTopics({abi:v,eventName:c,args:u}):[],{unsubscribe:y}=await a.subscribe({params:["logs",{address:l,topics:w}],onData(e){var N;if(!o)return;const r=e.result;try{const{eventName:i,args:E}=P.decodeEventLog({abi:v,data:r.data,topics:r.topics,strict:d}),m=I.formatLog(r,{args:E,eventName:i});n.onLogs([m])}catch(i){let E,m;if(i instanceof B.DecodeLogDataMismatch||i instanceof B.DecodeLogTopicsMismatch){if(d)return;E=i.abiItem.name,m=(N=i.abiItem.inputs)==null?void 0:N.some(F=>!("name"in F&&F.name))}const T=I.formatLog(r,{args:m?[]:{},eventName:E});n.onLogs([T])}},onError(e){var r;(r=n.onError)==null||r.call(n,e)}});s=y,o||s()}catch(a){f==null||f(a)}})(),()=>s()))})()}exports.watchContractEvent=G;
|