Skip to content

Commit

Permalink
feat: fantom
Browse files Browse the repository at this point in the history
  • Loading branch information
mahnunchik committed May 6, 2024
1 parent 4d0a313 commit 3a8244b
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 20 deletions.
1 change: 1 addition & 0 deletions server/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ steps:
&& if [[ "${_VITE_API_ADA_URL}" ]]; then export VITE_API_ADA_URL=${_VITE_API_ADA_URL}; fi \
&& if [[ "${_VITE_API_TON_URL}" ]]; then export VITE_API_TON_URL=${_VITE_API_TON_URL}; fi \
&& if [[ "${_VITE_API_OP_URL}" ]]; then export VITE_API_OP_URL=${_VITE_API_OP_URL}; fi \
&& if [[ "${_VITE_API_FTM_URL}" ]]; then export VITE_API_FTM_URL=${_VITE_API_FTM_URL}; fi \
&& npm run build
- name: 'gcr.io/cloud-builders/docker'
Expand Down
9 changes: 4 additions & 5 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"lint:api": "spectral lint ./lib/v*/*.yaml"
},
"dependencies": {
"@coinspace/crypto-db": "^1.9.3",
"@coinspace/crypto-db": "^1.10.0",
"@ensdomains/address-encoder": "^0.2.9",
"@sentry/integrations": "^6.17.3",
"@sentry/node": "^6.17.3",
Expand Down
1 change: 1 addition & 0 deletions web/.env
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ VITE_API_TRX_URL=https://trx.coin.space/
VITE_API_ADA_URL=https://ada.coin.space/
VITE_API_TON_URL=https://ton.coin.space/
VITE_API_OP_URL=https://op.coin.space/
VITE_API_FTM_URL=https://ftm.coin.space/
1 change: 1 addition & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
%VITE_API_ARB_URL%
%VITE_API_TON_URL%
%VITE_API_OP_URL%
%VITE_API_FTM_URL%
https://api.coingecko.com/
https://api.moonpay.com
https://*.sentry.io;
Expand Down
18 changes: 8 additions & 10 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
"lint:style": "stylelint '**/*.{vue,scss}'"
},
"dependencies": {
"@coinspace/crypto-db": "^1.9.3",
"@coinspace/crypto-db": "^1.10.0",
"@coinspace/cs-bitcoin-wallet": "^1.1.2",
"@coinspace/cs-cardano-wallet": "^2.0.0",
"@coinspace/cs-common": "^1.1.2",
"@coinspace/cs-eos-wallet": "^2.0.2",
"@coinspace/cs-evm-wallet": "^1.2.0",
"@coinspace/cs-evm-wallet": "^1.3.0",
"@coinspace/cs-monero-wallet": "^2.0.2",
"@coinspace/cs-ripple-wallet": "^2.2.0",
"@coinspace/cs-solana-wallet": "^2.0.4",
Expand Down
7 changes: 5 additions & 2 deletions web/src/lib/account/Account.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const EVM_FAMILY = [
'binance-smart-chain',
'arbitrum',
'optimism',
'fantom',
];

async function loadWalletModule(platform) {
Expand Down Expand Up @@ -380,6 +381,10 @@ export default class Account extends EventEmitter {
return import.meta.env.VITE_API_AVAX_URL;
case 'arbitrum':
return import.meta.env.VITE_API_ARB_URL;
case 'optimism':
return import.meta.env.VITE_API_OP_URL;
case 'fantom':
return import.meta.env.VITE_API_FTM_URL;
// Ripple-like
case 'ripple':
return import.meta.env.VITE_API_XRP_URL;
Expand All @@ -398,8 +403,6 @@ export default class Account extends EventEmitter {
return import.meta.env.VITE_API_ADA_URL;
case 'toncoin':
return import.meta.env.VITE_API_TON_URL;
case 'optimism':
return import.meta.env.VITE_API_OP_URL;
default:
throw new errors.InternalWalletError(`Unsupported platform "${platform}"`);
}
Expand Down
1 change: 1 addition & 0 deletions web/src/views/Crypto/Add/CryptoAddStepSelectBlockchain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default {
'polygon@polygon',
'solana@solana',
'tron@tron',
'fantom@fantom',
],
};
},
Expand Down

0 comments on commit 3a8244b

Please sign in to comment.