Skip to content

Commit

Permalink
Merge branch 'woof-software/rewards-v2-multiple-rewards' of github.co…
Browse files Browse the repository at this point in the history
…m:woof-software/comet into woof-software/rewards-v2-multiple-rewards
  • Loading branch information
dmitriy-woof-software committed Nov 22, 2024
2 parents 1001039 + a8efe60 commit e1b9003
Show file tree
Hide file tree
Showing 25 changed files with 386 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300426_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300422_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300432_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300439_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
14 changes: 14 additions & 0 deletions deployments/base/aero/migrations/1732300459_deploy_rewards_v2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300459_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
14 changes: 14 additions & 0 deletions deployments/base/usdbc/migrations/1732300468_deploy_rewards_v2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300468_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
14 changes: 14 additions & 0 deletions deployments/base/usdc/migrations/1732300475_deploy_rewards_v2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300475_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
14 changes: 14 additions & 0 deletions deployments/base/weth/migrations/1732300480_deploy_rewards_v2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300480_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
14 changes: 14 additions & 0 deletions deployments/goerli/usdc/migrations/1732299867_deploy_rewards_v2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732299867_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { expect } from 'chai';
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

const MULTISIG_ADDRESS = "0xbbf3f1421D886E9b2c5D716B5192aC998af2012c"
const MULTISIG_ADDRESS = '0xbbf3f1421D886E9b2c5D716B5192aC998af2012c';

export default migration('1730282660_add_rewards_v2', {
export default migration('1732299881_deploy_rewards_v2', {
async prepare(deploymentManager: DeploymentManager) {
const cometRewardsV2 = await deploymentManager.deploy(
'CometRewardsV2',
Expand All @@ -16,7 +16,8 @@ export default migration('1730282660_add_rewards_v2', {
return { cometRewardsV2Address: cometRewardsV2.address };
},

enact: async (deploymentManager: DeploymentManager, _, { cometRewardsV2Address }) => {
enact: async () => {
//
},

async enacted(): Promise<boolean> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { expect } from 'chai';
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

const MULTISIG_ADDRESS = '0xbbf3f1421D886E9b2c5D716B5192aC998af2012c';

export default migration('1732299881_deploy_rewards_v2', {
async prepare(deploymentManager: DeploymentManager) {
const cometRewardsV2 = await deploymentManager.deploy(
'CometRewardsV2',
'CometRewardsV2.sol',
[
MULTISIG_ADDRESS, // The governor who will control the contract
]
);
return { cometRewardsV2Address: cometRewardsV2.address };
},

enact: async () => {
//
},

async enacted(): Promise<boolean> {
return false;
},

async verify(deploymentManager: DeploymentManager) {
const cometRewardsV2 = await deploymentManager.fromDep('CometRewardsV2', 'mainnet', 'usds');
expect(MULTISIG_ADDRESS).to.be.equal(await cometRewardsV2.governor());
},
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { expect } from 'chai';
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

const MULTISIG_ADDRESS = '0xbbf3f1421D886E9b2c5D716B5192aC998af2012c';

export default migration('1732299881_deploy_rewards_v2', {
async prepare(deploymentManager: DeploymentManager) {
const cometRewardsV2 = await deploymentManager.deploy(
'CometRewardsV2',
'CometRewardsV2.sol',
[
MULTISIG_ADDRESS, // The governor who will control the contract
]
);
return { cometRewardsV2Address: cometRewardsV2.address };
},

enact: async () => {
//
},

async enacted(): Promise<boolean> {
return false;
},

async verify(deploymentManager: DeploymentManager) {
const cometRewardsV2 = await deploymentManager.fromDep('CometRewardsV2', 'mainnet', 'usdt');
expect(MULTISIG_ADDRESS).to.be.equal(await cometRewardsV2.governor());
},
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { expect } from 'chai';
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

const MULTISIG_ADDRESS = '0xbbf3f1421D886E9b2c5D716B5192aC998af2012c';

export default migration('1732299881_deploy_rewards_v2', {
async prepare(deploymentManager: DeploymentManager) {
const cometRewardsV2 = await deploymentManager.deploy(
'CometRewardsV2',
'CometRewardsV2.sol',
[
MULTISIG_ADDRESS, // The governor who will control the contract
]
);
return { cometRewardsV2Address: cometRewardsV2.address };
},

enact: async () => {
//
},

async enacted(): Promise<boolean> {
return false;
},

async verify(deploymentManager: DeploymentManager) {
const cometRewardsV2 = await deploymentManager.fromDep('CometRewardsV2', 'mainnet', 'weth');
expect(MULTISIG_ADDRESS).to.be.equal(await cometRewardsV2.governor());
},
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { expect } from 'chai';
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

const MULTISIG_ADDRESS = '0xbbf3f1421D886E9b2c5D716B5192aC998af2012c';

export default migration('1732299881_deploy_rewards_v2', {
async prepare(deploymentManager: DeploymentManager) {
const cometRewardsV2 = await deploymentManager.deploy(
'CometRewardsV2',
'CometRewardsV2.sol',
[
MULTISIG_ADDRESS, // The governor who will control the contract
]
);
return { cometRewardsV2Address: cometRewardsV2.address };
},

enact: async () => {
//
},

async enacted(): Promise<boolean> {
return false;
},

async verify(deploymentManager: DeploymentManager) {
const cometRewardsV2 = await deploymentManager.fromDep('CometRewardsV2', 'mainnet', 'wsteth');
expect(MULTISIG_ADDRESS).to.be.equal(await cometRewardsV2.governor());
},
});
14 changes: 14 additions & 0 deletions deployments/mantle/usde/migrations/1732300504_deploy_rewards_v2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300504_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300527_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300533_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300537_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300555_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300559_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
14 changes: 14 additions & 0 deletions deployments/scroll/usdc/migrations/1732300573_deploy_rewards_v2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager';
import { migration } from '../../../../plugins/deployment_manager/Migration';

interface Vars {};

export default migration('1732300573_deploy_rewards_v2', {
prepare: async (deploymentManager: DeploymentManager) => {
return {};
},

enact: async (deploymentManager: DeploymentManager, govDeploymentManager: DeploymentManager, vars: Vars) => {
// No governance changes
}
});
Loading

0 comments on commit e1b9003

Please sign in to comment.