Skip to content
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

refactor: all onekey-asset.com cdn #4536

Merged
merged 2 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const network: DBNetwork = {
feeSymbol: 'CFX',
id: 'cfx--1',
impl: 'cfx',
logoURI: 'https://onekey-asset.com/assets/cfx/cfx.png',
logoURI: 'https://uni.onekey-asset.com/static/chain/cfx.png',
name: 'Conflux',
position: 33,
rpcURL: 'https://test.confluxrpc.com',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const network: DBNetwork = {
feeSymbol: 'NEAR',
id: 'near--0',
impl: 'near',
logoURI: 'https://onekey-asset.com/assets/near/near.png',
logoURI: 'https://uni.onekey-asset.com/static/chain/near.png',
name: 'Near Mainnet',
position: 33,
rpcURL: 'https://node.onekey.so/near',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const network: DBNetwork = {
feeSymbol: 'TNEX',
id: 'nexa--testnet',
impl: 'nexa',
logoURI: 'https://onekey-asset.com/assets/nexa/nexa.png',
logoURI: 'https://uni.onekey-asset.com/static/chain/nexa.png',
name: 'Nexa Testnet',
position: 33,
rpcURL: 'wss://testnet-explorer.nexa.org:30004/nexa_ws',
Expand Down
34 changes: 17 additions & 17 deletions packages/engine/src/vaults/impl/nexa/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ describe('Nexa Utils Tests', () => {
'tokenIdOnNetwork': '',
'symbol': 'NEX',
'decimals': 2,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'impl': 'nexa',
'chainId': '0',
'address': '',
Expand Down Expand Up @@ -456,7 +456,7 @@ describe('Nexa Utils Tests', () => {
'id': 'nexa--0',
'impl': 'nexa',
'isNative': true,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'name': 'NEX',
'networkId': 'nexa--0',
'source': '',
Expand Down Expand Up @@ -488,7 +488,7 @@ describe('Nexa Utils Tests', () => {
'id': 'nexa--0',
'impl': 'nexa',
'isNative': true,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'name': 'NEX',
'networkId': 'nexa--0',
'source': '',
Expand Down Expand Up @@ -614,7 +614,7 @@ describe('Nexa Utils Tests', () => {
'tokenIdOnNetwork': '',
'symbol': 'NEX',
'decimals': 2,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'impl': 'nexa',
'chainId': '0',
'address': '',
Expand Down Expand Up @@ -642,7 +642,7 @@ describe('Nexa Utils Tests', () => {
'id': 'nexa--0',
'impl': 'nexa',
'isNative': true,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'name': 'NEX',
'networkId': 'nexa--0',
'source': '',
Expand All @@ -667,7 +667,7 @@ describe('Nexa Utils Tests', () => {
'id': 'nexa--0',
'impl': 'nexa',
'isNative': true,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'name': 'NEX',
'networkId': 'nexa--0',
'source': '',
Expand Down Expand Up @@ -699,7 +699,7 @@ describe('Nexa Utils Tests', () => {
'id': 'nexa--0',
'impl': 'nexa',
'isNative': true,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'name': 'NEX',
'networkId': 'nexa--0',
'source': '',
Expand Down Expand Up @@ -811,7 +811,7 @@ describe('Nexa Utils Tests', () => {
'tokenIdOnNetwork': '',
'symbol': 'NEX',
'decimals': 2,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'impl': 'nexa',
'chainId': '0',
'address': '',
Expand Down Expand Up @@ -839,7 +839,7 @@ describe('Nexa Utils Tests', () => {
'id': 'nexa--0',
'impl': 'nexa',
'isNative': true,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'name': 'NEX',
'networkId': 'nexa--0',
'source': '',
Expand Down Expand Up @@ -871,7 +871,7 @@ describe('Nexa Utils Tests', () => {
'id': 'nexa--0',
'impl': 'nexa',
'isNative': true,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'name': 'NEX',
'networkId': 'nexa--0',
'source': '',
Expand All @@ -896,7 +896,7 @@ describe('Nexa Utils Tests', () => {
'id': 'nexa--0',
'impl': 'nexa',
'isNative': true,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'name': 'NEX',
'networkId': 'nexa--0',
'source': '',
Expand Down Expand Up @@ -988,7 +988,7 @@ describe('Nexa Utils Tests', () => {
'tokenIdOnNetwork': '',
'symbol': 'NEX',
'decimals': 2,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'impl': 'nexa',
'chainId': '0',
'address': '',
Expand Down Expand Up @@ -1016,7 +1016,7 @@ describe('Nexa Utils Tests', () => {
'id': 'nexa--0',
'impl': 'nexa',
'isNative': true,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'name': 'NEX',
'networkId': 'nexa--0',
'source': '',
Expand Down Expand Up @@ -1048,7 +1048,7 @@ describe('Nexa Utils Tests', () => {
'id': 'nexa--0',
'impl': 'nexa',
'isNative': true,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'name': 'NEX',
'networkId': 'nexa--0',
'source': '',
Expand Down Expand Up @@ -1160,7 +1160,7 @@ describe('Nexa Utils Tests', () => {
'tokenIdOnNetwork': '',
'symbol': 'NEX',
'decimals': 2,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'impl': 'nexa',
'chainId': '0',
'address': '',
Expand Down Expand Up @@ -1188,7 +1188,7 @@ describe('Nexa Utils Tests', () => {
'id': 'nexa--0',
'impl': 'nexa',
'isNative': true,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'name': 'NEX',
'networkId': 'nexa--0',
'source': '',
Expand Down Expand Up @@ -1220,7 +1220,7 @@ describe('Nexa Utils Tests', () => {
'id': 'nexa--0',
'impl': 'nexa',
'isNative': true,
'logoURI': 'https://onekey-asset.com/assets/nexa/nexa.png',
'logoURI': 'https://uni.onekey-asset.com/static/chain/nexa.png',
'name': 'NEX',
'networkId': 'nexa--0',
'source': '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const network: DBNetwork = {
feeSymbol: 'SOL',
id: 'sol--501',
impl: 'sol',
logoURI: 'https://onekey-asset.com/assets/cfx/cfx.png',
logoURI: 'https://uni.onekey-asset.com/static/chain/cfx.png',
name: 'tsol',
position: 33,
rpcURL: 'https://api.devnet.solana.com',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const network: DBNetwork = {
feeSymbol: 'STC',
id: 'stc--251',
impl: 'stc',
logoURI: 'https://onekey-asset.com/assets/tstc/tstc.png',
logoURI: 'https://uni.onekey-asset.com/static/chain/tstc.png',
name: 'Starcoin barnard',
position: 33,
rpcURL: 'https://barnard-seed.starcoin.org',
Expand Down
12 changes: 6 additions & 6 deletions packages/kit/src/views/Components/stories/List/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ const TokenListData: TokenListDataType[] = [
type: 'text',
label: 'Label',
description: 'Description...',
src: 'https://onekey-asset.com/assets/btc/btc.png',
src: 'https://uni.onekey-asset.com/static/chain/btc.png',
},
{
id: '3ac68afc-c605-48d3-a4f8-fbd91aa97f63',
type: 'text',
label: 'Label',
description: 'Description...',
src: 'https://onekey-asset.com/assets/eth/eth.png',
src: 'https://uni.onekey-asset.com/static/chain/eth.png',
},
{
id: '58694a0f-3da1-471f-bd96-145571e29d72',
type: 'text',
label: 'Label',
description: 'Description...',
src: 'https://onekey-asset.com/assets/bsc/bsc.png',
src: 'https://uni.onekey-asset.com/static/chain/bsc.png',
},
];

Expand Down Expand Up @@ -103,7 +103,7 @@ const GroupingListData = [
const MarketData = [
{
order: 1,
src: 'https://onekey-asset.com/assets/btc/btc.png',
src: 'https://uni.onekey-asset.com/static/chain/btc.png',
tokenShortName: 'BTC',
tokenName: 'Bitcoin',
price: '$20000.00',
Expand All @@ -113,7 +113,7 @@ const MarketData = [
},
{
order: 1,
src: 'https://onekey-asset.com/assets/eth/eth.png',
src: 'https://uni.onekey-asset.com/static/chain/eth.png',
tokenShortName: 'BTC',
tokenName: 'Bitcoin',
price: '$20000.00',
Expand All @@ -123,7 +123,7 @@ const MarketData = [
},
{
order: 1,
src: 'https://onekey-asset.com/assets/bsc/bsc.png',
src: 'https://uni.onekey-asset.com/static/chain/bsc.png',
tokenShortName: 'BTC',
tokenName: 'Bitcoin',
price: '$20000.00',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import type { ToggleButtonProps } from '@onekeyhq/components/src/ToggleButtonGro
const buttons: ToggleButtonProps[] = [
{
text: 'BTC',
leftImage: 'https://onekey-asset.com/assets/btc/btc.png',
leftImage: 'https://uni.onekey-asset.com/static/chain/btc.png',
},
{
text: '',
leftIcon: 'StarMini',
},
{
text: '',
leftImage: 'https://onekey-asset.com/assets/bsc/bsc.png',
leftImage: 'https://uni.onekey-asset.com/static/chain/bsc.png',
},
{
text: 'polygon',
Expand Down
Loading
Loading