Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment preparation: Fraxtal root gauge factory #117

Merged
merged 5 commits into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ Returns an object with all contracts from a deployment and their addresses.
| Stakeless Gauge Checkpointer V2 | [`20230915-stakeless-gauge-checkpointer-v2`](./tasks/20230915-stakeless-gauge-checkpointer-v2) |
| Batch Relayer V6 | [`20231031-batch-relayer-v6`](./tasks/20231031-batch-relayer-v6) |
| Composable Stable Pools V6 | [`20240223-composable-stable-pool-v6`](./tasks/20240223-composable-stable-pool-v6) |
| Fraxtal Root Gauge, for veBAL voting | [`20240522-fraxtal-root-gauge-factory`](./tasks/20240522-fraxtal-root-gauge-factory) |

## Scripts

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

172,004 changes: 172,004 additions & 0 deletions tasks/20240522-fraxtal-root-gauge-factory/build-info/OptimismRootGauge.json

Large diffs are not rendered by default.

172,004 changes: 172,004 additions & 0 deletions tasks/20240522-fraxtal-root-gauge-factory/build-info/OptimismRootGaugeFactory.json

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions tasks/20240522-fraxtal-root-gauge-factory/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Task, TaskRunOptions } from '@src';
import { FraxtalRootGaugeFactoryDeployment } from './input';

export default async (task: Task, { force, from }: TaskRunOptions = {}): Promise<void> => {
const input = task.input() as FraxtalRootGaugeFactoryDeployment;

const args = [input.Vault, input.BalancerMinter, input.L1StandardBridge, input.FraxtalBAL, input.GasLimit];

const factory = await task.deployAndVerify('OptimismRootGaugeFactory', args, from, force);
EndymionJkb marked this conversation as resolved.
Show resolved Hide resolved

const implementation = await factory.getGaugeImplementation();
await task.verify('OptimismRootGauge', implementation, [
input.BalancerMinter,
input.L1StandardBridge,
input.FraxtalBAL,
]);
await task.save({ FraxtalRootGauge: implementation });
};
25 changes: 25 additions & 0 deletions tasks/20240522-fraxtal-root-gauge-factory/input.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Task, TaskMode } from '@src';

export type FraxtalRootGaugeFactoryDeployment = {
Vault: string;
BalancerMinter: string;
FraxtalBAL: string;
L1StandardBridge: string;
GasLimit: number;
};

const Tokens = new Task('00000000-tokens', TaskMode.READ_ONLY);
const Vault = new Task('20210418-vault', TaskMode.READ_ONLY);
const BalancerMinter = new Task('20220325-gauge-controller', TaskMode.READ_ONLY);

export default {
mainnet: {
Vault,
BalancerMinter,
FraxtalBAL: Tokens.output({ network: 'fraxtal' }).BAL,
// Deposit TX sample: https://etherscan.io/tx/0xbbff35c8add8d11f2fac562731ec9dab58582c3a14b64580d01b8c757fc976bd
L1StandardBridge: '0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2',
// Value taken from TX sample directly.
GasLimit: 200000,
},
};
9 changes: 9 additions & 0 deletions tasks/20240522-fraxtal-root-gauge-factory/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 2022-08-23 - Fraxtal Root Gauge Factory
jubeira marked this conversation as resolved.
Show resolved Hide resolved

Deployment of the `OptimismRootGaugeFactory`, for stakeless gauges that bridge funds to their Fraxtal counterparts.
Uses the exact same code as [`OptimismRootGaugeFactory` V2](../20220823-optimism-root-gauge-factory-v2/), but points to the [Fraxtal OP Stack Bridge](https://docs.frax.com/fraxtal/tools/bridges#fraxtal-op-stack-bridge).

## Useful Files

- [`OptimismRootGauge` artifact](./artifact/OptimismRootGauge.json)
- [`OptimismRootGaugeFactory` artifact](./artifact/OptimismRootGaugeFactory.json)
Loading
Loading