@bitgo-beta/abstract-eth 1.0.2-beta.450 → 1.0.2-beta.451

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 +6 -6
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
+ # [12.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-eth@1.4.0...@bitgo/abstract-eth@12.0.0) (2024-01-03)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
11
+
12
+ ### Code Refactoring
13
+
14
+ - **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
15
+ - **abstract-eth:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
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
+ - **abstract-eth:** add abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
22
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
23
+ - **sdk-core:** add function to transfer nfts ([b77b386](https://github.com/BitGo/BitGoJS/commit/b77b386bf77408d4b1617ba3bc44e5899a65f2e0))
24
+
25
+ ### BREAKING CHANGES
26
+
27
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
28
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
29
+ getCustomChainName method is removed from Polygon class because a common
30
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
31
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
32
+ and needs to be passed to derive the Eth common object from the chainId.
33
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
34
+ it can be used for other EthLike coins. getBaseFactor method in Eth
35
+ and Polygon class returns number instead of string just to align with
36
+ AbstractEthLikeCoin
37
+ Ticket: WIN-1012
38
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
39
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
40
+ getCustomChainName method is removed from Polygon class because a common
41
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
42
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
43
+ and needs to be passed to derive the Eth common object from the chainId.
44
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
45
+ it can be used for other EthLike coins. getBaseFactor method in Eth
46
+ and Polygon class returns number instead of string just to align with
47
+ AbstractEthLikeCoin
48
+ Ticket: WIN-1012
49
+ - **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
50
+ a new class AbstractEthLikeNewCoins which will be having both multisig
51
+ and MPC related methods
52
+
53
+ TICKET: WIN-1021
54
+
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
  # [11.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-eth@1.4.0...@bitgo/abstract-eth@11.0.0) (2023-12-18)
7
68
 
8
69
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo-beta/abstract-eth",
3
- "version": "1.0.2-beta.450",
3
+ "version": "1.0.2-beta.451",
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",
@@ -40,10 +40,10 @@
40
40
  ]
41
41
  },
42
42
  "dependencies": {
43
- "@bitgo-beta/sdk-core": "8.2.1-beta.219",
44
- "@bitgo-beta/sdk-lib-mpc": "8.2.0-beta.211",
45
- "@bitgo-beta/statics": "15.1.1-beta.222",
46
- "@bitgo-beta/utxo-lib": "8.0.3-beta.220",
43
+ "@bitgo-beta/sdk-core": "8.2.1-beta.220",
44
+ "@bitgo-beta/sdk-lib-mpc": "8.2.0-beta.212",
45
+ "@bitgo-beta/statics": "15.1.1-beta.223",
46
+ "@bitgo-beta/utxo-lib": "8.0.3-beta.221",
47
47
  "@ethereumjs/common": "^2.6.5",
48
48
  "@ethereumjs/tx": "^3.3.0",
49
49
  "@metamask/eth-sig-util": "^5.0.2",
@@ -57,5 +57,5 @@
57
57
  "lodash": "4.17.21",
58
58
  "secp256k1": "5.0.0"
59
59
  },
60
- "gitHead": "05d09531edf40098d1c9a44df7e9cf33d0f0845f"
60
+ "gitHead": "2b07858b45b4bf3a7e4844b829c0ac343509b4a2"
61
61
  }