Skip to content

Commit

Permalink
comment network test and add cbBTC to seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Dec 16, 2024
1 parent 7b62770 commit 8b8100d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 17 deletions.
10 changes: 10 additions & 0 deletions migration/data/seedTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1695,6 +1695,16 @@ const seedTokens: ITokenData[] = [
coingeckoId: 'degen-base',
isGivbackEligible: false,
},
// cbBTC - https://basescan.org/token/0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf
{
name: 'Coinbase Wrapped BTC',
symbol: 'cbBTC',
address: '0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf',
decimals: 8,
networkId: NETWORK_IDS.BASE_MAINNET,
coingeckoId: 'coinbase-wrapped-btc',
isGivbackEligible: false,
},
// Osaka Protocol - https://basescan.org/token/0xbFd5206962267c7b4b4A8B3D76AC2E1b2A5c4d5e
{
name: 'Osaka Protocol',
Expand Down
34 changes: 17 additions & 17 deletions src/services/chains/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -597,24 +597,24 @@ function getTransactionDetailTestCases() {
// assert.equal(transactionInfo.amount, amount);
// });

it('should return transaction detail for normal transfer on ZKEVM Cardano', async () => {
// https://cardona-zkevm.polygonscan.com/tx/0x5cadef5d2ee803ff78718deb926964c14d83575ccebf477d48b0c3c768a4152a
// it('should return transaction detail for normal transfer on ZKEVM Cardano', async () => {
// // https://cardona-zkevm.polygonscan.com/tx/0x5cadef5d2ee803ff78718deb926964c14d83575ccebf477d48b0c3c768a4152a

const amount = 0.00001;
const transactionInfo = await getTransactionInfoFromNetwork({
txHash:
'0x5cadef5d2ee803ff78718deb926964c14d83575ccebf477d48b0c3c768a4152a',
symbol: 'ETH',
networkId: NETWORK_IDS.ZKEVM_CARDONA,
fromAddress: '0x9AF3049dD15616Fd627A35563B5282bEA5C32E20',
toAddress: '0x417a7BA2d8d0060ae6c54fd098590DB854B9C1d5',
amount,
timestamp: 1718267581,
});
assert.isOk(transactionInfo);
assert.equal(transactionInfo.currency, 'ETH');
assert.equal(transactionInfo.amount, amount);
});
// const amount = 0.00001;
// const transactionInfo = await getTransactionInfoFromNetwork({
// txHash:
// '0x5cadef5d2ee803ff78718deb926964c14d83575ccebf477d48b0c3c768a4152a',
// symbol: 'ETH',
// networkId: NETWORK_IDS.ZKEVM_CARDONA,
// fromAddress: '0x9AF3049dD15616Fd627A35563B5282bEA5C32E20',
// toAddress: '0x417a7BA2d8d0060ae6c54fd098590DB854B9C1d5',
// amount,
// timestamp: 1718267581,
// });
// assert.isOk(transactionInfo);
// assert.equal(transactionInfo.currency, 'ETH');
// assert.equal(transactionInfo.amount, amount);
// });

it('should return transaction detail for OP token transfer on optimistic', async () => {
// https://optimistic.etherscan.io/tx/0xf11be189d967831bb8a76656882eeeac944a799bd222acbd556f2156fdc02db4
Expand Down

0 comments on commit 8b8100d

Please sign in to comment.