UNPKG

@dolomite-exchange/dolomite-margin

Version:

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

240 lines (215 loc) 5.5 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 AdminImpl { constructor(jsonInterface: any[], address?: string, options?: CustomOptions); _address: string; options: contractOptions; methods: {}; deploy(options: { data: string; arguments: any[]; }): TransactionObject<Contract>; events: { LogAddMarket( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetAccountMaxNumberOfMarketsWithBalances( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetAccountRiskOverrideSetter( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetAutoTraderIsSpecial( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetCallbackGasLimit( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetDefaultAccountRiskOverrideSetter( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetEarningsRate( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetEarningsRateOverride( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetGlobalOperator( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetInterestSetter( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetIsClosing( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetLiquidationSpread( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetLiquidationSpreadPremium( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetMarginPremium( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetMarginRatio( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetMaxBorrowWei( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetMaxSupplyWei( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetMinBorrowedValue( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetOracleSentinel( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogSetPriceOracle( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogWithdrawExcessTokens( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; LogWithdrawUnsupportedTokens( options?: { filter?: object; fromBlock?: BlockType; topics?: (null | string)[]; }, cb?: Callback<EventLog> ): EventEmitter; 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(): AdminImpl; }