Skip to content

Commit 891468d

Browse files
authored
V3 vault deployment script (#123)
1 parent 80505f7 commit 891468d

File tree

16 files changed

+7919
-12
lines changed

16 files changed

+7919
-12
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,14 @@ Returns an object with all contracts from a deployment and their addresses.
121121
| Batch Relayer V6 | [`20231031-batch-relayer-v6`](./v2/tasks/20231031-batch-relayer-v6) |
122122
| Composable Stable Pools V6 | [`20240223-composable-stable-pool-v6`](./v2/tasks/20240223-composable-stable-pool-v6) |
123123
| Fraxtal Root Gauge, for veBAL voting | [`20240522-fraxtal-root-gauge-factory`](./v2/tasks/20240522-fraxtal-root-gauge-factory) |
124+
| V3 Vault | [`20241204-v3-vault`](./v3/tasks/20241204-v3-vault) |
124125

125126
## Scripts
126127

127128
These are deployments for script-like contracts (often called 'coordinators') which are typically granted some permission by Governance and then executed, after which they become useless.
128129

129-
| Description | Task ID |
130-
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
130+
| Description | Task ID |
131+
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
131132
| Coordination of the veBAL deployment | [`20220325-veBAL-deployment-coordinator`](./v2/scripts/20220325-veBAL-deployment-coordinator) |
132133
| Coordination of setup of L2 gauges for veBAL system | [`20220415-veBAL-L2-gauge-setup-coordinator`](./v2/scripts/20220415-veBAL-L2-gauge-setup-coordinator) |
133134
| Coordination of veBAL gauges fix (Option 1) | [`20220418-veBAL-gauge-fix-coordinator`](./v2/scripts/20220418-veBAL-gauge-fix-coordinator) |
@@ -145,8 +146,8 @@ These deployments have been deprecated because they're either outdated and have
145146

146147
Go to each deprecated deployment's readme file to learn more about why it is deprecated, and what the replacement deployment is (if any).
147148

148-
| Description | Task ID |
149-
| --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
149+
| Description | Task ID |
150+
| --------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
150151
| Weighted Pools of up to 8 tokens | [`20210418-weighted-pool`](./v2/deprecated/20210418-weighted-pool) |
151152
| Stable Pools of up to 5 tokens | [`20210624-stable-pool`](./v2/deprecated/20210624-stable-pool) |
152153
| Liquidity Bootstrapping Pools of up to 4 tokens | [`20210721-liquidity-bootstrapping-pool`](./v2/deprecated/20210721-liquidity-bootstrapping-pool) |

hardhat.config.ts

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,13 +407,27 @@ export default {
407407
timeout: 600000,
408408
},
409409
solidity: {
410-
version: '0.7.1',
411-
settings: {
412-
optimizer: {
413-
enabled: true,
414-
runs: 9999,
410+
compilers: [
411+
{
412+
version: '0.7.1',
413+
settings: {
414+
optimizer: {
415+
enabled: true,
416+
runs: 9999,
417+
},
418+
},
415419
},
416-
},
420+
{
421+
version: '0.8.24',
422+
settings: {
423+
evmVersion: 'cancun',
424+
optimizer: {
425+
enabled: true,
426+
runs: 9999,
427+
},
428+
},
429+
},
430+
],
417431
},
418432
vyper: {
419433
compilers: [{ version: '0.3.1' }, { version: '0.3.3' }],

src/verifier.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,14 @@ export default class Verifier {
8585
): Promise<EtherscanResponse> {
8686
const deployedBytecodeHex = await retrieveContractBytecode(address, this.network.provider, this.network.name);
8787
const deployedBytecode = new Bytecode(deployedBytecodeHex);
88-
const buildInfos = await task.buildInfos();
88+
let buildInfos: BuildInfo[];
89+
try {
90+
// First check if there's a specific file named like this.
91+
buildInfos = [task.buildInfo(name)];
92+
} catch {
93+
// Otherwise search in every file.
94+
buildInfos = task.buildInfos();
95+
}
8996
const buildInfo = this.findBuildInfoWithContract(buildInfos, name);
9097
buildInfo.input = this.trimmedBuildInfoInput(name, buildInfo.input);
9198

v3/tasks/.gitkeep

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)