From 644ea70fc21625a27584bf4f0c00132f10da2362 Mon Sep 17 00:00:00 2001 From: Mark Grothe Date: Mon, 11 Dec 2023 13:13:22 -0600 Subject: [PATCH] fix: build --- .../governance-data-helper/index.ts | 28 ++++++++++++++++++- .../src/governance-v3/types.ts | 26 ----------------- 2 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 packages/contract-helpers/src/governance-v3/types.ts diff --git a/packages/contract-helpers/src/governance-v3/governance-data-helper/index.ts b/packages/contract-helpers/src/governance-v3/governance-data-helper/index.ts index 625a2d49..58737694 100644 --- a/packages/contract-helpers/src/governance-v3/governance-data-helper/index.ts +++ b/packages/contract-helpers/src/governance-v3/governance-data-helper/index.ts @@ -1,7 +1,33 @@ import { providers } from 'ethers'; import { GovernanceDataHelper as GovernanceDataHelperContract } from '../typechain/GovernanceDataHelper'; import { GovernanceDataHelper__factory } from '../typechain/factories/GovernanceDataHelper__factory'; -import { AccessLevel, ProposalV3State } from '../types'; + +export enum AccessLevel { + /** Do not use */ + None, + /** listing assets, changes of assets params, updates of the protocol etc */ + Short_Executor, + /** payloads controller updates */ + Long_Executor, +} + +export enum ProposalV3State { + /** proposal does not exist */ + Null, + /** created, waiting for a cooldown to initiate the balances snapshot */ + Created, + /** balances snapshot set, voting in progress */ + Active, + /** voting results submitted, but proposal is under grace period when guardian can cancel it */ + Queued, + /** results sent to the execution chain(s) */ + Executed, + /** voting was not successful */ + Failed, + /** got cancelled by guardian, or because proposition power of creator dropped below allowed minimum */ + Cancelled, + Expired, +} export type ProposalPayload = { chain: number; diff --git a/packages/contract-helpers/src/governance-v3/types.ts b/packages/contract-helpers/src/governance-v3/types.ts deleted file mode 100644 index 1ec6a23a..00000000 --- a/packages/contract-helpers/src/governance-v3/types.ts +++ /dev/null @@ -1,26 +0,0 @@ -export enum AccessLevel { - /** Do not use */ - None, - /** listing assets, changes of assets params, updates of the protocol etc */ - Short_Executor, - /** payloads controller updates */ - Long_Executor, -} - -export enum ProposalV3State { - /** proposal does not exist */ - Null, - /** created, waiting for a cooldown to initiate the balances snapshot */ - Created, - /** balances snapshot set, voting in progress */ - Active, - /** voting results submitted, but proposal is under grace period when guardian can cancel it */ - Queued, - /** results sent to the execution chain(s) */ - Executed, - /** voting was not successful */ - Failed, - /** got cancelled by guardian, or because proposition power of creator dropped below allowed minimum */ - Cancelled, - Expired, -}