Skip to content

Commit

Permalink
refactor: all onekey-asset.com cdn (#4536)
Browse files Browse the repository at this point in the history
Co-authored-by: huhuanming <huanming@onekey.so>
  • Loading branch information
xiaoshude and huhuanming authored May 6, 2024
1 parent 43df70a commit a8fd5bd
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 114 deletions.
2 changes: 1 addition & 1 deletion packages/engine/src/vaults/impl/cfx/@tests/cfxMockData.ts
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
2 changes: 1 addition & 1 deletion packages/engine/src/vaults/impl/sol/@tests/solMockData.ts
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
2 changes: 1 addition & 1 deletion packages/engine/src/vaults/impl/stc/@tests/stcMockData.ts
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

0 comments on commit a8fd5bd

Please sign in to comment.