Skip to content

Commit

Permalink
feat: dispute periods deployment (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
sogipec authored Jul 31, 2023
1 parent d3273b5 commit 4b44cf3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
7 changes: 4 additions & 3 deletions deploy/0_distributor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand All @@ -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('');
};

Expand Down
15 changes: 7 additions & 8 deletions deploy/1_distributionCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand Down Expand Up @@ -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;

0 comments on commit 4b44cf3

Please sign in to comment.