-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(sdk-coin-ethlike): add new ethLikeCoin package #4580
feat(sdk-coin-ethlike): add new ethLikeCoin package #4580
Conversation
19d0e57
to
6937400
Compare
return new EthLikeCoin(bitgo, staticsCoin); | ||
} | ||
|
||
protected getTransactionBuilder(common?: EthereumCommon): EthLikeTransactionBuilder { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a common
param which is used to build txn for evm chains
6937400
to
f4305eb
Compare
f4305eb
to
17382f7
Compare
8cb05a3
to
8bc9a0b
Compare
|
"@bitgo/abstract-eth": "^21.5.1", | ||
"@bitgo/sdk-core": "^26.15.0", | ||
"@bitgo/statics": "^48.15.0", | ||
"@ethereumjs/common": "^2.6.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"@ethereumjs/common": "^2.6.5", | |
"@ethereumjs/common": "2.6.5", |
Please lock the version by removing the caret symbol for external dependencies.
8bc9a0b
to
eda2c8d
Compare
constructor(_coinConfig: Readonly<CoinConfig>, common?: EthereumCommon) { | ||
super(_coinConfig); | ||
if (!common) { | ||
throw new Error('Common must be provided for EthLikeTransactionBuilder'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we not make the common
parameter an optional argument since we are throwing an error if it is not passed? Or reverse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'common` as an optional parameter and we cannot make it mandatory cause it will break other coins functionality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes lgtm, but tests are failing
eda2c8d
to
ba305cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CODEOWNERS LGTM
Ticket: COIN-667
TICKET: COIN-667
We use the this ethLikeCoin packages to build txns for evm coins which bitgo doesn't support.
This commit also adds required changes to support
base chain coin.