@bitgo-beta/sdk-coin-ethw 1.0.1-beta.94 → 1.0.1-beta.940

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 CHANGED
@@ -3,6 +3,877 @@
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
+ ## [20.0.65](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.64...@bitgo/sdk-coin-ethw@20.0.65) (2025-02-11)
7
+
8
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
9
+
10
+ ## [20.0.64](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.63...@bitgo/sdk-coin-ethw@20.0.64) (2025-02-05)
11
+
12
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
13
+
14
+ ## [20.0.63](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.62...@bitgo/sdk-coin-ethw@20.0.63) (2025-01-28)
15
+
16
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
17
+
18
+ ## [20.0.62](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.61...@bitgo/sdk-coin-ethw@20.0.62) (2025-01-23)
19
+
20
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
21
+
22
+ ## [20.0.61](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.60...@bitgo/sdk-coin-ethw@20.0.61) (2025-01-23)
23
+
24
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
25
+
26
+ ## [20.0.60](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.59...@bitgo/sdk-coin-ethw@20.0.60) (2025-01-20)
27
+
28
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
29
+
30
+ ## [20.0.59](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.58...@bitgo/sdk-coin-ethw@20.0.59) (2025-01-15)
31
+
32
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
33
+
34
+ ## [20.0.58](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.57...@bitgo/sdk-coin-ethw@20.0.58) (2025-01-09)
35
+
36
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
37
+
38
+ ## [20.0.57](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.56...@bitgo/sdk-coin-ethw@20.0.57) (2025-01-03)
39
+
40
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
41
+
42
+ ## [20.0.56](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.55...@bitgo/sdk-coin-ethw@20.0.56) (2024-12-24)
43
+
44
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
45
+
46
+ ## [20.0.55](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.54...@bitgo/sdk-coin-ethw@20.0.55) (2024-12-19)
47
+
48
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
49
+
50
+ ## [20.0.54](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.52...@bitgo/sdk-coin-ethw@20.0.54) (2024-12-17)
51
+
52
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
53
+
54
+ ## [20.0.53](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.52...@bitgo/sdk-coin-ethw@20.0.53) (2024-12-17)
55
+
56
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
57
+
58
+ ## [20.0.52](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.51...@bitgo/sdk-coin-ethw@20.0.52) (2024-12-12)
59
+
60
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
61
+
62
+ ## [20.0.51](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.50...@bitgo/sdk-coin-ethw@20.0.51) (2024-12-11)
63
+
64
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
65
+
66
+ ## [20.0.50](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.49...@bitgo/sdk-coin-ethw@20.0.50) (2024-12-03)
67
+
68
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
69
+
70
+ ## [20.0.49](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.48...@bitgo/sdk-coin-ethw@20.0.49) (2024-11-26)
71
+
72
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
73
+
74
+ ## [20.0.48](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.47...@bitgo/sdk-coin-ethw@20.0.48) (2024-11-21)
75
+
76
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
77
+
78
+ ## [20.0.47](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.45...@bitgo/sdk-coin-ethw@20.0.47) (2024-11-19)
79
+
80
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
81
+
82
+ ## [20.0.46](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.45...@bitgo/sdk-coin-ethw@20.0.46) (2024-11-14)
83
+
84
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
85
+
86
+ ## [20.0.45](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.44...@bitgo/sdk-coin-ethw@20.0.45) (2024-11-08)
87
+
88
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
89
+
90
+ ## [20.0.44](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.43...@bitgo/sdk-coin-ethw@20.0.44) (2024-11-07)
91
+
92
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
93
+
94
+ ## [20.0.43](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.42...@bitgo/sdk-coin-ethw@20.0.43) (2024-11-01)
95
+
96
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
97
+
98
+ ## [20.0.42](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.41...@bitgo/sdk-coin-ethw@20.0.42) (2024-10-22)
99
+
100
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
101
+
102
+ ## [20.0.41](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.40...@bitgo/sdk-coin-ethw@20.0.41) (2024-10-15)
103
+
104
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
105
+
106
+ ## [20.0.40](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.39...@bitgo/sdk-coin-ethw@20.0.40) (2024-10-08)
107
+
108
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
109
+
110
+ ## [20.0.39](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.38...@bitgo/sdk-coin-ethw@20.0.39) (2024-10-04)
111
+
112
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
113
+
114
+ ## [20.0.38](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.37...@bitgo/sdk-coin-ethw@20.0.38) (2024-09-24)
115
+
116
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
117
+
118
+ ## [20.0.37](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.36...@bitgo/sdk-coin-ethw@20.0.37) (2024-09-19)
119
+
120
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
121
+
122
+ ## [20.0.36](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.35...@bitgo/sdk-coin-ethw@20.0.36) (2024-09-16)
123
+
124
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
125
+
126
+ ## [20.0.35](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.34...@bitgo/sdk-coin-ethw@20.0.35) (2024-09-10)
127
+
128
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
129
+
130
+ ## [20.0.34](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.33...@bitgo/sdk-coin-ethw@20.0.34) (2024-09-03)
131
+
132
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
133
+
134
+ ## [20.0.33](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.32...@bitgo/sdk-coin-ethw@20.0.33) (2024-08-29)
135
+
136
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
137
+
138
+ ## [20.0.32](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.31...@bitgo/sdk-coin-ethw@20.0.32) (2024-08-27)
139
+
140
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
141
+
142
+ ## [20.0.31](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.29...@bitgo/sdk-coin-ethw@20.0.31) (2024-08-20)
143
+
144
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
145
+
146
+ ## [20.0.30](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.29...@bitgo/sdk-coin-ethw@20.0.30) (2024-08-13)
147
+
148
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
149
+
150
+ ## [20.0.29](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.28...@bitgo/sdk-coin-ethw@20.0.29) (2024-08-07)
151
+
152
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
153
+
154
+ ## [20.0.28](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.27...@bitgo/sdk-coin-ethw@20.0.28) (2024-07-30)
155
+
156
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
157
+
158
+ ## [20.0.27](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.26...@bitgo/sdk-coin-ethw@20.0.27) (2024-07-24)
159
+
160
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
161
+
162
+ ## [20.0.26](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.25...@bitgo/sdk-coin-ethw@20.0.26) (2024-07-16)
163
+
164
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
165
+
166
+ ## [20.0.25](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.24...@bitgo/sdk-coin-ethw@20.0.25) (2024-07-04)
167
+
168
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
169
+
170
+ ## [20.0.24](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.23...@bitgo/sdk-coin-ethw@20.0.24) (2024-07-02)
171
+
172
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
173
+
174
+ ## [20.0.23](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.22...@bitgo/sdk-coin-ethw@20.0.23) (2024-06-27)
175
+
176
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
177
+
178
+ ## [20.0.22](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.21...@bitgo/sdk-coin-ethw@20.0.22) (2024-06-26)
179
+
180
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
181
+
182
+ ## [20.0.21](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.19...@bitgo/sdk-coin-ethw@20.0.21) (2024-06-21)
183
+
184
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
185
+
186
+ ## [20.0.20](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.19...@bitgo/sdk-coin-ethw@20.0.20) (2024-06-20)
187
+
188
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
189
+
190
+ ## [20.0.19](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.18...@bitgo/sdk-coin-ethw@20.0.19) (2024-06-14)
191
+
192
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
193
+
194
+ ## [20.0.18](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.17...@bitgo/sdk-coin-ethw@20.0.18) (2024-06-11)
195
+
196
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
197
+
198
+ ## [20.0.17](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.16...@bitgo/sdk-coin-ethw@20.0.17) (2024-06-05)
199
+
200
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
201
+
202
+ ## [20.0.16](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.15...@bitgo/sdk-coin-ethw@20.0.16) (2024-05-31)
203
+
204
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
205
+
206
+ ## [20.0.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.14...@bitgo/sdk-coin-ethw@20.0.15) (2024-05-28)
207
+
208
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
209
+
210
+ ## [20.0.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.13...@bitgo/sdk-coin-ethw@20.0.14) (2024-05-22)
211
+
212
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
213
+
214
+ ## [20.0.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.12...@bitgo/sdk-coin-ethw@20.0.13) (2024-05-17)
215
+
216
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
217
+
218
+ ## [20.0.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.11...@bitgo/sdk-coin-ethw@20.0.12) (2024-05-13)
219
+
220
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
221
+
222
+ ## [20.0.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.10...@bitgo/sdk-coin-ethw@20.0.11) (2024-05-08)
223
+
224
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
225
+
226
+ ## [20.0.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.9...@bitgo/sdk-coin-ethw@20.0.10) (2024-05-01)
227
+
228
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
229
+
230
+ ## [20.0.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.8...@bitgo/sdk-coin-ethw@20.0.9) (2024-04-25)
231
+
232
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
233
+
234
+ ## [20.0.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.7...@bitgo/sdk-coin-ethw@20.0.8) (2024-04-24)
235
+
236
+ ### Bug Fixes
237
+
238
+ - superagent upgrade to 9.0 ([6e9aa43](https://github.com/BitGo/BitGoJS/commit/6e9aa43a6d2999298abd450ceb168d664b8b926d))
239
+
240
+ ## [20.0.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.6...@bitgo/sdk-coin-ethw@20.0.7) (2024-04-22)
241
+
242
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
243
+
244
+ ## [20.0.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.5...@bitgo/sdk-coin-ethw@20.0.6) (2024-04-17)
245
+
246
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
247
+
248
+ ## [20.0.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.4...@bitgo/sdk-coin-ethw@20.0.5) (2024-04-12)
249
+
250
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
251
+
252
+ ## [20.0.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.3...@bitgo/sdk-coin-ethw@20.0.4) (2024-04-10)
253
+
254
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
255
+
256
+ ## [20.0.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.2...@bitgo/sdk-coin-ethw@20.0.3) (2024-04-09)
257
+
258
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
259
+
260
+ ## [20.0.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.1...@bitgo/sdk-coin-ethw@20.0.2) (2024-04-08)
261
+
262
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
263
+
264
+ ## [20.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@20.0.0...@bitgo/sdk-coin-ethw@20.0.1) (2024-04-05)
265
+
266
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
267
+
268
+ # [20.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@19.0.4...@bitgo/sdk-coin-ethw@20.0.0) (2024-03-28)
269
+
270
+ ### Features
271
+
272
+ - **root:** deprecate node 16 ([d3ec624](https://github.com/BitGo/BitGoJS/commit/d3ec6240bddae2a4ab7fa80c4a16efecc36210bd))
273
+
274
+ ### BREAKING CHANGES
275
+
276
+ - **root:** Node 16 is no longer supported in bitgojs.
277
+ TICKET: WP-1100
278
+
279
+ ## [19.0.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@19.0.3...@bitgo/sdk-coin-ethw@19.0.4) (2024-03-19)
280
+
281
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
282
+
283
+ ## [19.0.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@19.0.2...@bitgo/sdk-coin-ethw@19.0.3) (2024-03-11)
284
+
285
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
286
+
287
+ ## [19.0.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@19.0.1...@bitgo/sdk-coin-ethw@19.0.2) (2024-02-28)
288
+
289
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
290
+
291
+ ## [19.0.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@19.0.0...@bitgo/sdk-coin-ethw@19.0.1) (2024-02-22)
292
+
293
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
294
+
295
+ # [19.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@19.0.0) (2024-02-19)
296
+
297
+ ### Bug Fixes
298
+
299
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
300
+
301
+ ### Code Refactoring
302
+
303
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
304
+
305
+ ### BREAKING CHANGES
306
+
307
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
308
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
309
+ getCustomChainName method is removed from Polygon class because a common
310
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
311
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
312
+ and needs to be passed to derive the Eth common object from the chainId.
313
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
314
+ it can be used for other EthLike coins. getBaseFactor method in Eth
315
+ and Polygon class returns number instead of string just to align with
316
+ AbstractEthLikeCoin
317
+ Ticket: WIN-1012
318
+
319
+ # [18.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@18.0.0) (2024-01-30)
320
+
321
+ ### Bug Fixes
322
+
323
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
324
+
325
+ ### Code Refactoring
326
+
327
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
328
+
329
+ ### BREAKING CHANGES
330
+
331
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
332
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
333
+ getCustomChainName method is removed from Polygon class because a common
334
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
335
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
336
+ and needs to be passed to derive the Eth common object from the chainId.
337
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
338
+ it can be used for other EthLike coins. getBaseFactor method in Eth
339
+ and Polygon class returns number instead of string just to align with
340
+ AbstractEthLikeCoin
341
+ Ticket: WIN-1012
342
+
343
+ # [17.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@17.0.0) (2024-01-26)
344
+
345
+ ### Bug Fixes
346
+
347
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
348
+
349
+ ### Code Refactoring
350
+
351
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
352
+
353
+ ### BREAKING CHANGES
354
+
355
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
356
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
357
+ getCustomChainName method is removed from Polygon class because a common
358
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
359
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
360
+ and needs to be passed to derive the Eth common object from the chainId.
361
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
362
+ it can be used for other EthLike coins. getBaseFactor method in Eth
363
+ and Polygon class returns number instead of string just to align with
364
+ AbstractEthLikeCoin
365
+ Ticket: WIN-1012
366
+
367
+ # [16.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@16.0.0) (2024-01-26)
368
+
369
+ ### Bug Fixes
370
+
371
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
372
+
373
+ ### Code Refactoring
374
+
375
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
376
+
377
+ ### BREAKING CHANGES
378
+
379
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
380
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
381
+ getCustomChainName method is removed from Polygon class because a common
382
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
383
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
384
+ and needs to be passed to derive the Eth common object from the chainId.
385
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
386
+ it can be used for other EthLike coins. getBaseFactor method in Eth
387
+ and Polygon class returns number instead of string just to align with
388
+ AbstractEthLikeCoin
389
+ Ticket: WIN-1012
390
+
391
+ # [15.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@15.0.0) (2024-01-25)
392
+
393
+ ### Bug Fixes
394
+
395
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
396
+
397
+ ### Code Refactoring
398
+
399
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
400
+
401
+ ### BREAKING CHANGES
402
+
403
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
404
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
405
+ getCustomChainName method is removed from Polygon class because a common
406
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
407
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
408
+ and needs to be passed to derive the Eth common object from the chainId.
409
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
410
+ it can be used for other EthLike coins. getBaseFactor method in Eth
411
+ and Polygon class returns number instead of string just to align with
412
+ AbstractEthLikeCoin
413
+ Ticket: WIN-1012
414
+
415
+ # [14.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@14.0.0) (2024-01-22)
416
+
417
+ ### Bug Fixes
418
+
419
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
420
+
421
+ ### Code Refactoring
422
+
423
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
424
+
425
+ ### BREAKING CHANGES
426
+
427
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
428
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
429
+ getCustomChainName method is removed from Polygon class because a common
430
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
431
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
432
+ and needs to be passed to derive the Eth common object from the chainId.
433
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
434
+ it can be used for other EthLike coins. getBaseFactor method in Eth
435
+ and Polygon class returns number instead of string just to align with
436
+ AbstractEthLikeCoin
437
+ Ticket: WIN-1012
438
+
439
+ # [13.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@13.0.0) (2024-01-09)
440
+
441
+ ### Bug Fixes
442
+
443
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
444
+
445
+ ### Code Refactoring
446
+
447
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
448
+
449
+ ### BREAKING CHANGES
450
+
451
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
452
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
453
+ getCustomChainName method is removed from Polygon class because a common
454
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
455
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
456
+ and needs to be passed to derive the Eth common object from the chainId.
457
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
458
+ it can be used for other EthLike coins. getBaseFactor method in Eth
459
+ and Polygon class returns number instead of string just to align with
460
+ AbstractEthLikeCoin
461
+ Ticket: WIN-1012
462
+
463
+ # [12.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@12.0.0) (2024-01-03)
464
+
465
+ ### Bug Fixes
466
+
467
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
468
+
469
+ ### Code Refactoring
470
+
471
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
472
+
473
+ ### BREAKING CHANGES
474
+
475
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
476
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
477
+ getCustomChainName method is removed from Polygon class because a common
478
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
479
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
480
+ and needs to be passed to derive the Eth common object from the chainId.
481
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
482
+ it can be used for other EthLike coins. getBaseFactor method in Eth
483
+ and Polygon class returns number instead of string just to align with
484
+ AbstractEthLikeCoin
485
+ Ticket: WIN-1012
486
+
487
+ # [11.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@11.0.0) (2023-12-18)
488
+
489
+ ### Bug Fixes
490
+
491
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
492
+
493
+ ### Code Refactoring
494
+
495
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
496
+
497
+ ### BREAKING CHANGES
498
+
499
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
500
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
501
+ getCustomChainName method is removed from Polygon class because a common
502
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
503
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
504
+ and needs to be passed to derive the Eth common object from the chainId.
505
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
506
+ it can be used for other EthLike coins. getBaseFactor method in Eth
507
+ and Polygon class returns number instead of string just to align with
508
+ AbstractEthLikeCoin
509
+ Ticket: WIN-1012
510
+
511
+ # [10.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@10.0.0) (2023-12-12)
512
+
513
+ ### Bug Fixes
514
+
515
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
516
+
517
+ ### Code Refactoring
518
+
519
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
520
+
521
+ ### BREAKING CHANGES
522
+
523
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
524
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
525
+ getCustomChainName method is removed from Polygon class because a common
526
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
527
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
528
+ and needs to be passed to derive the Eth common object from the chainId.
529
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
530
+ it can be used for other EthLike coins. getBaseFactor method in Eth
531
+ and Polygon class returns number instead of string just to align with
532
+ AbstractEthLikeCoin
533
+ Ticket: WIN-1012
534
+
535
+ # [9.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@9.0.0) (2023-12-09)
536
+
537
+ ### Bug Fixes
538
+
539
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
540
+
541
+ ### Code Refactoring
542
+
543
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
544
+
545
+ ### BREAKING CHANGES
546
+
547
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
548
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
549
+ getCustomChainName method is removed from Polygon class because a common
550
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
551
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
552
+ and needs to be passed to derive the Eth common object from the chainId.
553
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
554
+ it can be used for other EthLike coins. getBaseFactor method in Eth
555
+ and Polygon class returns number instead of string just to align with
556
+ AbstractEthLikeCoin
557
+ Ticket: WIN-1012
558
+
559
+ # [8.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@8.0.0) (2023-12-05)
560
+
561
+ ### Bug Fixes
562
+
563
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
564
+
565
+ ### Code Refactoring
566
+
567
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
568
+
569
+ ### BREAKING CHANGES
570
+
571
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
572
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
573
+ getCustomChainName method is removed from Polygon class because a common
574
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
575
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
576
+ and needs to be passed to derive the Eth common object from the chainId.
577
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
578
+ it can be used for other EthLike coins. getBaseFactor method in Eth
579
+ and Polygon class returns number instead of string just to align with
580
+ AbstractEthLikeCoin
581
+ Ticket: WIN-1012
582
+
583
+ # [7.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@7.0.0) (2023-11-28)
584
+
585
+ ### Bug Fixes
586
+
587
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
588
+
589
+ ### Code Refactoring
590
+
591
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
592
+
593
+ ### BREAKING CHANGES
594
+
595
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
596
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
597
+ getCustomChainName method is removed from Polygon class because a common
598
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
599
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
600
+ and needs to be passed to derive the Eth common object from the chainId.
601
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
602
+ it can be used for other EthLike coins. getBaseFactor method in Eth
603
+ and Polygon class returns number instead of string just to align with
604
+ AbstractEthLikeCoin
605
+ Ticket: WIN-1012
606
+
607
+ # [6.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@6.0.0) (2023-11-24)
608
+
609
+ ### Bug Fixes
610
+
611
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
612
+
613
+ ### Code Refactoring
614
+
615
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
616
+
617
+ ### BREAKING CHANGES
618
+
619
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
620
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
621
+ getCustomChainName method is removed from Polygon class because a common
622
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
623
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
624
+ and needs to be passed to derive the Eth common object from the chainId.
625
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
626
+ it can be used for other EthLike coins. getBaseFactor method in Eth
627
+ and Polygon class returns number instead of string just to align with
628
+ AbstractEthLikeCoin
629
+ Ticket: WIN-1012
630
+
631
+ # [5.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@5.0.0) (2023-11-17)
632
+
633
+ ### Bug Fixes
634
+
635
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
636
+
637
+ ### Code Refactoring
638
+
639
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
640
+
641
+ ### BREAKING CHANGES
642
+
643
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
644
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
645
+ getCustomChainName method is removed from Polygon class because a common
646
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
647
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
648
+ and needs to be passed to derive the Eth common object from the chainId.
649
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
650
+ it can be used for other EthLike coins. getBaseFactor method in Eth
651
+ and Polygon class returns number instead of string just to align with
652
+ AbstractEthLikeCoin
653
+ Ticket: WIN-1012
654
+
655
+ # [4.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@4.0.0) (2023-11-13)
656
+
657
+ ### Bug Fixes
658
+
659
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
660
+
661
+ ### Code Refactoring
662
+
663
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
664
+
665
+ ### BREAKING CHANGES
666
+
667
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
668
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
669
+ getCustomChainName method is removed from Polygon class because a common
670
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
671
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
672
+ and needs to be passed to derive the Eth common object from the chainId.
673
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
674
+ it can be used for other EthLike coins. getBaseFactor method in Eth
675
+ and Polygon class returns number instead of string just to align with
676
+ AbstractEthLikeCoin
677
+ Ticket: WIN-1012
678
+
679
+ # [3.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@3.0.0) (2023-11-13)
680
+
681
+ ### Bug Fixes
682
+
683
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
684
+
685
+ ### Code Refactoring
686
+
687
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
688
+
689
+ ### BREAKING CHANGES
690
+
691
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
692
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
693
+ getCustomChainName method is removed from Polygon class because a common
694
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
695
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
696
+ and needs to be passed to derive the Eth common object from the chainId.
697
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
698
+ it can be used for other EthLike coins. getBaseFactor method in Eth
699
+ and Polygon class returns number instead of string just to align with
700
+ AbstractEthLikeCoin
701
+ Ticket: WIN-1012
702
+
703
+ # [2.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@2.0.0) (2023-11-13)
704
+
705
+ ### Bug Fixes
706
+
707
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
708
+
709
+ ### Code Refactoring
710
+
711
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
712
+
713
+ ### BREAKING CHANGES
714
+
715
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
716
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
717
+ getCustomChainName method is removed from Polygon class because a common
718
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
719
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
720
+ and needs to be passed to derive the Eth common object from the chainId.
721
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
722
+ it can be used for other EthLike coins. getBaseFactor method in Eth
723
+ and Polygon class returns number instead of string just to align with
724
+ AbstractEthLikeCoin
725
+ Ticket: WIN-1012
726
+
727
+ ## [1.5.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@1.5.13) (2023-10-20)
728
+
729
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
730
+
731
+ ## [1.5.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@1.5.12) (2023-10-18)
732
+
733
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
734
+
735
+ ## [1.5.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@1.5.11) (2023-09-25)
736
+
737
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
738
+
739
+ ## [1.5.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@1.5.10) (2023-09-09)
740
+
741
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
742
+
743
+ ## [1.5.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@1.5.9) (2023-09-09)
744
+
745
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
746
+
747
+ ## [1.5.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@1.5.8) (2023-09-07)
748
+
749
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
750
+
751
+ ## [1.5.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@1.5.7) (2023-09-05)
752
+
753
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
754
+
755
+ ## [1.5.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@1.5.6) (2023-09-01)
756
+
757
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
758
+
759
+ ## [1.5.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@1.5.5) (2023-08-29)
760
+
761
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
762
+
763
+ ## [1.5.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@1.5.4) (2023-08-25)
764
+
765
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
766
+
767
+ ## [1.5.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@1.5.3) (2023-08-24)
768
+
769
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
770
+
771
+ ## [1.5.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@1.5.2) (2023-08-16)
772
+
773
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
774
+
775
+ ## [1.5.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.5.0...@bitgo/sdk-coin-ethw@1.5.1) (2023-08-16)
776
+
777
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
778
+
779
+ # [1.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.28...@bitgo/sdk-coin-ethw@1.5.0) (2023-08-04)
780
+
781
+ ### Features
782
+
783
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
784
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
785
+
786
+ # [1.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.28...@bitgo/sdk-coin-ethw@1.4.0) (2023-07-28)
787
+
788
+ ### Features
789
+
790
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
791
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
792
+
793
+ ## [1.3.28](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.27...@bitgo/sdk-coin-ethw@1.3.28) (2023-07-18)
794
+
795
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
796
+
797
+ ## [1.3.27](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.26...@bitgo/sdk-coin-ethw@1.3.27) (2023-06-21)
798
+
799
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
800
+
801
+ ## [1.3.26](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.25...@bitgo/sdk-coin-ethw@1.3.26) (2023-06-14)
802
+
803
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
804
+
805
+ ## [1.3.25](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.24...@bitgo/sdk-coin-ethw@1.3.25) (2023-06-13)
806
+
807
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
808
+
809
+ ## [1.3.24](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.23...@bitgo/sdk-coin-ethw@1.3.24) (2023-06-07)
810
+
811
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
812
+
813
+ ## [1.3.23](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.22...@bitgo/sdk-coin-ethw@1.3.23) (2023-06-05)
814
+
815
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
816
+
817
+ ## [1.3.22](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.21...@bitgo/sdk-coin-ethw@1.3.22) (2023-05-25)
818
+
819
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
820
+
821
+ ## [1.3.21](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.20...@bitgo/sdk-coin-ethw@1.3.21) (2023-05-17)
822
+
823
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
824
+
825
+ ## [1.3.20](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.19...@bitgo/sdk-coin-ethw@1.3.20) (2023-05-10)
826
+
827
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
828
+
829
+ ## [1.3.19](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.18...@bitgo/sdk-coin-ethw@1.3.19) (2023-05-03)
830
+
831
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
832
+
833
+ ## [1.3.18](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.17...@bitgo/sdk-coin-ethw@1.3.18) (2023-04-25)
834
+
835
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
836
+
837
+ ## [1.3.17](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.16...@bitgo/sdk-coin-ethw@1.3.17) (2023-04-20)
838
+
839
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
840
+
841
+ ## [1.3.16](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.15...@bitgo/sdk-coin-ethw@1.3.16) (2023-04-13)
842
+
843
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
844
+
845
+ ## [1.3.15](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.14...@bitgo/sdk-coin-ethw@1.3.15) (2023-02-17)
846
+
847
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
848
+
849
+ ## [1.3.14](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.11...@bitgo/sdk-coin-ethw@1.3.14) (2023-02-16)
850
+
851
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
852
+
853
+ ## [1.3.13](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.11...@bitgo/sdk-coin-ethw@1.3.13) (2023-02-08)
854
+
855
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
856
+
857
+ ## [1.3.12](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.11...@bitgo/sdk-coin-ethw@1.3.12) (2023-01-30)
858
+
859
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
860
+
861
+ ## [1.3.11](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.10...@bitgo/sdk-coin-ethw@1.3.11) (2023-01-25)
862
+
863
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
864
+
865
+ ## [1.3.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.9...@bitgo/sdk-coin-ethw@1.3.10) (2022-12-23)
866
+
867
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
868
+
869
+ ## [1.3.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.8...@bitgo/sdk-coin-ethw@1.3.9) (2022-12-20)
870
+
871
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
872
+
873
+ ## [1.3.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.7...@bitgo/sdk-coin-ethw@1.3.8) (2022-12-09)
874
+
875
+ **Note:** Version bump only for package @bitgo/sdk-coin-ethw
876
+
6
877
  ## [1.3.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-ethw@1.3.6...@bitgo/sdk-coin-ethw@1.3.7) (2022-12-06)
7
878
 
8
879
  **Note:** Version bump only for package @bitgo/sdk-coin-ethw
@@ -1,11 +1,8 @@
1
- /// <reference types="node" />
2
- /// <reference types="bn.js" />
3
1
  import { BN } from 'ethereumjs-util';
4
- import { BaseCoin, BitGoBase, KeyPair, ParsedTransaction, ParseTransactionOptions, TransactionExplanation, VerifyAddressOptions, VerifyTransactionOptions } from '@bitgo-beta/sdk-core';
2
+ import { BaseCoin, BitGoBase, KeyPair, ParsedTransaction, ParseTransactionOptions, VerifyAddressOptions, VerifyTransactionOptions } from '@bitgo-beta/sdk-core';
5
3
  import { BaseCoin as StaticsBaseCoin } from '@bitgo-beta/statics';
6
4
  import { Eth, TransactionBuilder } from '@bitgo-beta/sdk-coin-eth';
7
- import { ExplainTransactionOptions } from '@bitgo-beta/abstract-eth';
8
- declare type FullNodeResponseBody = {
5
+ type FullNodeResponseBody = {
9
6
  jsonrpc: string;
10
7
  id: string;
11
8
  result?: string;
@@ -17,9 +14,6 @@ declare type FullNodeResponseBody = {
17
14
  export declare class Ethw extends Eth {
18
15
  protected constructor(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>);
19
16
  static createInstance(bitgo: BitGoBase, staticsCoin?: Readonly<StaticsBaseCoin>): BaseCoin;
20
- getChain(): string;
21
- getFamily(): string;
22
- getFullName(): string;
23
17
  verifyTransaction(params: VerifyTransactionOptions): Promise<boolean>;
24
18
  isWalletAddress(params: VerifyAddressOptions): Promise<boolean>;
25
19
  parseTransaction(params: ParseTransactionOptions): Promise<ParsedTransaction>;
@@ -49,11 +43,6 @@ export declare class Ethw extends Eth {
49
43
  * @returns {Promise<FullNodeResponseBody>} response from full node
50
44
  */
51
45
  recoveryFullNodeRPCQuery(method: string, params: Array<unknown>): Promise<FullNodeResponseBody>;
52
- /**
53
- * Explain a transaction from txHex
54
- * @param params The options with which to explain the transaction
55
- */
56
- explainTransaction(params: ExplainTransactionOptions): Promise<TransactionExplanation>;
57
46
  /**
58
47
  * Create a new transaction builder for the current chain
59
48
  * @return a new transaction buil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B,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,iBAAiB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC;IAG/D,eAAe,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;IAGrE,gBAAgB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAG7E,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO;IAInD;;;;OAIG;IACG,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC;IASvD;;;;OAIG;IACG,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAiBvD;;;;OAIG;IACG,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAQvD;;;;;OAKG;IACG,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAkBrG;;;OAGG;IACH,SAAS,CAAC,qBAAqB,IAAI,kBAAkB;CAGtD"}
package/dist/src/ethw.js CHANGED
@@ -5,26 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Ethw = void 0;
7
7
  const superagent_1 = __importDefault(require("superagent"));
8
- const bignumber_js_1 = __importDefault(require("bignumber.js"));
9
8
  const sdk_core_1 = require("@bitgo-beta/sdk-core");
10
9
  const statics_1 = require("@bitgo-beta/statics");
11
10
  const sdk_coin_eth_1 = require("@bitgo-beta/sdk-coin-eth");
12
11
  class Ethw extends sdk_coin_eth_1.Eth {
13
12
  constructor(bitgo, staticsCoin) {
14
- super(bitgo);
13
+ super(bitgo, staticsCoin);
15
14
  }
16
15
  static createInstance(bitgo, staticsCoin) {
17
16
  return new Ethw(bitgo, staticsCoin);
18
17
  }
19
- getChain() {
20
- return 'ethw';
21
- }
22
- getFamily() {
23
- return 'eth';
24
- }
25
- getFullName() {
26
- return 'Ethereum PoW';
27
- }
28
18
  verifyTransaction(params) {
29
19
  throw new Error('Method not implemented.');
30
20
  }
@@ -104,37 +94,6 @@ class Ethw extends sdk_coin_eth_1.Eth {
104
94
  }
105
95
  return response.body;
106
96
  }
107
- /**
108
- * Explain a transaction from txHex
109
- * @param params The options with which to explain the transaction
110
- */
111
- async explainTransaction(params) {
112
- const txHex = params.txHex || (params.halfSigned && params.halfSigned.txHex);
113
- if (!txHex || !params.feeInfo) {
114
- throw new Error('missing explain tx parameters');
115
- }
116
- const txBuilder = this.getTransactionBuilder();
117
- txBuilder.from(txHex);
118
- const tx = await txBuilder.build();
119
- const outputs = tx.outputs.map((output) => {
120
- return {
121
- address: output.address,
122
- amount: output.value,
123
- };
124
- });
125
- const displayOrder = ['id', 'outputAmount', 'changeAmount', 'outputs', 'changeOutputs', 'fee'];
126
- return {
127
- displayOrder,
128
- id: tx.id,
129
- outputs: outputs,
130
- outputAmount: outputs
131
- .reduce((accumulator, output) => accumulator.plus(output.amount), new bignumber_js_1.default('0'))
132
- .toFixed(0),
133
- changeOutputs: [],
134
- changeAmount: '0',
135
- fee: params.feeInfo,
136
- };
137
- }
138
97
  /**
139
98
  * Create a new transaction builder for the current chain
140
99
  * @return a new transaction builder
@@ -144,4 +103,4 @@ class Ethw extends sdk_coin_eth_1.Eth {
144
103
  }
145
104
  }
146
105
  exports.Ethw = Ethw;
147
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXRody5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2Vz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zZVVybCkuc2VuZCh7XG4gICAgICBtZXRob2QsXG4gICAgICBwYXJhbXMsXG4gICAgICBpZDogMCxcbiAgICAgIGpzb25ycGM6ICcyLjAnLFxuICAgIH0pO1xuXG4gICAgaWYgKCFyZXNwb25zZS5vaykge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKCdjb3VsZCBub3QgcmVhY2ggRVRIVyBmdWxsIG5vZGUnKTtcbiAgICB9XG5cbiAgICBpZiAocmVzcG9uc2UuYm9keS5lcnJvcikge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKGBFVEhXIGZ1bGwgbm9kZSBlcnJvcjogJHtyZXNwb25zZS5ib2R5LmVycm9yLmNvZGV9IC0gJHtyZXNwb25zZS5ib2R5LmVycm9yLm1lc3NhZ2V9YCk7XG4gICAgfVxuICAgIHJldHVybiByZXNwb25zZS5ib2R5O1xuICB9XG5cbiAgLyoqXG4gICAqIENyZWF0ZSBhIG5ldyB0cmFuc2FjdGlvbiBidWlsZGVyIGZvciB0aGUgY3VycmVudCBjaGFpblxuICAgKiBAcmV0dXJuIGEgbmV3IHRyYW5zYWN0aW9uIGJ1aWxkZXJcbiAgICovXG4gIHByb3RlY3RlZCBnZXRUcmFuc2FjdGlvbkJ1aWxkZXIoKTogVHJhbnNhY3Rpb25CdWlsZGVyIHtcbiAgICByZXR1cm4gbmV3IFRyYW5zYWN0aW9uQnVpbGRlcihjb2lucy5nZXQodGhpcy5nZXRDaGFpbigpKSk7XG4gIH1cbn1cbiJdfQ==
@@ -1,2 +1,3 @@
1
1
  export * from './ethw';
2
+ export * from './register';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
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.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
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];
@@ -11,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
15
  };
12
16
  Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./ethw"), exports);
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEseUNBQXVCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9ldGh3JztcbiJdfQ==
18
+ __exportStar(require("./register"), exports);
19
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHlDQUF1QjtBQUN2Qiw2Q0FBMkIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2V0aHcnO1xuZXhwb3J0ICogZnJvbSAnLi9yZWdpc3Rlcic7XG4iXX0=
@@ -0,0 +1,3 @@
1
+ import { BitGoBase } from '@bitgo-beta/sdk-core';
2
+ export declare const register: (sdk: BitGoBase) => void;
3
+ //# sourceMappingURL=register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,eAAO,MAAM,QAAQ,QAAS,SAAS,KAAG,IAEzC,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.register = void 0;
4
+ const ethw_1 = require("./ethw");
5
+ const register = (sdk) => {
6
+ sdk.register('ethw', ethw_1.Ethw.createInstance);
7
+ };
8
+ exports.register = register;
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVnaXN0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvcmVnaXN0ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsaUNBQThCO0FBRXZCLE1BQU0sUUFBUSxHQUFHLENBQUMsR0FBYyxFQUFRLEVBQUU7SUFDL0MsR0FBRyxDQUFDLFFBQVEsQ0FBQyxNQUFNLEVBQUUsV0FBSSxDQUFDLGNBQWMsQ0FBQyxDQUFDO0FBQzVDLENBQUMsQ0FBQztBQUZXLFFBQUEsUUFBUSxZQUVuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEJpdEdvQmFzZSB9IGZyb20gJ0BiaXRnby1iZXRhL3Nkay1jb3JlJztcbmltcG9ydCB7IEV0aHcgfSBmcm9tICcuL2V0aHcnO1xuXG5leHBvcnQgY29uc3QgcmVnaXN0ZXIgPSAoc2RrOiBCaXRHb0Jhc2UpOiB2b2lkID0+IHtcbiAgc2RrLnJlZ2lzdGVyKCdldGh3JywgRXRody5jcmVhdGVJbnN0YW5jZSk7XG59O1xuIl19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo-beta/sdk-coin-ethw",
3
- "version": "1.0.1-beta.94",
3
+ "version": "1.0.1-beta.940",
4
4
  "description": "BitGo SDK coin library for Ethereum pow",
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": ">=14 <17"
21
+ "node": ">=18 <21"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
@@ -40,17 +40,15 @@
40
40
  ]
41
41
  },
42
42
  "dependencies": {
43
- "@bitgo-beta/abstract-eth": "1.0.2-beta.94",
44
- "@bitgo-beta/sdk-coin-eth": "1.1.1-beta.94",
45
- "@bitgo-beta/sdk-core": "1.1.1-beta.95",
46
- "@bitgo-beta/statics": "7.0.1-beta.95",
47
- "bignumber.js": "^9.0.0",
43
+ "@bitgo-beta/sdk-coin-eth": "4.4.1-beta.711",
44
+ "@bitgo-beta/sdk-core": "8.2.1-beta.715",
45
+ "@bitgo-beta/statics": "15.1.1-beta.718",
48
46
  "ethereumjs-util": "7.1.5",
49
- "superagent": "^3.8.3"
47
+ "superagent": "^9.0.1"
50
48
  },
51
49
  "devDependencies": {
52
- "@bitgo-beta/sdk-api": "1.1.1-beta.95",
53
- "@bitgo-beta/sdk-test": "^1.2.7"
50
+ "@bitgo-beta/sdk-api": "1.10.1-beta.714",
51
+ "@bitgo-beta/sdk-test": "^8.0.70"
54
52
  },
55
- "gitHead": "fff985a668530ff5cdc23a601098d714991745c9"
53
+ "gitHead": "2bba22ce8e67b0b78f73a254f6bb16326aa73e85"
56
54
  }