@bitgo-beta/abstract-eth 1.0.2-beta.465 → 1.0.2-beta.467

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 +62 -0
  2. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -3,6 +3,68 @@
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
+ # [15.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-eth@1.4.0...@bitgo/abstract-eth@15.0.0) (2024-01-25)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
11
+ - **sdk-coin-polygon:** fix issues ([85e9396](https://github.com/BitGo/BitGoJS/commit/85e93967abd056f5054198f385a1b109246a281f))
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:** delete mpc related classes ([52396ed](https://github.com/BitGo/BitGoJS/commit/52396ed5aae8b27f0cc6caee7011a7c6882b9dea))
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 abstractethliketsscoin class ([eb99545](https://github.com/BitGo/BitGoJS/commit/eb995457d7787af073f0a9eafe6e4d420228f5f0))
23
+ - **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
24
+ - **sdk-core:** add function to transfer nfts ([b77b386](https://github.com/BitGo/BitGoJS/commit/b77b386bf77408d4b1617ba3bc44e5899a65f2e0))
25
+
26
+ ### BREAKING CHANGES
27
+
28
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
29
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
30
+ getCustomChainName method is removed from Polygon class because a common
31
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
32
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
33
+ and needs to be passed to derive the Eth common object from the chainId.
34
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
35
+ it can be used for other EthLike coins. getBaseFactor method in Eth
36
+ and Polygon class returns number instead of string just to align with
37
+ AbstractEthLikeCoin
38
+ Ticket: WIN-1012
39
+ - **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
40
+ interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
41
+ getCustomChainName method is removed from Polygon class because a common
42
+ method getCustomChainCommon has been added to AbstractEthLikeNewCoins
43
+ class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
44
+ and needs to be passed to derive the Eth common object from the chainId.
45
+ signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
46
+ it can be used for other EthLike coins. getBaseFactor method in Eth
47
+ and Polygon class returns number instead of string just to align with
48
+ AbstractEthLikeCoin
49
+ Ticket: WIN-1012
50
+ - **abstract-eth:** AbstractEthLikeMPCCoin and EthLikeMPCToken classes are removed as we have instead added
51
+ a new class AbstractEthLikeNewCoins which will be having both multisig
52
+ and MPC related methods
53
+
54
+ TICKET: WIN-1021
55
+
56
+ - **abstract-eth:** getTransactionBuilder method is removed from EthLikeToken
57
+ class in abstract-eth module because TransactionBuilder in the
58
+ abstract-eth module is abstract class and hence cannot be instantiated. Hence the implementation of TransactionBuilder can
59
+ be added to the class that will inherit EthLikeToken class
60
+
61
+ TransactionPrebuild from new class AbstractEthLikeNewCoins is being
62
+ exported now instead of TransactionPrebuild from AbstractEthLikeCoin
63
+ class as the TransactionPrebuild from AbstractEthLikeNewCoins also has
64
+ support for hop transactions, batch transactions, etc
65
+
66
+ TICKET: WIN-1021
67
+
6
68
  # [14.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/abstract-eth@1.4.0...@bitgo/abstract-eth@14.0.0) (2024-01-22)
7
69
 
8
70
  ### 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.465",
3
+ "version": "1.0.2-beta.467",
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.234",
44
- "@bitgo-beta/sdk-lib-mpc": "8.2.0-beta.226",
45
- "@bitgo-beta/statics": "15.1.1-beta.237",
46
- "@bitgo-beta/utxo-lib": "8.0.3-beta.235",
43
+ "@bitgo-beta/sdk-core": "8.2.1-beta.236",
44
+ "@bitgo-beta/sdk-lib-mpc": "8.2.0-beta.228",
45
+ "@bitgo-beta/statics": "15.1.1-beta.239",
46
+ "@bitgo-beta/utxo-lib": "8.0.3-beta.237",
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": "618db61c9d3fe3530c4d73dea7e549bfac847b01"
60
+ "gitHead": "a5b486124c25ff41360b729c3c6394f6d5ad7809"
61
61
  }