-
Notifications
You must be signed in to change notification settings - Fork 299
feat: added opBNB support #7731
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
base: master
Are you sure you want to change the base?
Conversation
| }); | ||
| }); | ||
|
|
||
| describe('OpBNB Coin (topbnb)', function () { |
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.
don't duplicate same tests for a new coin, make existing tests work run for all coins
| }; | ||
|
|
||
| // opBNB Testnet specific mock data helpers (chainId: 5611) | ||
| export function getOpBNBTxListRequest(address: string) { |
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.
you probbaly can use existing data
| account( | ||
| '2b5c52f8-0d0c-4a17-8052-d56373f5d264', | ||
| 'topbnb', | ||
| 'opBNB Testnet', | ||
| Networks.test.opbnb, | ||
| 18, | ||
| UnderlyingAsset.OPBNB, | ||
| BaseUnit.ETH, | ||
| [...ETH_FEATURES, CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA, CoinFeature.EIP1559] | ||
| ), | ||
| account( | ||
| '1588f6da-8e43-4535-8e1c-25e53788437b', | ||
| 'opbnb', | ||
| 'opBNB Mainnet', | ||
| Networks.main.opbnb, | ||
| 18, | ||
| UnderlyingAsset.OPBNB, | ||
| BaseUnit.ETH, | ||
| [...ETH_FEATURES, CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA, CoinFeature.EIP1559] | ||
| ), |
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.
do we need to add it here ?
can we not build txns without this ?
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.
Required to enable EIP-1559 transaction support and the tests use getCommon(coin) which calls coins.get(coin) to fetch the network configuration (chainId, name). The coin must be registered in statics for this to work.
406a9d3 to
f01a689
Compare
Ticket: COIN-6014
TICKET: COIN-6014