UNPKG

@dolomite-exchange/dolomite-margin

Version:

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

65 lines (61 loc) 1.79 kB
/* 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 PayableProxy { constructor(jsonInterface: any[], address?: string, options?: CustomOptions); _address: string; options: contractOptions; methods: { operate( accounts: { owner: string; number: number | string }[], actions: { actionType: number | string; accountId: number | string; amount: { sign: boolean; denomination: number | string; ref: number | string; value: number | string; }; primaryMarketId: number | string; secondaryMarketId: number | string; otherAddress: string; otherAccountId: number | string; data: (string | number[])[]; }[], sendEthTo: string ): TransactionObject<void>; DOLOMITE_MARGIN(): TransactionObject<string>; WETH(): 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(): PayableProxy; }