Skip to content

Commit

Permalink
add manta config
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiaobleach committed Jan 12, 2024
1 parent 6af81b5 commit 0df27dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ CANTO_ENDPOINT=https://canto.slingshot.finance
POLYGON_ZK_EVM_ENDPOINT=https://zkevm-rpc.com
ANTIMATTER_B2_ENDPOINT=https://rpc.antimatter.finance/
TELOS_ENDPOINT=https://mainnet.telos.net/evm
MANTA_ENDPOINT=https://manta-pacific.calderachain.xyz/http

LINEA_ENDPOINT=
LINEA_API_KEY='ABCDEF'
Expand Down
4 changes: 4 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ const scrollPrivateKey = process.env.SCROLL_PRIVATE_KEY || DEFAULT_PRIVATE_KEY;
const zksyncEraEndpoint = process.env.ZKSYNC_ERA_ENDPOINT || DEFAULT_ENDPOINT;
const zksyncEraPrivateKey = process.env.ZKSYNC_ERA_PRIVATE_KEY || DEFAULT_PRIVATE_KEY;

const mantaEndpoint = process.env.MANTA_ENDPOINT || DEFAULT_ENDPOINT;
const mantaPrivateKey = process.env.MANTA_PRIVATE_KEY || DEFAULT_PRIVATE_KEY;

// use kmsKeyId if it's not empty, otherwise use privateKey
function getNetworkConfig(url: string, kmsKeyId: string, privateKey: string, gasPrice?: number): NetworkUserConfig {
const network: NetworkUserConfig = !kmsKeyId
Expand Down Expand Up @@ -431,6 +434,7 @@ const config: HardhatUserConfig = {
base: getNetworkConfig(baseEndpoint, kmsKeyId, basePrivateKey),
telos: getNetworkConfig(telosEndpoint, kmsKeyId, telosPrivateKey),
scroll: getNetworkConfig(scrollEndpoint, kmsKeyId, scrollPrivateKey),
manta: getNetworkConfig(mantaEndpoint, kmsKeyId, scrollPrivateKey),
zksyncEra: zksyncEraNetwork
},
namedAccounts: {
Expand Down

0 comments on commit 0df27dc

Please sign in to comment.