From 456c700c993c12be946a4d840f69c2b982ae0266 Mon Sep 17 00:00:00 2001 From: elshan_eth Date: Thu, 27 Jun 2024 19:28:42 +0200 Subject: [PATCH] remove file --- .../[WeightedPool] add liquidity proportional | 2 +- ...eightedPool] remove liquidity proportional | 1 + .../test/gas/WeightedPoolLiquidity.test.ts | 54 ------------------- 3 files changed, 2 insertions(+), 55 deletions(-) create mode 100644 pkg/pool-weighted/test/gas/.hardhat-snapshots/[WeightedPool] remove liquidity proportional delete mode 100644 pkg/pool-weighted/test/gas/WeightedPoolLiquidity.test.ts diff --git a/pkg/pool-weighted/test/gas/.hardhat-snapshots/[WeightedPool] add liquidity proportional b/pkg/pool-weighted/test/gas/.hardhat-snapshots/[WeightedPool] add liquidity proportional index 281d84625..aeaaad228 100644 --- a/pkg/pool-weighted/test/gas/.hardhat-snapshots/[WeightedPool] add liquidity proportional +++ b/pkg/pool-weighted/test/gas/.hardhat-snapshots/[WeightedPool] add liquidity proportional @@ -1 +1 @@ -176.2k \ No newline at end of file +188.3k \ No newline at end of file diff --git a/pkg/pool-weighted/test/gas/.hardhat-snapshots/[WeightedPool] remove liquidity proportional b/pkg/pool-weighted/test/gas/.hardhat-snapshots/[WeightedPool] remove liquidity proportional new file mode 100644 index 000000000..281d84625 --- /dev/null +++ b/pkg/pool-weighted/test/gas/.hardhat-snapshots/[WeightedPool] remove liquidity proportional @@ -0,0 +1 @@ +176.2k \ No newline at end of file diff --git a/pkg/pool-weighted/test/gas/WeightedPoolLiquidity.test.ts b/pkg/pool-weighted/test/gas/WeightedPoolLiquidity.test.ts deleted file mode 100644 index e8c55aa7a..000000000 --- a/pkg/pool-weighted/test/gas/WeightedPoolLiquidity.test.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* eslint-disable @typescript-eslint/no-non-null-assertion */ -import { BaseContract } from 'ethers'; -import { deploy, deployedAt } from '@balancer-labs/v3-helpers/src/contract'; -import { fp } from '@balancer-labs/v3-helpers/src/numbers'; -import { ZERO_BYTES32, ZERO_ADDRESS } from '@balancer-labs/v3-helpers/src/constants'; -import { MONTH } from '@balancer-labs/v3-helpers/src/time'; -import * as expectEvent from '@balancer-labs/v3-helpers/src/test/expectEvent'; -import { WeightedPoolFactory } from '@balancer-labs/v3-pool-weighted/typechain-types'; -import { PoolRoleAccountsStruct } from '@balancer-labs/v3-vault/typechain-types/contracts/Vault'; - -import { Benchmark } from '@balancer-labs/v3-benchmarks/src/PoolBenchmark.behavior'; - -class WeightedPoolBenchmark extends Benchmark { - WEIGHTS = [fp(0.5), fp(0.5)]; - - constructor(dirname: string) { - super(dirname, 'WeightedPool'); - } - - override async deployPool(): Promise { - const factory = (await deploy('v3-pool-weighted/WeightedPoolFactory', { - args: [await this.vault.getAddress(), MONTH * 12, '', ''], - })) as unknown as WeightedPoolFactory; - - const poolRoleAccounts: PoolRoleAccountsStruct = { - pauseManager: ZERO_ADDRESS, - swapFeeManager: ZERO_ADDRESS, - poolCreator: ZERO_ADDRESS, - }; - - const enableDonation = true; - - const tx = await factory.create( - 'WeightedPool', - 'Test', - this.tokenConfig, - this.WEIGHTS, - poolRoleAccounts, - fp(0.1), - ZERO_ADDRESS, - enableDonation, - ZERO_BYTES32 - ); - const receipt = await tx.wait(); - const event = expectEvent.inReceipt(receipt, 'PoolCreated'); - - const pool = (await deployedAt('v3-pool-weighted/WeightedPool', event.args.pool)) as unknown as BaseContract; - return pool; - } -} - -describe('WeightedPool Gas Benchmark', function () { - new WeightedPoolBenchmark(__dirname).itBenchmarksSwap(); -});