@@ -194,6 +194,15 @@ task('create-vault', 'deploy an instance of UniversalVault')
194
194
await createInstance ( 'UniversalVault' , vaultFactory , ethers . getContractAt , signer )
195
195
} )
196
196
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
+
197
206
task ( 'create-geyser' , 'deploy an instance of Geyser' )
198
207
. addParam ( 'stakingToken' , 'the staking token' )
199
208
. addParam ( 'rewardToken' , 'the reward token' )
@@ -357,7 +366,7 @@ export default {
357
366
allowUnlimitedContractSize : true ,
358
367
} ,
359
368
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 } ` ,
361
370
accounts : {
362
371
mnemonic : process . env . PROD_MNEMONIC || Wallet . createRandom ( ) . mnemonic . phrase ,
363
372
} ,
0 commit comments