Skip to content

Commit

Permalink
feat: makes mainnet default
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodressel authored and mmpetarpeshev committed Jun 25, 2024
1 parent c2a4605 commit 57e3e4f
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 52 deletions.
5 changes: 3 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
VITE_DEFAULT_NETWORK=ae_uat
VITE_DEFAULT_NETWORK=ae_mainnet
VITE_WALLET_URL=https://wallet.superhero.com

VITE_UNFINISHED_FEATURES=true
VITE_SENTRY_URL=https://c8aaaee7201f46ca9cd8d16eacc28ee0@o1154841.ingest.sentry.io/6234797

VITE_MAINNET_DEX_BACKEND_URL=https://dex-backend-mainnet.prd.service.aepps.com/
#VITE_MAINNET_DEX_BACKEND_URL=https://dex-backend-mainnet.prd.service.aepps.com/
# VITE_TESTNET_DEX_BACKEND_URL=https://dex-backend-testnet.prd.service.aepps.com/
VITE_MAINNET_DEX_BACKEND_URL=http://localhost:3000
VITE_TESTNET_DEX_BACKEND_URL=http://localhost:3000

VITE_DEX_BACKEND_FETCH_TIMEOUT=500 #if skipped or 0 a default value of 2000 will be applied
Expand Down
99 changes: 49 additions & 50 deletions src/lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,56 +15,55 @@ export const MIN_DEADLINE = 1;
export const MAX_DEADLINE = 1000;

export const DEFAULT_NETWORKS = [
// TODO reenable
// {
// url: 'https://mainnet.aeternity.io',
// middlewareUrl: 'https://mainnet.aeternity.io/mdw',
// explorerUrl: 'https://explorer.aeternity.io',
// name: 'Mainnet',
// networkId: 'ae_mainnet',
// networkName: 'mainnet',
// factoryAddress: 'ct_2mfj3FoZxnhkSw5RZMcP8BfPoB1QR4QiYGNCdkAvLZ1zfF6paW',
// routerAddress: 'ct_azbNZ1XrPjXfqBqbAh1ffLNTQ1sbnuUDFvJrXjYz7JQA1saQ3',
// waeAddress: 'ct_J3zBY8xxjsRr3QojETNw48Eb38fjvEuJKkQ6KzECvubvEcvCa',
// dexBackendUrl: import.meta.env.VITE_MAINNET_DEX_BACKEND_URL,
// tokens: [
// {
// contract_id: 'ct_J3zBY8xxjsRr3QojETNw48Eb38fjvEuJKkQ6KzECvubvEcvCa',
// decimals: MAGNITUDE,
// name: 'AE',
// symbol: 'AE',
// is_ae: true,
// },
// {
// contract_id: 'ct_J3zBY8xxjsRr3QojETNw48Eb38fjvEuJKkQ6KzECvubvEcvCa',
// decimals: MAGNITUDE,
// name: 'Wrapped AE',
// symbol: 'WAE',
// is_ae: false,
// },
// {
// contract_id: 'ct_KeTvHnhU85vuuQMMZocaiYkPL9tkoavDRT3Jsy47LK2YqLHYb',
// decimals: MAGNITUDE,
// name: 'WeTrue Token',
// symbol: 'WTT',
// is_ae: false,
// },
// {
// contract_id: 'ct_7UfopTwsRuLGFEcsScbYgQ6YnySXuyMxQWhw6fjycnzS5Nyzq',
// decimals: MAGNITUDE,
// name: 'AeBox Coin',
// symbol: 'ABC',
// is_ae: false,
// },
// {
// contract_id: 'ct_2uny6n3qLA1kgboiK4GBYmmdbQKvCCcgU2VvfrVwLiCc5gPFuP',
// decimals: MAGNITUDE,
// name: 'Regenerates Points Token',
// symbol: 'RPT',
// is_ae: false,
// },
// ],
// },
{
url: 'https://mainnet.aeternity.io',
middlewareUrl: 'https://mainnet.aeternity.io/mdw',
explorerUrl: 'https://explorer.aeternity.io',
name: 'Mainnet',
networkId: 'ae_mainnet',
networkName: 'mainnet',
factoryAddress: 'ct_2mfj3FoZxnhkSw5RZMcP8BfPoB1QR4QiYGNCdkAvLZ1zfF6paW',
routerAddress: 'ct_azbNZ1XrPjXfqBqbAh1ffLNTQ1sbnuUDFvJrXjYz7JQA1saQ3',
waeAddress: 'ct_J3zBY8xxjsRr3QojETNw48Eb38fjvEuJKkQ6KzECvubvEcvCa',
dexBackendUrl: import.meta.env.VITE_MAINNET_DEX_BACKEND_URL,
tokens: [
{
contract_id: 'ct_J3zBY8xxjsRr3QojETNw48Eb38fjvEuJKkQ6KzECvubvEcvCa',
decimals: MAGNITUDE,
name: 'AE',
symbol: 'AE',
is_ae: true,
},
{
contract_id: 'ct_J3zBY8xxjsRr3QojETNw48Eb38fjvEuJKkQ6KzECvubvEcvCa',
decimals: MAGNITUDE,
name: 'Wrapped AE',
symbol: 'WAE',
is_ae: false,
},
{
contract_id: 'ct_KeTvHnhU85vuuQMMZocaiYkPL9tkoavDRT3Jsy47LK2YqLHYb',
decimals: MAGNITUDE,
name: 'WeTrue Token',
symbol: 'WTT',
is_ae: false,
},
{
contract_id: 'ct_7UfopTwsRuLGFEcsScbYgQ6YnySXuyMxQWhw6fjycnzS5Nyzq',
decimals: MAGNITUDE,
name: 'AeBox Coin',
symbol: 'ABC',
is_ae: false,
},
{
contract_id: 'ct_2uny6n3qLA1kgboiK4GBYmmdbQKvCCcgU2VvfrVwLiCc5gPFuP',
decimals: MAGNITUDE,
name: 'Regenerates Points Token',
symbol: 'RPT',
is_ae: false,
},
],
},
{
url: 'https://testnet.aeternity.io',
middlewareUrl: 'https://testnet.aeternity.io/mdw',
Expand Down

0 comments on commit 57e3e4f

Please sign in to comment.