Skip to content

Commit

Permalink
feat: get eip712 domain
Browse files Browse the repository at this point in the history
  • Loading branch information
grothem committed Jan 2, 2024
1 parent a36249a commit 98720b3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/contract-helpers/src/governance-v3/aave-token-v3/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -74,4 +81,8 @@ export class AaveTokenV3Service {
gasLimit: BigNumber.from('1000000'),
};
}

public async getEip712Domain(): Promise<Eip712Domain> {
return this._contract.functions.eip712Domain();
}
}

0 comments on commit 98720b3

Please sign in to comment.