From ab99d190a4fdf095f05d6a359bae4a3efca11ab5 Mon Sep 17 00:00:00 2001 From: cebgcontract <99630598+cebgcontract@users.noreply.github.com> Date: Fri, 18 Feb 2022 17:06:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 8 ++++---- .env.production_dev => .env.test | 0 package.json | 9 ++++++--- src/router/index.ts | 3 +++ src/utils/config_chain.ts | 2 +- 5 files changed, 14 insertions(+), 8 deletions(-) rename .env.production_dev => .env.test (100%) diff --git a/.env.production b/.env.production index d037843..d8699cb 100644 --- a/.env.production +++ b/.env.production @@ -1,9 +1,9 @@ VUE_APP_WALLET_INFURAID='e7743d46923911fa8850619b7a7f6d9d' VUE_APP_BASE_API='https://market-test.kingsome.cn' -VUE_APP_CHAIN_ID=322 -VUE_APP_CHAIN_RPC='https://rpc-testnet.kcc.network' -VUE_APP_CHAIN_NAME='KCC-TESTNET' -VUE_APP_CHAIN_EXPLORERURL='https://scan-testnet.kcc.network +VUE_APP_CHAIN_ID=321 +VUE_APP_CHAIN_RPC='https://rpc-mainnet.kcc.network' +VUE_APP_CHAIN_NAME='KCC-MAINNET' +VUE_APP_CHAIN_EXPLORERURL='https://explorer.kcc.io' VUE_APP_CHAIN_CURRENCY_NAME='name' VUE_APP_CHAIN_CURRENCY_SYMBOL='KCS' VUE_APP_CHAIN_CURRENCY_DECIMALS=18 diff --git a/.env.production_dev b/.env.test similarity index 100% rename from .env.production_dev rename to .env.test diff --git a/package.json b/package.json index 64265ca..d1b278b 100644 --- a/package.json +++ b/package.json @@ -4,10 +4,13 @@ "private": true, "scripts": { "serve": "vue-cli-service serve", - "build": "vue-cli-service build", + "build:prod": "vue-cli-service build", + "build:test": "vue-cli-service build --mode test", "lint": "vue-cli-service lint", - "deploy": "rm -f ./dist/.DS_Store && aws s3 sync ./dist s3://cebg.games", - "deploy:test": "rm -f ./dist/.DS_Store && aws s3 sync ./dist s3://test.cebg.games" + "deploy:prod": "rm -f ./dist/.DS_Store && aws s3 sync ./dist s3://cebg.games", + "deploy:test": "rm -f ./dist/.DS_Store && aws s3 sync ./dist s3://test.cebg.games", + "refresh:prod": "aws cloudfront create-invalidation --distribution-id E34PEY4AGTMS0Y --paths \"/*\"", + "refresh:test": "aws cloudfront create-invalidation --distribution-id E2GYP9BZTQSSXT --paths \"/*\"" }, "dependencies": { "@walletconnect/web3-provider": "^1.7.1", diff --git a/src/router/index.ts b/src/router/index.ts index b219e52..0ec5a5d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -35,6 +35,9 @@ const routes: Array = [ path: '/presale', name: 'Presale', component: Presale + // beforeEnter(to, from, next) { + // window.location.href = 'https://test.cebg.games/presale' + // } }, { path: '/mynft', diff --git a/src/utils/config_chain.ts b/src/utils/config_chain.ts index a221e60..0d14e0c 100644 --- a/src/utils/config_chain.ts +++ b/src/utils/config_chain.ts @@ -287,4 +287,4 @@ export const ERC20ABI = [ } ] -export const MALL_ADDRESS = '0x40ffB0642e0B4494c47b6ad781862C0BDB3256A8' +export const MALL_ADDRESS = '0xF278ff771F9E24968083B0bA54Cb42eb4B23C2d7'