@dolomite-exchange/dolomite-margin
Version:
Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol
68 lines (63 loc) • 2.06 kB
TypeScript
/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */
import Contract, { CustomOptions, contractOptions } from "web3/eth/contract";
import { TransactionObject, BlockType } from "web3/eth/types";
import { Callback, EventLog } from "web3/types";
import { EventEmitter } from "events";
import { Provider } from "web3/providers";
export class LiquidatorProxyV4WithGenericTrader {
constructor(jsonInterface: any[], address?: string, options?: CustomOptions);
_address: string;
options: contractOptions;
methods: {
isIsolationModeMarket(
_dolomiteMargin: string,
_marketId: number | string
): TransactionObject<boolean>;
liquidate(
_solidAccount: { owner: string; number: number | string },
_liquidAccount: { owner: string; number: number | string },
_marketIdsPath: (number | string)[],
_inputAmountWei: number | string,
_minOutputAmountWei: number | string,
_tradersPath: {
traderType: number | string;
makerAccountIndex: number | string;
trader: string;
tradeData: (string | number[])[];
}[],
_makerAccounts: { owner: string; number: number | string }[],
_expiry: number | string
): TransactionObject<void>;
DOLOMITE_MARGIN(): TransactionObject<string>;
EXPIRY(): TransactionObject<string>;
LIQUIDATOR_ASSET_REGISTRY(): TransactionObject<string>;
chainId(): TransactionObject<string>;
};
deploy(options: {
data: string;
arguments: any[];
}): TransactionObject<Contract>;
events: {
allEvents: (
options?: {
filter?: object;
fromBlock?: BlockType;
topics?: (null | string)[];
},
cb?: Callback<EventLog>
) => EventEmitter;
};
getPastEvents(
event: string,
options?: {
filter?: object;
fromBlock?: BlockType;
toBlock?: BlockType;
topics?: (null | string)[];
},
cb?: Callback<EventLog[]>
): Promise<EventLog[]>;
setProvider(provider: Provider): void;
clone(): LiquidatorProxyV4WithGenericTrader;
}