Skip to content

Commit

Permalink
chore: setup dedicated wallet config for mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
amarinkovic committed Dec 1, 2023
1 parent 3cb97e4 commit d8d869b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions gemforge.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const fs = require("fs");
const ethers = require("ethers");

const MNEMONIC = fs.readFileSync("./nayms_mnemonic.txt").toString().trim();
const MNEMONIC_MAINNET = fs.readFileSync("./nayms_mnemonic_mainnet.txt").toString().trim();

const walletOwnerIndex = 19;
const sysAdminAddress = ethers.Wallet.fromMnemonic(MNEMONIC).address;
Expand Down Expand Up @@ -93,17 +94,19 @@ module.exports = {
},
// Wallets to use for deployment
wallets: {
// Wallet named "wallet1"
wallet1: {
// Wallet type - mnemonic
type: "mnemonic",
// Wallet config
config: {
// Mnemonic phrase
words: MNEMONIC,
// 0-based index of the account to use
index: walletOwnerIndex,
},
wallet2: {
type: "mnemonic",
config: {
words: MNEMONIC_MAINNET,
index: 0
}
}
},
},
networks: {
Expand All @@ -122,7 +125,6 @@ module.exports = {
},
baseFork: { rpcUrl: "http://localhost:8545" },
},
// Targets to deploy
targets: {
local: {
network: "local",
Expand All @@ -141,7 +143,7 @@ module.exports = {
},
mainnet: {
network: "mainnet",
wallet: "wallet1",
wallet: "wallet2",
initArgs: [sysAdminAddress],
},
mainnetFork: {
Expand Down

0 comments on commit d8d869b

Please sign in to comment.