@bitgo/sdk-coin-eth 16.0.0 → 17.0.0

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 (2) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -3,6 +3,63 @@
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
+ # [17.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@17.0.0) (2024-01-22)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
11
+ - **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
12
+ - **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
13
+
14
+ ### Code Refactoring
15
+
16
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
17
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
18
+ - **abstract-eth:** move txbuilder to abstract-eth ([a093f16](https://github.com/BitGo/BitGoJS/commit/a093f16465b691d82b2709245cc806fc0eb66212))
19
+
20
+ ### Features
21
+
22
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
23
+ - **account-lib:** add holesky testnet coin ([0aaefc0](https://github.com/BitGo/BitGoJS/commit/0aaefc0e53a5a48b2c701ca3c6d5e1c6ec7c19d2))
24
+ - **statics:** add test token on holesky ([82389aa](https://github.com/BitGo/BitGoJS/commit/82389aa566b9d1b40674343ecf02636646d90d86))
25
+ - update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
26
+
27
+ ### BREAKING CHANGES
28
+
29
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
30
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
31
+ getCustomChainName method is removed from Polygon class because a common
32
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
33
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
34
+ and needs to be passed to derive the Eth common object from the chainId.
35
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
36
+ it can be used for other EthLike coins. getBaseFactor method in Eth
37
+ and Polygon class returns number instead of string just to align with
38
+ AbstractEthLikeCoin
39
+ Ticket: WIN-1012
40
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
41
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
42
+ getCustomChainName method is removed from Polygon class because a common
43
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
44
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
45
+ and needs to be passed to derive the Eth common object from the chainId.
46
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
47
+ it can be used for other EthLike coins. getBaseFactor method in Eth
48
+ and Polygon class returns number instead of string just to align with
49
+ AbstractEthLikeCoin
50
+ Ticket: WIN-1012
51
+ - **abstract-eth:** getTransactionBuilder method is removed from EthLikeToken
52
+ class in abstract-eth module because TransactionBuilder in the
53
+ abstract-eth module is abstract class and hence cannot be instantiated. Hence the implementation of TransactionBuilder can
54
+ be added to the class that will inherit EthLikeToken class
55
+
56
+ TransactionPrebuild from new class AbstractEthLikeNewCoins is being
57
+ exported now instead of TransactionPrebuild from AbstractEthLikeCoin
58
+ class as the TransactionPrebuild from AbstractEthLikeNewCoins also has
59
+ support for hop transactions, batch transactions, etc
60
+
61
+ TICKET: WIN-1021
62
+
6
63
  # [16.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@16.0.0) (2024-01-09)
7
64
 
8
65
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/sdk-coin-eth",
3
- "version": "16.0.0",
3
+ "version": "17.0.0",
4
4
  "description": "BitGo SDK coin library for Ethereum",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -40,10 +40,10 @@
40
40
  ]
41
41
  },
42
42
  "dependencies": {
43
- "@bitgo/abstract-eth": "^13.0.0",
44
- "@bitgo/sdk-core": "^20.0.0",
45
- "@bitgo/statics": "^41.0.0",
46
- "@bitgo/utxo-lib": "^9.28.0",
43
+ "@bitgo/abstract-eth": "^14.0.0",
44
+ "@bitgo/sdk-core": "^21.0.0",
45
+ "@bitgo/statics": "^42.0.0",
46
+ "@bitgo/utxo-lib": "^9.29.0",
47
47
  "@ethereumjs/tx": "^3.3.0",
48
48
  "@ethereumjs/util": "8.0.3",
49
49
  "ethereumjs-abi": "^0.6.5",
@@ -54,9 +54,9 @@
54
54
  "superagent": "^3.8.3"
55
55
  },
56
56
  "devDependencies": {
57
- "@bitgo/sdk-api": "^1.36.0",
58
- "@bitgo/sdk-test": "^2.0.0",
57
+ "@bitgo/sdk-api": "^1.37.0",
58
+ "@bitgo/sdk-test": "^3.0.0",
59
59
  "tweetnacl": "^1.0.3"
60
60
  },
61
- "gitHead": "3dc64ad723a264ed5b8c31e28136a63f97bcc3ef"
61
+ "gitHead": "d01639ed72ef058d060acba08818718cf397b2e3"
62
62
  }