@bitgo/sdk-coin-eth 21.1.0 → 22.0.1

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