From 98720b3229107b48b15b268746fea9abcd2872fb Mon Sep 17 00:00:00 2001 From: Mark Grothe Date: Tue, 2 Jan 2024 13:36:23 -0600 Subject: [PATCH] feat: get eip712 domain --- .../src/governance-v3/aave-token-v3/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/contract-helpers/src/governance-v3/aave-token-v3/index.ts b/packages/contract-helpers/src/governance-v3/aave-token-v3/index.ts index 4d7413f6..49049ad1 100644 --- a/packages/contract-helpers/src/governance-v3/aave-token-v3/index.ts +++ b/packages/contract-helpers/src/governance-v3/aave-token-v3/index.ts @@ -8,6 +8,13 @@ export enum GovernancePowerType { ALL, } +interface Eip712Domain { + name: string; + version: string; + chainId: BigNumber; + verifyingContract: string; +} + export class AaveTokenV3Service { readonly _contract: AaveTokenV3; readonly _contractInterface = AaveTokenV3__factory.createInterface(); @@ -74,4 +81,8 @@ export class AaveTokenV3Service { gasLimit: BigNumber.from('1000000'), }; } + + public async getEip712Domain(): Promise { + return this._contract.functions.eip712Domain(); + } }