@dolomite-exchange/dolomite-margin
Version:
Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol
14 lines (13 loc) • 986 B
TypeScript
import { Contracts } from '../lib/Contracts';
import { ActionArgs, address, Integer } from '../types';
import { IIsolationModeUnwrapperTrader } from '../../build/wrappers/IIsolationModeUnwrapperTrader';
export declare class IsolationModeUnwrapper {
unwrapperContract: IIsolationModeUnwrapperTrader;
private contracts;
constructor(contracts: Contracts, unwrapperContract: IIsolationModeUnwrapperTrader);
get address(): address;
token(): Promise<address>;
actionsLength(): Promise<Integer>;
createActionsForUnwrapping(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>;
}