Skip to content

Commit

Permalink
Deployment: Gyro2CLPPoolFactory & GyroECLPPoolFactory (testnet) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jubeira authored Jan 27, 2025
1 parent 677b3d4 commit 60c9a7b
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
- Deployed V3 Balancer Contract Registry to Sepolia.
- Deployed V3 Stable Surge Factory to Sepolia.
- Deployed V3 Composite Liquidity Router (V2) to Sepolia.
- Deployed V3 Gyro 2-CLP Pool to Sepolia.
- Deployed V3 Gyro E-CLP Pool to Sepolia.

#### V2

Expand Down
18 changes: 18 additions & 0 deletions action-ids/sepolia/action-ids.json
Original file line number Diff line number Diff line change
Expand Up @@ -791,5 +791,23 @@
},
"factoryName": "StableSurgePoolFactory"
}
},
"20250120-v3-gyro-2clp": {
"Gyro2CLPPoolFactory": {
"useAdaptor": false,
"actionIds": {
"create(string,string,(address,uint8,address,bool)[],uint256,uint256,(address,address,address),uint256,address,bool,bool,bytes32)": "0x75bd26b3ed6782283093606a98461cce7d9abfe27d81ccb2d037861211ff137e",
"disable()": "0xf90cbb7f598a837d59943bb133e449e10dfe8204958cecd172ce79df6fdf9a0e"
}
}
},
"20250124-v3-gyro-eclp": {
"GyroECLPPoolFactory": {
"useAdaptor": false,
"actionIds": {
"create(string,string,(address,uint8,address,bool)[],(int256,int256,int256,int256,int256),((int256,int256),(int256,int256),int256,int256,int256,int256,int256),(address,address,address),uint256,address,bool,bool,bytes32)": "0x96efece7b5b4d220154a560cf7c6e0163f7b630ddb0bf11304ce945b95ff3d04",
"disable()": "0xb727acbee552a86c8c0992226adaaf975968e97311fb0bbd5bca17a5859c2cdb"
}
}
}
}
28 changes: 28 additions & 0 deletions addresses/sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,20 @@
"status": "ACTIVE",
"version": "v3"
},
"20250120-v3-gyro-2clp": {
"contracts": [
{
"name": "Gyro2CLPPoolFactory",
"address": "0x97701aa7c9ae4497874C54B1C779221d6F1081C9"
},
{
"name": "MockGyro2CLPPool",
"address": "0xA8E4Fda34F4DcD7f6dFc887fE1E9dF536DC4779b"
}
],
"status": "ACTIVE",
"version": "v3"
},
"20250121-v3-stable-surge": {
"contracts": [
{
Expand Down Expand Up @@ -810,5 +824,19 @@
],
"status": "ACTIVE",
"version": "v3"
},
"20250124-v3-gyro-eclp": {
"contracts": [
{
"name": "GyroECLPPoolFactory",
"address": "0xaC06eD505b0d85e46Bf90590f835A12E5EAac86E"
},
{
"name": "MockGyroECLPPool",
"address": "0xB546909185ad4dD905D4eBCa3c3b1d46Db4E4c82"
}
],
"status": "ACTIVE",
"version": "v3"
}
}
6 changes: 5 additions & 1 deletion deployment-txs/sepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,9 @@
"0x115A6FC12312a01E0B63E51dFa97DAeb8dE9D2F0": "0xeaa8ca34059383b77b69556fafe0ad83717d1d7d003ce37cbd76fa1fd75bcf66",
"0x9eB9867C1d4B6fd3a7D0dAd3101b5A153b1107Ec": "0x7cf481b2d2aa2c5ae171eb1ccc87e330ff647d67e4009bb2e44688ed2f56a9e6",
"0x132F4bAa39330d9062fC52d81dF72F601DF8C01f": "0xa8d363d9c78b7b66e6f93c4417de67e636c13691437aecf85a631987b200abd8",
"0x6A20a4b6DcFF78e6D21BF0dbFfD58C96644DB9cb": "0x03432f92a9c764c5480b977a4da8e72075947b845bbbfb2ebf4adf04c2cb4a70"
"0x6A20a4b6DcFF78e6D21BF0dbFfD58C96644DB9cb": "0x03432f92a9c764c5480b977a4da8e72075947b845bbbfb2ebf4adf04c2cb4a70",
"0x97701aa7c9ae4497874C54B1C779221d6F1081C9": "0x1ff52b84412ba218341404670e6390ce13a1742369dd3fd336ef639f91475c0b",
"0xA8E4Fda34F4DcD7f6dFc887fE1E9dF536DC4779b": "0x999a1a9a6ab4b2fa2bfe1b8ef2f28f5bff4e1875a74e41cd75f5063531d9617c",
"0xaC06eD505b0d85e46Bf90590f835A12E5EAac86E": "0x651e1041eece57a1b684373c752d72e27fbec647ee887e1a7f0f007372cd69ef",
"0xB546909185ad4dD905D4eBCa3c3b1d46Db4E4c82": "0x899dfcb22a1ff2e407b2438127c387a765b148d3b0ef5f3b3725fa6451cf3276"
}
4 changes: 4 additions & 0 deletions v3/tasks/20250120-v3-gyro-2clp/output/sepolia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"Gyro2CLPPoolFactory": "0x97701aa7c9ae4497874C54B1C779221d6F1081C9",
"MockGyro2CLPPool": "0xA8E4Fda34F4DcD7f6dFc887fE1E9dF536DC4779b"
}
1 change: 1 addition & 0 deletions v3/tasks/20250120-v3-gyro-2clp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ Pools from this factory use Gyroscope's 2-CLP math, suitable for fungible concen
## Useful Files

- [Code](https://github.com/balancer/balancer-v3-monorepo/commit/68ff766d4565b0f8d0d3124cf9136204ada72789).
- [Sepolia testnet addresses](./output/sepolia.json)
- [`Gyro2CLPPoolFactory` artifact](./artifact/Gyro2CLPPoolFactory.json)
- [`Gyro2CLPPool` artifact](./artifact/Gyro2CLPPool.json)
8 changes: 4 additions & 4 deletions v3/tasks/20250124-v3-gyro-eclp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default async (task: Task, { force, from }: TaskRunOptions = {}): Promise
};

// This mimics the logic inside task.deploy
if (force || !task.output({ ensure: false })['MockGyro2CLPPool']) {
if (force || !task.output({ ensure: false })['MockGyroECLPPool']) {
const poolCreationReceipt = await (
await factory.create(
newGyroECLPPoolParams.name,
Expand All @@ -103,10 +103,10 @@ export default async (task: Task, { force, from }: TaskRunOptions = {}): Promise
const mockPoolAddress = event.args.pool;

await saveContractDeploymentTransactionHash(mockPoolAddress, poolCreationReceipt.transactionHash, task.network);
await task.save({ MockGyro2CLPPool: mockPoolAddress });
await task.save({ MockGyroECLPPool: mockPoolAddress });
}

const mockPool = await task.instanceAt('Gyro2CLPPool', task.output()['MockGyro2CLPPool']);
const mockPool = await task.instanceAt('GyroECLPPool', task.output()['MockGyroECLPPool']);

const poolParams = {
name: newGyroECLPPoolParams.name,
Expand All @@ -117,6 +117,6 @@ export default async (task: Task, { force, from }: TaskRunOptions = {}): Promise
};

// We are now ready to verify the Pool
await task.verify('Gyro2CLPPool', mockPool.address, [poolParams, input.Vault]);
await task.verify('GyroECLPPool', mockPool.address, [poolParams, input.Vault]);
}
};
4 changes: 4 additions & 0 deletions v3/tasks/20250124-v3-gyro-eclp/output/sepolia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"GyroECLPPoolFactory": "0xaC06eD505b0d85e46Bf90590f835A12E5EAac86E",
"MockGyroECLPPool": "0xB546909185ad4dD905D4eBCa3c3b1d46Db4E4c82"
}
1 change: 1 addition & 0 deletions v3/tasks/20250124-v3-gyro-eclp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ Pools from this factory use Gyroscope's E-CLP math, suitable for fungible concen
## Useful Files

- [Code](https://github.com/balancer/balancer-v3-monorepo/commit/68cc540d16270044fc4ac6fbdcb24c2cf4fc87bf).
- [Sepolia testnet addresses](./output/sepolia.json)
- [`GyroECLPPoolFactory` artifact](./artifact/GyroECLPPoolFactory.json)
- [`GyroECLPPool` artifact](./artifact/GyroECLPPool.json)

0 comments on commit 60c9a7b

Please sign in to comment.