UNPKG

@dolomite-exchange/dolomite-margin

Version:

Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol

14 lines (13 loc) 972 B
import { Contracts } from '../lib/Contracts'; import { ActionArgs, address, Integer } from '../types'; import { IIsolationModeWrapperTrader } from '../../build/wrappers/IIsolationModeWrapperTrader'; export declare class IsolationModeWrapper { wrapperContract: IIsolationModeWrapperTrader; private contracts; constructor(contracts: Contracts, unwrapperContract: IIsolationModeWrapperTrader); get address(): address; token(): Promise<address>; actionsLength(): Promise<Integer>; createActionsForWrapping(solidAccountId: Integer, liquidAccountId: Integer, solidAccountOwner: address, solidAccountNumber: Integer, liquidAccountOwner: address, liquidAccountNumber: Integer, outputMarket: Integer, inputMarket: Integer, minOutputAmount: Integer, inputAmount: Integer, orderDataHexString: string): Promise<ActionArgs[]>; getExchangeCost(makerToken: address, takerToken: address, desiredMakerToken: Integer, orderData: string): Promise<Integer>; }