UNPKG

@dolomite-exchange/dolomite-margin

Version:

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

22 lines (21 loc) 2.08 kB
import { Contracts } from '../lib/Contracts'; import { address, BalanceCheckFlag, ContractCallOptions, Integer, TxResult } from '../types'; export declare class DepositProxy { private contracts; constructor(contracts: Contracts); get address(): address; dolomiteMargin(): Promise<address>; initializePayableMarket(payableToken: address, options?: ContractCallOptions): Promise<TxResult>; depositWei(accountIndex: Integer, marketId: Integer, amountWei: Integer, options?: ContractCallOptions): Promise<TxResult>; depositPayable(accountIndex: Integer, amountWei: Integer, options?: ContractCallOptions): Promise<TxResult>; depositWeiIntoDefaultAccount(marketId: Integer, amountWei: Integer, options?: ContractCallOptions): Promise<TxResult>; depositPayableIntoDefaultAccount(amountWei: Integer, options?: ContractCallOptions): Promise<TxResult>; withdrawWei(accountIndex: Integer, marketId: Integer, amountWei: Integer, balanceCheckFlag: BalanceCheckFlag, options?: ContractCallOptions): Promise<TxResult>; withdrawPayable(accountIndex: Integer, amountWei: Integer, balanceCheckFlag: BalanceCheckFlag, options?: ContractCallOptions): Promise<TxResult>; withdrawWeiFromDefaultAccount(marketId: Integer, amountWei: Integer, balanceCheckFlag: BalanceCheckFlag, options?: ContractCallOptions): Promise<TxResult>; withdrawPayableFromDefaultAccount(amountWei: Integer, balanceCheckFlag: BalanceCheckFlag, options?: ContractCallOptions): Promise<TxResult>; depositPar(accountIndex: Integer, marketId: Integer, amountPar: Integer, options?: ContractCallOptions): Promise<TxResult>; depositParIntoDefaultAccount(marketId: Integer, amountPar: Integer, options?: ContractCallOptions): Promise<TxResult>; withdrawPar(accountIndex: Integer, marketId: Integer, amountPar: Integer, balanceCheckFlag: BalanceCheckFlag, options?: ContractCallOptions): Promise<TxResult>; withdrawParFromDefaultAccount(marketId: Integer, amountPar: Integer, balanceCheckFlag: BalanceCheckFlag, options?: ContractCallOptions): Promise<TxResult>; }