Skip to content

Commit 3112b15

Browse files
committed
chore: export to dao
1 parent e115d2e commit 3112b15

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

packages/contract-helpers/src/dao/VotingEscrow.ts

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ethers, providers } from 'ethers';
1+
import { providers } from 'ethers';
22
import BaseService from '../commons/BaseService';
33
import {
44
eEthereumTxType,
@@ -7,23 +7,13 @@ import {
77
tEthereumAddress,
88
transactionType,
99
} from '../commons/types';
10-
import {
11-
API_ETH_MOCK_ADDRESS,
12-
augustusToAmountOffsetFromCalldata,
13-
DEFAULT_APPROVE_AMOUNT,
14-
getTxValue,
15-
SURPLUS,
16-
valueToWei,
17-
} from '../commons/utils';
10+
import { DEFAULT_APPROVE_AMOUNT, valueToWei } from '../commons/utils';
1811
import {
1912
isEthAddress,
2013
isPositiveAmount,
2114
} from '../commons/validators/paramValidators';
2215
import { ERC20Service, IERC20ServiceInterface } from '../erc20-contract';
23-
import {
24-
WETHGatewayInterface,
25-
WETHGatewayService,
26-
} from '../wethgateway-contract';
16+
import { WETHGatewayInterface } from '../wethgateway-contract';
2717
import {
2818
CreateLockParamsType,
2919
IncreaseAmountParamsType,
@@ -51,7 +41,7 @@ export interface VotingEscrowInterface {
5141

5242
export type VotingEscrowConfig = {
5343
VOTING_ESCROW: tEthereumAddress;
54-
MNT_ADDRESS: tEthereumAddress;
44+
MNT: tEthereumAddress;
5545
};
5646

5747
export class VotingEscrow
@@ -71,10 +61,10 @@ export class VotingEscrow
7161
) {
7262
super(provider, IVotingEscrow__factory);
7363

74-
const { VOTING_ESCROW, MNT_ADDRESS } = votingEscrowConfig ?? {};
64+
const { VOTING_ESCROW, MNT } = votingEscrowConfig ?? {};
7565

7666
this.votingEscrowAddress = VOTING_ESCROW ?? '';
77-
this.mntAddress = MNT_ADDRESS ?? '';
67+
this.mntAddress = MNT ?? '';
7868

7969
// initialize services
8070
this.erc20Service = new ERC20Service(provider);

packages/contract-helpers/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export * from './governance-power-delegation-contract';
2222
export * from './v3-pool-contract';
2323
export * from './synthetix-contract';
2424
export * from './baseDebtToken-contract';
25+
export * from './dao';
2526

2627
// commons
2728
export * from './commons/types';

0 commit comments

Comments
 (0)