@bitgo/sdk-coin-eth 15.0.0 → 17.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,120 @@
|
|
|
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
|
+
# [17.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@17.0.0) (2024-01-22)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
|
|
11
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
12
|
+
- **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
|
|
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:** 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 chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
23
|
+
- **account-lib:** add holesky testnet coin ([0aaefc0](https://github.com/BitGo/BitGoJS/commit/0aaefc0e53a5a48b2c701ca3c6d5e1c6ec7c19d2))
|
|
24
|
+
- **statics:** add test token on holesky ([82389aa](https://github.com/BitGo/BitGoJS/commit/82389aa566b9d1b40674343ecf02636646d90d86))
|
|
25
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
26
|
+
|
|
27
|
+
### BREAKING CHANGES
|
|
28
|
+
|
|
29
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
30
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
31
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
32
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
33
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
34
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
35
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
36
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
37
|
+
and Polygon class returns number instead of string just to align with
|
|
38
|
+
AbstractEthLikeCoin
|
|
39
|
+
Ticket: WIN-1012
|
|
40
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
41
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
42
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
43
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
44
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
45
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
46
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
47
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
48
|
+
and Polygon class returns number instead of string just to align with
|
|
49
|
+
AbstractEthLikeCoin
|
|
50
|
+
Ticket: WIN-1012
|
|
51
|
+
- **abstract-eth:** getTransactionBuilder method is removed from EthLikeToken
|
|
52
|
+
class in abstract-eth module because TransactionBuilder in the
|
|
53
|
+
abstract-eth module is abstract class and hence cannot be instantiated. Hence the implementation of TransactionBuilder can
|
|
54
|
+
be added to the class that will inherit EthLikeToken class
|
|
55
|
+
|
|
56
|
+
TransactionPrebuild from new class AbstractEthLikeNewCoins is being
|
|
57
|
+
exported now instead of TransactionPrebuild from AbstractEthLikeCoin
|
|
58
|
+
class as the TransactionPrebuild from AbstractEthLikeNewCoins also has
|
|
59
|
+
support for hop transactions, batch transactions, etc
|
|
60
|
+
|
|
61
|
+
TICKET: WIN-1021
|
|
62
|
+
|
|
63
|
+
# [16.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@16.0.0) (2024-01-09)
|
|
64
|
+
|
|
65
|
+
### Bug Fixes
|
|
66
|
+
|
|
67
|
+
- **abstract-eth:** fix issues related to chainid ([9114b1b](https://github.com/BitGo/BitGoJS/commit/9114b1b95ca0929d2d1ef5b33ba4f35e1184b5c7))
|
|
68
|
+
- **root:** update @types/node ([cedc1a0](https://github.com/BitGo/BitGoJS/commit/cedc1a0035e79bb42fda57bf6ac29d606242f50b))
|
|
69
|
+
- **sdk-coin-eth:** fix issue related to ethtxbuilder ([286ccfd](https://github.com/BitGo/BitGoJS/commit/286ccfd4bc89075fd2d8c59d3770dc3b8cd78c79))
|
|
70
|
+
|
|
71
|
+
### Code Refactoring
|
|
72
|
+
|
|
73
|
+
- **abstract-eth:** add common method to abstract-eth ([df6eea5](https://github.com/BitGo/BitGoJS/commit/df6eea5d299c415b30263d1713335c14e5abef4a))
|
|
74
|
+
- **abstract-eth:** move methods to abstract-eth ([af8bd10](https://github.com/BitGo/BitGoJS/commit/af8bd10e24c8d58fc227494de6a614098265580a))
|
|
75
|
+
- **abstract-eth:** move txbuilder to abstract-eth ([a093f16](https://github.com/BitGo/BitGoJS/commit/a093f16465b691d82b2709245cc806fc0eb66212))
|
|
76
|
+
|
|
77
|
+
### Features
|
|
78
|
+
|
|
79
|
+
- **abstract-eth:** add chain id as network identifier ([3ddec05](https://github.com/BitGo/BitGoJS/commit/3ddec05705cff891e46d21743d0ee864d68ab216))
|
|
80
|
+
- **account-lib:** add holesky testnet coin ([0aaefc0](https://github.com/BitGo/BitGoJS/commit/0aaefc0e53a5a48b2c701ca3c6d5e1c6ec7c19d2))
|
|
81
|
+
- **statics:** add test token on holesky ([82389aa](https://github.com/BitGo/BitGoJS/commit/82389aa566b9d1b40674343ecf02636646d90d86))
|
|
82
|
+
- update secp256k1 to 5.0.0 and keccak to 3.0.3 ([e2c37e6](https://github.com/BitGo/BitGoJS/commit/e2c37e6b0139c9f6948a22d8921bc3e1f88bed4c))
|
|
83
|
+
|
|
84
|
+
### BREAKING CHANGES
|
|
85
|
+
|
|
86
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
87
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
88
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
89
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
90
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
91
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
92
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
93
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
94
|
+
and Polygon class returns number instead of string just to align with
|
|
95
|
+
AbstractEthLikeCoin
|
|
96
|
+
Ticket: WIN-1012
|
|
97
|
+
- **abstract-eth:** Type of nextContractSequenceId field in TransactionPrebuild
|
|
98
|
+
interface is changed from string to number in AbstractEthLikeCoin and AbstractEthLikeNewCoins classes.
|
|
99
|
+
getCustomChainName method is removed from Polygon class because a common
|
|
100
|
+
method getCustomChainCommon has been added to AbstractEthLikeNewCoins
|
|
101
|
+
class for all EthLike coins. replayProtectionOptions is not optional in buildTransaction method in AbstractEthLikeNewCoins
|
|
102
|
+
and needs to be passed to derive the Eth common object from the chainId.
|
|
103
|
+
signFinalPolygon method name from Polygon class is updated to signFinalEthLike so that
|
|
104
|
+
it can be used for other EthLike coins. getBaseFactor method in Eth
|
|
105
|
+
and Polygon class returns number instead of string just to align with
|
|
106
|
+
AbstractEthLikeCoin
|
|
107
|
+
Ticket: WIN-1012
|
|
108
|
+
- **abstract-eth:** getTransactionBuilder method is removed from EthLikeToken
|
|
109
|
+
class in abstract-eth module because TransactionBuilder in the
|
|
110
|
+
abstract-eth module is abstract class and hence cannot be instantiated. Hence the implementation of TransactionBuilder can
|
|
111
|
+
be added to the class that will inherit EthLikeToken class
|
|
112
|
+
|
|
113
|
+
TransactionPrebuild from new class AbstractEthLikeNewCoins is being
|
|
114
|
+
exported now instead of TransactionPrebuild from AbstractEthLikeCoin
|
|
115
|
+
class as the TransactionPrebuild from AbstractEthLikeNewCoins also has
|
|
116
|
+
support for hop transactions, batch transactions, etc
|
|
117
|
+
|
|
118
|
+
TICKET: WIN-1021
|
|
119
|
+
|
|
6
120
|
# [15.0.0](https://github.com/BitGo/BitGoJS/compare/@bitgo/sdk-coin-eth@4.7.0...@bitgo/sdk-coin-eth@15.0.0) (2024-01-03)
|
|
7
121
|
|
|
8
122
|
### Bug Fixes
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { BaseCoin as CoinConfig } from '@bitgo/statics';
|
|
2
|
-
import { TransactionBuilder as EthLikeTransactionBuilder
|
|
2
|
+
import { TransactionBuilder as EthLikeTransactionBuilder } from '@bitgo/abstract-eth';
|
|
3
|
+
import { TransferBuilder } from './transferBuilder';
|
|
3
4
|
import { ERC721TransferBuilder, ERC1155TransferBuilder } from './transferBuilders';
|
|
4
5
|
/**
|
|
5
6
|
* Ethereum transaction builder.
|
|
6
7
|
*/
|
|
7
8
|
export declare class TransactionBuilder extends EthLikeTransactionBuilder {
|
|
9
|
+
protected _transfer: TransferBuilder | ERC721TransferBuilder | ERC1155TransferBuilder;
|
|
8
10
|
/**
|
|
9
11
|
* Public constructor.
|
|
10
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionBuilder.d.ts","sourceRoot":"","sources":["../../../src/lib/transactionBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAmB,MAAM,gBAAgB,CAAC;AACzE,OAAO,
|
|
1
|
+
{"version":3,"file":"transactionBuilder.d.ts","sourceRoot":"","sources":["../../../src/lib/transactionBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,UAAU,EAAmB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAA0B,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAG9G,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACnF;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,yBAAyB;IAC/D,SAAS,CAAC,SAAS,EAAE,eAAe,GAAG,qBAAqB,GAAG,sBAAsB,CAAC;IACtF;;;;OAIG;gBACS,WAAW,EAAE,QAAQ,CAAC,UAAU,CAAC;IAO7C;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe,GAAG,qBAAqB,GAAG,sBAAsB;CAoB1F"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TransactionBuilder = void 0;
|
|
4
4
|
const abstract_eth_1 = require("@bitgo/abstract-eth");
|
|
5
5
|
const sdk_core_1 = require("@bitgo/sdk-core");
|
|
6
|
+
const transferBuilder_1 = require("./transferBuilder");
|
|
6
7
|
const walletUtil_1 = require("./walletUtil");
|
|
7
8
|
const transferBuilders_1 = require("./transferBuilders");
|
|
8
9
|
/**
|
|
@@ -34,7 +35,7 @@ class TransactionBuilder extends abstract_eth_1.TransactionBuilder {
|
|
|
34
35
|
}
|
|
35
36
|
else if (!this._transfer) {
|
|
36
37
|
if (this._type === sdk_core_1.TransactionType.Send) {
|
|
37
|
-
this._transfer = new
|
|
38
|
+
this._transfer = new transferBuilder_1.TransferBuilder(data);
|
|
38
39
|
}
|
|
39
40
|
else if (this._type === sdk_core_1.TransactionType.SendERC721) {
|
|
40
41
|
this._transfer = new transferBuilders_1.ERC721TransferBuilder(data);
|
|
@@ -47,4 +48,4 @@ class TransactionBuilder extends abstract_eth_1.TransactionBuilder {
|
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
exports.TransactionBuilder = TransactionBuilder;
|
|
50
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb25CdWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi90cmFuc2FjdGlvbkJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0Esc0RBQThHO0FBQzlHLDhDQUF5RTtBQUV6RSx1REFBb0Q7QUFDcEQsNkNBQW9EO0FBQ3BELHlEQUFtRjtBQUNuRjs7R0FFRztBQUNILE1BQWEsa0JBQW1CLFNBQVEsaUNBQXlCO0lBRS9EOzs7O09BSUc7SUFDSCxZQUFZLFdBQWlDO1FBQzNDLEtBQUssQ0FBQyxXQUFXLENBQUMsQ0FBQztRQUNuQixJQUFJLENBQUMsT0FBTyxHQUFHLHdCQUFTLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxPQUEwQixDQU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uU2VuZEVSQzcyMSB8fFxuICAgICAgICB0aGlzLl90eXBlID09PSBUcmFuc2FjdGlvblR5cGUuU2VuZEVSQzExNTVcbiAgICAgIClcbiAgICApIHtcbiAgICAgIHRocm93IG5ldyBCdWlsZFRyYW5zYWN0aW9uRXJyb3IoJ1RyYW5zZmVycyBjYW4gb25seSBiZSBzZXQgZm9yIHNlbmQgdHJhbnNhY3Rpb25zJyk7XG4gICAgfSBlbHNlIGlmICghdGhpcy5fdHJhbnNmZXIpIHtcbiAgICAgIGlmICh0aGlzLl90eXBlID09PSBUcmFuc2FjdGlvblR5cGUuU2VuZCkge1xuICAgICAgICB0aGlzLl90cmFuc2ZlciA9IG5ldyBUcmFuc2ZlckJ1aWxkZXIoZGF0YSk7XG4gICAgICB9IGVsc2UgaWYgKHRoaXMuX3R5cGUgPT09IFRyYW5zYWN0aW9uVHlwZS5TZW5kRVJDNzIxKSB7XG4gICAgICAgIHRoaXMuX3RyYW5zZmVyID0gbmV3IEVSQzcyMVRyYW5zZmVyQnVpbGRlcihkYXRhKTtcbiAgICAgIH0gZWxzZSBpZiAodGhpcy5fdHlwZSA9PT0gVHJhbnNhY3Rpb25UeXBlLlNlbmRFUkMxMTU1KSB7XG4gICAgICAgIHRoaXMuX3RyYW5zZmVyID0gbmV3IEVSQzExNTVUcmFuc2ZlckJ1aWxkZXIoZGF0YSk7XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiB0aGlzLl90cmFuc2ZlcjtcbiAgfVxufVxuIl19
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitgo/sdk-coin-eth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
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,10 +40,10 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@bitgo/abstract-eth": "^
|
|
44
|
-
"@bitgo/sdk-core": "^
|
|
45
|
-
"@bitgo/statics": "^
|
|
46
|
-
"@bitgo/utxo-lib": "^9.
|
|
43
|
+
"@bitgo/abstract-eth": "^14.0.0",
|
|
44
|
+
"@bitgo/sdk-core": "^21.0.0",
|
|
45
|
+
"@bitgo/statics": "^42.0.0",
|
|
46
|
+
"@bitgo/utxo-lib": "^9.29.0",
|
|
47
47
|
"@ethereumjs/tx": "^3.3.0",
|
|
48
48
|
"@ethereumjs/util": "8.0.3",
|
|
49
49
|
"ethereumjs-abi": "^0.6.5",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"superagent": "^3.8.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@bitgo/sdk-api": "^1.
|
|
58
|
-
"@bitgo/sdk-test": "^
|
|
57
|
+
"@bitgo/sdk-api": "^1.37.0",
|
|
58
|
+
"@bitgo/sdk-test": "^3.0.0",
|
|
59
59
|
"tweetnacl": "^1.0.3"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "d01639ed72ef058d060acba08818718cf397b2e3"
|
|
62
62
|
}
|