@bitgo-beta/sdk-coin-arbeth 1.0.0-alpha.6 → 1.0.0-alpha.61
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/CHANGELOG.md +691 -0
- package/dist/src/arbeth.d.ts +10 -0
- package/dist/src/arbeth.d.ts.map +1 -1
- package/dist/src/arbeth.js +19 -15
- package/dist/src/arbethToken.d.ts +6 -0
- package/dist/src/arbethToken.d.ts.map +1 -1
- package/dist/src/arbethToken.js +12 -1
- package/dist/src/index.js +6 -2
- package/dist/src/lib/index.js +6 -2
- package/dist/src/lib/resources.d.ts.map +1 -1
- package/dist/src/lib/resources.js +3 -1
- package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
- package/dist/src/lib/transactionBuilder.js +3 -3
- package/dist/src/lib/transferBuilder.d.ts +1 -17
- package/dist/src/lib/transferBuilder.d.ts.map +1 -1
- package/dist/src/lib/transferBuilder.js +3 -23
- package/package.json +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,697 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [21.0.18](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.17...@bitgo/sdk-coin-arbeth@21.0.18) (2024-07-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
9
|
+
|
|
10
|
+
## [21.0.17](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.16...@bitgo/sdk-coin-arbeth@21.0.17) (2024-07-04)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
13
|
+
|
|
14
|
+
## [21.0.16](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.15...@bitgo/sdk-coin-arbeth@21.0.16) (2024-07-02)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
17
|
+
|
|
18
|
+
## [21.0.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.14...@bitgo/sdk-coin-arbeth@21.0.15) (2024-06-27)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
21
|
+
|
|
22
|
+
## [21.0.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.13...@bitgo/sdk-coin-arbeth@21.0.14) (2024-06-26)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
25
|
+
|
|
26
|
+
## [21.0.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.11...@bitgo/sdk-coin-arbeth@21.0.13) (2024-06-21)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
29
|
+
|
|
30
|
+
## [21.0.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.11...@bitgo/sdk-coin-arbeth@21.0.12) (2024-06-20)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
33
|
+
|
|
34
|
+
## [21.0.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.10...@bitgo/sdk-coin-arbeth@21.0.11) (2024-06-14)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
37
|
+
|
|
38
|
+
## [21.0.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.9...@bitgo/sdk-coin-arbeth@21.0.10) (2024-06-11)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
41
|
+
|
|
42
|
+
## [21.0.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.8...@bitgo/sdk-coin-arbeth@21.0.9) (2024-06-05)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
45
|
+
|
|
46
|
+
## [21.0.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.7...@bitgo/sdk-coin-arbeth@21.0.8) (2024-05-31)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
49
|
+
|
|
50
|
+
## [21.0.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.6...@bitgo/sdk-coin-arbeth@21.0.7) (2024-05-28)
|
|
51
|
+
|
|
52
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
53
|
+
|
|
54
|
+
## [21.0.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.5...@bitgo/sdk-coin-arbeth@21.0.6) (2024-05-22)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
57
|
+
|
|
58
|
+
## [21.0.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.4...@bitgo/sdk-coin-arbeth@21.0.5) (2024-05-17)
|
|
59
|
+
|
|
60
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
61
|
+
|
|
62
|
+
## [21.0.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.3...@bitgo/sdk-coin-arbeth@21.0.4) (2024-05-13)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
65
|
+
|
|
66
|
+
## [21.0.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.2...@bitgo/sdk-coin-arbeth@21.0.3) (2024-05-08)
|
|
67
|
+
|
|
68
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
69
|
+
|
|
70
|
+
## [21.0.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.1...@bitgo/sdk-coin-arbeth@21.0.2) (2024-05-01)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
73
|
+
|
|
74
|
+
## [21.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@21.0.0...@bitgo/sdk-coin-arbeth@21.0.1) (2024-04-25)
|
|
75
|
+
|
|
76
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
77
|
+
|
|
78
|
+
# [21.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@20.0.7...@bitgo/sdk-coin-arbeth@21.0.0) (2024-04-24)
|
|
79
|
+
|
|
80
|
+
### Features
|
|
81
|
+
|
|
82
|
+
- **abstract-eth:** support txn bulding for v4 wallet on eth chain ([d8aabea](https://github.com/BitGo/BitGoJS/commit/d8aabead0197072ee5b6c7fb11bd9c379606208d))
|
|
83
|
+
|
|
84
|
+
### BREAKING CHANGES
|
|
85
|
+
|
|
86
|
+
- **abstract-eth:** Made ChainID mandatory for signAndBuild method
|
|
87
|
+
|
|
88
|
+
## [20.0.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@20.0.6...@bitgo/sdk-coin-arbeth@20.0.7) (2024-04-22)
|
|
89
|
+
|
|
90
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
91
|
+
|
|
92
|
+
## [20.0.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@20.0.5...@bitgo/sdk-coin-arbeth@20.0.6) (2024-04-17)
|
|
93
|
+
|
|
94
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
95
|
+
|
|
96
|
+
## [20.0.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@20.0.4...@bitgo/sdk-coin-arbeth@20.0.5) (2024-04-12)
|
|
97
|
+
|
|
98
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
99
|
+
|
|
100
|
+
## [20.0.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@20.0.3...@bitgo/sdk-coin-arbeth@20.0.4) (2024-04-10)
|
|
101
|
+
|
|
102
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
103
|
+
|
|
104
|
+
## [20.0.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@20.0.2...@bitgo/sdk-coin-arbeth@20.0.3) (2024-04-09)
|
|
105
|
+
|
|
106
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
107
|
+
|
|
108
|
+
## [20.0.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@20.0.1...@bitgo/sdk-coin-arbeth@20.0.2) (2024-04-08)
|
|
109
|
+
|
|
110
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
111
|
+
|
|
112
|
+
## [20.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@20.0.0...@bitgo/sdk-coin-arbeth@20.0.1) (2024-04-05)
|
|
113
|
+
|
|
114
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
115
|
+
|
|
116
|
+
# [20.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@19.0.4...@bitgo/sdk-coin-arbeth@20.0.0) (2024-03-28)
|
|
117
|
+
|
|
118
|
+
### Features
|
|
119
|
+
|
|
120
|
+
- **root:** deprecate node 16 ([d3ec624](https://github.com/BitGo/BitGoJS/commit/d3ec6240bddae2a4ab7fa80c4a16efecc36210bd))
|
|
121
|
+
|
|
122
|
+
### BREAKING CHANGES
|
|
123
|
+
|
|
124
|
+
- **root:** Node 16 is no longer supported in bitgojs.
|
|
125
|
+
TICKET: WP-1100
|
|
126
|
+
|
|
127
|
+
## [19.0.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@19.0.3...@bitgo/sdk-coin-arbeth@19.0.4) (2024-03-19)
|
|
128
|
+
|
|
129
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
130
|
+
|
|
131
|
+
## [19.0.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@19.0.2...@bitgo/sdk-coin-arbeth@19.0.3) (2024-03-11)
|
|
132
|
+
|
|
133
|
+
### Bug Fixes
|
|
134
|
+
|
|
135
|
+
- **abstract-eth:** fixes issue related to gasestimate for ethlike ([190bdb2](https://github.com/BitGo/BitGoJS/commit/190bdb2b225fc2fd87fe536aeb77734f102b9984))
|
|
136
|
+
|
|
137
|
+
## [19.0.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@19.0.1...@bitgo/sdk-coin-arbeth@19.0.2) (2024-02-28)
|
|
138
|
+
|
|
139
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
140
|
+
|
|
141
|
+
## [19.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-arbeth@19.0.0...@bitgo/sdk-coin-arbeth@19.0.1) (2024-02-22)
|
|
142
|
+
|
|
143
|
+
**Note:** Version bump only for package @bitgo/sdk-coin-arbeth
|
|
144
|
+
|
|
145
|
+
# 19.0.0 (2024-02-19)
|
|
146
|
+
|
|
147
|
+
### Bug Fixes
|
|
148
|
+
|
|
149
|
+
- **abstract-eth:** change tx encoding method for arb and op ([c11b0dd](https://github.com/BitGo/BitGoJS/commit/c11b0dd4705b0de4aaf9fff26eecf361d78b9f10))
|
|
150
|
+
- **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
|
|
151
|
+
- **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
|
|
152
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
153
|
+
|
|
154
|
+
### Code Refactoring
|
|
155
|
+
|
|
156
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
157
|
+
- **abstract-eth:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
|
|
158
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
159
|
+
|
|
160
|
+
### Features
|
|
161
|
+
|
|
162
|
+
- **abstract-eth:** add abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
|
|
163
|
+
- **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
164
|
+
- **abstract-eth:** add v4 forwarder creation logic ([25faaa3](https://github.com/BitGo/BitGoJS/commit/25faaa33723feb2a4f7ce7209a64841b438a4367))
|
|
165
|
+
- **sdk-coin-arbeth:** add arbeth sdk skeleton ([f86018e](https://github.com/BitGo/BitGoJS/commit/f86018eef56adf22b5539bfb8716175eb1fb152e))
|
|
166
|
+
- **sdk-coin-arbeth:** add arbeth token support ([b55961b](https://github.com/BitGo/BitGoJS/commit/b55961bf474fe09d017c21d3d0169020fff1820f))
|
|
167
|
+
|
|
168
|
+
### BREAKING CHANGES
|
|
169
|
+
|
|
170
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
171
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
172
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
173
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
174
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
175
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
176
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
177
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
178
|
+
and Polygon class returns number instead of string just to align with
|
|
179
|
+
AbstractEthLikeCoin
|
|
180
|
+
Ticket: WIN-1012
|
|
181
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
182
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
183
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
184
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
185
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
186
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
187
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
188
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
189
|
+
and Polygon class returns number instead of string just to align with
|
|
190
|
+
AbstractEthLikeCoin
|
|
191
|
+
Ticket: WIN-1012
|
|
192
|
+
- **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
|
|
193
|
+
a new class AbstractEthLikeNewCoins which will be having both multisig
|
|
194
|
+
and MPC related methods
|
|
195
|
+
|
|
196
|
+
TICKET: WIN-1021
|
|
197
|
+
|
|
198
|
+
# 18.0.0 (2024-01-30)
|
|
199
|
+
|
|
200
|
+
### Bug Fixes
|
|
201
|
+
|
|
202
|
+
- **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
|
|
203
|
+
- **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
|
|
204
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
205
|
+
|
|
206
|
+
### Code Refactoring
|
|
207
|
+
|
|
208
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
209
|
+
- **abstract-eth:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
|
|
210
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
211
|
+
|
|
212
|
+
### Features
|
|
213
|
+
|
|
214
|
+
- **abstract-eth:** add abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
|
|
215
|
+
- **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
216
|
+
- **sdk-coin-arbeth:** add arbeth sdk skeleton ([f86018e](https://github.com/BitGo/BitGoJS/commit/f86018eef56adf22b5539bfb8716175eb1fb152e))
|
|
217
|
+
- **sdk-coin-arbeth:** add arbeth token support ([b55961b](https://github.com/BitGo/BitGoJS/commit/b55961bf474fe09d017c21d3d0169020fff1820f))
|
|
218
|
+
|
|
219
|
+
### BREAKING CHANGES
|
|
220
|
+
|
|
221
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
222
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
223
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
224
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
225
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
226
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
227
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
228
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
229
|
+
and Polygon class returns number instead of string just to align with
|
|
230
|
+
AbstractEthLikeCoin
|
|
231
|
+
Ticket: WIN-1012
|
|
232
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
233
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
234
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
235
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
236
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
237
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
238
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
239
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
240
|
+
and Polygon class returns number instead of string just to align with
|
|
241
|
+
AbstractEthLikeCoin
|
|
242
|
+
Ticket: WIN-1012
|
|
243
|
+
- **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
|
|
244
|
+
a new class AbstractEthLikeNewCoins which will be having both multisig
|
|
245
|
+
and MPC related methods
|
|
246
|
+
|
|
247
|
+
TICKET: WIN-1021
|
|
248
|
+
|
|
249
|
+
# 17.0.0 (2024-01-26)
|
|
250
|
+
|
|
251
|
+
### Bug Fixes
|
|
252
|
+
|
|
253
|
+
- **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
|
|
254
|
+
- **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
|
|
255
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
256
|
+
|
|
257
|
+
### Code Refactoring
|
|
258
|
+
|
|
259
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
260
|
+
- **abstract-eth:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
|
|
261
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
262
|
+
|
|
263
|
+
### Features
|
|
264
|
+
|
|
265
|
+
- **abstract-eth:** add abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
|
|
266
|
+
- **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
267
|
+
- **sdk-coin-arbeth:** add arbeth sdk skeleton ([f86018e](https://github.com/BitGo/BitGoJS/commit/f86018eef56adf22b5539bfb8716175eb1fb152e))
|
|
268
|
+
- **sdk-coin-arbeth:** add arbeth token support ([b55961b](https://github.com/BitGo/BitGoJS/commit/b55961bf474fe09d017c21d3d0169020fff1820f))
|
|
269
|
+
|
|
270
|
+
### BREAKING CHANGES
|
|
271
|
+
|
|
272
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
273
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
274
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
275
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
276
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
277
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
278
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
279
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
280
|
+
and Polygon class returns number instead of string just to align with
|
|
281
|
+
AbstractEthLikeCoin
|
|
282
|
+
Ticket: WIN-1012
|
|
283
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
284
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
285
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
286
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
287
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
288
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
289
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
290
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
291
|
+
and Polygon class returns number instead of string just to align with
|
|
292
|
+
AbstractEthLikeCoin
|
|
293
|
+
Ticket: WIN-1012
|
|
294
|
+
- **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
|
|
295
|
+
a new class AbstractEthLikeNewCoins which will be having both multisig
|
|
296
|
+
and MPC related methods
|
|
297
|
+
|
|
298
|
+
TICKET: WIN-1021
|
|
299
|
+
|
|
300
|
+
# 16.0.0 (2024-01-26)
|
|
301
|
+
|
|
302
|
+
### Bug Fixes
|
|
303
|
+
|
|
304
|
+
- **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
|
|
305
|
+
- **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
|
|
306
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
307
|
+
|
|
308
|
+
### Code Refactoring
|
|
309
|
+
|
|
310
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
311
|
+
- **abstract-eth:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
|
|
312
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
313
|
+
|
|
314
|
+
### Features
|
|
315
|
+
|
|
316
|
+
- **abstract-eth:** add abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
|
|
317
|
+
- **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
318
|
+
- **sdk-coin-arbeth:** add arbeth sdk skeleton ([f86018e](https://github.com/BitGo/BitGoJS/commit/f86018eef56adf22b5539bfb8716175eb1fb152e))
|
|
319
|
+
- **sdk-coin-arbeth:** add arbeth token support ([b55961b](https://github.com/BitGo/BitGoJS/commit/b55961bf474fe09d017c21d3d0169020fff1820f))
|
|
320
|
+
|
|
321
|
+
### BREAKING CHANGES
|
|
322
|
+
|
|
323
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
324
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
325
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
326
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
327
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
328
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
329
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
330
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
331
|
+
and Polygon class returns number instead of string just to align with
|
|
332
|
+
AbstractEthLikeCoin
|
|
333
|
+
Ticket: WIN-1012
|
|
334
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
335
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
336
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
337
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
338
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
339
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
340
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
341
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
342
|
+
and Polygon class returns number instead of string just to align with
|
|
343
|
+
AbstractEthLikeCoin
|
|
344
|
+
Ticket: WIN-1012
|
|
345
|
+
- **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
|
|
346
|
+
a new class AbstractEthLikeNewCoins which will be having both multisig
|
|
347
|
+
and MPC related methods
|
|
348
|
+
|
|
349
|
+
TICKET: WIN-1021
|
|
350
|
+
|
|
351
|
+
# 15.0.0 (2024-01-25)
|
|
352
|
+
|
|
353
|
+
### Bug Fixes
|
|
354
|
+
|
|
355
|
+
- **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
|
|
356
|
+
- **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
|
|
357
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
358
|
+
|
|
359
|
+
### Code Refactoring
|
|
360
|
+
|
|
361
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
362
|
+
- **abstract-eth:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
|
|
363
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
364
|
+
|
|
365
|
+
### Features
|
|
366
|
+
|
|
367
|
+
- **abstract-eth:** add abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
|
|
368
|
+
- **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
369
|
+
- **sdk-coin-arbeth:** add arbeth sdk skeleton ([f86018e](https://github.com/BitGo/BitGoJS/commit/f86018eef56adf22b5539bfb8716175eb1fb152e))
|
|
370
|
+
- **sdk-coin-arbeth:** add arbeth token support ([b55961b](https://github.com/BitGo/BitGoJS/commit/b55961bf474fe09d017c21d3d0169020fff1820f))
|
|
371
|
+
|
|
372
|
+
### BREAKING CHANGES
|
|
373
|
+
|
|
374
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
375
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
376
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
377
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
378
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
379
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
380
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
381
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
382
|
+
and Polygon class returns number instead of string just to align with
|
|
383
|
+
AbstractEthLikeCoin
|
|
384
|
+
Ticket: WIN-1012
|
|
385
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
386
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
387
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
388
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
389
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
390
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
391
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
392
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
393
|
+
and Polygon class returns number instead of string just to align with
|
|
394
|
+
AbstractEthLikeCoin
|
|
395
|
+
Ticket: WIN-1012
|
|
396
|
+
- **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
|
|
397
|
+
a new class AbstractEthLikeNewCoins which will be having both multisig
|
|
398
|
+
and MPC related methods
|
|
399
|
+
|
|
400
|
+
TICKET: WIN-1021
|
|
401
|
+
|
|
402
|
+
# 14.0.0 (2024-01-22)
|
|
403
|
+
|
|
404
|
+
### Bug Fixes
|
|
405
|
+
|
|
406
|
+
- **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
|
|
407
|
+
- **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
|
|
408
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
409
|
+
|
|
410
|
+
### Code Refactoring
|
|
411
|
+
|
|
412
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
413
|
+
- **abstract-eth:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
|
|
414
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
415
|
+
|
|
416
|
+
### Features
|
|
417
|
+
|
|
418
|
+
- **abstract-eth:** add abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
|
|
419
|
+
- **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
420
|
+
- **sdk-coin-arbeth:** add arbeth sdk skeleton ([f86018e](https://github.com/BitGo/BitGoJS/commit/f86018eef56adf22b5539bfb8716175eb1fb152e))
|
|
421
|
+
- **sdk-coin-arbeth:** add arbeth token support ([b55961b](https://github.com/BitGo/BitGoJS/commit/b55961bf474fe09d017c21d3d0169020fff1820f))
|
|
422
|
+
|
|
423
|
+
### BREAKING CHANGES
|
|
424
|
+
|
|
425
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
426
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
427
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
428
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
429
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
430
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
431
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
432
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
433
|
+
and Polygon class returns number instead of string just to align with
|
|
434
|
+
AbstractEthLikeCoin
|
|
435
|
+
Ticket: WIN-1012
|
|
436
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
437
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
438
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
439
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
440
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
441
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
442
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
443
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
444
|
+
and Polygon class returns number instead of string just to align with
|
|
445
|
+
AbstractEthLikeCoin
|
|
446
|
+
Ticket: WIN-1012
|
|
447
|
+
- **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
|
|
448
|
+
a new class AbstractEthLikeNewCoins which will be having both multisig
|
|
449
|
+
and MPC related methods
|
|
450
|
+
|
|
451
|
+
TICKET: WIN-1021
|
|
452
|
+
|
|
453
|
+
# 13.0.0 (2024-01-09)
|
|
454
|
+
|
|
455
|
+
### Bug Fixes
|
|
456
|
+
|
|
457
|
+
- **abstract-eth:** fix chainid related changes ([c3a21c4](https://github.com/BitGo/BitGoJS/commit/c3a21c4cc470f2147c80e235607011bd4896f911))
|
|
458
|
+
- **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
|
|
459
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
460
|
+
|
|
461
|
+
### Code Refactoring
|
|
462
|
+
|
|
463
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
464
|
+
- **abstract-eth:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
|
|
465
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
466
|
+
|
|
467
|
+
### Features
|
|
468
|
+
|
|
469
|
+
- **abstract-eth:** add abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
|
|
470
|
+
- **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
471
|
+
- **sdk-coin-arbeth:** add arbeth sdk skeleton ([f86018e](https://github.com/BitGo/BitGoJS/commit/f86018eef56adf22b5539bfb8716175eb1fb152e))
|
|
472
|
+
- **sdk-coin-arbeth:** add arbeth token support ([b55961b](https://github.com/BitGo/BitGoJS/commit/b55961bf474fe09d017c21d3d0169020fff1820f))
|
|
473
|
+
|
|
474
|
+
### BREAKING CHANGES
|
|
475
|
+
|
|
476
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
477
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
478
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
479
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
480
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
481
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
482
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
483
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
484
|
+
and Polygon class returns number instead of string just to align with
|
|
485
|
+
AbstractEthLikeCoin
|
|
486
|
+
Ticket: WIN-1012
|
|
487
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
488
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
489
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
490
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
491
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
492
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
493
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
494
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
495
|
+
and Polygon class returns number instead of string just to align with
|
|
496
|
+
AbstractEthLikeCoin
|
|
497
|
+
Ticket: WIN-1012
|
|
498
|
+
- **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
|
|
499
|
+
a new class AbstractEthLikeNewCoins which will be having both multisig
|
|
500
|
+
and MPC related methods
|
|
501
|
+
|
|
502
|
+
TICKET: WIN-1021
|
|
503
|
+
|
|
504
|
+
# 12.0.0 (2024-01-03)
|
|
505
|
+
|
|
506
|
+
### Bug Fixes
|
|
507
|
+
|
|
508
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
509
|
+
|
|
510
|
+
### Code Refactoring
|
|
511
|
+
|
|
512
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
513
|
+
- **abstract-eth:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
|
|
514
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
515
|
+
|
|
516
|
+
### Features
|
|
517
|
+
|
|
518
|
+
- **abstract-eth:** add abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
|
|
519
|
+
- **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
520
|
+
- **sdk-coin-arbeth:** add arbeth sdk skeleton ([f86018e](https://github.com/BitGo/BitGoJS/commit/f86018eef56adf22b5539bfb8716175eb1fb152e))
|
|
521
|
+
- **sdk-coin-arbeth:** add arbeth token support ([b55961b](https://github.com/BitGo/BitGoJS/commit/b55961bf474fe09d017c21d3d0169020fff1820f))
|
|
522
|
+
|
|
523
|
+
### BREAKING CHANGES
|
|
524
|
+
|
|
525
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
526
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
527
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
528
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
529
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
530
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
531
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
532
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
533
|
+
and Polygon class returns number instead of string just to align with
|
|
534
|
+
AbstractEthLikeCoin
|
|
535
|
+
Ticket: WIN-1012
|
|
536
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
537
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
538
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
539
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
540
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
541
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
542
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
543
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
544
|
+
and Polygon class returns number instead of string just to align with
|
|
545
|
+
AbstractEthLikeCoin
|
|
546
|
+
Ticket: WIN-1012
|
|
547
|
+
- **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
|
|
548
|
+
a new class AbstractEthLikeNewCoins which will be having both multisig
|
|
549
|
+
and MPC related methods
|
|
550
|
+
|
|
551
|
+
TICKET: WIN-1021
|
|
552
|
+
|
|
553
|
+
# 11.0.0 (2023-12-18)
|
|
554
|
+
|
|
555
|
+
### Bug Fixes
|
|
556
|
+
|
|
557
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
558
|
+
|
|
559
|
+
### Code Refactoring
|
|
560
|
+
|
|
561
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
562
|
+
- **abstract-eth:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
|
|
563
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
564
|
+
|
|
565
|
+
### Features
|
|
566
|
+
|
|
567
|
+
- **abstract-eth:** add abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
|
|
568
|
+
- **sdk-coin-arbeth:** add arbeth sdk skeleton ([f86018e](https://github.com/BitGo/BitGoJS/commit/f86018eef56adf22b5539bfb8716175eb1fb152e))
|
|
569
|
+
- **sdk-coin-arbeth:** add arbeth token support ([b55961b](https://github.com/BitGo/BitGoJS/commit/b55961bf474fe09d017c21d3d0169020fff1820f))
|
|
570
|
+
|
|
571
|
+
### BREAKING CHANGES
|
|
572
|
+
|
|
573
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
574
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
575
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
576
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
577
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
578
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
579
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
580
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
581
|
+
and Polygon class returns number instead of string just to align with
|
|
582
|
+
AbstractEthLikeCoin
|
|
583
|
+
Ticket: WIN-1012
|
|
584
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
585
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
586
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
587
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
588
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
589
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
590
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
591
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
592
|
+
and Polygon class returns number instead of string just to align with
|
|
593
|
+
AbstractEthLikeCoin
|
|
594
|
+
Ticket: WIN-1012
|
|
595
|
+
- **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
|
|
596
|
+
a new class AbstractEthLikeNewCoins which will be having both multisig
|
|
597
|
+
and MPC related methods
|
|
598
|
+
|
|
599
|
+
TICKET: WIN-1021
|
|
600
|
+
|
|
601
|
+
# 10.0.0 (2023-12-12)
|
|
602
|
+
|
|
603
|
+
### Bug Fixes
|
|
604
|
+
|
|
605
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
606
|
+
|
|
607
|
+
### Code Refactoring
|
|
608
|
+
|
|
609
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
610
|
+
- **abstract-eth:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
|
|
611
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
612
|
+
|
|
613
|
+
### Features
|
|
614
|
+
|
|
615
|
+
- **abstract-eth:** add abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
|
|
616
|
+
- **sdk-coin-arbeth:** add arbeth sdk skeleton ([f86018e](https://github.com/BitGo/BitGoJS/commit/f86018eef56adf22b5539bfb8716175eb1fb152e))
|
|
617
|
+
- **sdk-coin-arbeth:** add arbeth token support ([b55961b](https://github.com/BitGo/BitGoJS/commit/b55961bf474fe09d017c21d3d0169020fff1820f))
|
|
618
|
+
|
|
619
|
+
### BREAKING CHANGES
|
|
620
|
+
|
|
621
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
622
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
623
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
624
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
625
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
626
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
627
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
628
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
629
|
+
and Polygon class returns number instead of string just to align with
|
|
630
|
+
AbstractEthLikeCoin
|
|
631
|
+
Ticket: WIN-1012
|
|
632
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
633
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
634
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
635
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
636
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
637
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
638
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
639
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
640
|
+
and Polygon class returns number instead of string just to align with
|
|
641
|
+
AbstractEthLikeCoin
|
|
642
|
+
Ticket: WIN-1012
|
|
643
|
+
- **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
|
|
644
|
+
a new class AbstractEthLikeNewCoins which will be having both multisig
|
|
645
|
+
and MPC related methods
|
|
646
|
+
|
|
647
|
+
TICKET: WIN-1021
|
|
648
|
+
|
|
649
|
+
# 9.0.0 (2023-12-09)
|
|
650
|
+
|
|
651
|
+
### Bug Fixes
|
|
652
|
+
|
|
653
|
+
- **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
|
|
654
|
+
|
|
655
|
+
### Code Refactoring
|
|
656
|
+
|
|
657
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
658
|
+
- **abstract-eth:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
|
|
659
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
660
|
+
|
|
661
|
+
### Features
|
|
662
|
+
|
|
663
|
+
- **abstract-eth:** add abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
|
|
664
|
+
- **sdk-coin-arbeth:** add arbeth sdk skeleton ([f86018e](https://github.com/BitGo/BitGoJS/commit/f86018eef56adf22b5539bfb8716175eb1fb152e))
|
|
665
|
+
- **sdk-coin-arbeth:** add arbeth token support ([b55961b](https://github.com/BitGo/BitGoJS/commit/b55961bf474fe09d017c21d3d0169020fff1820f))
|
|
666
|
+
|
|
667
|
+
### BREAKING CHANGES
|
|
668
|
+
|
|
669
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
670
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
671
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
672
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
673
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
674
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
675
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
676
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
677
|
+
and Polygon class returns number instead of string just to align with
|
|
678
|
+
AbstractEthLikeCoin
|
|
679
|
+
Ticket: WIN-1012
|
|
680
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
681
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
682
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
683
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
684
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
685
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
686
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
687
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
688
|
+
and Polygon class returns number instead of string just to align with
|
|
689
|
+
AbstractEthLikeCoin
|
|
690
|
+
Ticket: WIN-1012
|
|
691
|
+
- **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
|
|
692
|
+
a new class AbstractEthLikeNewCoins which will be having both multisig
|
|
693
|
+
and MPC related methods
|
|
694
|
+
|
|
695
|
+
TICKET: WIN-1021
|
|
696
|
+
|
|
6
697
|
# 8.0.0 (2023-12-05)
|
|
7
698
|
|
|
8
699
|
### Bug Fixes
|
package/dist/src/arbeth.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prettier
|
|
3
|
+
*/
|
|
1
4
|
import { BaseCoin, BitGoBase } from '@bitgo-beta/sdk-core';
|
|
2
5
|
import { BaseCoin as StaticsBaseCoin } from '@bitgo-beta/statics';
|
|
3
6
|
import { AbstractEthLikeNewCoins, TransactionBuilder as EthLikeTransactionBuilder } from '@bitgo-beta/abstract-eth';
|
|
@@ -11,5 +14,12 @@ export declare class Arbeth extends AbstractEthLikeNewCoins {
|
|
|
11
14
|
* @returns {Promise<Object>} response from Arbiscan
|
|
12
15
|
*/
|
|
13
16
|
recoveryBlockchainExplorerQuery(query: Record<string, string>): Promise<Record<string, unknown>>;
|
|
17
|
+
/**
|
|
18
|
+
* Check whether gas limit passed in by user are within our max and min bounds
|
|
19
|
+
* If they are not set, set them to the defaults
|
|
20
|
+
* @param {number} userGasLimit user defined gas limit
|
|
21
|
+
* @returns {number} the gas limit to use for this transaction
|
|
22
|
+
*/
|
|
23
|
+
setGasLimit(userGasLimit?: number): number;
|
|
14
24
|
}
|
|
15
25
|
//# sourceMappingURL=arbeth.d.ts.map
|
package/dist/src/arbeth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arbeth.d.ts","sourceRoot":"","sources":["../../src/arbeth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"arbeth.d.ts","sourceRoot":"","sources":["../../src/arbeth.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAU,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAwB,MAAM,qBAAqB,CAAC;AACxF,OAAO,EACL,uBAAuB,EACvB,kBAAkB,IAAI,yBAAyB,EAEhD,MAAM,0BAA0B,CAAC;AAGlC,qBAAa,MAAO,SAAQ,uBAAuB;IACjD,SAAS,aAAa,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC;IAI/E,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,GAAG,QAAQ;IAI1F,SAAS,CAAC,qBAAqB,IAAI,yBAAyB;IAI5D;;;;OAIG;IACG,+BAA+B,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAMtG;;;;;OAKG;IACH,WAAW,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM;CAW3C"}
|
package/dist/src/arbeth.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.Arbeth = void 0;
|
|
7
4
|
/**
|
|
8
5
|
* @prettier
|
|
9
6
|
*/
|
|
10
|
-
const superagent_1 = __importDefault(require("superagent"));
|
|
11
7
|
const sdk_core_1 = require("@bitgo-beta/sdk-core");
|
|
12
8
|
const statics_1 = require("@bitgo-beta/statics");
|
|
13
9
|
const abstract_eth_1 = require("@bitgo-beta/abstract-eth");
|
|
@@ -28,19 +24,27 @@ class Arbeth extends abstract_eth_1.AbstractEthLikeNewCoins {
|
|
|
28
24
|
* @returns {Promise<Object>} response from Arbiscan
|
|
29
25
|
*/
|
|
30
26
|
async recoveryBlockchainExplorerQuery(query) {
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
const apiToken = sdk_core_1.common.Environments[this.bitgo.getEnv()].arbiscanApiToken;
|
|
28
|
+
const explorerUrl = sdk_core_1.common.Environments[this.bitgo.getEnv()].arbiscanBaseUrl;
|
|
29
|
+
return await (0, abstract_eth_1.recoveryBlockchainExplorerQuery)(query, explorerUrl, apiToken);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check whether gas limit passed in by user are within our max and min bounds
|
|
33
|
+
* If they are not set, set them to the defaults
|
|
34
|
+
* @param {number} userGasLimit user defined gas limit
|
|
35
|
+
* @returns {number} the gas limit to use for this transaction
|
|
36
|
+
*/
|
|
37
|
+
setGasLimit(userGasLimit) {
|
|
38
|
+
if (!userGasLimit) {
|
|
39
|
+
return statics_1.ethGasConfigs.defaultGasLimit;
|
|
38
40
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
const gasLimitMax = statics_1.ethGasConfigs.maximumGasLimit;
|
|
42
|
+
const gasLimitMin = statics_1.ethGasConfigs.newEthLikeCoinsMinGasLimit;
|
|
43
|
+
if (userGasLimit < gasLimitMin || userGasLimit > gasLimitMax) {
|
|
44
|
+
throw new Error(`Gas limit must be between ${gasLimitMin} and ${gasLimitMax}`);
|
|
41
45
|
}
|
|
42
|
-
return
|
|
46
|
+
return userGasLimit;
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
49
|
exports.Arbeth = Arbeth;
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJiZXRoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FyYmV0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTs7R0FFRztBQUNILG1EQUFtRTtBQUNuRSxpREFBd0Y7QUFDeEYsMkRBSWtDO0FBQ2xDLCtCQUEyQztBQUUzQyxNQUFhLE1BQU8sU0FBUSxzQ0FBdUI7SUFDakQsWUFBc0IsS0FBZ0IsRUFBRSxXQUF1QztRQUM3RSxLQUFLLENBQUMsS0FBSyxFQUFFLFdBQVcsQ0FBQyxDQUFDO0lBQzVCLENBQUM7SUFFRCxNQUFNLENBQUMsY0FBYyxDQUFDLEtBQWdCLEVBQUUsV0FBdUM7UUFDN0UsT0FBTyxJQUFJLE1BQU0sQ0FBQyxLQUFLLEVBQUUsV0FBVyxDQUFDLENBQUM7SUFDeEMsQ0FBQztJQUVTLHFCQUFxQjtRQUM3QixPQUFPLElBQUksd0JBQWtCLENBQUMsZUFBSyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsWUFBWSxFQUFFLENBQUMsQ0FBQyxDQUFDO0lBQ2hFLENBQUM7SUFFRDs7OztPQUlHO0lBQ0gsS0FBSyxDQUFDLCtCQUErQixDQUFDLEtBQTZCO1FBQ2pFLE1BQU0sUUFBUSxHQUFHLGlCQUFNLENBQUMsWUFBWSxDQUFDLElBQUksQ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lckdhc0xpbWl0KSB7XG4gICAgICByZXR1cm4gZXRoR2FzQ29uZmlncy5kZWZhdWx0R2FzTGltaXQ7XG4gICAgfVxuICAgIGNvbnN0IGdhc0xpbWl0TWF4ID0gZXRoR2FzQ29uZmlncy5tYXhpbXVtR2FzTGltaXQ7XG4gICAgY29uc3QgZ2FzTGltaXRNaW4gPSBldGhHYXNDb25maWdzLm5ld0V0aExpa2VDb2luc01pbkdhc0xpbWl0O1xuICAgIGlmICh1c2VyR2FzTGltaXQgPCBnYXNMaW1pdE1pbiB8fCB1c2VyR2FzTGltaXQgPiBnYXNMaW1pdE1heCkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKGBHYXMgbGltaXQgbXVzdCBiZSBiZXR3ZWVuICR7Z2FzTGltaXRNaW59IGFuZCAke2dhc0xpbWl0TWF4fWApO1xuICAgIH1cbiAgICByZXR1cm4gdXNlckdhc0xpbWl0O1xuICB9XG59XG4iXX0=
|
|
@@ -13,6 +13,12 @@ export declare class ArbethToken extends EthLikeToken {
|
|
|
13
13
|
static createTokenConstructor(config: EthLikeTokenConfig): CoinConstructor;
|
|
14
14
|
static createTokenConstructors(): NamedCoinConstructor[];
|
|
15
15
|
protected getTransactionBuilder(): TransactionBuilder;
|
|
16
|
+
/**
|
|
17
|
+
* Make a query to Arbiscan for information such as balance, token balance, solidity calls
|
|
18
|
+
* @param {Object} query key-value pairs of parameters to append after /api
|
|
19
|
+
* @returns {Promise<Object>} response from Arbiscan
|
|
20
|
+
*/
|
|
21
|
+
recoveryBlockchainExplorerQuery(query: Record<string, string>): Promise<Record<string, unknown>>;
|
|
16
22
|
getFullName(): string;
|
|
17
23
|
}
|
|
18
24
|
//# sourceMappingURL=arbethToken.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arbethToken.d.ts","sourceRoot":"","sources":["../../src/arbethToken.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAS,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"arbethToken.d.ts","sourceRoot":"","sources":["../../src/arbethToken.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAS,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,oBAAoB,EAAU,MAAM,sBAAsB,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,YAAY,EAAmC,MAAM,0BAA0B,CAAC;AAEpG,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,qBAAa,WAAY,SAAQ,YAAY;IAC3C,SAAgB,WAAW,EAAE,kBAAkB,CAAC;IAChD,MAAM,CAAC,SAAS,EAAE,SAAS,CAGzB;gBACU,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,kBAAkB;IAG7D,MAAM,CAAC,sBAAsB,CAAC,MAAM,EAAE,kBAAkB,GAAG,eAAe;IAI1E,MAAM,CAAC,uBAAuB,IAAI,oBAAoB,EAAE;IAIxD,SAAS,CAAC,qBAAqB,IAAI,kBAAkB;IAIrD;;;;OAIG;IACG,+BAA+B,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAMtG,WAAW,IAAI,MAAM;CAGtB"}
|
package/dist/src/arbethToken.js
CHANGED
|
@@ -5,6 +5,7 @@ exports.ArbethToken = void 0;
|
|
|
5
5
|
* @prettier
|
|
6
6
|
*/
|
|
7
7
|
const statics_1 = require("@bitgo-beta/statics");
|
|
8
|
+
const sdk_core_1 = require("@bitgo-beta/sdk-core");
|
|
8
9
|
const abstract_eth_1 = require("@bitgo-beta/abstract-eth");
|
|
9
10
|
const lib_1 = require("./lib");
|
|
10
11
|
class ArbethToken extends abstract_eth_1.EthLikeToken {
|
|
@@ -20,6 +21,16 @@ class ArbethToken extends abstract_eth_1.EthLikeToken {
|
|
|
20
21
|
getTransactionBuilder() {
|
|
21
22
|
return new lib_1.TransactionBuilder(statics_1.coins.get(this.getBaseChain()));
|
|
22
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Make a query to Arbiscan for information such as balance, token balance, solidity calls
|
|
26
|
+
* @param {Object} query key-value pairs of parameters to append after /api
|
|
27
|
+
* @returns {Promise<Object>} response from Arbiscan
|
|
28
|
+
*/
|
|
29
|
+
async recoveryBlockchainExplorerQuery(query) {
|
|
30
|
+
const apiToken = sdk_core_1.common.Environments[this.bitgo.getEnv()].arbiscanApiToken;
|
|
31
|
+
const explorerUrl = sdk_core_1.common.Environments[this.bitgo.getEnv()].arbiscanBaseUrl;
|
|
32
|
+
return await (0, abstract_eth_1.recoveryBlockchainExplorerQuery)(query, explorerUrl, apiToken);
|
|
33
|
+
}
|
|
23
34
|
getFullName() {
|
|
24
35
|
return 'Arbeth Token';
|
|
25
36
|
}
|
|
@@ -29,4 +40,4 @@ ArbethToken.coinNames = {
|
|
|
29
40
|
Mainnet: 'arbeth',
|
|
30
41
|
Testnet: 'tarbeth',
|
|
31
42
|
};
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJiZXRoVG9rZW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXJiZXRoVG9rZW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUE7O0dBRUc7QUFDSCxpREFBZ0U7QUFDaEUsbURBQWdHO0FBQ2hHLDJEQUFvRztBQUVwRywrQkFBMkM7QUFHM0MsTUFBYSxXQUFZLFNBQVEsMkJBQVk7SUFNM0MsWUFBWSxLQUFnQixFQUFFLFdBQStCO1FBQzNELEtBQUssQ0FBQyxL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wgPSBjb21tb24uRW52aXJvbm1lbnRzW3RoaXMuYml0Z28uZ2V0RW52KCldLmFyYmlzY2FuQmFzZVVybDtcbiAgICByZXR1cm4gYXdhaXQgcmVjb3ZlcnlCbG9ja2NoYWluRXhwbG9yZXJRdWVyeShxdWVyeSwgZXhwbG9yZXJVcmwgYXMgc3RyaW5nLCBhcGlUb2tlbik7XG4gIH1cblxuICBnZXRGdWxsTmFtZSgpOiBzdHJpbmcge1xuICAgIHJldHVybiAnQXJiZXRoIFRva2VuJztcbiAgfVxufVxuIl19
|
package/dist/src/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -15,4 +19,4 @@ __exportStar(require("./arbeth"), exports);
|
|
|
15
19
|
__exportStar(require("./tarbeth"), exports);
|
|
16
20
|
__exportStar(require("./arbethToken"), exports);
|
|
17
21
|
__exportStar(require("./register"), exports);
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHdDQUFzQjtBQUN0QiwyQ0FBeUI7QUFDekIsNENBQTBCO0FBQzFCLGdEQUE4QjtBQUM5Qiw2Q0FBMkIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYic7XG5leHBvcnQgKiBmcm9tICcuL2FyYmV0aCc7XG5leHBvcnQgKiBmcm9tICcuL3RhcmJldGgnO1xuZXhwb3J0ICogZnJvbSAnLi9hcmJldGhUb2tlbic7XG5leHBvcnQgKiBmcm9tICcuL3JlZ2lzdGVyJztcbiJdfQ==
|
package/dist/src/lib/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -33,4 +37,4 @@ var abstract_eth_1 = require("@bitgo-beta/abstract-eth");
|
|
|
33
37
|
Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return abstract_eth_1.Transaction; } });
|
|
34
38
|
Object.defineProperty(exports, "KeyPair", { enumerable: true, get: function () { return abstract_eth_1.KeyPair; } });
|
|
35
39
|
__exportStar(require("./walletUtil"), exports);
|
|
36
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsK0NBQWlDO0FBS3hCLHNCQUFLO0FBSGQsMkRBQTBEO0FBQWpELHdIQUFBLGtCQUFrQixPQUFBO0FBQzNCLHFEQUFvRDtBQUEzQyxrSEFBQSxlQUFlLE9BQUE7QUFDeEIseURBQWdFO0FBQXZELDJHQUFBLFdBQVcsT0FBQTtBQUFFLHVHQUFBLE9BQU8sT0FBQTtBQUU3QiwrQ0FBNkIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBVdGlscyBmcm9tICcuL3V0aWxzJztcblxuZXhwb3J0IHsgVHJhbnNhY3Rpb25CdWlsZGVyIH0gZnJvbSAnLi90cmFuc2FjdGlvbkJ1aWxkZXInO1xuZXhwb3J0IHsgVHJhbnNmZXJCdWlsZGVyIH0gZnJvbSAnLi90cmFuc2ZlckJ1aWxkZXInO1xuZXhwb3J0IHsgVHJhbnNhY3Rpb24sIEtleVBhaXIgfSBmcm9tICdAYml0Z28tYmV0YS9hYnN0cmFjdC1ldGgnO1xuZXhwb3J0IHsgVXRpbHMgfTtcbmV4cG9ydCAqIGZyb20gJy4vd2FsbGV0VXRpbCc7XG4iXX0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/lib/resources.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAGhD,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../src/lib/resources.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAGhD,eAAO,MAAM,aAAa,gBAWzB,CAAC;AAEF,eAAO,MAAM,aAAa,gBAWzB,CAAC"}
|
|
@@ -13,6 +13,7 @@ exports.testnetCommon = common_1.default.custom({
|
|
|
13
13
|
}, {
|
|
14
14
|
baseChain: 'sepolia',
|
|
15
15
|
hardfork: 'london',
|
|
16
|
+
eips: [1559],
|
|
16
17
|
});
|
|
17
18
|
exports.mainnetCommon = common_1.default.custom({
|
|
18
19
|
name: 'arbitrum one',
|
|
@@ -21,5 +22,6 @@ exports.mainnetCommon = common_1.default.custom({
|
|
|
21
22
|
}, {
|
|
22
23
|
baseChain: 'mainnet',
|
|
23
24
|
hardfork: 'london',
|
|
25
|
+
eips: [1559],
|
|
24
26
|
});
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9yZXNvdXJjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsZ0VBQWdEO0FBQ2hELGlEQUE2RDtBQUVoRCxRQUFBLGFBQWEsR0FBRyxnQkFBYyxDQUFDLE1BQU0sQ0FDaEQ7SUFDRSxJQUFJLEVBQUUsa0JBQWtCO0lBQ3hCLFNBQVMsRUFBRyxlQUFLLENBQUMsR0FBRyxDQUFDLFNBQVMsQ0FBQyxDQUFDLE9BQTJCLENBQUMsT0FBTztJQUNwRSxPQUFPLEVBQUcsZUFBSyxDQUFDLEdBQUcsQ0FBQyxTQUFTLENBQUMsQ0FBQyxPQUEyQixDQUFDLE9BQU87Q0FDbkUsRUFDRDtJQUNFLFNBQVMsRUFBRSxTQUFTO0lBQ3BCLFFBQVEsRUFBRSxRQUFRO0lBQ2xCLElBQUksRUFBRSxDQUFDLElBQUksQ0FBQztDQUNiLENBQ0YsQ0FBQztBQUVXLFFBQUEsYUFBYSxHQUFHLGdCQUFjLENBQUMsTUFBTSxDQUNoRDtJQUNFLElBQUksRUFBRSxjQUFjO0lBQ3BCLFNBQVMsRUFBRyxlQUF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yBFdGhlcmV1bU5ldHdvcmspLmNoYWluSWQsXG4gICAgY2hhaW5JZDogKGNvaW5zLmdldCgnYXJiZXRoJykubmV0d29yayBhcyBFdGhlcmV1bU5ldHdvcmspLmNoYWluSWQsXG4gIH0sXG4gIHtcbiAgICBiYXNlQ2hhaW46ICdtYWlubmV0JyxcbiAgICBoYXJkZm9yazogJ2xvbmRvbicsXG4gICAgZWlwczogWzE1NTldLFxuICB9XG4pO1xuIl19
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionBuilder.d.ts","sourceRoot":"","sources":["../../../src/lib/transactionBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAwB,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAEjH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"transactionBuilder.d.ts","sourceRoot":"","sources":["../../../src/lib/transactionBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAwB,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAEjH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,qBAAa,kBAAmB,SAAQ,yBAAyB;IAC/D,SAAS,CAAC,SAAS,EAAG,eAAe,CAAC;gBAE1B,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC;IAO7C,kBAAkB;IAClB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe;IAUxC,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAG7B"}
|
|
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TransactionBuilder = void 0;
|
|
4
4
|
const sdk_core_1 = require("@bitgo-beta/sdk-core");
|
|
5
5
|
const abstract_eth_1 = require("@bitgo-beta/abstract-eth");
|
|
6
|
-
const utils_1 = require("./utils");
|
|
7
6
|
const transferBuilder_1 = require("./transferBuilder");
|
|
7
|
+
const utils_1 = require("./utils");
|
|
8
8
|
const walletUtil_1 = require("./walletUtil");
|
|
9
9
|
class TransactionBuilder extends abstract_eth_1.TransactionBuilder {
|
|
10
10
|
constructor(_coinConfig) {
|
|
11
11
|
super(_coinConfig);
|
|
12
|
-
this._common = utils_1.getCommon(this._coinConfig.network.type);
|
|
12
|
+
this._common = (0, utils_1.getCommon)(this._coinConfig.network.type);
|
|
13
13
|
this.transaction = new abstract_eth_1.Transaction(this._coinConfig, this._common);
|
|
14
14
|
this._walletSimpleByteCode = walletUtil_1.walletSimpleByteCode;
|
|
15
15
|
}
|
|
@@ -28,4 +28,4 @@ class TransactionBuilder extends abstract_eth_1.TransactionBuilder {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
exports.TransactionBuilder = TransactionBuilder;
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb25CdWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi90cmFuc2FjdGlvbkJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsbURBQThFO0FBQzlFLDJEQUFpSDtBQUVqSCx1REFBb0Q7QUFDcEQsbUNBQW9DO0FBQ3BDLDZDQUFvRDtBQUVwRCxNQUFhLGtCQUFtQixTQUFRLGlDQUF5QjtJQUcvRCxZQUFZLFdBQWlDO1FBQzNDLEtBQUssQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUNuQixJQUFJLENBQUMsT0FBTyxHQUFHLElBQUEsaUJBQVMsRUFBQyxJQUFJ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TtcbiAgICB9XG4gICAgaWYgKCF0aGlzLl90cmFuc2Zlcikge1xuICAgICAgdGhpcy5fdHJhbnNmZXIgPSBuZXcgVHJhbnNmZXJCdWlsZGVyKGRhdGEpO1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy5fdHJhbnNmZXI7XG4gIH1cblxuICBwdWJsaWNLZXkoa2V5OiBzdHJpbmcpOiB2b2lkIHtcbiAgICB0aGlzLl9zb3VyY2VLZXlQYWlyID0gbmV3IEtleVBhaXIoeyBwdWI6IGtleSB9KTtcbiAgfVxufVxuIl19
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare class TransferBuilder extends EthTransferBuilder {
|
|
3
|
-
/**
|
|
4
|
-
* Get the prefix used in generating an operation hash for sending native coins
|
|
5
|
-
* See https://github.com/BitGo/eth-multisig-v4/blob/master/contracts/coins/ArbethWalletSimple.sol
|
|
6
|
-
*
|
|
7
|
-
* @returns the string prefix
|
|
8
|
-
*/
|
|
9
|
-
protected getNativeOperationHashPrefix(): string;
|
|
10
|
-
/**
|
|
11
|
-
* Get the prefix used in generating an operation hash for sending tokens
|
|
12
|
-
* See https://github.com/BitGo/eth-multisig-v4/blob/master/contracts/coins/ArbethWalletSimple.sol
|
|
13
|
-
*
|
|
14
|
-
* @returns the string prefix
|
|
15
|
-
*/
|
|
16
|
-
protected getTokenOperationHashPrefix(): string;
|
|
17
|
-
}
|
|
1
|
+
export { TransferBuilder } from '@bitgo-beta/abstract-eth';
|
|
18
2
|
//# sourceMappingURL=transferBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferBuilder.d.ts","sourceRoot":"","sources":["../../../src/lib/transferBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"transferBuilder.d.ts","sourceRoot":"","sources":["../../../src/lib/transferBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TransferBuilder = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* Get the prefix used in generating an operation hash for sending native coins
|
|
8
|
-
* See https://github.com/BitGo/eth-multisig-v4/blob/master/contracts/coins/ArbethWalletSimple.sol
|
|
9
|
-
*
|
|
10
|
-
* @returns the string prefix
|
|
11
|
-
*/
|
|
12
|
-
getNativeOperationHashPrefix() {
|
|
13
|
-
return 'ARBETH';
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Get the prefix used in generating an operation hash for sending tokens
|
|
17
|
-
* See https://github.com/BitGo/eth-multisig-v4/blob/master/contracts/coins/ArbethWalletSimple.sol
|
|
18
|
-
*
|
|
19
|
-
* @returns the string prefix
|
|
20
|
-
*/
|
|
21
|
-
getTokenOperationHashPrefix() {
|
|
22
|
-
return 'ARBETH-ERC20';
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
exports.TransferBuilder = TransferBuilder;
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXJCdWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi90cmFuc2ZlckJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkRBQWlGO0FBRWpGLE1BQWEsZUFBZ0IsU0FBUSw4QkFBa0I7SUFDckQ7Ozs7O09BS0c7SUFDTyw0QkFBNEI7UUFDcEMsT0FBTyxRQUFRLENBQUM7SUFDbEIsQ0FBQztJQUVEOzs7OztPQUtHO0lBQ08sMkJBQTJCO1FBQ25DLE9BQU8sY0FBYyxDQUFDO0lBQ3hCLENBQUM7Q0FDRjtBQXBCRCwwQ0FvQ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G4iXX0=
|
|
4
|
+
var abstract_eth_1 = require("@bitgo-beta/abstract-eth");
|
|
5
|
+
Object.defineProperty(exports, "TransferBuilder", { enumerable: true, get: function () { return abstract_eth_1.TransferBuilder; } });
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXJCdWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi90cmFuc2ZlckJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEseURBQTJEO0FBQWxELCtHQUFBLGVBQWUsT0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IFRyYW5zZmVyQnVpbGRlciB9IGZyb20gJ0BiaXRnby1iZXRhL2Fic3RyYWN0LWV0aCc7XG4iXX0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo-beta/sdk-coin-arbeth",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.61",
|
|
4
4
|
"description": "BitGo SDK coin library for Arbitrum",
|
|
5
5
|
"main": "./dist/src/index.js",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"author": "BitGo SDK Team <sdkteam@bitgo.com>",
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=
|
|
21
|
+
"node": ">=18 <21"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
@@ -40,17 +40,18 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@bitgo-beta/abstract-eth": "1.2.3-alpha.
|
|
44
|
-
"@bitgo-beta/sdk-core": "2.4.1-alpha.
|
|
45
|
-
"@bitgo-beta/statics": "10.0.1-alpha.
|
|
46
|
-
"@bitgo-beta/utxo-lib": "4.0.1-alpha.
|
|
43
|
+
"@bitgo-beta/abstract-eth": "1.2.3-alpha.149",
|
|
44
|
+
"@bitgo-beta/sdk-core": "2.4.1-alpha.149",
|
|
45
|
+
"@bitgo-beta/statics": "10.0.1-alpha.149",
|
|
46
|
+
"@bitgo-beta/utxo-lib": "4.0.1-alpha.149",
|
|
47
47
|
"@ethereumjs/common": "^2.6.5",
|
|
48
|
-
"
|
|
48
|
+
"ethereumjs-abi": "^0.6.5",
|
|
49
|
+
"ethereumjs-util": "7.1.5"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
|
-
"@bitgo-beta/sdk-api": "1.6.1-alpha.
|
|
52
|
-
"@bitgo-beta/sdk-test": "^
|
|
52
|
+
"@bitgo-beta/sdk-api": "1.6.1-alpha.149",
|
|
53
|
+
"@bitgo-beta/sdk-test": "^8.0.31",
|
|
53
54
|
"secp256k1": "5.0.0"
|
|
54
55
|
},
|
|
55
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "eb1b8376ba51bc47de07667127171ff77c9929b3"
|
|
56
57
|
}
|