Skip to content

Commit

Permalink
Merge pull request #86 from Exzo-Network/main
Browse files Browse the repository at this point in the history
Add Exzo Network Mainnet
  • Loading branch information
noxonsu authored Aug 31, 2023
2 parents a69e226 + 18f70bf commit 09bdf12
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 1 deletion.
Binary file added src/assets/coin/source/xzo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/assets/coin/source/xzo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/config/chainConfig/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import edg, {EDG_MAIN_CHAINID} from './edg'
import hbit, {HBIT_MAIN_CHAINID} from './hashbit'
import fkw, {FKW_MAIN_CHAINID} from './fkw'
import ozo, {OZO_MAIN_CHAINID} from './ozone'
import xzo, {XZO_MAIN_CHAINID} from './xzo'


import {VERSION, USE_VERSION, env} from '../constant'
Expand Down Expand Up @@ -88,6 +89,7 @@ export const chainInfo:ConFig = {
...hbit,
...fkw,
...ozo,
...xzo,
}

const allChainList = [
Expand Down Expand Up @@ -129,6 +131,7 @@ const allChainList = [
HBIT_MAIN_CHAINID,
FKW_MAIN_CHAINID,
OZO_MAIN_CHAINID,
XZO_MAIN_CHAINID,
]

const useChain:any = {
Expand Down Expand Up @@ -279,6 +282,7 @@ const useChain:any = {
HBIT_MAIN_CHAINID,
FKW_MAIN_CHAINID,
OZO_MAIN_CHAINID,
XZO_MAIN_CHAINID,
]
}

Expand All @@ -287,4 +291,4 @@ const envType:any = env
const defChains = envType === 'dev' ? useChain['ALL_MAIN'] : useChain[USE_VERSION]
// @ts-ignore
const enabledChains = window && window.SO_CROSSCHAIN && window.SO_CROSSCHAIN.NETWORKS ? window.SO_CROSSCHAIN.NETWORKS : defChains
export const spportChainArr = enabledChains
export const spportChainArr = enabledChains
62 changes: 62 additions & 0 deletions src/config/chainConfig/xzo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import {formatSwapTokenList, getLocalRPC} from './methods'
import {tokenListUrl, VERSION, USE_VERSION} from '../constant'

export const XZO_MAIN_CHAINID = 1229
export const XZO_MAINNET = getLocalRPC(XZO_MAIN_CHAINID, 'https://evm.exzo.network')
export const XZO_MAIN_EXPLORER = 'https://evm.exzoscan.io'

export const tokenList = []
export const testTokenList = []

const symbol = 'XZO'

const bridgeToken = {
[VERSION.V1]: {
bridgeInitToken: '',
bridgeInitChain: '',
},
[VERSION.V5]: {
bridgeInitToken: '',
bridgeInitChain: '56',
nativeToken: '',
crossBridgeInitToken: ''
},
[VERSION.V7]: {
bridgeInitToken: '',
bridgeInitChain: '56',
nativeToken: '',
crossBridgeInitToken: ''
},
}

export default {
[XZO_MAIN_CHAINID]: {
tokenListUrl: tokenListUrl + XZO_MAIN_CHAINID,
tokenList: formatSwapTokenList(symbol, tokenList),
...bridgeToken[USE_VERSION],
wrappedToken: '0xb48344E930106cED3413BA69669CaD8b6DD4e1A5',
swapRouterToken: '',
swapInitToken: '',
multicalToken: '0x2250191beF1EC106CFbAdbE9f3E926B7066a94d7',
v1FactoryToken: '',
v2FactoryToken: '',
timelock: '',
nodeRpc: XZO_MAINNET,
nodeRpcList: [
XZO_MAINNET,
],
chainID: XZO_MAIN_CHAINID,
lookHash: XZO_MAIN_EXPLORER + '/tx/',
lookAddr: XZO_MAIN_EXPLORER + '/address/',
lookBlock: XZO_MAIN_EXPLORER + '/block/',
explorer: XZO_MAIN_EXPLORER,
symbol: symbol,
name: 'Exzo',
networkName: 'Exzo Network',
type: 'main',
label: XZO_MAIN_CHAINID,
isSwitch: 1,
suffix: 'XZO',
anyToken: ''
},
}

0 comments on commit 09bdf12

Please sign in to comment.