diff --git a/deploy/0_distributor.ts b/deploy/0_distributor.ts index 5c5b3b6..e056bb3 100644 --- a/deploy/0_distributor.ts +++ b/deploy/0_distributor.ts @@ -25,17 +25,18 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => { console.log('Now deploying Distributor'); console.log('Starting with the implementation'); - await deploy('Distributor_Implementation', { + await deploy('Distributor_Implementation_2', { contract: 'Distributor', from: deployer.address, log: !argv.ci, }); - const implementationAddress = (await ethers.getContract('Distributor_Implementation')).address; + const implementationAddress = (await ethers.getContract('Distributor_Implementation_2')).address; console.log(`Successfully deployed the implementation for Distributor at ${implementationAddress}`); console.log(''); + /* console.log('Now deploying the Proxy'); await deploy('Distributor', { @@ -51,7 +52,7 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => { const contract = new ethers.Contract(distributor, Distributor__factory.createInterface(), deployer) as Distributor; await (await contract.connect(deployer).initialize(core)).wait(); console.log('Contract successfully initialized'); - + */ console.log(''); }; diff --git a/deploy/1_distributionCreator.ts b/deploy/1_distributionCreator.ts index ea9896c..1485195 100644 --- a/deploy/1_distributionCreator.ts +++ b/deploy/1_distributionCreator.ts @@ -22,13 +22,13 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => { console.log('Now deploying DistributionCreator'); console.log('Starting with the implementation'); - await deploy('DistributionCreator_Implementation_2', { + await deploy('DistributionCreator_Implementation_3', { contract: 'DistributionCreator', from: deployer.address, log: !argv.ci, }); - const implementationAddress = (await ethers.getContract('DistributionCreator_Implementation_2')).address; + const implementationAddress = (await ethers.getContract('DistributionCreator_Implementation_3')).address; console.log(`Successfully deployed the implementation for DistributionCreator at ${implementationAddress}`); console.log(''); @@ -60,20 +60,19 @@ const func: DeployFunction = async ({ deployments, ethers, network }) => { /* Once good some functions need to be called to have everything setup. - In the DistributionCreator contract: + In the `DistributionCreator` contract: - `toggleTokenWhitelist` -> for agEUR - `setRewardTokenMinAmounts` -> for OP (on Optimism), and ANGLE on all chains - - `setFeeRecipient` - - `setMessage` + - `setFeeRecipient -> angleLabs + - `setMessage` -> In the Distributor contract: - - `toggleTrusted` + - `toggleTrusted` -> keeper bot updating - `setDisputeToken` -> should we activate dispute periods - `setDisputePeriods` - */ }; func.tags = ['distributionCreator']; -// func.dependencies = ['distributor']; +func.dependencies = ['distributor']; export default func;