Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add manta config #281

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading