@avalabs/vm-module-types 0.0.15 → 0.0.17
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/.turbo/turbo-build.log +116 -104
- package/.turbo/turbo-lint.log +1 -1
- package/CHANGELOG.md +12 -0
- package/dist/chunk-2KGTZTXY.cjs +7 -0
- package/dist/chunk-2KGTZTXY.cjs.map +1 -0
- package/dist/chunk-47KTBBRA.cjs +4 -0
- package/dist/chunk-47KTBBRA.cjs.map +1 -0
- package/dist/chunk-7Y6UGMPZ.js +5 -0
- package/dist/chunk-7Y6UGMPZ.js.map +1 -0
- package/dist/chunk-P6AM7I3B.js +3 -0
- package/dist/chunk-P6AM7I3B.js.map +1 -0
- package/dist/chunk-RKFOXZ35.js +5 -0
- package/dist/chunk-RKFOXZ35.js.map +1 -0
- package/dist/chunk-YVYCETG2.cjs +8 -0
- package/dist/chunk-YVYCETG2.cjs.map +1 -0
- package/dist/index.cjs +8 -7
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/module.d.cts +1 -0
- package/dist/module.d.ts +1 -0
- package/dist/network-fee.d.cts +1 -1
- package/dist/network-fee.d.ts +1 -1
- package/dist/rpc.cjs +5 -5
- package/dist/rpc.d.cts +62 -21
- package/dist/rpc.d.ts +62 -21
- package/dist/rpc.js +1 -1
- package/dist/token.cjs +2 -2
- package/dist/token.d.cts +31 -8
- package/dist/token.d.ts +31 -8
- package/dist/token.js +1 -1
- package/dist/transaction-simulation.cjs +6 -0
- package/dist/transaction-simulation.cjs.map +1 -0
- package/dist/transaction-simulation.d.cts +27 -0
- package/dist/transaction-simulation.d.ts +27 -0
- package/dist/transaction-simulation.js +3 -0
- package/dist/transaction-simulation.js.map +1 -0
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/network-fee.ts +1 -1
- package/src/rpc.ts +64 -24
- package/src/token.ts +34 -7
- package/src/transaction-simulation.ts +29 -0
- package/dist/chunk-FKFLXQOJ.js +0 -5
- package/dist/chunk-FKFLXQOJ.js.map +0 -1
- package/dist/chunk-ISTALLTN.cjs +0 -8
- package/dist/chunk-ISTALLTN.cjs.map +0 -1
- package/dist/chunk-KVTVJNN4.cjs +0 -7
- package/dist/chunk-KVTVJNN4.cjs.map +0 -1
- package/dist/chunk-TSO5BGJ4.js +0 -5
- package/dist/chunk-TSO5BGJ4.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @avalabs/vm-module-types@0.0.
|
|
2
|
+
> @avalabs/vm-module-types@0.0.17 build /home/runner/work/vm-modules/vm-modules/packages/types
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
|
-
[34mCLI[39m Building entry: src/balance.ts, src/coingecko.ts, src/common.ts, src/index.ts, src/manifest.ts, src/module.ts, src/network-fee.ts, src/rpc.ts, src/token.ts, src/transaction-history.ts
|
|
5
|
+
[34mCLI[39m Building entry: src/balance.ts, src/coingecko.ts, src/common.ts, src/index.ts, src/manifest.ts, src/module.ts, src/network-fee.ts, src/rpc.ts, src/token.ts, src/transaction-history.ts, src/transaction-simulation.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v7.2.0
|
|
8
8
|
[34mCLI[39m Using tsup config: /home/runner/work/vm-modules/vm-modules/packages/types/tsup.config.ts
|
|
@@ -10,109 +10,121 @@
|
|
|
10
10
|
[34mCLI[39m Cleaning output folder
|
|
11
11
|
[34mCJS[39m Build start
|
|
12
12
|
[34mESM[39m Build start
|
|
13
|
-
Generated an empty chunk: "chunk-
|
|
14
|
-
Generated an empty chunk: "chunk-CUVJNZP5".
|
|
15
|
-
Generated an empty chunk: "chunk-7U2R34EQ".
|
|
13
|
+
Generated an empty chunk: "chunk-47KTBBRA".
|
|
16
14
|
Generated an empty chunk: "chunk-JUV577XH".
|
|
17
15
|
Generated an empty chunk: "chunk-OGQBQHLH".
|
|
18
16
|
Generated an empty chunk: "chunk-AILYKQEY".
|
|
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
|
-
[32mCJS[39m [1mdist/
|
|
59
|
-
[32mCJS[39m [1mdist/chunk-
|
|
60
|
-
[32mCJS[39m [1mdist/
|
|
61
|
-
[32mCJS[39m [1mdist/chunk-
|
|
62
|
-
[32mCJS[39m [1mdist/
|
|
63
|
-
[32mCJS[39m [1mdist/
|
|
64
|
-
[32mCJS[39m [1mdist/
|
|
65
|
-
[32mCJS[39m
|
|
66
|
-
[
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
72
|
-
[
|
|
73
|
-
[
|
|
74
|
-
[
|
|
75
|
-
[
|
|
76
|
-
[
|
|
77
|
-
[
|
|
78
|
-
[
|
|
79
|
-
[
|
|
80
|
-
[
|
|
81
|
-
[
|
|
82
|
-
[
|
|
83
|
-
[
|
|
84
|
-
[
|
|
85
|
-
[
|
|
86
|
-
[
|
|
87
|
-
[
|
|
88
|
-
[
|
|
89
|
-
[
|
|
90
|
-
[
|
|
91
|
-
[
|
|
92
|
-
[
|
|
93
|
-
[
|
|
94
|
-
[
|
|
95
|
-
[
|
|
96
|
-
[
|
|
17
|
+
Generated an empty chunk: "chunk-P6AM7I3B".
|
|
18
|
+
Generated an empty chunk: "chunk-BHB5UV3J".
|
|
19
|
+
Generated an empty chunk: "chunk-CUVJNZP5".
|
|
20
|
+
Generated an empty chunk: "chunk-7U2R34EQ".
|
|
21
|
+
[32mCJS[39m [1mdist/chunk-2KGTZTXY.cjs [22m[32m219.00 B[39m
|
|
22
|
+
[32mCJS[39m [1mdist/chunk-BFBDZPL3.cjs [22m[32m1.21 KB[39m
|
|
23
|
+
[32mCJS[39m [1mdist/chunk-47KTBBRA.cjs [22m[32m90.00 B[39m
|
|
24
|
+
[32mCJS[39m [1mdist/chunk-JUV577XH.cjs [22m[32m90.00 B[39m
|
|
25
|
+
[32mCJS[39m [1mdist/chunk-XQGU7MZ4.cjs [22m[32m167.00 B[39m
|
|
26
|
+
[32mCJS[39m [1mdist/chunk-OGQBQHLH.cjs [22m[32m90.00 B[39m
|
|
27
|
+
[32mCJS[39m [1mdist/chunk-AILYKQEY.cjs [22m[32m90.00 B[39m
|
|
28
|
+
[32mCJS[39m [1mdist/chunk-YVYCETG2.cjs [22m[32m483.00 B[39m
|
|
29
|
+
[32mCJS[39m [1mdist/token.cjs [22m[32m260.00 B[39m
|
|
30
|
+
[32mCJS[39m [1mdist/transaction-history.cjs [22m[32m542.00 B[39m
|
|
31
|
+
[32mCJS[39m [1mdist/transaction-simulation.cjs [22m[32m132.00 B[39m
|
|
32
|
+
[32mCJS[39m [1mdist/balance.cjs [22m[32m117.00 B[39m
|
|
33
|
+
[32mCJS[39m [1mdist/coingecko.cjs [22m[32m418.00 B[39m
|
|
34
|
+
[32mCJS[39m [1mdist/common.cjs [22m[32m263.00 B[39m
|
|
35
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m1.78 KB[39m
|
|
36
|
+
[32mCJS[39m [1mdist/chunk-4PGCXP4C.cjs [22m[32m433.00 B[39m
|
|
37
|
+
[32mCJS[39m [1mdist/manifest.cjs [22m[32m267.00 B[39m
|
|
38
|
+
[32mCJS[39m [1mdist/chunk-74SNNWSF.cjs [22m[32m667.00 B[39m
|
|
39
|
+
[32mCJS[39m [1mdist/module.cjs [22m[32m116.00 B[39m
|
|
40
|
+
[32mCJS[39m [1mdist/network-fee.cjs [22m[32m121.00 B[39m
|
|
41
|
+
[32mCJS[39m [1mdist/rpc.cjs [22m[32m377.00 B[39m
|
|
42
|
+
[32mCJS[39m [1mdist/chunk-2KGTZTXY.cjs.map [22m[32m1.18 KB[39m
|
|
43
|
+
[32mCJS[39m [1mdist/chunk-BFBDZPL3.cjs.map [22m[32m3.69 KB[39m
|
|
44
|
+
[32mCJS[39m [1mdist/chunk-47KTBBRA.cjs.map [22m[32m51.00 B[39m
|
|
45
|
+
[32mCJS[39m [1mdist/chunk-JUV577XH.cjs.map [22m[32m51.00 B[39m
|
|
46
|
+
[32mCJS[39m [1mdist/chunk-XQGU7MZ4.cjs.map [22m[32m838.00 B[39m
|
|
47
|
+
[32mCJS[39m [1mdist/chunk-OGQBQHLH.cjs.map [22m[32m51.00 B[39m
|
|
48
|
+
[32mCJS[39m [1mdist/chunk-AILYKQEY.cjs.map [22m[32m51.00 B[39m
|
|
49
|
+
[32mCJS[39m [1mdist/chunk-YVYCETG2.cjs.map [22m[32m4.03 KB[39m
|
|
50
|
+
[32mCJS[39m [1mdist/token.cjs.map [22m[32m51.00 B[39m
|
|
51
|
+
[32mCJS[39m [1mdist/transaction-history.cjs.map [22m[32m51.00 B[39m
|
|
52
|
+
[32mCJS[39m [1mdist/transaction-simulation.cjs.map [22m[32m51.00 B[39m
|
|
53
|
+
[32mCJS[39m [1mdist/balance.cjs.map [22m[32m51.00 B[39m
|
|
54
|
+
[32mCJS[39m [1mdist/coingecko.cjs.map [22m[32m51.00 B[39m
|
|
55
|
+
[32mCJS[39m [1mdist/common.cjs.map [22m[32m51.00 B[39m
|
|
56
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m51.00 B[39m
|
|
57
|
+
[32mCJS[39m [1mdist/chunk-4PGCXP4C.cjs.map [22m[32m1.24 KB[39m
|
|
58
|
+
[32mCJS[39m [1mdist/manifest.cjs.map [22m[32m51.00 B[39m
|
|
59
|
+
[32mCJS[39m [1mdist/chunk-74SNNWSF.cjs.map [22m[32m1.65 KB[39m
|
|
60
|
+
[32mCJS[39m [1mdist/module.cjs.map [22m[32m51.00 B[39m
|
|
61
|
+
[32mCJS[39m [1mdist/network-fee.cjs.map [22m[32m51.00 B[39m
|
|
62
|
+
[32mCJS[39m [1mdist/rpc.cjs.map [22m[32m51.00 B[39m
|
|
63
|
+
[32mCJS[39m ⚡️ Build success in 1323ms
|
|
64
|
+
[32mESM[39m [1mdist/chunk-7Y6UGMPZ.js [22m[32m207.00 B[39m
|
|
65
|
+
[32mESM[39m [1mdist/chunk-H6ZZE5M7.js [22m[32m1.18 KB[39m
|
|
66
|
+
[32mESM[39m [1mdist/chunk-P6AM7I3B.js [22m[32m75.00 B[39m
|
|
67
|
+
[32mESM[39m [1mdist/chunk-BHB5UV3J.js [22m[32m75.00 B[39m
|
|
68
|
+
[32mESM[39m [1mdist/chunk-YJHKZHST.js [22m[32m155.00 B[39m
|
|
69
|
+
[32mESM[39m [1mdist/chunk-CUVJNZP5.js [22m[32m75.00 B[39m
|
|
70
|
+
[32mESM[39m [1mdist/chunk-7U2R34EQ.js [22m[32m75.00 B[39m
|
|
71
|
+
[32mESM[39m [1mdist/chunk-RKFOXZ35.js [22m[32m464.00 B[39m
|
|
72
|
+
[32mESM[39m [1mdist/token.js [22m[32m119.00 B[39m
|
|
73
|
+
[32mESM[39m [1mdist/transaction-history.js [22m[32m195.00 B[39m
|
|
74
|
+
[32mESM[39m [1mdist/transaction-simulation.js [22m[32m112.00 B[39m
|
|
75
|
+
[32mESM[39m [1mdist/balance.js [22m[32m97.00 B[39m
|
|
76
|
+
[32mESM[39m [1mdist/coingecko.js [22m[32m174.00 B[39m
|
|
77
|
+
[32mESM[39m [1mdist/common.js [22m[32m122.00 B[39m
|
|
78
|
+
[32mESM[39m [1mdist/index.js [22m[32m644.00 B[39m
|
|
79
|
+
[32mESM[39m [1mdist/chunk-WOO6UGSQ.js [22m[32m394.00 B[39m
|
|
80
|
+
[32mESM[39m [1mdist/manifest.js [22m[32m126.00 B[39m
|
|
81
|
+
[32mESM[39m [1mdist/chunk-A4YEBDMG.js [22m[32m592.00 B[39m
|
|
82
|
+
[32mESM[39m [1mdist/module.js [22m[32m96.00 B[39m
|
|
83
|
+
[32mESM[39m [1mdist/network-fee.js [22m[32m101.00 B[39m
|
|
84
|
+
[32mESM[39m [1mdist/rpc.js [22m[32m133.00 B[39m
|
|
85
|
+
[32mESM[39m [1mdist/chunk-7Y6UGMPZ.js.map [22m[32m1.18 KB[39m
|
|
86
|
+
[32mESM[39m [1mdist/chunk-H6ZZE5M7.js.map [22m[32m3.69 KB[39m
|
|
87
|
+
[32mESM[39m [1mdist/chunk-P6AM7I3B.js.map [22m[32m51.00 B[39m
|
|
88
|
+
[32mESM[39m [1mdist/chunk-BHB5UV3J.js.map [22m[32m51.00 B[39m
|
|
89
|
+
[32mESM[39m [1mdist/chunk-YJHKZHST.js.map [22m[32m838.00 B[39m
|
|
90
|
+
[32mESM[39m [1mdist/chunk-CUVJNZP5.js.map [22m[32m51.00 B[39m
|
|
91
|
+
[32mESM[39m [1mdist/chunk-7U2R34EQ.js.map [22m[32m51.00 B[39m
|
|
92
|
+
[32mESM[39m [1mdist/chunk-RKFOXZ35.js.map [22m[32m4.03 KB[39m
|
|
93
|
+
[32mESM[39m [1mdist/token.js.map [22m[32m51.00 B[39m
|
|
94
|
+
[32mESM[39m [1mdist/transaction-history.js.map [22m[32m51.00 B[39m
|
|
95
|
+
[32mESM[39m [1mdist/transaction-simulation.js.map [22m[32m51.00 B[39m
|
|
96
|
+
[32mESM[39m [1mdist/balance.js.map [22m[32m51.00 B[39m
|
|
97
|
+
[32mESM[39m [1mdist/coingecko.js.map [22m[32m51.00 B[39m
|
|
98
|
+
[32mESM[39m [1mdist/common.js.map [22m[32m51.00 B[39m
|
|
99
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m51.00 B[39m
|
|
100
|
+
[32mESM[39m [1mdist/chunk-WOO6UGSQ.js.map [22m[32m1.24 KB[39m
|
|
101
|
+
[32mESM[39m [1mdist/manifest.js.map [22m[32m51.00 B[39m
|
|
102
|
+
[32mESM[39m [1mdist/chunk-A4YEBDMG.js.map [22m[32m1.65 KB[39m
|
|
103
|
+
[32mESM[39m [1mdist/module.js.map [22m[32m51.00 B[39m
|
|
104
|
+
[32mESM[39m [1mdist/network-fee.js.map [22m[32m51.00 B[39m
|
|
105
|
+
[32mESM[39m [1mdist/rpc.js.map [22m[32m51.00 B[39m
|
|
106
|
+
[32mESM[39m ⚡️ Build success in 1340ms
|
|
97
107
|
[34mDTS[39m Build start
|
|
98
|
-
[32mDTS[39m ⚡️ Build success in
|
|
99
|
-
[32mDTS[39m [1mdist/index.d.cts
|
|
100
|
-
[32mDTS[39m [1mdist/coingecko.d.cts
|
|
101
|
-
[32mDTS[39m [1mdist/module.d.cts
|
|
102
|
-
[32mDTS[39m [1mdist/balance.d.cts
|
|
103
|
-
[32mDTS[39m [1mdist/manifest.d.cts
|
|
104
|
-
[32mDTS[39m [1mdist/network-fee.d.cts
|
|
105
|
-
[32mDTS[39m [1mdist/rpc.d.cts
|
|
106
|
-
[32mDTS[39m [1mdist/transaction-history.d.cts
|
|
107
|
-
[32mDTS[39m [1mdist/common.d.cts
|
|
108
|
-
[32mDTS[39m [1mdist/
|
|
109
|
-
[32mDTS[39m [1mdist/
|
|
110
|
-
[32mDTS[39m [1mdist/
|
|
111
|
-
[32mDTS[39m [1mdist/
|
|
112
|
-
[32mDTS[39m [1mdist/
|
|
113
|
-
[32mDTS[39m [1mdist/
|
|
114
|
-
[32mDTS[39m [1mdist/
|
|
115
|
-
[32mDTS[39m [1mdist/
|
|
116
|
-
[32mDTS[39m [1mdist/
|
|
117
|
-
[32mDTS[39m [1mdist/
|
|
118
|
-
[32mDTS[39m [1mdist/
|
|
108
|
+
[32mDTS[39m ⚡️ Build success in 10270ms
|
|
109
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m1.36 KB[39m
|
|
110
|
+
[32mDTS[39m [1mdist/coingecko.d.cts [22m[32m1.09 KB[39m
|
|
111
|
+
[32mDTS[39m [1mdist/module.d.cts [22m[32m1.04 KB[39m
|
|
112
|
+
[32mDTS[39m [1mdist/balance.d.cts [22m[32m3.20 KB[39m
|
|
113
|
+
[32mDTS[39m [1mdist/manifest.d.cts [22m[32m6.95 KB[39m
|
|
114
|
+
[32mDTS[39m [1mdist/network-fee.d.cts [22m[32m361.00 B[39m
|
|
115
|
+
[32mDTS[39m [1mdist/rpc.d.cts [22m[32m3.65 KB[39m
|
|
116
|
+
[32mDTS[39m [1mdist/transaction-history.d.cts [22m[32m2.88 KB[39m
|
|
117
|
+
[32mDTS[39m [1mdist/common.d.cts [22m[32m729.00 B[39m
|
|
118
|
+
[32mDTS[39m [1mdist/transaction-simulation.d.cts [22m[32m642.00 B[39m
|
|
119
|
+
[32mDTS[39m [1mdist/token.d.cts [22m[32m1.05 KB[39m
|
|
120
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.35 KB[39m
|
|
121
|
+
[32mDTS[39m [1mdist/coingecko.d.ts [22m[32m1.09 KB[39m
|
|
122
|
+
[32mDTS[39m [1mdist/module.d.ts [22m[32m1.04 KB[39m
|
|
123
|
+
[32mDTS[39m [1mdist/balance.d.ts [22m[32m3.20 KB[39m
|
|
124
|
+
[32mDTS[39m [1mdist/manifest.d.ts [22m[32m6.95 KB[39m
|
|
125
|
+
[32mDTS[39m [1mdist/network-fee.d.ts [22m[32m361.00 B[39m
|
|
126
|
+
[32mDTS[39m [1mdist/rpc.d.ts [22m[32m3.65 KB[39m
|
|
127
|
+
[32mDTS[39m [1mdist/transaction-history.d.ts [22m[32m2.88 KB[39m
|
|
128
|
+
[32mDTS[39m [1mdist/common.d.ts [22m[32m728.00 B[39m
|
|
129
|
+
[32mDTS[39m [1mdist/transaction-simulation.d.ts [22m[32m641.00 B[39m
|
|
130
|
+
[32mDTS[39m [1mdist/token.d.ts [22m[32m1.05 KB[39m
|
package/.turbo/turbo-lint.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @avalabs/vm-module-types
|
|
2
2
|
|
|
3
|
+
## 0.0.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3590edf: Transaction parsing, validation and simulation for EVM
|
|
8
|
+
|
|
9
|
+
## 0.0.16
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- bc48457: add support for all eth_sign methods
|
|
14
|
+
|
|
3
15
|
## 0.0.15
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/token.ts"],"names":["TokenType"],"mappings":"AAAO,IAAKA,OACVA,EAAA,OAAS,SACTA,EAAA,MAAQ,QACRA,EAAA,OAAS,SACTA,EAAA,QAAU,UACVA,EAAA,OAAS,SALCA,OAAA","sourcesContent":["export enum TokenType {\n NATIVE = 'NATIVE',\n ERC20 = 'ERC20',\n ERC721 = 'ERC721',\n ERC1155 = 'ERC1155',\n NONERC = 'NONERC',\n}\n\nexport interface NetworkToken {\n name: string;\n symbol: string;\n decimals: number;\n logoUri?: string;\n description?: string;\n}\n\nexport type NetworkContractToken = ERC20Token | ERC1155Token | ERC721Token | NONERCToken;\n\nexport interface ERC20Token {\n address: string;\n chainId?: number;\n color?: string;\n type: TokenType.ERC20;\n decimals: number;\n logoUri?: string;\n name: string;\n symbol: string;\n}\n\nexport interface ERC1155Token {\n address: string;\n type: TokenType.ERC1155;\n logoUri?: string;\n name?: string;\n symbol?: string;\n}\n\nexport interface ERC721Token {\n address: string;\n type: TokenType.ERC721;\n logoUri?: string;\n name?: string;\n symbol?: string;\n}\n\nexport interface NONERCToken {\n address: string;\n type: TokenType.NONERC;\n logoUri?: string;\n name?: string;\n symbol?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/token.ts"],"names":["TokenType"],"mappings":"AAAO,IAAKA,OACVA,EAAA,OAAS,SACTA,EAAA,MAAQ,QACRA,EAAA,OAAS,SACTA,EAAA,QAAU,UACVA,EAAA,OAAS,SALCA,OAAA","sourcesContent":["export enum TokenType {\n NATIVE = 'NATIVE',\n ERC20 = 'ERC20',\n ERC721 = 'ERC721',\n ERC1155 = 'ERC1155',\n NONERC = 'NONERC',\n}\n\nexport interface NetworkToken {\n name: string;\n symbol: string;\n decimals: number;\n logoUri?: string;\n description?: string;\n}\n\nexport type NetworkContractToken = ERC20Token | ERC1155Token | ERC721Token | NONERCToken;\n\nexport interface ERC20Token {\n address: string;\n chainId?: number;\n color?: string;\n type: TokenType.ERC20;\n decimals: number;\n logoUri?: string;\n name: string;\n symbol: string;\n}\n\nexport interface ERC1155Token {\n address: string;\n type: TokenType.ERC1155;\n logoUri?: string;\n name?: string;\n symbol?: string;\n}\n\nexport interface ERC721Token {\n address: string;\n type: TokenType.ERC721;\n logoUri?: string;\n name?: string;\n symbol?: string;\n}\n\nexport interface NONERCToken {\n address: string;\n type: TokenType.NONERC;\n logoUri?: string;\n name?: string;\n symbol?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var r=(e=>(e.ETH_SEND_TRANSACTION="eth_sendTransaction",e.SIGN_TYPED_DATA_V3="eth_signTypedData_v3",e.SIGN_TYPED_DATA_V4="eth_signTypedData_v4",e.SIGN_TYPED_DATA_V1="eth_signTypedData_v1",e.SIGN_TYPED_DATA="eth_signTypedData",e.PERSONAL_SIGN="personal_sign",e.ETH_SIGN="eth_sign",e))(r||{}),a=(t=>(t.WARNING="Warning",t.DANGER="Danger",t.INFO="Info",t))(a||{});
|
|
2
|
+
|
|
3
|
+
export { r as a, a as b };
|
|
4
|
+
//# sourceMappingURL=out.js.map
|
|
5
|
+
//# sourceMappingURL=chunk-RKFOXZ35.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rpc.ts"],"names":["RpcMethod","AlertType"],"mappings":"AAKO,IAAKA,OAEVA,EAAA,qBAAuB,sBACvBA,EAAA,mBAAqB,uBACrBA,EAAA,mBAAqB,uBACrBA,EAAA,mBAAqB,uBACrBA,EAAA,gBAAkB,oBAClBA,EAAA,cAAgB,gBAChBA,EAAA,SAAW,WARDA,OAAA,IAsFAC,OACVA,EAAA,QAAU,UACVA,EAAA,OAAS,SACTA,EAAA,KAAO,OAHGA,OAAA","sourcesContent":["import type { TransactionRequest } from 'ethers';\nimport type { Caip2ChainId, Hex } from './common';\nimport type { JsonRpcError, EthereumProviderError, OptionalDataWithOptionalCause } from '@metamask/rpc-errors';\nimport type { BalanceChange, TokenApprovals } from './transaction-simulation';\n\nexport enum RpcMethod {\n /* EVM */\n ETH_SEND_TRANSACTION = 'eth_sendTransaction',\n SIGN_TYPED_DATA_V3 = 'eth_signTypedData_v3',\n SIGN_TYPED_DATA_V4 = 'eth_signTypedData_v4',\n SIGN_TYPED_DATA_V1 = 'eth_signTypedData_v1',\n SIGN_TYPED_DATA = 'eth_signTypedData',\n PERSONAL_SIGN = 'personal_sign',\n ETH_SIGN = 'eth_sign',\n}\n\nexport type DappInfo = {\n name: string;\n url: string;\n icon: string;\n};\n\nexport type RpcRequest = {\n requestId: string;\n sessionId: string;\n method: RpcMethod;\n chainId: Caip2ChainId;\n params: unknown;\n dappInfo: DappInfo;\n context?: Record<string, unknown>; // for storing additional context information that's only relevant to the consumer\n};\n\nexport type RpcError =\n | JsonRpcError<OptionalDataWithOptionalCause>\n | EthereumProviderError<OptionalDataWithOptionalCause>;\n\nexport type RpcResponse<R = unknown, E extends RpcError = JsonRpcError<OptionalDataWithOptionalCause>> =\n | {\n result: R;\n }\n | {\n error: E;\n };\n\nexport interface MessageTypeProperty {\n name: string;\n type: string;\n}\n\nexport interface MessageTypes {\n EIP712Domain: MessageTypeProperty[];\n [additionalProperties: string]: MessageTypeProperty[];\n}\n\nexport interface TypedData<T extends MessageTypes> {\n types: T;\n primaryType: keyof T;\n domain: Record<string, unknown>;\n message: Record<string, unknown>;\n}\n\nexport type TypedDataV1 = { name: string; type: string; value: unknown }[];\n\nexport type DisplayData = {\n title: string;\n dAppInfo?: {\n name: string;\n action: string;\n logoUri?: string;\n };\n network: {\n chainId: number;\n name: string;\n logoUri?: string;\n };\n account?: string;\n messageDetails?: string;\n transactionDetails?: {\n website: string;\n from: string;\n to: string;\n data?: string;\n type?: string;\n };\n networkFeeSelector?: boolean;\n disclaimer?: string;\n alert?: Alert;\n balanceChange?: BalanceChange;\n tokenApprovals?: TokenApprovals;\n};\n\nexport enum AlertType {\n WARNING = 'Warning',\n DANGER = 'Danger',\n INFO = 'Info',\n}\n\nexport type AlertDetails = {\n title: string;\n description: string;\n detailedDescription?: string;\n actionTitles?: {\n proceed: string;\n reject: string;\n };\n};\n\nexport type Alert = {\n type: AlertType;\n details: AlertDetails;\n};\n\nexport type SigningData =\n | {\n type: RpcMethod.ETH_SEND_TRANSACTION;\n account: string;\n chainId: number;\n data: TransactionRequest;\n }\n | {\n type: RpcMethod.ETH_SIGN | RpcMethod.PERSONAL_SIGN;\n account: string;\n chainId: number;\n data: string;\n }\n | {\n type: RpcMethod.SIGN_TYPED_DATA | RpcMethod.SIGN_TYPED_DATA_V1;\n account: string;\n chainId: number;\n data: TypedData<MessageTypes> | TypedDataV1;\n }\n | {\n type: RpcMethod.SIGN_TYPED_DATA_V3 | RpcMethod.SIGN_TYPED_DATA_V4;\n account: string;\n chainId: number;\n data: TypedData<MessageTypes>;\n };\n\nexport type ApprovalParams = {\n request: RpcRequest;\n displayData: DisplayData;\n signingData: SigningData;\n};\n\nexport type ApprovalResponse =\n | {\n result: Hex;\n }\n | {\n error: RpcError;\n };\n\nexport interface ApprovalController {\n requestApproval: (params: ApprovalParams) => Promise<ApprovalResponse>;\n onTransactionConfirmed: (txHash: Hex) => void;\n onTransactionReverted: (txHash: Hex) => void;\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var r=(e=>(e.ETH_SEND_TRANSACTION="eth_sendTransaction",e.SIGN_TYPED_DATA_V3="eth_signTypedData_v3",e.SIGN_TYPED_DATA_V4="eth_signTypedData_v4",e.SIGN_TYPED_DATA_V1="eth_signTypedData_v1",e.SIGN_TYPED_DATA="eth_signTypedData",e.PERSONAL_SIGN="personal_sign",e.ETH_SIGN="eth_sign",e))(r||{}),a=(t=>(t.WARNING="Warning",t.DANGER="Danger",t.INFO="Info",t))(a||{});
|
|
4
|
+
|
|
5
|
+
exports.a = r;
|
|
6
|
+
exports.b = a;
|
|
7
|
+
//# sourceMappingURL=out.js.map
|
|
8
|
+
//# sourceMappingURL=chunk-YVYCETG2.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rpc.ts"],"names":["RpcMethod","AlertType"],"mappings":"AAKO,IAAKA,OAEVA,EAAA,qBAAuB,sBACvBA,EAAA,mBAAqB,uBACrBA,EAAA,mBAAqB,uBACrBA,EAAA,mBAAqB,uBACrBA,EAAA,gBAAkB,oBAClBA,EAAA,cAAgB,gBAChBA,EAAA,SAAW,WARDA,OAAA,IAsFAC,OACVA,EAAA,QAAU,UACVA,EAAA,OAAS,SACTA,EAAA,KAAO,OAHGA,OAAA","sourcesContent":["import type { TransactionRequest } from 'ethers';\nimport type { Caip2ChainId, Hex } from './common';\nimport type { JsonRpcError, EthereumProviderError, OptionalDataWithOptionalCause } from '@metamask/rpc-errors';\nimport type { BalanceChange, TokenApprovals } from './transaction-simulation';\n\nexport enum RpcMethod {\n /* EVM */\n ETH_SEND_TRANSACTION = 'eth_sendTransaction',\n SIGN_TYPED_DATA_V3 = 'eth_signTypedData_v3',\n SIGN_TYPED_DATA_V4 = 'eth_signTypedData_v4',\n SIGN_TYPED_DATA_V1 = 'eth_signTypedData_v1',\n SIGN_TYPED_DATA = 'eth_signTypedData',\n PERSONAL_SIGN = 'personal_sign',\n ETH_SIGN = 'eth_sign',\n}\n\nexport type DappInfo = {\n name: string;\n url: string;\n icon: string;\n};\n\nexport type RpcRequest = {\n requestId: string;\n sessionId: string;\n method: RpcMethod;\n chainId: Caip2ChainId;\n params: unknown;\n dappInfo: DappInfo;\n context?: Record<string, unknown>; // for storing additional context information that's only relevant to the consumer\n};\n\nexport type RpcError =\n | JsonRpcError<OptionalDataWithOptionalCause>\n | EthereumProviderError<OptionalDataWithOptionalCause>;\n\nexport type RpcResponse<R = unknown, E extends RpcError = JsonRpcError<OptionalDataWithOptionalCause>> =\n | {\n result: R;\n }\n | {\n error: E;\n };\n\nexport interface MessageTypeProperty {\n name: string;\n type: string;\n}\n\nexport interface MessageTypes {\n EIP712Domain: MessageTypeProperty[];\n [additionalProperties: string]: MessageTypeProperty[];\n}\n\nexport interface TypedData<T extends MessageTypes> {\n types: T;\n primaryType: keyof T;\n domain: Record<string, unknown>;\n message: Record<string, unknown>;\n}\n\nexport type TypedDataV1 = { name: string; type: string; value: unknown }[];\n\nexport type DisplayData = {\n title: string;\n dAppInfo?: {\n name: string;\n action: string;\n logoUri?: string;\n };\n network: {\n chainId: number;\n name: string;\n logoUri?: string;\n };\n account?: string;\n messageDetails?: string;\n transactionDetails?: {\n website: string;\n from: string;\n to: string;\n data?: string;\n type?: string;\n };\n networkFeeSelector?: boolean;\n disclaimer?: string;\n alert?: Alert;\n balanceChange?: BalanceChange;\n tokenApprovals?: TokenApprovals;\n};\n\nexport enum AlertType {\n WARNING = 'Warning',\n DANGER = 'Danger',\n INFO = 'Info',\n}\n\nexport type AlertDetails = {\n title: string;\n description: string;\n detailedDescription?: string;\n actionTitles?: {\n proceed: string;\n reject: string;\n };\n};\n\nexport type Alert = {\n type: AlertType;\n details: AlertDetails;\n};\n\nexport type SigningData =\n | {\n type: RpcMethod.ETH_SEND_TRANSACTION;\n account: string;\n chainId: number;\n data: TransactionRequest;\n }\n | {\n type: RpcMethod.ETH_SIGN | RpcMethod.PERSONAL_SIGN;\n account: string;\n chainId: number;\n data: string;\n }\n | {\n type: RpcMethod.SIGN_TYPED_DATA | RpcMethod.SIGN_TYPED_DATA_V1;\n account: string;\n chainId: number;\n data: TypedData<MessageTypes> | TypedDataV1;\n }\n | {\n type: RpcMethod.SIGN_TYPED_DATA_V3 | RpcMethod.SIGN_TYPED_DATA_V4;\n account: string;\n chainId: number;\n data: TypedData<MessageTypes>;\n };\n\nexport type ApprovalParams = {\n request: RpcRequest;\n displayData: DisplayData;\n signingData: SigningData;\n};\n\nexport type ApprovalResponse =\n | {\n result: Hex;\n }\n | {\n error: RpcError;\n };\n\nexport interface ApprovalController {\n requestApproval: (params: ApprovalParams) => Promise<ApprovalResponse>;\n onTransactionConfirmed: (txHash: Hex) => void;\n onTransactionReverted: (txHash: Hex) => void;\n}\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2KGTZTXY_cjs = require('./chunk-2KGTZTXY.cjs');
|
|
4
4
|
var chunkBFBDZPL3_cjs = require('./chunk-BFBDZPL3.cjs');
|
|
5
|
+
require('./chunk-47KTBBRA.cjs');
|
|
5
6
|
require('./chunk-JUV577XH.cjs');
|
|
6
7
|
var chunk4PGCXP4C_cjs = require('./chunk-4PGCXP4C.cjs');
|
|
7
8
|
var chunkXQGU7MZ4_cjs = require('./chunk-XQGU7MZ4.cjs');
|
|
8
9
|
var chunk74SNNWSF_cjs = require('./chunk-74SNNWSF.cjs');
|
|
9
10
|
require('./chunk-OGQBQHLH.cjs');
|
|
10
11
|
require('./chunk-AILYKQEY.cjs');
|
|
11
|
-
var
|
|
12
|
+
var chunkYVYCETG2_cjs = require('./chunk-YVYCETG2.cjs');
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
Object.defineProperty(exports, 'TokenType', {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk2KGTZTXY_cjs.a; }
|
|
18
19
|
});
|
|
19
20
|
Object.defineProperty(exports, 'PChainTransactionType', {
|
|
20
21
|
enumerable: true,
|
|
@@ -44,13 +45,13 @@ Object.defineProperty(exports, 'parseManifest', {
|
|
|
44
45
|
enumerable: true,
|
|
45
46
|
get: function () { return chunk74SNNWSF_cjs.a; }
|
|
46
47
|
});
|
|
47
|
-
Object.defineProperty(exports, '
|
|
48
|
+
Object.defineProperty(exports, 'AlertType', {
|
|
48
49
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkYVYCETG2_cjs.b; }
|
|
50
51
|
});
|
|
51
|
-
Object.defineProperty(exports, '
|
|
52
|
+
Object.defineProperty(exports, 'RpcMethod', {
|
|
52
53
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkYVYCETG2_cjs.a; }
|
|
54
55
|
});
|
|
55
56
|
//# sourceMappingURL=out.js.map
|
|
56
57
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.cts
CHANGED
|
@@ -4,9 +4,10 @@ export { GetBalancesParams, GetBalancesResponse, NetworkTokenWithBalance, TokenB
|
|
|
4
4
|
export { Manifest, parseManifest } from './manifest.cjs';
|
|
5
5
|
export { Module } from './module.cjs';
|
|
6
6
|
export { NetworkFees } from './network-fee.cjs';
|
|
7
|
-
export { ApprovalController, ApprovalParams, ApprovalResponse, DappInfo, DisplayData, RpcError, RpcMethod, RpcRequest, RpcResponse, SigningData,
|
|
8
|
-
export { NetworkContractToken, NetworkToken, TokenType } from './token.cjs';
|
|
7
|
+
export { Alert, AlertDetails, AlertType, ApprovalController, ApprovalParams, ApprovalResponse, DappInfo, DisplayData, MessageTypeProperty, MessageTypes, RpcError, RpcMethod, RpcRequest, RpcResponse, SigningData, TypedData, TypedDataV1 } from './rpc.cjs';
|
|
8
|
+
export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, TokenType } from './token.cjs';
|
|
9
9
|
export { GetTransactionHistory, PChainTransactionType, Transaction, TransactionHistoryResponse, TransactionType, TxToken, XChainTransactionType } from './transaction-history.cjs';
|
|
10
|
+
export { BalanceChange, TokenApproval, TokenApprovals, TokenDiff, TokenDiffItem } from './transaction-simulation.cjs';
|
|
10
11
|
import 'zod';
|
|
11
12
|
import 'bn.js';
|
|
12
13
|
import '@avalabs/glacier-sdk';
|
package/dist/index.d.ts
CHANGED
|
@@ -4,9 +4,10 @@ export { GetBalancesParams, GetBalancesResponse, NetworkTokenWithBalance, TokenB
|
|
|
4
4
|
export { Manifest, parseManifest } from './manifest.js';
|
|
5
5
|
export { Module } from './module.js';
|
|
6
6
|
export { NetworkFees } from './network-fee.js';
|
|
7
|
-
export { ApprovalController, ApprovalParams, ApprovalResponse, DappInfo, DisplayData, RpcError, RpcMethod, RpcRequest, RpcResponse, SigningData,
|
|
8
|
-
export { NetworkContractToken, NetworkToken, TokenType } from './token.js';
|
|
7
|
+
export { Alert, AlertDetails, AlertType, ApprovalController, ApprovalParams, ApprovalResponse, DappInfo, DisplayData, MessageTypeProperty, MessageTypes, RpcError, RpcMethod, RpcRequest, RpcResponse, SigningData, TypedData, TypedDataV1 } from './rpc.js';
|
|
8
|
+
export { ERC1155Token, ERC20Token, ERC721Token, NONERCToken, NetworkContractToken, NetworkToken, TokenType } from './token.js';
|
|
9
9
|
export { GetTransactionHistory, PChainTransactionType, Transaction, TransactionHistoryResponse, TransactionType, TxToken, XChainTransactionType } from './transaction-history.js';
|
|
10
|
+
export { BalanceChange, TokenApproval, TokenApprovals, TokenDiff, TokenDiffItem } from './transaction-simulation.js';
|
|
10
11
|
import 'zod';
|
|
11
12
|
import 'bn.js';
|
|
12
13
|
import '@avalabs/glacier-sdk';
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { a as TokenType } from './chunk-
|
|
1
|
+
export { a as TokenType } from './chunk-7Y6UGMPZ.js';
|
|
2
2
|
export { b as PChainTransactionType, a as TransactionType, c as XChainTransactionType } from './chunk-H6ZZE5M7.js';
|
|
3
|
+
import './chunk-P6AM7I3B.js';
|
|
3
4
|
import './chunk-BHB5UV3J.js';
|
|
4
5
|
export { b as RawSimplePriceResponseSchema, a as SimplePriceResponseSchema } from './chunk-WOO6UGSQ.js';
|
|
5
6
|
export { a as Environment } from './chunk-YJHKZHST.js';
|
|
6
7
|
export { a as parseManifest } from './chunk-A4YEBDMG.js';
|
|
7
8
|
import './chunk-CUVJNZP5.js';
|
|
8
9
|
import './chunk-7U2R34EQ.js';
|
|
9
|
-
export {
|
|
10
|
+
export { b as AlertType, a as RpcMethod } from './chunk-RKFOXZ35.js';
|
|
10
11
|
//# sourceMappingURL=out.js.map
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
package/dist/module.d.cts
CHANGED
package/dist/module.d.ts
CHANGED
package/dist/network-fee.d.cts
CHANGED
package/dist/network-fee.d.ts
CHANGED
package/dist/rpc.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYVYCETG2_cjs = require('./chunk-YVYCETG2.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
Object.defineProperty(exports, '
|
|
7
|
+
Object.defineProperty(exports, 'AlertType', {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkYVYCETG2_cjs.b; }
|
|
10
10
|
});
|
|
11
|
-
Object.defineProperty(exports, '
|
|
11
|
+
Object.defineProperty(exports, 'RpcMethod', {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkYVYCETG2_cjs.a; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=out.js.map
|
|
16
16
|
//# sourceMappingURL=rpc.cjs.map
|