@bitgo/abstract-eth 3.0.0 → 4.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 +43 -0
  2. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -3,6 +3,49 @@
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
+ # [4.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-eth@1.4.0...@bitgo/abstract-eth@4.0.0) (2023-11-13)
7
+
8
+ ### Code Refactoring
9
+
10
+ - **abstract-eth:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
11
+ - **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
12
+ - **abstract-eth:** move txbuilder to abstract-eth ([a093f16](https://github.com/BitGo/BitGoJS/commit/a093f16465b691d82b2709245cc806fc0eb66212))
13
+
14
+ ### Features
15
+
16
+ - **abstract-eth:** add abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
17
+
18
+ ### BREAKING CHANGES
19
+
20
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
21
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
22
+ getCustomChainName method is removed from Polygon class because a common
23
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
24
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
25
+ and needs to be passed to derive the Eth common object from the chainId.
26
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
27
+ it can be used for other EthLike coins. getBaseFactor method in Eth
28
+ and Polygon class returns number instead of string just to align with
29
+ AbstractEthLikeCoin
30
+ Ticket: WIN-1012
31
+ - **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
32
+ a new class AbstractEthLikeNewCoins which will be having both multisig
33
+ and MPC related methods
34
+
35
+ TICKET: WIN-1021
36
+
37
+ - **abstract-eth:** getTransactionBuilder method is removed from EthLikeToken
38
+ class in abstract-eth module because TransactionBuilder in the
39
+ abstract-eth module is abstract class and hence cannot be instantiated. Hence the implementation of TransactionBuilder can
40
+ be added to the class that will inherit EthLikeToken class
41
+
42
+ TransactionPrebuild from new class AbstractEthLikeNewCoins is being
43
+ exported now instead of TransactionPrebuild from AbstractEthLikeCoin
44
+ class as the TransactionPrebuild from AbstractEthLikeNewCoins also has
45
+ support for hop transactions, batch transactions, etc
46
+
47
+ TICKET: WIN-1021
48
+
6
49
  # [3.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-eth@1.4.0...@bitgo/abstract-eth@3.0.0) (2023-11-13)
7
50
 
8
51
  ### Code Refactoring
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/abstract-eth",
3
- "version": "3.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "BitGo SDK coin library for ETH base implementation",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",
@@ -37,10 +37,10 @@
37
37
  ]
38
38
  },
39
39
  "dependencies": {
40
- "@bitgo/sdk-core": "^10.0.0",
41
- "@bitgo/sdk-lib-mpc": "^8.17.0",
42
- "@bitgo/statics": "^31.0.0",
43
- "@bitgo/utxo-lib": "^9.18.0",
40
+ "@bitgo/sdk-core": "^11.0.0",
41
+ "@bitgo/sdk-lib-mpc": "^8.18.0",
42
+ "@bitgo/statics": "^32.0.0",
43
+ "@bitgo/utxo-lib": "^9.19.0",
44
44
  "@ethereumjs/common": "^2.6.5",
45
45
  "@ethereumjs/tx": "^3.3.0",
46
46
  "@metamask/eth-sig-util": "^5.0.2",
@@ -54,5 +54,5 @@
54
54
  "lodash": "4.17.21",
55
55
  "secp256k1": "5.0.0"
56
56
  },
57
- "gitHead": "88043a4c4622a55b669c7b2354c523ce74ec888a"
57
+ "gitHead": "dff3c836e35cbf7919ccf87b7595cc65e9f25b64"
58
58
  }