@dolomite-exchange/dolomite-margin
Version:
Ethereum Smart Contracts and TypeScript library used for the DolomiteMargin trading protocol
75 lines (67 loc) • 2.02 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 TransferProxy {
constructor(jsonInterface: any[], address?: string, options?: CustomOptions);
_address: string;
options: contractOptions;
methods: {
isCallerAuthorized(_caller: string): TransactionObject<boolean>;
setIsCallerAuthorized(
_caller: string,
_isAuthorized: boolean
): TransactionObject<void>;
transfer(
_fromAccountNumber: number | string,
_to: string,
_toAccountNumber: number | string,
_token: string,
_amountWei: number | string
): TransactionObject<void>;
transferMultiple(
_fromAccountNumber: number | string,
_to: string,
_toAccountNumber: number | string,
_tokens: string[],
_amountsWei: (number | string)[]
): TransactionObject<void>;
transferMultipleWithMarkets(
_fromAccountNumber: number | string,
_to: string,
_toAccountNumber: number | string,
_markets: (number | string)[],
_amountsWei: (number | string)[]
): TransactionObject<void>;
DOLOMITE_MARGIN(): 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(): TransferProxy;
}