Skip to content

Commit ff2e0a8

Browse files
committed
fix: fixed deployment script
1 parent c809449 commit ff2e0a8

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tasks/proposals/proposal-stk-extensions.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { Signer } from 'ethers';
44
import { getDefenderRelaySigner } from '../../helpers/defender-utils';
55

66
task('proposal-stk-extensions', 'Deploy implementations and create proposal')
7-
.addOptionalParam('stkAaveImpl')
8-
.addOptionalParam('stkBptImpl')
7+
.addOptionalParam('stkaaveimpl')
8+
.addOptionalParam('stkbptimpl')
99
.addFlag('defender')
10-
.setAction(async ({ defender, stkAaveImpl, stkBptImpl }, localBRE: any) => {
10+
.setAction(async ({ defender, stkaaveimpl, stkbptimpl }, localBRE: any) => {
1111
await localBRE.run('set-dre');
1212

1313
let deployer: Signer;
@@ -21,7 +21,7 @@ task('proposal-stk-extensions', 'Deploy implementations and create proposal')
2121

2222
const {
2323
AAVE_TOKEN = '0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9',
24-
IPFS_HASH = 'QmT9qk3CRYbFDWpDFYeAv8T8H1gnongwKhh5J68NLkLir6', // WIP
24+
IPFS_HASH = '0x4d4a4bda3036f8da3f6911941df8c185f0e4ec248de44b44253dae5a4798a001',
2525
AAVE_GOVERNANCE_V2 = '0xEC568fffba86c094cf06b22134B23074DFE2252c', // mainnet
2626
AAVE_LONG_EXECUTOR = '0x61910ecd7e8e942136ce7fe7943f956cea1cc2f7', // mainnet
2727
} = process.env;
@@ -33,26 +33,26 @@ task('proposal-stk-extensions', 'Deploy implementations and create proposal')
3333
const AAVE_STAKE = '0x4da27a545c0c5B758a6BA100e3a049001de870f5';
3434
const STK_BPT_STAKE = '0xa1116930326D21fB917d5A27F1E9943A9595fb47';
3535

36-
if (!stkAaveImpl) {
37-
stkAaveImpl = await DRE.run('deploy-staked-aave-rev3', { defender: !!defender });
36+
if (!stkaaveimpl) {
37+
stkaaveimpl = await DRE.run('deploy-staked-aave-rev3', { defender: !!defender });
3838
}
39-
if (!stkBptImpl) {
40-
stkBptImpl = await DRE.run('deploy-staked-bpt-rev2', { defender: !!defender });
39+
if (!stkbptimpl) {
40+
stkbptimpl = await DRE.run('deploy-staked-bpt-rev2', { defender: !!defender });
4141
}
4242

4343
await DRE.run('propose-extension', {
4444
stkAaveProxy: AAVE_STAKE,
45-
stkAaveImpl,
45+
stkAaveImpl: stkaaveimpl,
4646
stkBptProxy: STK_BPT_STAKE,
47-
stkBptImpl,
47+
stkBptImpl: stkbptimpl,
4848
aaveGovernance: AAVE_GOVERNANCE_V2,
4949
longExecutor: AAVE_LONG_EXECUTOR,
5050
ipfsHash: IPFS_HASH,
5151
defender: !!defender,
5252
});
5353

5454
return {
55-
stkAaveImpl,
56-
stkBptImpl,
55+
stkaaveimpl,
56+
stkbptimpl,
5757
};
5858
});

tasks/proposals/propose-extension.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ task('propose-extension', 'Create some proposals and votes')
1717
.addParam('stkBptImpl')
1818
.addParam('aaveGovernance')
1919
.addParam('longExecutor')
20+
.addParam('ipfsHash')
2021
.addFlag('defender')
2122
.setAction(
2223
async (
@@ -28,6 +29,7 @@ task('propose-extension', 'Create some proposals and votes')
2829
stkAaveImpl,
2930
stkBptProxy,
3031
stkBptImpl,
32+
ipfsHash
3133
},
3234
localBRE: any
3335
) => {
@@ -56,6 +58,9 @@ task('propose-extension', 'Create some proposals and votes')
5658
if (!stkBptProxy) {
5759
throw '[hh-task][propose-extension] stkBptProxy param is missing';
5860
}
61+
if (!ipfsHash) {
62+
throw '[hh-task][propose-extension] ipfsHash param is missing';
63+
}
5964

6065
// Calldata for StkAave implementation
6166
const payloadStkAave = StakedTokenV2Rev3__factory.connect(
@@ -80,9 +85,6 @@ task('propose-extension', 'Create some proposals and votes')
8085
const executeSignature = 'upgradeToAndCall(address,bytes)';
8186
const gov = await IAaveGovernanceV2__factory.connect(aaveGovernance, proposer);
8287

83-
// WIP IPFS
84-
const ipfsEncoded = '0xf7a1f565fcd7684fba6fea5d77c5e699653e21cb6ae25fbf8c5dbc8d694c7949';
85-
8688
try {
8789
const tx = await gov.create(
8890
longExecutor,
@@ -91,8 +93,8 @@ task('propose-extension', 'Create some proposals and votes')
9193
[executeSignature, executeSignature],
9294
[callDataStkAave, callDataStkBpt],
9395
[false, false],
94-
ipfsEncoded,
95-
{ gasLimit: 3000000 }
96+
ipfsHash,
97+
{ gasLimit: 1000000 }
9698
);
9799
console.log('- Proposal submitted to Governance');
98100
await tx.wait();

0 commit comments

Comments
 (0)