@coinbase/cdp-core 0.0.87 → 0.0.88
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/esm/index.native10.js +1 -1
- package/dist/esm/index.native101.js +2 -2
- package/dist/esm/index.native105.js +3 -3
- package/dist/esm/index.native106.js +31 -2
- package/dist/esm/index.native107.js +28 -65
- package/dist/esm/index.native108.js +2 -367
- package/dist/esm/index.native109.js +65 -28
- package/dist/esm/index.native110.js +364 -28
- package/dist/esm/index.native122.js +5 -35
- package/dist/esm/index.native123.js +40 -60
- package/dist/esm/index.native124.js +35 -5
- package/dist/esm/index.native125.js +60 -40
- package/dist/esm/index.native197.js +37 -107
- package/dist/esm/index.native199.js +69 -7
- package/dist/esm/index.native2.js +35 -30
- package/dist/esm/index.native200.js +35 -2
- package/dist/esm/index.native201.js +17 -374
- package/dist/esm/index.native202.js +7 -835
- package/dist/esm/index.native203.js +2 -39
- package/dist/esm/index.native204.js +378 -2
- package/dist/esm/index.native205.js +835 -69
- package/dist/esm/index.native206.js +106 -32
- package/dist/esm/index.native207.js +2 -21
- package/dist/esm/index.native222.js +2 -2
- package/dist/esm/index.native223.js +2 -2
- package/dist/esm/index.native224.js +2 -2
- package/dist/esm/index.native225.js +1 -1
- package/dist/esm/index.native3.js +1 -1
- package/dist/esm/index.native67.js +97 -60
- package/dist/esm/index.native9.js +1 -1
- package/dist/esm/index.native90.js +2 -2
- package/dist/esm/index.web102.js +12 -12
- package/dist/esm/index.web106.js +3 -3
- package/dist/esm/index.web107.js +2 -31
- package/dist/esm/index.web108.js +65 -28
- package/dist/esm/index.web109.js +367 -2
- package/dist/esm/index.web110.js +28 -65
- package/dist/esm/index.web111.js +28 -364
- package/dist/esm/index.web116.js +1 -1
- package/dist/esm/index.web117.js +2 -2
- package/dist/esm/index.web123.js +1 -1
- package/dist/esm/index.web127.js +4 -17
- package/dist/esm/index.web128.js +16 -44
- package/dist/esm/index.web129.js +45 -13
- package/dist/esm/index.web130.js +13 -55
- package/dist/esm/index.web131.js +55 -6
- package/dist/esm/index.web132.js +6 -21
- package/dist/esm/index.web133.js +21 -3
- package/dist/esm/index.web134.js +3 -3
- package/dist/esm/index.web135.js +3 -34
- package/dist/esm/index.web136.js +32 -10
- package/dist/esm/index.web137.js +12 -4
- package/dist/esm/index.web138.js +4 -28
- package/dist/esm/index.web139.js +28 -6
- package/dist/esm/index.web140.js +6 -42
- package/dist/esm/index.web141.js +41 -54
- package/dist/esm/index.web142.js +54 -126
- package/dist/esm/index.web143.js +127 -23
- package/dist/esm/index.web144.js +22 -11
- package/dist/esm/index.web145.js +9 -101
- package/dist/esm/index.web146.js +104 -6
- package/dist/esm/index.web147.js +7 -3
- package/dist/esm/index.web148.js +3 -15
- package/dist/esm/index.web149.js +14 -34
- package/dist/esm/index.web150.js +31 -75
- package/dist/esm/index.web151.js +79 -2
- package/dist/esm/index.web152.js +2 -2
- package/dist/esm/index.web153.js +2 -38
- package/dist/esm/index.web154.js +36 -5
- package/dist/esm/index.web155.js +5 -33
- package/dist/esm/index.web156.js +34 -8
- package/dist/esm/index.web157.js +8 -10
- package/dist/esm/index.web158.js +10 -11
- package/dist/esm/index.web159.js +11 -13
- package/dist/esm/index.web160.js +13 -18
- package/dist/esm/index.web161.js +18 -5
- package/dist/esm/index.web162.js +6 -5
- package/dist/esm/index.web163.js +5 -11
- package/dist/esm/index.web164.js +10 -4
- package/dist/esm/index.web165.js +14 -103
- package/dist/esm/index.web166.js +27 -77
- package/dist/esm/index.web167.js +7 -79
- package/dist/esm/index.web168.js +3 -14
- package/dist/esm/index.web169.js +16 -16
- package/dist/esm/index.web170.js +8 -7
- package/dist/esm/index.web171.js +7 -3
- package/dist/esm/index.web172.js +70 -18
- package/dist/esm/index.web173.js +28 -8
- package/dist/esm/index.web174.js +3 -7
- package/dist/esm/index.web175.js +7 -72
- package/dist/esm/index.web176.js +4 -28
- package/dist/esm/index.web177.js +14 -3
- package/dist/esm/index.web178.js +19 -15
- package/dist/esm/index.web179.js +61 -4
- package/dist/esm/index.web180.js +16 -13
- package/dist/esm/index.web181.js +19 -15
- package/dist/esm/index.web182.js +8 -61
- package/dist/esm/index.web183.js +41 -16
- package/dist/esm/index.web184.js +7 -23
- package/dist/esm/index.web185.js +20 -8
- package/dist/esm/index.web186.js +102 -41
- package/dist/esm/index.web187.js +78 -7
- package/dist/esm/index.web188.js +79 -20
- package/dist/esm/index.web189.js +1 -1
- package/dist/esm/index.web190.js +3 -3
- package/dist/esm/index.web192.js +3 -3
- package/dist/esm/index.web194.js +3 -3
- package/dist/esm/index.web195.js +2 -8
- package/dist/esm/index.web196.js +109 -2
- package/dist/esm/index.web197.js +2 -378
- package/dist/esm/index.web198.js +7 -835
- package/dist/esm/index.web199.js +2 -39
- package/dist/esm/index.web2.js +34 -29
- package/dist/esm/index.web200.js +378 -2
- package/dist/esm/index.web201.js +835 -69
- package/dist/esm/index.web202.js +37 -33
- package/dist/esm/index.web203.js +2 -21
- package/dist/esm/index.web204.js +70 -2
- package/dist/esm/index.web205.js +34 -20
- package/dist/esm/index.web206.js +19 -18
- package/dist/esm/index.web207.js +2 -33
- package/dist/esm/index.web208.js +20 -6
- package/dist/esm/index.web209.js +20 -2
- package/dist/esm/index.web210.js +31 -107
- package/dist/esm/index.web211.js +7 -2
- package/dist/esm/index.web213.js +47 -2
- package/dist/esm/index.web214.js +18 -2
- package/dist/esm/index.web215.js +28 -2
- package/dist/esm/index.web216.js +8 -18
- package/dist/esm/index.web217.js +9 -26
- package/dist/esm/index.web218.js +13 -8
- package/dist/esm/index.web219.js +10 -11
- package/dist/esm/index.web220.js +15 -11
- package/dist/esm/index.web221.js +80 -9
- package/dist/esm/index.web222.js +2 -17
- package/dist/esm/index.web223.js +2 -81
- package/dist/esm/index.web224.js +2 -47
- package/dist/esm/index.web226.js +14 -78
- package/dist/esm/index.web227.js +78 -14
- package/dist/esm/index.web3.js +1 -1
- package/dist/esm/index.web66.js +97 -60
- package/dist/esm/index.web8.js +1 -1
- package/dist/esm/index.web9.js +1 -1
- package/dist/esm/index.web92.js +2 -2
- package/dist/native/index.native10.js +1 -1
- package/dist/native/index.native101.js +2 -2
- package/dist/native/index.native105.js +3 -3
- package/dist/native/index.native106.js +31 -2
- package/dist/native/index.native107.js +28 -65
- package/dist/native/index.native108.js +2 -367
- package/dist/native/index.native109.js +65 -28
- package/dist/native/index.native110.js +364 -28
- package/dist/native/index.native122.js +5 -35
- package/dist/native/index.native123.js +40 -60
- package/dist/native/index.native124.js +35 -5
- package/dist/native/index.native125.js +60 -40
- package/dist/native/index.native197.js +37 -107
- package/dist/native/index.native199.js +69 -7
- package/dist/native/index.native2.js +35 -30
- package/dist/native/index.native200.js +35 -2
- package/dist/native/index.native201.js +17 -374
- package/dist/native/index.native202.js +7 -835
- package/dist/native/index.native203.js +2 -39
- package/dist/native/index.native204.js +378 -2
- package/dist/native/index.native205.js +835 -69
- package/dist/native/index.native206.js +106 -32
- package/dist/native/index.native207.js +2 -21
- package/dist/native/index.native222.js +2 -2
- package/dist/native/index.native223.js +2 -2
- package/dist/native/index.native224.js +2 -2
- package/dist/native/index.native225.js +1 -1
- package/dist/native/index.native3.js +1 -1
- package/dist/native/index.native67.js +97 -60
- package/dist/native/index.native9.js +1 -1
- package/dist/native/index.native90.js +2 -2
- package/dist/native-types/auth/authManager.d.ts +1 -1
- package/dist/native-types/version.d.ts +1 -1
- package/dist/types/auth/authManager.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index.web102.js +12 -12
- package/dist/web/index.web106.js +3 -3
- package/dist/web/index.web107.js +2 -31
- package/dist/web/index.web108.js +65 -28
- package/dist/web/index.web109.js +367 -2
- package/dist/web/index.web110.js +28 -65
- package/dist/web/index.web111.js +28 -364
- package/dist/web/index.web116.js +1 -1
- package/dist/web/index.web117.js +2 -2
- package/dist/web/index.web123.js +1 -1
- package/dist/web/index.web127.js +4 -17
- package/dist/web/index.web128.js +16 -44
- package/dist/web/index.web129.js +45 -13
- package/dist/web/index.web130.js +13 -55
- package/dist/web/index.web131.js +55 -6
- package/dist/web/index.web132.js +6 -21
- package/dist/web/index.web133.js +21 -3
- package/dist/web/index.web134.js +3 -3
- package/dist/web/index.web135.js +3 -34
- package/dist/web/index.web136.js +32 -10
- package/dist/web/index.web137.js +12 -4
- package/dist/web/index.web138.js +4 -28
- package/dist/web/index.web139.js +28 -6
- package/dist/web/index.web140.js +6 -42
- package/dist/web/index.web141.js +41 -54
- package/dist/web/index.web142.js +54 -126
- package/dist/web/index.web143.js +127 -23
- package/dist/web/index.web144.js +22 -11
- package/dist/web/index.web145.js +9 -101
- package/dist/web/index.web146.js +104 -6
- package/dist/web/index.web147.js +7 -3
- package/dist/web/index.web148.js +3 -15
- package/dist/web/index.web149.js +14 -34
- package/dist/web/index.web150.js +31 -75
- package/dist/web/index.web151.js +79 -2
- package/dist/web/index.web152.js +2 -2
- package/dist/web/index.web153.js +2 -38
- package/dist/web/index.web154.js +36 -5
- package/dist/web/index.web155.js +5 -33
- package/dist/web/index.web156.js +34 -8
- package/dist/web/index.web157.js +8 -10
- package/dist/web/index.web158.js +10 -11
- package/dist/web/index.web159.js +11 -13
- package/dist/web/index.web160.js +13 -18
- package/dist/web/index.web161.js +18 -5
- package/dist/web/index.web162.js +6 -5
- package/dist/web/index.web163.js +5 -11
- package/dist/web/index.web164.js +10 -4
- package/dist/web/index.web165.js +14 -103
- package/dist/web/index.web166.js +27 -77
- package/dist/web/index.web167.js +7 -79
- package/dist/web/index.web168.js +3 -14
- package/dist/web/index.web169.js +16 -16
- package/dist/web/index.web170.js +8 -7
- package/dist/web/index.web171.js +7 -3
- package/dist/web/index.web172.js +70 -18
- package/dist/web/index.web173.js +28 -8
- package/dist/web/index.web174.js +3 -7
- package/dist/web/index.web175.js +7 -72
- package/dist/web/index.web176.js +4 -28
- package/dist/web/index.web177.js +14 -3
- package/dist/web/index.web178.js +19 -15
- package/dist/web/index.web179.js +61 -4
- package/dist/web/index.web180.js +16 -13
- package/dist/web/index.web181.js +19 -15
- package/dist/web/index.web182.js +8 -61
- package/dist/web/index.web183.js +41 -16
- package/dist/web/index.web184.js +7 -23
- package/dist/web/index.web185.js +20 -8
- package/dist/web/index.web186.js +102 -41
- package/dist/web/index.web187.js +78 -7
- package/dist/web/index.web188.js +79 -20
- package/dist/web/index.web189.js +1 -1
- package/dist/web/index.web190.js +3 -3
- package/dist/web/index.web192.js +3 -3
- package/dist/web/index.web194.js +3 -3
- package/dist/web/index.web195.js +2 -8
- package/dist/web/index.web196.js +109 -2
- package/dist/web/index.web197.js +2 -378
- package/dist/web/index.web198.js +7 -835
- package/dist/web/index.web199.js +2 -39
- package/dist/web/index.web2.js +34 -29
- package/dist/web/index.web200.js +378 -2
- package/dist/web/index.web201.js +835 -69
- package/dist/web/index.web202.js +37 -33
- package/dist/web/index.web203.js +2 -21
- package/dist/web/index.web204.js +70 -2
- package/dist/web/index.web205.js +34 -20
- package/dist/web/index.web206.js +19 -18
- package/dist/web/index.web207.js +2 -33
- package/dist/web/index.web208.js +20 -6
- package/dist/web/index.web209.js +20 -2
- package/dist/web/index.web210.js +31 -107
- package/dist/web/index.web211.js +7 -2
- package/dist/web/index.web213.js +47 -2
- package/dist/web/index.web214.js +18 -2
- package/dist/web/index.web215.js +28 -2
- package/dist/web/index.web216.js +8 -18
- package/dist/web/index.web217.js +9 -26
- package/dist/web/index.web218.js +13 -8
- package/dist/web/index.web219.js +10 -11
- package/dist/web/index.web220.js +15 -11
- package/dist/web/index.web221.js +80 -9
- package/dist/web/index.web222.js +2 -17
- package/dist/web/index.web223.js +2 -81
- package/dist/web/index.web224.js +2 -47
- package/dist/web/index.web226.js +14 -78
- package/dist/web/index.web227.js +78 -14
- package/dist/web/index.web3.js +1 -1
- package/dist/web/index.web66.js +97 -60
- package/dist/web/index.web8.js +1 -1
- package/dist/web/index.web9.js +1 -1
- package/dist/web/index.web92.js +2 -2
- package/dist/web-types/auth/authManager.d.ts +1 -1
- package/dist/web-types/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/web/index.web151.js
CHANGED
|
@@ -1,4 +1,81 @@
|
|
|
1
|
-
|
|
1
|
+
import { versionedHashVersionKzg as c } from "./index.web152.js";
|
|
2
|
+
import { maxUint256 as m } from "./index.web153.js";
|
|
3
|
+
import { InvalidAddressError as s } from "./index.web116.js";
|
|
4
|
+
import { BaseError as h } from "./index.web142.js";
|
|
5
|
+
import { EmptyBlobError as P, InvalidVersionedHashSizeError as p, InvalidVersionedHashVersionError as x } from "./index.web154.js";
|
|
6
|
+
import { InvalidChainIdError as n } from "./index.web155.js";
|
|
7
|
+
import { FeeCapTooHighError as w, TipAboveFeeCapError as E } from "./index.web156.js";
|
|
8
|
+
import { isAddress as f } from "./index.web117.js";
|
|
9
|
+
import { size as F } from "./index.web138.js";
|
|
10
|
+
import { slice as I } from "./index.web139.js";
|
|
11
|
+
import { hexToNumber as G } from "./index.web144.js";
|
|
12
|
+
function C(t) {
|
|
13
|
+
const { authorizationList: e } = t;
|
|
14
|
+
if (e)
|
|
15
|
+
for (const o of e) {
|
|
16
|
+
const { chainId: r } = o, i = o.address;
|
|
17
|
+
if (!f(i))
|
|
18
|
+
throw new s({ address: i });
|
|
19
|
+
if (r < 0)
|
|
20
|
+
throw new n({ chainId: r });
|
|
21
|
+
}
|
|
22
|
+
d(t);
|
|
23
|
+
}
|
|
24
|
+
function L(t) {
|
|
25
|
+
const { blobVersionedHashes: e } = t;
|
|
26
|
+
if (e) {
|
|
27
|
+
if (e.length === 0)
|
|
28
|
+
throw new P();
|
|
29
|
+
for (const o of e) {
|
|
30
|
+
const r = F(o), i = G(I(o, 0, 1));
|
|
31
|
+
if (r !== 32)
|
|
32
|
+
throw new p({ hash: o, size: r });
|
|
33
|
+
if (i !== c)
|
|
34
|
+
throw new x({
|
|
35
|
+
hash: o,
|
|
36
|
+
version: i
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
d(t);
|
|
41
|
+
}
|
|
42
|
+
function d(t) {
|
|
43
|
+
const { chainId: e, maxPriorityFeePerGas: o, maxFeePerGas: r, to: i } = t;
|
|
44
|
+
if (e <= 0)
|
|
45
|
+
throw new n({ chainId: e });
|
|
46
|
+
if (i && !f(i))
|
|
47
|
+
throw new s({ address: i });
|
|
48
|
+
if (r && r > m)
|
|
49
|
+
throw new w({ maxFeePerGas: r });
|
|
50
|
+
if (o && r && o > r)
|
|
51
|
+
throw new E({ maxFeePerGas: r, maxPriorityFeePerGas: o });
|
|
52
|
+
}
|
|
53
|
+
function B(t) {
|
|
54
|
+
const { chainId: e, maxPriorityFeePerGas: o, gasPrice: r, maxFeePerGas: i, to: a } = t;
|
|
55
|
+
if (e <= 0)
|
|
56
|
+
throw new n({ chainId: e });
|
|
57
|
+
if (a && !f(a))
|
|
58
|
+
throw new s({ address: a });
|
|
59
|
+
if (o || i)
|
|
60
|
+
throw new h("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
61
|
+
if (r && r > m)
|
|
62
|
+
throw new w({ maxFeePerGas: r });
|
|
63
|
+
}
|
|
64
|
+
function K(t) {
|
|
65
|
+
const { chainId: e, maxPriorityFeePerGas: o, gasPrice: r, maxFeePerGas: i, to: a } = t;
|
|
66
|
+
if (a && !f(a))
|
|
67
|
+
throw new s({ address: a });
|
|
68
|
+
if (typeof e < "u" && e <= 0)
|
|
69
|
+
throw new n({ chainId: e });
|
|
70
|
+
if (o || i)
|
|
71
|
+
throw new h("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
72
|
+
if (r && r > m)
|
|
73
|
+
throw new w({ maxFeePerGas: r });
|
|
74
|
+
}
|
|
2
75
|
export {
|
|
3
|
-
|
|
76
|
+
d as assertTransactionEIP1559,
|
|
77
|
+
B as assertTransactionEIP2930,
|
|
78
|
+
L as assertTransactionEIP4844,
|
|
79
|
+
C as assertTransactionEIP7702,
|
|
80
|
+
K as assertTransactionLegacy
|
|
4
81
|
};
|
package/dist/web/index.web152.js
CHANGED
package/dist/web/index.web153.js
CHANGED
|
@@ -1,40 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { BaseError as s } from "./index.web141.js";
|
|
3
|
-
class t extends s {
|
|
4
|
-
constructor({ maxSize: e, size: r }) {
|
|
5
|
-
super("Blob size is too large.", {
|
|
6
|
-
metaMessages: [`Max: ${e} bytes`, `Given: ${r} bytes`],
|
|
7
|
-
name: "BlobSizeTooLargeError"
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
class d extends s {
|
|
12
|
-
constructor() {
|
|
13
|
-
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
class l extends s {
|
|
17
|
-
constructor({ hash: e, size: r }) {
|
|
18
|
-
super(`Versioned hash "${e}" size is invalid.`, {
|
|
19
|
-
metaMessages: ["Expected: 32", `Received: ${r}`],
|
|
20
|
-
name: "InvalidVersionedHashSizeError"
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
class c extends s {
|
|
25
|
-
constructor({ hash: e, version: r }) {
|
|
26
|
-
super(`Versioned hash "${e}" version is invalid.`, {
|
|
27
|
-
metaMessages: [
|
|
28
|
-
`Expected: ${a}`,
|
|
29
|
-
`Received: ${r}`
|
|
30
|
-
],
|
|
31
|
-
name: "InvalidVersionedHashVersionError"
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
|
1
|
+
const n = 2n ** 256n - 1n;
|
|
35
2
|
export {
|
|
36
|
-
|
|
37
|
-
d as EmptyBlobError,
|
|
38
|
-
l as InvalidVersionedHashSizeError,
|
|
39
|
-
c as InvalidVersionedHashVersionError
|
|
3
|
+
n as maxUint256
|
|
40
4
|
};
|
package/dist/web/index.web154.js
CHANGED
|
@@ -1,9 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { versionedHashVersionKzg as a } from "./index.web152.js";
|
|
2
|
+
import { BaseError as s } from "./index.web142.js";
|
|
3
|
+
class t extends s {
|
|
4
|
+
constructor({ maxSize: e, size: r }) {
|
|
5
|
+
super("Blob size is too large.", {
|
|
6
|
+
metaMessages: [`Max: ${e} bytes`, `Given: ${r} bytes`],
|
|
7
|
+
name: "BlobSizeTooLargeError"
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
class d extends s {
|
|
12
|
+
constructor() {
|
|
13
|
+
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
class l extends s {
|
|
17
|
+
constructor({ hash: e, size: r }) {
|
|
18
|
+
super(`Versioned hash "${e}" size is invalid.`, {
|
|
19
|
+
metaMessages: ["Expected: 32", `Received: ${r}`],
|
|
20
|
+
name: "InvalidVersionedHashSizeError"
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
class c extends s {
|
|
25
|
+
constructor({ hash: e, version: r }) {
|
|
26
|
+
super(`Versioned hash "${e}" version is invalid.`, {
|
|
27
|
+
metaMessages: [
|
|
28
|
+
`Expected: ${a}`,
|
|
29
|
+
`Received: ${r}`
|
|
30
|
+
],
|
|
31
|
+
name: "InvalidVersionedHashVersionError"
|
|
32
|
+
});
|
|
5
33
|
}
|
|
6
34
|
}
|
|
7
35
|
export {
|
|
8
|
-
|
|
36
|
+
t as BlobSizeTooLargeError,
|
|
37
|
+
d as EmptyBlobError,
|
|
38
|
+
l as InvalidVersionedHashSizeError,
|
|
39
|
+
c as InvalidVersionedHashVersionError
|
|
9
40
|
};
|
package/dist/web/index.web155.js
CHANGED
|
@@ -1,37 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
super(`The fee cap (\`maxFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
6
|
-
cause: r,
|
|
7
|
-
name: "FeeCapTooHighError"
|
|
8
|
-
});
|
|
1
|
+
import { BaseError as i } from "./index.web142.js";
|
|
2
|
+
class o extends i {
|
|
3
|
+
constructor({ chainId: r }) {
|
|
4
|
+
super(typeof r == "number" ? `Chain ID "${r}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
9
5
|
}
|
|
10
6
|
}
|
|
11
|
-
Object.defineProperty(n, "nodeMessage", {
|
|
12
|
-
enumerable: !0,
|
|
13
|
-
configurable: !0,
|
|
14
|
-
writable: !0,
|
|
15
|
-
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
16
|
-
});
|
|
17
|
-
class h extends o {
|
|
18
|
-
constructor({ cause: r, maxPriorityFeePerGas: e, maxFeePerGas: t } = {}) {
|
|
19
|
-
super([
|
|
20
|
-
`The provided tip (\`maxPriorityFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t ? ` = ${a(t)} gwei` : ""}).`
|
|
21
|
-
].join(`
|
|
22
|
-
`), {
|
|
23
|
-
cause: r,
|
|
24
|
-
name: "TipAboveFeeCapError"
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
Object.defineProperty(h, "nodeMessage", {
|
|
29
|
-
enumerable: !0,
|
|
30
|
-
configurable: !0,
|
|
31
|
-
writable: !0,
|
|
32
|
-
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
33
|
-
});
|
|
34
7
|
export {
|
|
35
|
-
|
|
36
|
-
h as TipAboveFeeCapError
|
|
8
|
+
o as InvalidChainIdError
|
|
37
9
|
};
|
package/dist/web/index.web156.js
CHANGED
|
@@ -1,11 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { formatGwei as a } from "./index.web162.js";
|
|
2
|
+
import { BaseError as o } from "./index.web142.js";
|
|
3
|
+
class n extends o {
|
|
4
|
+
constructor({ cause: r, maxFeePerGas: e } = {}) {
|
|
5
|
+
super(`The fee cap (\`maxFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
6
|
+
cause: r,
|
|
7
|
+
name: "FeeCapTooHighError"
|
|
8
|
+
});
|
|
9
|
+
}
|
|
8
10
|
}
|
|
11
|
+
Object.defineProperty(n, "nodeMessage", {
|
|
12
|
+
enumerable: !0,
|
|
13
|
+
configurable: !0,
|
|
14
|
+
writable: !0,
|
|
15
|
+
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
16
|
+
});
|
|
17
|
+
class h extends o {
|
|
18
|
+
constructor({ cause: r, maxPriorityFeePerGas: e, maxFeePerGas: t } = {}) {
|
|
19
|
+
super([
|
|
20
|
+
`The provided tip (\`maxPriorityFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t ? ` = ${a(t)} gwei` : ""}).`
|
|
21
|
+
].join(`
|
|
22
|
+
`), {
|
|
23
|
+
cause: r,
|
|
24
|
+
name: "TipAboveFeeCapError"
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
Object.defineProperty(h, "nodeMessage", {
|
|
29
|
+
enumerable: !0,
|
|
30
|
+
configurable: !0,
|
|
31
|
+
writable: !0,
|
|
32
|
+
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
33
|
+
});
|
|
9
34
|
export {
|
|
10
|
-
|
|
35
|
+
n as FeeCapTooHighError,
|
|
36
|
+
h as TipAboveFeeCapError
|
|
11
37
|
};
|
package/dist/web/index.web157.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { hexToBytes as
|
|
2
|
-
import { bytesToHex as
|
|
3
|
-
function
|
|
4
|
-
const { kzg:
|
|
5
|
-
for (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
return c === "bytes" ? n : n.map((o) => y(o));
|
|
1
|
+
import { hexToBytes as i } from "./index.web131.js";
|
|
2
|
+
import { bytesToHex as f } from "./index.web129.js";
|
|
3
|
+
function y(o) {
|
|
4
|
+
const { kzg: s } = o, n = o.to ?? (typeof o.blobs[0] == "string" ? "hex" : "bytes"), m = typeof o.blobs[0] == "string" ? o.blobs.map((t) => i(t)) : o.blobs, b = [];
|
|
5
|
+
for (const t of m)
|
|
6
|
+
b.push(Uint8Array.from(s.blobToKzgCommitment(t)));
|
|
7
|
+
return n === "bytes" ? b : b.map((t) => f(t));
|
|
10
8
|
}
|
|
11
9
|
export {
|
|
12
|
-
|
|
10
|
+
y as blobsToCommitments
|
|
13
11
|
};
|
package/dist/web/index.web158.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return s;
|
|
1
|
+
import { hexToBytes as b } from "./index.web131.js";
|
|
2
|
+
import { bytesToHex as y } from "./index.web129.js";
|
|
3
|
+
function h(t) {
|
|
4
|
+
const { kzg: m } = t, c = t.to ?? (typeof t.blobs[0] == "string" ? "hex" : "bytes"), s = typeof t.blobs[0] == "string" ? t.blobs.map((o) => b(o)) : t.blobs, i = typeof t.commitments[0] == "string" ? t.commitments.map((o) => b(o)) : t.commitments, n = [];
|
|
5
|
+
for (let o = 0; o < s.length; o++) {
|
|
6
|
+
const f = s[o], l = i[o];
|
|
7
|
+
n.push(Uint8Array.from(m.computeBlobKzgProof(f, l)));
|
|
8
|
+
}
|
|
9
|
+
return c === "bytes" ? n : n.map((o) => y(o));
|
|
11
10
|
}
|
|
12
11
|
export {
|
|
13
|
-
|
|
12
|
+
h as blobsToProofs
|
|
14
13
|
};
|
package/dist/web/index.web159.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
});
|
|
12
|
-
return c;
|
|
1
|
+
import { commitmentToVersionedHash as i } from "./index.web211.js";
|
|
2
|
+
function r(o) {
|
|
3
|
+
const { commitments: t, version: n } = o, e = o.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), s = [];
|
|
4
|
+
for (const m of t)
|
|
5
|
+
s.push(i({
|
|
6
|
+
commitment: m,
|
|
7
|
+
to: e,
|
|
8
|
+
version: n
|
|
9
|
+
}));
|
|
10
|
+
return s;
|
|
13
11
|
}
|
|
14
12
|
export {
|
|
15
|
-
|
|
13
|
+
r as commitmentsToVersionedHashes
|
|
16
14
|
};
|
package/dist/web/index.web160.js
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if (!f(i, { strict: !1 }))
|
|
14
|
-
throw new s({ address: i });
|
|
15
|
-
n.push([i, e]);
|
|
16
|
-
}
|
|
17
|
-
return n;
|
|
1
|
+
import { blobsToCommitments as f } from "./index.web157.js";
|
|
2
|
+
import { blobsToProofs as l } from "./index.web158.js";
|
|
3
|
+
import { toBlobs as p } from "./index.web210.js";
|
|
4
|
+
function k(t) {
|
|
5
|
+
const { data: i, kzg: n, to: m } = t, s = t.blobs ?? p({ data: i, to: m }), b = t.commitments ?? f({ blobs: s, kzg: n, to: m }), r = t.proofs ?? l({ blobs: s, commitments: b, kzg: n, to: m }), c = [];
|
|
6
|
+
for (let o = 0; o < s.length; o++)
|
|
7
|
+
c.push({
|
|
8
|
+
blob: s[o],
|
|
9
|
+
commitment: b[o],
|
|
10
|
+
proof: r[o]
|
|
11
|
+
});
|
|
12
|
+
return c;
|
|
18
13
|
}
|
|
19
14
|
export {
|
|
20
|
-
|
|
15
|
+
k as toBlobSidecars
|
|
21
16
|
};
|
package/dist/web/index.web161.js
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { InvalidAddressError as s } from "./index.web116.js";
|
|
2
|
+
import { InvalidStorageKeySizeError as l } from "./index.web150.js";
|
|
3
|
+
import { isAddress as f } from "./index.web117.js";
|
|
4
|
+
function a(r) {
|
|
5
|
+
if (!r || r.length === 0)
|
|
6
|
+
return [];
|
|
7
|
+
const n = [];
|
|
8
|
+
for (let o = 0; o < r.length; o++) {
|
|
9
|
+
const { address: i, storageKeys: e } = r[o];
|
|
10
|
+
for (let t = 0; t < e.length; t++)
|
|
11
|
+
if (e[t].length - 2 !== 64)
|
|
12
|
+
throw new l({ storageKey: e[t] });
|
|
13
|
+
if (!f(i, { strict: !1 }))
|
|
14
|
+
throw new s({ address: i });
|
|
15
|
+
n.push([i, e]);
|
|
16
|
+
}
|
|
17
|
+
return n;
|
|
5
18
|
}
|
|
6
19
|
export {
|
|
7
|
-
|
|
20
|
+
a as serializeAccessList
|
|
8
21
|
};
|
package/dist/web/index.web162.js
CHANGED
package/dist/web/index.web163.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
let [l, e] = [
|
|
6
|
-
t.slice(0, t.length - n),
|
|
7
|
-
t.slice(t.length - n)
|
|
8
|
-
];
|
|
9
|
-
return e = e.replace(/(0+)$/, ""), `${i ? "-" : ""}${l || "0"}${e ? `.${e}` : ""}`;
|
|
10
|
-
}
|
|
1
|
+
const e = {
|
|
2
|
+
ether: -9,
|
|
3
|
+
wei: 9
|
|
4
|
+
};
|
|
11
5
|
export {
|
|
12
|
-
|
|
6
|
+
e as gweiUnits
|
|
13
7
|
};
|
package/dist/web/index.web164.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
function a(r, n) {
|
|
2
|
+
let t = r.toString();
|
|
3
|
+
const i = t.startsWith("-");
|
|
4
|
+
i && (t = t.slice(1)), t = t.padStart(n, "0");
|
|
5
|
+
let [l, e] = [
|
|
6
|
+
t.slice(0, t.length - n),
|
|
7
|
+
t.slice(t.length - n)
|
|
8
|
+
];
|
|
9
|
+
return e = e.replace(/(0+)$/, ""), `${i ? "-" : ""}${l || "0"}${e ? `.${e}` : ""}`;
|
|
4
10
|
}
|
|
5
11
|
export {
|
|
6
|
-
|
|
12
|
+
a as formatUnits
|
|
7
13
|
};
|
package/dist/web/index.web165.js
CHANGED
|
@@ -1,106 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
607225278,
|
|
15
|
-
1426881987,
|
|
16
|
-
1925078388,
|
|
17
|
-
2162078206,
|
|
18
|
-
2614888103,
|
|
19
|
-
3248222580,
|
|
20
|
-
3835390401,
|
|
21
|
-
4022224774,
|
|
22
|
-
264347078,
|
|
23
|
-
604807628,
|
|
24
|
-
770255983,
|
|
25
|
-
1249150122,
|
|
26
|
-
1555081692,
|
|
27
|
-
1996064986,
|
|
28
|
-
2554220882,
|
|
29
|
-
2821834349,
|
|
30
|
-
2952996808,
|
|
31
|
-
3210313671,
|
|
32
|
-
3336571891,
|
|
33
|
-
3584528711,
|
|
34
|
-
113926993,
|
|
35
|
-
338241895,
|
|
36
|
-
666307205,
|
|
37
|
-
773529912,
|
|
38
|
-
1294757372,
|
|
39
|
-
1396182291,
|
|
40
|
-
1695183700,
|
|
41
|
-
1986661051,
|
|
42
|
-
2177026350,
|
|
43
|
-
2456956037,
|
|
44
|
-
2730485921,
|
|
45
|
-
2820302411,
|
|
46
|
-
3259730800,
|
|
47
|
-
3345764771,
|
|
48
|
-
3516065817,
|
|
49
|
-
3600352804,
|
|
50
|
-
4094571909,
|
|
51
|
-
275423344,
|
|
52
|
-
430227734,
|
|
53
|
-
506948616,
|
|
54
|
-
659060556,
|
|
55
|
-
883997877,
|
|
56
|
-
958139571,
|
|
57
|
-
1322822218,
|
|
58
|
-
1537002063,
|
|
59
|
-
1747873779,
|
|
60
|
-
1955562222,
|
|
61
|
-
2024104815,
|
|
62
|
-
2227730452,
|
|
63
|
-
2361852424,
|
|
64
|
-
2428436474,
|
|
65
|
-
2756734187,
|
|
66
|
-
3204031479,
|
|
67
|
-
3329325298
|
|
68
|
-
]), h = /* @__PURE__ */ new Uint32Array(64);
|
|
69
|
-
class E extends D {
|
|
70
|
-
constructor(o = 32) {
|
|
71
|
-
super(64, o, 8, !1), this.A = b[0] | 0, this.B = b[1] | 0, this.C = b[2] | 0, this.D = b[3] | 0, this.E = b[4] | 0, this.F = b[5] | 0, this.G = b[6] | 0, this.H = b[7] | 0;
|
|
72
|
-
}
|
|
73
|
-
get() {
|
|
74
|
-
const { A: o, B: r, C: t, D: s, E: a, F: f, G: c, H: e } = this;
|
|
75
|
-
return [o, r, t, s, a, f, c, e];
|
|
76
|
-
}
|
|
77
|
-
// prettier-ignore
|
|
78
|
-
set(o, r, t, s, a, f, c, e) {
|
|
79
|
-
this.A = o | 0, this.B = r | 0, this.C = t | 0, this.D = s | 0, this.E = a | 0, this.F = f | 0, this.G = c | 0, this.H = e | 0;
|
|
80
|
-
}
|
|
81
|
-
process(o, r) {
|
|
82
|
-
for (let x = 0; x < 16; x++, r += 4)
|
|
83
|
-
h[x] = o.getUint32(r, !1);
|
|
84
|
-
for (let x = 16; x < 64; x++) {
|
|
85
|
-
const H = h[x - 15], d = h[x - 2], m = i(H, 7) ^ i(H, 18) ^ H >>> 3, l = i(d, 17) ^ i(d, 19) ^ d >>> 10;
|
|
86
|
-
h[x] = l + h[x - 7] + m + h[x - 16] | 0;
|
|
87
|
-
}
|
|
88
|
-
let { A: t, B: s, C: a, D: f, E: c, F: e, G: n, H: A } = this;
|
|
89
|
-
for (let x = 0; x < 64; x++) {
|
|
90
|
-
const H = i(c, 6) ^ i(c, 11) ^ i(c, 25), d = A + H + g(c, e, n) + B[x] + h[x] | 0, l = (i(t, 2) ^ i(t, 13) ^ i(t, 22)) + p(t, s, a) | 0;
|
|
91
|
-
A = n, n = e, e = c, c = f + d | 0, f = a, a = s, s = t, t = d + l | 0;
|
|
92
|
-
}
|
|
93
|
-
t = t + this.A | 0, s = s + this.B | 0, a = a + this.C | 0, f = f + this.D | 0, c = c + this.E | 0, e = e + this.F | 0, n = n + this.G | 0, A = A + this.H | 0, this.set(t, s, a, f, c, e, n, A);
|
|
94
|
-
}
|
|
95
|
-
roundClean() {
|
|
96
|
-
C(h);
|
|
97
|
-
}
|
|
98
|
-
destroy() {
|
|
99
|
-
this.set(0, 0, 0, 0, 0, 0, 0, 0), C(this.buffer);
|
|
100
|
-
}
|
|
1
|
+
import "@coinbase/cdp-api-client";
|
|
2
|
+
import "./index.web2.js";
|
|
3
|
+
import "./index.web3.js";
|
|
4
|
+
import "jose";
|
|
5
|
+
import "viem";
|
|
6
|
+
import "./index.web84.js";
|
|
7
|
+
import { getCurrentUser as t } from "./index.web17.js";
|
|
8
|
+
import "./index.web74.js";
|
|
9
|
+
import "./index.web85.js";
|
|
10
|
+
import "@solana/web3.js";
|
|
11
|
+
import "bs58";
|
|
12
|
+
async function A() {
|
|
13
|
+
return (await t())?.evmAccountObjects?.map((r) => r.address) || [];
|
|
101
14
|
}
|
|
102
|
-
const y = /* @__PURE__ */ u(() => new E());
|
|
103
15
|
export {
|
|
104
|
-
|
|
105
|
-
y as sha256
|
|
16
|
+
A as handleAccounts
|
|
106
17
|
};
|