fix(frontend): add Solana feature flag in tokens list #10352
Annotations
2 errors
Test:
src/frontend/src/tests/lib/derived/tokens.derived.spec.ts#L84
AssertionError: expected [ { id: Symbol(ICP), …(14) }, …(7) ] to deeply equal [ { id: Symbol(ICP), …(14) }, …(7) ]
- Expected
+ Received
Array [
Object {
"buy": Object {
"onramperId": "icp_icp",
},
"category": "default",
"decimals": 8,
"exchangeCoinId": "internet-computer",
"explorerUrl": "https://dashboard.internetcomputer.org",
"fee": 10000n,
"icon": "/src/frontend/src/icp/assets/icp_light.svg",
"id": Symbol(ICP),
"indexCanisterId": "qhbym-qaaaa-aaaaa-aaafq-cai",
"ledgerCanisterId": "ryjl3-tyaaa-aaaaa-aaaba-cai",
"name": "Internet Computer",
"network": Object {
"buy": Object {
"onramperId": "icp",
},
"env": "mainnet",
"icon": "/src/frontend/src/icp/assets/icp_light.svg",
"iconBW": "/src/frontend/src/lib/assets/networks/icp-bw.svg",
"id": Symbol(ICP),
"name": "Internet Computer",
},
"position": 0,
"standard": "icp",
"symbol": "ICP",
},
Object {
"category": "default",
"decimals": 8,
"icon": "/src/frontend/src/icp/assets/bitcoin.svg",
"id": Symbol(BTC),
"name": "Bitcoin",
"network": Object {
"buy": Object {
"onramperId": "bitcoin",
},
"env": "mainnet",
"explorerUrl": "https://blockstream.info",
"icon": "/src/frontend/src/icp/assets/bitcoin.svg",
"iconBW": "/src/frontend/src/lib/assets/networks/bitcoin-mainnet-bw.svg",
"id": Symbol(BTC),
"name": "Bitcoin",
},
"standard": "bitcoin",
"symbol": "BTC",
"twinTokenSymbol": "ckBTC",
},
Object {
"buy": Object {
"onramperId": "eth",
},
"category": "default",
"decimals": 18,
"icon": "/src/frontend/src/icp-eth/assets/eth.svg",
"id": Symbol(ETH),
"name": "Ethereum",
"network": Object {
"buy": Object {
"onramperId": "ethereum",
},
"chainId": 1n,
"env": "mainnet",
"explorerUrl": "https://etherscan.io",
"icon": "/src/frontend/src/icp-eth/assets/eth.svg",
"iconBW": "/src/frontend/src/lib/assets/networks/ethereum-bw.svg",
"id": Symbol(ETH),
"name": "Ethereum",
},
"standard": "ethereum",
"symbol": "ETH",
"twinTokenSymbol": "ckETH",
},
Object {
"buy": Object {
"onramperId": "sol",
},
"category": "default",
"decimals": 9,
"icon": "/src/frontend/src/lib/assets/networks/sol.svg",
"id": Symbol(SOL),
"name": "Solana",
"network": Object {
"env": "mainnet",
"icon": "/src/frontend/src/lib/assets/networks/sol.svg",
"iconBW": "/src/frontend/src/lib/assets/networks/sol-mainnet-bw.svg",
"id": Symbol(SOL),
"name": "Solana Mainnet Beta",
},
"standard": "solana",
"symbol": "SOL",
},
Object {
"address": "0x1d638414860ed08dd31fae848e527264f20512fa75d7d63cea9bbb372f0200001",
"category": "default",
"decimals": 8,
"enabled": false,
"exchange": "erc20",
"id": Symbol(Erc20DefaultTokenId),
"name": "SampleToken",
"network": Object {
"buy": Object {
"onramperId": "ethereum",
},
"chainId": 1n,
"env": "mainnet",
"explorerUrl": "https://etherscan.io",
"icon": "/src/frontend/src/icp-eth/assets/eth.svg",
"iconBW": "/src/frontend/src/lib/assets/networks/ethereum-bw.svg",
"id": Symbol(ETH),
"name": "Ethereum",
},
"standard": "erc20",
"symbol": "DTK",
"version": undefined,
},
Object {
"address": "0x1d638414860ed08dd31fae848e527264f20512fa75d7d63cea9bbb372f0200002",
"category": "default",
"decimals": 8,
"enabled": true,
"exchange": "erc20",
"id": Symbol(Erc20UserTokenId),
"name": "SampleToken",
"network": Object {
"buy": Object {
"onramperId": "ethereum",
},
"chainId": 1n
|
Test
Process completed with exit code 1.
|
Loading