@bitgo-beta/sdk-coin-eth 4.4.1-beta.19 → 4.4.1-beta.190

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.
Files changed (64) hide show
  1. package/CHANGELOG.md +434 -0
  2. package/dist/src/erc20Token.d.ts +12 -4
  3. package/dist/src/erc20Token.d.ts.map +1 -1
  4. package/dist/src/erc20Token.js +20 -3
  5. package/dist/src/eth.d.ts +20 -534
  6. package/dist/src/eth.d.ts.map +1 -1
  7. package/dist/src/eth.js +180 -1622
  8. package/dist/src/gteth.d.ts +0 -4
  9. package/dist/src/gteth.d.ts.map +1 -1
  10. package/dist/src/gteth.js +1 -11
  11. package/dist/src/hteth.d.ts +8 -0
  12. package/dist/src/hteth.d.ts.map +1 -0
  13. package/dist/src/hteth.js +14 -0
  14. package/dist/src/index.d.ts +1 -0
  15. package/dist/src/index.d.ts.map +1 -1
  16. package/dist/src/index.js +2 -1
  17. package/dist/src/lib/index.d.ts +4 -13
  18. package/dist/src/lib/index.d.ts.map +1 -1
  19. package/dist/src/lib/index.js +12 -29
  20. package/dist/src/lib/transactionBuilder.d.ts +3 -212
  21. package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
  22. package/dist/src/lib/transactionBuilder.js +10 -675
  23. package/dist/src/lib/transferBuilder.d.ts +2 -50
  24. package/dist/src/lib/transferBuilder.d.ts.map +1 -1
  25. package/dist/src/lib/transferBuilder.js +3 -199
  26. package/dist/src/lib/transferBuilders/index.d.ts +2 -3
  27. package/dist/src/lib/transferBuilders/index.d.ts.map +1 -1
  28. package/dist/src/lib/transferBuilders/index.js +6 -14
  29. package/dist/src/lib/walletUtil.d.ts +0 -25
  30. package/dist/src/lib/walletUtil.d.ts.map +1 -1
  31. package/dist/src/lib/walletUtil.js +2 -27
  32. package/dist/src/register.d.ts.map +1 -1
  33. package/dist/src/register.js +3 -1
  34. package/dist/src/teth.d.ts +0 -3
  35. package/dist/src/teth.d.ts.map +1 -1
  36. package/dist/src/teth.js +1 -8
  37. package/package.json +10 -16
  38. package/dist/src/lib/contractCall.d.ts +0 -8
  39. package/dist/src/lib/contractCall.d.ts.map +0 -1
  40. package/dist/src/lib/contractCall.js +0 -17
  41. package/dist/src/lib/iface.d.ts +0 -130
  42. package/dist/src/lib/iface.d.ts.map +0 -1
  43. package/dist/src/lib/iface.js +0 -8
  44. package/dist/src/lib/keyPair.d.ts +0 -26
  45. package/dist/src/lib/keyPair.d.ts.map +0 -1
  46. package/dist/src/lib/keyPair.js +0 -66
  47. package/dist/src/lib/transaction.d.ts +0 -64
  48. package/dist/src/lib/transaction.d.ts.map +0 -1
  49. package/dist/src/lib/transaction.js +0 -137
  50. package/dist/src/lib/transferBuilders/baseNFTTransferBuilder.d.ts +0 -47
  51. package/dist/src/lib/transferBuilders/baseNFTTransferBuilder.d.ts.map +0 -1
  52. package/dist/src/lib/transferBuilders/baseNFTTransferBuilder.js +0 -113
  53. package/dist/src/lib/transferBuilders/transferBuilderERC1155.d.ts +0 -14
  54. package/dist/src/lib/transferBuilders/transferBuilderERC1155.d.ts.map +0 -1
  55. package/dist/src/lib/transferBuilders/transferBuilderERC1155.js +0 -83
  56. package/dist/src/lib/transferBuilders/transferBuilderERC721.d.ts +0 -13
  57. package/dist/src/lib/transferBuilders/transferBuilderERC721.d.ts.map +0 -1
  58. package/dist/src/lib/transferBuilders/transferBuilderERC721.js +0 -68
  59. package/dist/src/lib/types.d.ts +0 -39
  60. package/dist/src/lib/types.d.ts.map +0 -1
  61. package/dist/src/lib/types.js +0 -137
  62. package/dist/src/lib/utils.d.ts +0 -227
  63. package/dist/src/lib/utils.d.ts.map +0 -1
  64. package/dist/src/lib/utils.js +0 -577
package/CHANGELOG.md CHANGED
@@ -3,6 +3,440 @@
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
+ # [10.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@10.0.0) (2023-11-28)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
11
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
12
+
13
+ ### Code Refactoring
14
+
15
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
16
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
17
+ - **abstract-eth:** move txbuilder to abstract-eth ([a093f16](https://github.com/BitGo/BitGoJS/commit/a093f16465b691d82b2709245cc806fc0eb66212))
18
+
19
+ ### Features
20
+
21
+ - **account-lib:** add holesky testnet coin ([0aaefc0](https://github.com/BitGo/BitGoJS/commit/0aaefc0e53a5a48b2c701ca3c6d5e1c6ec7c19d2))
22
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
23
+
24
+ ### BREAKING CHANGES
25
+
26
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
27
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
28
+ getCustomChainName method is removed from Polygon class because a common
29
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
30
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
31
+ and needs to be passed to derive the Eth common object from the chainId.
32
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
33
+ it can be used for other EthLike coins. getBaseFactor method in Eth
34
+ and Polygon class returns number instead of string just to align with
35
+ AbstractEthLikeCoin
36
+ Ticket: WIN-1012
37
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
38
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
39
+ getCustomChainName method is removed from Polygon class because a common
40
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
41
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
42
+ and needs to be passed to derive the Eth common object from the chainId.
43
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
44
+ it can be used for other EthLike coins. getBaseFactor method in Eth
45
+ and Polygon class returns number instead of string just to align with
46
+ AbstractEthLikeCoin
47
+ Ticket: WIN-1012
48
+ - **abstract-eth:** getTransactionBuilder method is removed from EthLikeToken
49
+ class in abstract-eth module because TransactionBuilder in the
50
+ abstract-eth module is abstract class and hence cannot be instantiated. Hence the implementation of TransactionBuilder can
51
+ be added to the class that will inherit EthLikeToken class
52
+
53
+ TransactionPrebuild from new class AbstractEthLikeNewCoins is being
54
+ exported now instead of TransactionPrebuild from AbstractEthLikeCoin
55
+ class as the TransactionPrebuild from AbstractEthLikeNewCoins also has
56
+ support for hop transactions, batch transactions, etc
57
+
58
+ TICKET: WIN-1021
59
+
60
+ # [9.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@9.0.0) (2023-11-24)
61
+
62
+ ### Bug Fixes
63
+
64
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
65
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
66
+
67
+ ### Code Refactoring
68
+
69
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
70
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
71
+ - **abstract-eth:** move txbuilder to abstract-eth ([a093f16](https://github.com/BitGo/BitGoJS/commit/a093f16465b691d82b2709245cc806fc0eb66212))
72
+
73
+ ### Features
74
+
75
+ - **account-lib:** add holesky testnet coin ([0aaefc0](https://github.com/BitGo/BitGoJS/commit/0aaefc0e53a5a48b2c701ca3c6d5e1c6ec7c19d2))
76
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
77
+
78
+ ### BREAKING CHANGES
79
+
80
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
81
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
82
+ getCustomChainName method is removed from Polygon class because a common
83
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
84
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
85
+ and needs to be passed to derive the Eth common object from the chainId.
86
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
87
+ it can be used for other EthLike coins. getBaseFactor method in Eth
88
+ and Polygon class returns number instead of string just to align with
89
+ AbstractEthLikeCoin
90
+ Ticket: WIN-1012
91
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
92
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
93
+ getCustomChainName method is removed from Polygon class because a common
94
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
95
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
96
+ and needs to be passed to derive the Eth common object from the chainId.
97
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
98
+ it can be used for other EthLike coins. getBaseFactor method in Eth
99
+ and Polygon class returns number instead of string just to align with
100
+ AbstractEthLikeCoin
101
+ Ticket: WIN-1012
102
+ - **abstract-eth:** getTransactionBuilder method is removed from EthLikeToken
103
+ class in abstract-eth module because TransactionBuilder in the
104
+ abstract-eth module is abstract class and hence cannot be instantiated. Hence the implementation of TransactionBuilder can
105
+ be added to the class that will inherit EthLikeToken class
106
+
107
+ TransactionPrebuild from new class AbstractEthLikeNewCoins is being
108
+ exported now instead of TransactionPrebuild from AbstractEthLikeCoin
109
+ class as the TransactionPrebuild from AbstractEthLikeNewCoins also has
110
+ support for hop transactions, batch transactions, etc
111
+
112
+ TICKET: WIN-1021
113
+
114
+ # [8.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@8.0.0) (2023-11-17)
115
+
116
+ ### Bug Fixes
117
+
118
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
119
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
120
+
121
+ ### Code Refactoring
122
+
123
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
124
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
125
+ - **abstract-eth:** move txbuilder to abstract-eth ([a093f16](https://github.com/BitGo/BitGoJS/commit/a093f16465b691d82b2709245cc806fc0eb66212))
126
+
127
+ ### Features
128
+
129
+ - **account-lib:** add holesky testnet coin ([0aaefc0](https://github.com/BitGo/BitGoJS/commit/0aaefc0e53a5a48b2c701ca3c6d5e1c6ec7c19d2))
130
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
131
+
132
+ ### BREAKING CHANGES
133
+
134
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
135
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
136
+ getCustomChainName method is removed from Polygon class because a common
137
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
138
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
139
+ and needs to be passed to derive the Eth common object from the chainId.
140
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
141
+ it can be used for other EthLike coins. getBaseFactor method in Eth
142
+ and Polygon class returns number instead of string just to align with
143
+ AbstractEthLikeCoin
144
+ Ticket: WIN-1012
145
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
146
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
147
+ getCustomChainName method is removed from Polygon class because a common
148
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
149
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
150
+ and needs to be passed to derive the Eth common object from the chainId.
151
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
152
+ it can be used for other EthLike coins. getBaseFactor method in Eth
153
+ and Polygon class returns number instead of string just to align with
154
+ AbstractEthLikeCoin
155
+ Ticket: WIN-1012
156
+ - **abstract-eth:** getTransactionBuilder method is removed from EthLikeToken
157
+ class in abstract-eth module because TransactionBuilder in the
158
+ abstract-eth module is abstract class and hence cannot be instantiated. Hence the implementation of TransactionBuilder can
159
+ be added to the class that will inherit EthLikeToken class
160
+
161
+ TransactionPrebuild from new class AbstractEthLikeNewCoins is being
162
+ exported now instead of TransactionPrebuild from AbstractEthLikeCoin
163
+ class as the TransactionPrebuild from AbstractEthLikeNewCoins also has
164
+ support for hop transactions, batch transactions, etc
165
+
166
+ TICKET: WIN-1021
167
+
168
+ # [7.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@7.0.0) (2023-11-13)
169
+
170
+ ### Bug Fixes
171
+
172
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
173
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
174
+
175
+ ### Code Refactoring
176
+
177
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
178
+ - **abstract-eth:** move txbuilder to abstract-eth ([a093f16](https://github.com/BitGo/BitGoJS/commit/a093f16465b691d82b2709245cc806fc0eb66212))
179
+
180
+ ### Features
181
+
182
+ - **account-lib:** add holesky testnet coin ([0aaefc0](https://github.com/BitGo/BitGoJS/commit/0aaefc0e53a5a48b2c701ca3c6d5e1c6ec7c19d2))
183
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
184
+
185
+ ### BREAKING CHANGES
186
+
187
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
188
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
189
+ getCustomChainName method is removed from Polygon class because a common
190
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
191
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
192
+ and needs to be passed to derive the Eth common object from the chainId.
193
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
194
+ it can be used for other EthLike coins. getBaseFactor method in Eth
195
+ and Polygon class returns number instead of string just to align with
196
+ AbstractEthLikeCoin
197
+ Ticket: WIN-1012
198
+ - **abstract-eth:** getTransactionBuilder method is removed from EthLikeToken
199
+ class in abstract-eth module because TransactionBuilder in the
200
+ abstract-eth module is abstract class and hence cannot be instantiated. Hence the implementation of TransactionBuilder can
201
+ be added to the class that will inherit EthLikeToken class
202
+
203
+ TransactionPrebuild from new class AbstractEthLikeNewCoins is being
204
+ exported now instead of TransactionPrebuild from AbstractEthLikeCoin
205
+ class as the TransactionPrebuild from AbstractEthLikeNewCoins also has
206
+ support for hop transactions, batch transactions, etc
207
+
208
+ TICKET: WIN-1021
209
+
210
+ # [6.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@6.0.0) (2023-11-13)
211
+
212
+ ### Bug Fixes
213
+
214
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
215
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
216
+
217
+ ### Code Refactoring
218
+
219
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
220
+ - **abstract-eth:** move txbuilder to abstract-eth ([a093f16](https://github.com/BitGo/BitGoJS/commit/a093f16465b691d82b2709245cc806fc0eb66212))
221
+
222
+ ### Features
223
+
224
+ - **account-lib:** add holesky testnet coin ([0aaefc0](https://github.com/BitGo/BitGoJS/commit/0aaefc0e53a5a48b2c701ca3c6d5e1c6ec7c19d2))
225
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
226
+
227
+ ### BREAKING CHANGES
228
+
229
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
230
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
231
+ getCustomChainName method is removed from Polygon class because a common
232
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
233
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
234
+ and needs to be passed to derive the Eth common object from the chainId.
235
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
236
+ it can be used for other EthLike coins. getBaseFactor method in Eth
237
+ and Polygon class returns number instead of string just to align with
238
+ AbstractEthLikeCoin
239
+ Ticket: WIN-1012
240
+ - **abstract-eth:** getTransactionBuilder method is removed from EthLikeToken
241
+ class in abstract-eth module because TransactionBuilder in the
242
+ abstract-eth module is abstract class and hence cannot be instantiated. Hence the implementation of TransactionBuilder can
243
+ be added to the class that will inherit EthLikeToken class
244
+
245
+ TransactionPrebuild from new class AbstractEthLikeNewCoins is being
246
+ exported now instead of TransactionPrebuild from AbstractEthLikeCoin
247
+ class as the TransactionPrebuild from AbstractEthLikeNewCoins also has
248
+ support for hop transactions, batch transactions, etc
249
+
250
+ TICKET: WIN-1021
251
+
252
+ # [5.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@5.0.0) (2023-11-13)
253
+
254
+ ### Bug Fixes
255
+
256
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
257
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
258
+
259
+ ### Code Refactoring
260
+
261
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
262
+ - **abstract-eth:** move txbuilder to abstract-eth ([a093f16](https://github.com/BitGo/BitGoJS/commit/a093f16465b691d82b2709245cc806fc0eb66212))
263
+
264
+ ### Features
265
+
266
+ - **account-lib:** add holesky testnet coin ([0aaefc0](https://github.com/BitGo/BitGoJS/commit/0aaefc0e53a5a48b2c701ca3c6d5e1c6ec7c19d2))
267
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
268
+
269
+ ### BREAKING CHANGES
270
+
271
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
272
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
273
+ getCustomChainName method is removed from Polygon class because a common
274
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
275
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
276
+ and needs to be passed to derive the Eth common object from the chainId.
277
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
278
+ it can be used for other EthLike coins. getBaseFactor method in Eth
279
+ and Polygon class returns number instead of string just to align with
280
+ AbstractEthLikeCoin
281
+ Ticket: WIN-1012
282
+ - **abstract-eth:** getTransactionBuilder method is removed from EthLikeToken
283
+ class in abstract-eth module because TransactionBuilder in the
284
+ abstract-eth module is abstract class and hence cannot be instantiated. Hence the implementation of TransactionBuilder can
285
+ be added to the class that will inherit EthLikeToken class
286
+
287
+ TransactionPrebuild from new class AbstractEthLikeNewCoins is being
288
+ exported now instead of TransactionPrebuild from AbstractEthLikeCoin
289
+ class as the TransactionPrebuild from AbstractEthLikeNewCoins also has
290
+ support for hop transactions, batch transactions, etc
291
+
292
+ TICKET: WIN-1021
293
+
294
+ # [4.10.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@4.10.0) (2023-10-20)
295
+
296
+ ### Bug Fixes
297
+
298
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
299
+
300
+ ### Features
301
+
302
+ - **account-lib:** add holesky testnet coin ([0aaefc0](https://github.com/BitGo/BitGoJS/commit/0aaefc0e53a5a48b2c701ca3c6d5e1c6ec7c19d2))
303
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
304
+
305
+ # [4.9.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@4.9.0) (2023-10-18)
306
+
307
+ ### Bug Fixes
308
+
309
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
310
+
311
+ ### Features
312
+
313
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
314
+
315
+ # [4.8.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@4.8.0) (2023-09-25)
316
+
317
+ ### Bug Fixes
318
+
319
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
320
+
321
+ ### Features
322
+
323
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
324
+
325
+ ## [4.7.10](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@4.7.10) (2023-09-09)
326
+
327
+ ### Bug Fixes
328
+
329
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
330
+
331
+ ## [4.7.9](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@4.7.9) (2023-09-09)
332
+
333
+ ### Bug Fixes
334
+
335
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
336
+
337
+ ## [4.7.8](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@4.7.8) (2023-09-07)
338
+
339
+ ### Bug Fixes
340
+
341
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
342
+
343
+ ## [4.7.7](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@4.7.7) (2023-09-05)
344
+
345
+ ### Bug Fixes
346
+
347
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
348
+
349
+ ## [4.7.6](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@4.7.6) (2023-09-01)
350
+
351
+ ### Bug Fixes
352
+
353
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
354
+
355
+ ## [4.7.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@4.7.5) (2023-08-29)
356
+
357
+ **Note:** Version bump only for package @bitgo/sdk-coin-eth
358
+
359
+ ## [4.7.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@4.7.4) (2023-08-25)
360
+
361
+ **Note:** Version bump only for package @bitgo/sdk-coin-eth
362
+
363
+ ## [4.7.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@4.7.3) (2023-08-24)
364
+
365
+ **Note:** Version bump only for package @bitgo/sdk-coin-eth
366
+
367
+ ## [4.7.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@4.7.2) (2023-08-16)
368
+
369
+ **Note:** Version bump only for package @bitgo/sdk-coin-eth
370
+
371
+ ## [4.7.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@4.7.1) (2023-08-16)
372
+
373
+ **Note:** Version bump only for package @bitgo/sdk-coin-eth
374
+
375
+ # [4.7.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.5.5...@bitgo/sdk-coin-eth@4.7.0) (2023-08-04)
376
+
377
+ ### Features
378
+
379
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
380
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
381
+
382
+ # [4.6.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.5.5...@bitgo/sdk-coin-eth@4.6.0) (2023-07-28)
383
+
384
+ ### Features
385
+
386
+ - **root:** add node 18 to engines and CI ([9cc6a70](https://github.com/BitGo/BitGoJS/commit/9cc6a70ba807161b7c6a0ebe3d7c47f25c7c8eca))
387
+ - **root:** remove node 14 from engines ([6ec47cb](https://github.com/BitGo/BitGoJS/commit/6ec47cbd7996cc78bbf2cf7f16595c24fe43cd41))
388
+
389
+ ## [4.5.5](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.5.4...@bitgo/sdk-coin-eth@4.5.5) (2023-07-18)
390
+
391
+ **Note:** Version bump only for package @bitgo/sdk-coin-eth
392
+
393
+ ## [4.5.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.5.3...@bitgo/sdk-coin-eth@4.5.4) (2023-06-21)
394
+
395
+ **Note:** Version bump only for package @bitgo/sdk-coin-eth
396
+
397
+ ## [4.5.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.5.2...@bitgo/sdk-coin-eth@4.5.3) (2023-06-14)
398
+
399
+ **Note:** Version bump only for package @bitgo/sdk-coin-eth
400
+
401
+ ## [4.5.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.5.1...@bitgo/sdk-coin-eth@4.5.2) (2023-06-13)
402
+
403
+ **Note:** Version bump only for package @bitgo/sdk-coin-eth
404
+
405
+ ## [4.5.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.5.0...@bitgo/sdk-coin-eth@4.5.1) (2023-06-07)
406
+
407
+ **Note:** Version bump only for package @bitgo/sdk-coin-eth
408
+
409
+ # [4.5.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.4.4...@bitgo/sdk-coin-eth@4.5.0) (2023-06-05)
410
+
411
+ ### Bug Fixes
412
+
413
+ - **root:** update module deps ([98e0945](https://github.com/BitGo/BitGoJS/commit/98e09451f3ead6a0dd7c3aa3df62f8d000ba2f0e))
414
+
415
+ ### Features
416
+
417
+ - **sdk-core:** paillier proof user<>backup ([8c0a381](https://github.com/BitGo/BitGoJS/commit/8c0a381318be2088572e06e34c3627323d7bfe38))
418
+ - **sdk-core:** refactor signConvert to steps ([94e2cae](https://github.com/BitGo/BitGoJS/commit/94e2cae6e1292a4e9684c3c2ab7141221137d52e))
419
+ - **sdk-core:** simplify mpc.appendChallenge ([67bee8f](https://github.com/BitGo/BitGoJS/commit/67bee8f1b4f37cd12d6d14ea4d51ddcfde679563))
420
+ - **sdk-lib-mpc:** make rangeProof challenges mandatory for appendChallenge ([1f68b30](https://github.com/BitGo/BitGoJS/commit/1f68b30676966720cb1a42c039e35d3ddeea4974))
421
+
422
+ ## [4.4.4](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.4.3...@bitgo/sdk-coin-eth@4.4.4) (2023-05-25)
423
+
424
+ **Note:** Version bump only for package @bitgo/sdk-coin-eth
425
+
426
+ ## [4.4.3](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.4.2...@bitgo/sdk-coin-eth@4.4.3) (2023-05-17)
427
+
428
+ **Note:** Version bump only for package @bitgo/sdk-coin-eth
429
+
430
+ ## [4.4.2](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.4.1...@bitgo/sdk-coin-eth@4.4.2) (2023-05-10)
431
+
432
+ ### Bug Fixes
433
+
434
+ - **sdk-coin-eth:** fix eth multisig recoveries ([6e49792](https://github.com/BitGo/BitGoJS/commit/6e49792bfdb670a9e10dad10df932767b8ac6cdd))
435
+
436
+ ## [4.4.1](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.4.0...@bitgo/sdk-coin-eth@4.4.1) (2023-05-03)
437
+
438
+ **Note:** Version bump only for package @bitgo/sdk-coin-eth
439
+
6
440
  # [4.4.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.3.1...@bitgo/sdk-coin-eth@4.4.0) (2023-04-25)
7
441
 
8
442
  ### Features
@@ -1,13 +1,16 @@
1
1
  /**
2
2
  * @prettier
3
3
  */
4
- import { BitGoBase, CoinConstructor, NamedCoinConstructor } from '@bitgo-beta/sdk-core';
5
- import { Erc20TokenConfig } from '@bitgo-beta/statics';
4
+ import { BitGoBase, CoinConstructor, MPCAlgorithm, NamedCoinConstructor } from '@bitgo-beta/sdk-core';
5
+ import { EthLikeTokenConfig, Erc20TokenConfig } from '@bitgo-beta/statics';
6
+ import { CoinNames } from '@bitgo-beta/abstract-eth';
6
7
  import { Eth, RecoverOptions, RecoveryInfo, TransactionPrebuild } from './eth';
8
+ import { TransactionBuilder } from './lib';
7
9
  export { Erc20TokenConfig };
8
10
  export declare class Erc20Token extends Eth {
9
- readonly tokenConfig: Erc20TokenConfig;
11
+ readonly tokenConfig: EthLikeTokenConfig;
10
12
  protected readonly sendMethodName: 'sendMultiSig' | 'sendMultiSigToken';
13
+ static coinNames: CoinNames;
11
14
  constructor(bitgo: BitGoBase, tokenConfig: Erc20TokenConfig);
12
15
  static createTokenConstructor(config: Erc20TokenConfig): CoinConstructor;
13
16
  static createTokenConstructors(): NamedCoinConstructor[];
@@ -19,7 +22,7 @@ export declare class Erc20Token extends Eth {
19
22
  get decimalPlaces(): number;
20
23
  getChain(): string;
21
24
  getFullName(): string;
22
- getBaseFactor(): string;
25
+ getBaseFactor(): number;
23
26
  /**
24
27
  * Flag for sending value of 0
25
28
  * @returns {boolean} True if okay to send 0 value, false otherwise
@@ -30,6 +33,11 @@ export declare class Erc20Token extends Eth {
30
33
  * @returns {boolean} True if okay to send tx data (ETH), false otherwise
31
34
  */
32
35
  transactionDataAllowed(): boolean;
36
+ /** @inheritDoc */
37
+ supportsTss(): boolean;
38
+ /** @inheritDoc */
39
+ getMPCAlgorithm(): MPCAlgorithm;
40
+ protected getTransactionBuilder(): TransactionBuilder;
33
41
  /**
34
42
  * Builds a token recovery transaction without BitGo
35
43
  * @param params
@@ -1 +1 @@
1
- {"version":3,"file":"erc20Token.d.ts","sourceRoot":"","sources":["../../src/erc20Token.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,SAAS,EACT,eAAe,EAKf,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAU,MAAM,qBAAqB,CAAC;AAI/D,OAAO,EAAE,GAAG,EAAE,cAAc,EAAE,YAAY,EAAgB,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,qBAAa,UAAW,SAAQ,GAAG;IACjC,SAAgB,WAAW,EAAE,gBAAgB,CAAC;IAC9C,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc,GAAG,mBAAmB,CAAC;gBAE5D,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB;IAM3D,MAAM,CAAC,sBAAsB,CAAC,MAAM,EAAE,gBAAgB,GAAG,eAAe;IAIxE,MAAM,CAAC,uBAAuB,IAAI,oBAAoB,EAAE;IAUxD,IAAI,IAAI,WAEP;IAED,IAAI,IAAI,WAEP;IAED,IAAI,IAAI,WAEP;IAED,IAAI,OAAO,WAEV;IAED,IAAI,oBAAoB,WAEvB;IAED,IAAI,aAAa,WAEhB;IAED,QAAQ;IAIR,WAAW;IAIX,aAAa;IAIb;;;OAGG;IACH,wBAAwB;IAIxB;;;OAGG;IACH,sBAAsB;IAItB;;;;;;;;;OASG;IACG,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IA6K5D,YAAY,CAAC,SAAS,KAAA,EAAE,UAAU,KAAA,EAAE,kBAAkB,KAAA;IActD,iBAAiB,CAAC,MAAM,KAAA;;;;;IAqCxB,UAAU,CAAC,UAAU,EAAE,mBAAmB,GAAG,OAAO;CAGrD"}
1
+ {"version":3,"file":"erc20Token.d.ts","sourceRoot":"","sources":["../../src/erc20Token.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,SAAS,EACT,eAAe,EAKf,YAAY,EACZ,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAS,kBAAkB,EAAE,gBAAgB,EAAU,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAIrD,OAAO,EAAE,GAAG,EAAE,cAAc,EAAE,YAAY,EAAgB,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,qBAAa,UAAW,SAAQ,GAAG;IACjC,SAAgB,WAAW,EAAE,kBAAkB,CAAC;IAChD,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc,GAAG,mBAAmB,CAAC;IACxE,MAAM,CAAC,SAAS,EAAE,SAAS,CAGzB;gBAEU,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB;IAO3D,MAAM,CAAC,sBAAsB,CAAC,MAAM,EAAE,gBAAgB,GAAG,eAAe;IAIxE,MAAM,CAAC,uBAAuB,IAAI,oBAAoB,EAAE;IAUxD,IAAI,IAAI,WAEP;IAED,IAAI,IAAI,WAEP;IAED,IAAI,IAAI,WAEP;IAED,IAAI,OAAO,WAEV;IAED,IAAI,oBAAoB,WAEvB;IAED,IAAI,aAAa,WAEhB;IAED,QAAQ;IAIR,WAAW;IAIX,aAAa;IAIb;;;OAGG;IACH,wBAAwB;IAIxB;;;OAGG;IACH,sBAAsB;IAItB,kBAAkB;IAClB,WAAW,IAAI,OAAO;IAItB,kBAAkB;IAClB,eAAe,IAAI,YAAY;IAI/B,SAAS,CAAC,qBAAqB,IAAI,kBAAkB;IAIrD;;;;;;;;;OASG;IACG,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IA6K5D,YAAY,CAAC,SAAS,KAAA,EAAE,UAAU,KAAA,EAAE,kBAAkB,KAAA;IActD,iBAAiB,CAAC,MAAM,KAAA;;;;;IAqCxB,UAAU,CAAC,UAAU,EAAE,mBAAmB,GAAG,OAAO;CAGrD"}