Skip to content

Commit d8275b8

Browse files
committed
geyser upgrade script
1 parent 8d11f3d commit d8275b8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

hardhat.config.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,15 @@ task('create-vault', 'deploy an instance of UniversalVault')
194194
await createInstance('UniversalVault', vaultFactory, ethers.getContractAt, signer)
195195
})
196196

197+
task('deploy-geyser-template', 'deploys the current geyser template')
198+
.addOptionalParam('instanceType', 'the type of geyser to be deployed', 'Geyser')
199+
.setAction(async ({ instanceType }, { ethers, run, network, upgrades }) => {
200+
await run('compile')
201+
const signer = (await ethers.getSigners())[0]
202+
console.log('Signer', signer.address)
203+
await deployContract(instanceType, ethers.getContractFactory, signer)
204+
})
205+
197206
task('create-geyser', 'deploy an instance of Geyser')
198207
.addParam('stakingToken', 'the staking token')
199208
.addParam('rewardToken', 'the reward token')
@@ -357,7 +366,7 @@ export default {
357366
allowUnlimitedContractSize: true,
358367
},
359368
mainnet: {
360-
url: `https://mainnet.infura.io/v3/${process.env.INFURA_SECRET}`,
369+
url: `https://eth-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_SECRET}`,
361370
accounts: {
362371
mnemonic: process.env.PROD_MNEMONIC || Wallet.createRandom().mnemonic.phrase,
363372
},

0 commit comments

Comments
 (0)