@bitgo-beta/abstract-eth 1.0.2-beta.495 → 1.0.2-beta.497

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