sell shares helper test

This commit is contained in:
owen05
2020-11-30 11:36:36 +08:00
parent 2323ccb6eb
commit 180c687a4a
9 changed files with 505 additions and 126 deletions

View File

@@ -43,6 +43,7 @@ export const SMART_APPROVE = "DODOApprove"
export const DODO_SELL_HELPER = "DODOSellHelper"
export const DVM_ADMIN_NAME = "DVMAdmin"
export const DPP_ADMIN_NAME = "DPPAdmin"
export const DODO_CALLEE_HELPER_NAME = "DODOCalleeHelper"
interface ContractJson {
abi: any;

View File

@@ -27,6 +27,7 @@ export class ProxyContext {
DVMFactory: Contract;
DPPFactory: Contract;
SmartApprove: Contract;
DODOCalleeHelper: Contract;
//token
DODO: Contract;
@@ -113,6 +114,11 @@ export class ProxyContext {
["USDT Token", "USDT", 6]
);
this.DODOCalleeHelper = await contracts.newContract(
contracts.DODO_CALLEE_HELPER_NAME,
[this.WETH.options.address]
)
console.log(log.blueText("[Init DVM context]"));
}