-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
89 additions
and
75 deletions.
There are no files selected for viewing
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,51 @@ | ||
import dotenv from "dotenv"; | ||
dotenv.config(); | ||
|
||
// https://docs.scrt.network/secret-network-documentation/confidential-computing-layer/ethereum-evm-developer-toolkit/supported-networks/secret-gateway/secretpath-testnet-pulsar-3-contracts | ||
// https://docs.scrt.network/secret-network-documentation/confidential-computing-layer/ethereum-evm-developer-toolkit/supported-networks/secret-gateway/secretpath-mainnet-secret-4-contracts | ||
|
||
const config = { | ||
network: "testnet", | ||
// codeId 1533 | ||
mainnet: { | ||
walletMnemonic: process.env.WALLET_MNEMONIC_MAINNET, | ||
isOptimizedContractWasm: true, | ||
wasmContractPath: "secret_evm_storage.wasm.gz", | ||
// TODO: is it correct that the Gateway public key is the same for both Mainnet and Testnet as shown in the docs here, even though they have a different Gateway address? https://docs.scrt.network/secret-network-documentation/confidential-computing-layer/ethereum-evm-developer-toolkit/supported-networks/secret-gateway | ||
gatewayAddress: "secret1qzk574v8lckjmqdg3r3qf3337pk45m7qd8x02a", | ||
gatewayHash: "012dd8efab9526dec294b6898c812ef6f6ad853e32172788f54ef3c305c1ecc5", | ||
gatewayPublicKey: "0x04a0d632acd0d2f5da02fc385ea30a8deab4d5639d1a821a3a552625ad0f1759d0d2e80ca3adb236d90caf1b12e0ddf3a351c5729b5e00505472dca6fed5c31e2a", | ||
nunyaBusinessContractAddress: "", | ||
codeId: "1533", // only know after upload | ||
contractCodeHash: "", // only know after upload | ||
}, | ||
// codeId 3375 | ||
testnet: { | ||
walletMnemonic: process.env.WALLET_MNEMONIC_TESTNET, | ||
isOptimizedContractWasm: true, | ||
wasmContractPath: "secret_evm_storage.wasm.gz", | ||
gatewayAddress: "secret10ex7r7c4y704xyu086lf74ymhrqhypayfk7fkj", | ||
gatewayHash: "ad8ca07ffba1cb26ebf952c29bc4eced8319c171430993e5b5089887f27b3f70", | ||
gatewayPublicKey: "0x046d0aac3ef10e69055e934ca899f508ba516832dc74aa4ed4d741052ed5a568774d99d3bfed641a7935ae73aac8e34938db747c2f0e8b2aa95c25d069a575cc8b", | ||
nunyaBusinessContractAddress: "", | ||
chainId: "pulsar-3", | ||
endpoint: process.env.ENDPOINT_TESTNET, | ||
codeId: "3375", // only know after upload | ||
contractCodeHash: "", // only know after upload | ||
}, | ||
local: { | ||
walletMnemonic: process.env.WALLET_MNEMONIC_LOCAL, | ||
isOptimizedContractWasm: false, | ||
wasmContractPath: "secret_evm_storage.wasm.gz", | ||
gatewayAddress: "", | ||
gatewayHash: "", | ||
gatewayPublicKey: "", | ||
nunyaBusinessContractAddress: "", | ||
chainId: "secretdev-1", | ||
endpoint: process.env.ENDPOINT_LOCAL, | ||
codeId: "0", // only know after upload | ||
contractCodeHash: "", // only know after upload | ||
} | ||
}; | ||
|
||
export default config; |
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