From 5f2ad5778491fa56aa05acf4eb728a79b355a22d Mon Sep 17 00:00:00 2001
From: cebgcontract <99630598+cebgcontract@users.noreply.github.com>
Date: Fri, 4 Mar 2022 19:08:04 +0800
Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4web3modal,=20=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E7=99=BB=E9=99=86=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 2 +-
src/cebg.d.ts | 6 +
src/components/core/ChainModal.vue | 193 +++++++++++++++++
src/components/index/DesktopFooter.vue | 4 +
src/configs/allchain.ts | 274 +++++++++++++++++++++++++
src/configs/chains.ts | 59 ++++++
src/{utils => configs}/config_chain.ts | 0
src/main.ts | 3 +-
src/utils/ChainManager.ts | 12 +-
src/utils/blockchain.ts | 272 ++++++++++++++++--------
src/utils/chain.util.ts | 20 ++
src/utils/event-bus.ts | 8 +
vue.config.js | 3 +
13 files changed, 761 insertions(+), 95 deletions(-)
create mode 100644 src/cebg.d.ts
create mode 100644 src/components/core/ChainModal.vue
create mode 100644 src/configs/allchain.ts
create mode 100644 src/configs/chains.ts
rename src/{utils => configs}/config_chain.ts (100%)
create mode 100644 src/utils/chain.util.ts
diff --git a/.env.development b/.env.development
index d037843..dd33e6a 100644
--- a/.env.development
+++ b/.env.development
@@ -1,5 +1,5 @@
VUE_APP_WALLET_INFURAID='e7743d46923911fa8850619b7a7f6d9d'
-VUE_APP_BASE_API='https://market-test.kingsome.cn'
+VUE_APP_BASE_API='https://market.cebg.games'
VUE_APP_CHAIN_ID=322
VUE_APP_CHAIN_RPC='https://rpc-testnet.kcc.network'
VUE_APP_CHAIN_NAME='KCC-TESTNET'
diff --git a/src/cebg.d.ts b/src/cebg.d.ts
new file mode 100644
index 0000000..dba423d
--- /dev/null
+++ b/src/cebg.d.ts
@@ -0,0 +1,6 @@
+interface Window {
+ ethereum: any
+ web3: any
+ celo: any
+}
+declare let window: Window
diff --git a/src/components/core/ChainModal.vue b/src/components/core/ChainModal.vue
new file mode 100644
index 0000000..c89acc7
--- /dev/null
+++ b/src/components/core/ChainModal.vue
@@ -0,0 +1,193 @@
+
+