-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support polygon-zkEvm and gnosis USDT (#590)
* Support polygon-zkEvm and gnosis USDT * Update gnosis.png
- Loading branch information
1 parent
bc73733
commit 8f68b6d
Showing
10 changed files
with
143 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { ChainConfig, ChainID } from "@/types"; | ||
|
||
export const gnosisChain: ChainConfig = { | ||
/** | ||
* Chain | ||
*/ | ||
id: ChainID.GNOSIS, | ||
network: "gnosis", | ||
name: "Gnosis Chain", | ||
nativeCurrency: { | ||
name: "xDai", | ||
symbol: "xDai", | ||
decimals: 18, | ||
}, | ||
rpcUrls: { | ||
default: { | ||
http: ["https://rpc.gnosischain.com/"], | ||
webSocket: [], | ||
}, | ||
public: { | ||
http: ["https://rpc.gnosischain.com/"], | ||
webSocket: [], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: "GnosisScan", | ||
url: "https://gnosisscan.io/", | ||
}, | ||
}, | ||
|
||
/** | ||
* Custom | ||
*/ | ||
logo: "gnosis.png", | ||
tokens: [ | ||
{ | ||
decimals: 18, | ||
symbol: "xDai", | ||
name: "xDai", | ||
type: "native", | ||
address: "0x0000000000000000000000000000000000000000", | ||
logo: "xdai.svg", | ||
cross: [], | ||
}, | ||
{ | ||
decimals: 18, | ||
symbol: "USDT", | ||
name: "USDT", | ||
type: "erc20", | ||
address: "0x4ECaBa5870353805a9F068101A40E0f32ed605C6", | ||
logo: "usdt.png", | ||
cross: [{ target: { network: "bsc", symbol: "USDT" }, bridge: { category: "lnbridgev20-default" } }], | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { ChainConfig, ChainID } from "@/types"; | ||
|
||
export const polygonZkEvmChain: ChainConfig = { | ||
/** | ||
* Chain | ||
*/ | ||
id: ChainID.POLYGON_ZKEVM, | ||
network: "polygon-zkEvm", | ||
name: "Polygon zkEVM", | ||
nativeCurrency: { | ||
name: "ETH", | ||
symbol: "ETH", | ||
decimals: 18, | ||
}, | ||
rpcUrls: { | ||
default: { | ||
http: ["https://zkevm-rpc.com"], | ||
webSocket: [], | ||
}, | ||
public: { | ||
http: ["https://zkevm-rpc.com"], | ||
webSocket: [], | ||
}, | ||
}, | ||
blockExplorers: { | ||
default: { | ||
name: "Polygonscan", | ||
url: "https://zkevm.polygonscan.com/", | ||
}, | ||
}, | ||
|
||
/** | ||
* Custom | ||
*/ | ||
logo: "polygon.png", | ||
tokens: [ | ||
{ | ||
decimals: 18, | ||
symbol: "ETH", | ||
name: "ETH", | ||
type: "native", | ||
address: "0x0000000000000000000000000000000000000000", | ||
logo: "eth.svg", | ||
cross: [], | ||
}, | ||
{ | ||
decimals: 18, | ||
symbol: "USDT", | ||
name: "USDT", | ||
type: "erc20", | ||
address: "0x1E4a5963aBFD975d8c9021ce480b42188849D41d", | ||
logo: "usdt.png", | ||
cross: [ | ||
{ target: { network: "polygon", symbol: "USDT" }, bridge: { category: "lnbridgev20-default" } }, | ||
{ target: { network: "bsc", symbol: "USDT" }, bridge: { category: "lnbridgev20-default" } }, | ||
], | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters