UNPKG

@dolomite-exchange/dolomite-margin

Version:

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

14 lines (13 loc) 1.07 kB
import { Contracts } from '../lib/Contracts'; import { address, ContractCallOptions, ContractConstantCallOptions, Integer, TxResult } from '../types'; export declare class TransferProxy { private contracts; constructor(contracts: Contracts); get address(): string; dolomiteMargin(): Promise<address>; isCallerAuthorized(caller: address, options?: ContractConstantCallOptions): Promise<boolean>; setIsCallerAuthorized(caller: address, isAuthorized: boolean, options?: ContractCallOptions): Promise<TxResult>; transfer(fromAccountIndex: Integer, to: address, toAccountIndex: Integer, token: address, amountWei: Integer, options?: ContractCallOptions): Promise<TxResult>; transferMultiple(fromAccountIndex: Integer, to: address, toAccountIndex: Integer, tokens: address[], amountsWei: Integer[], options?: ContractCallOptions): Promise<TxResult>; transferMultipleWithMarkets(fromAccountIndex: Integer, to: address, toAccountIndex: Integer, markets: Integer[], amounts: Integer[], options?: ContractCallOptions): Promise<TxResult>; }