UNPKG

@dolomite-exchange/dolomite-margin

Version:

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

18 lines (17 loc) 2.38 kB
import { Contracts } from '../lib/Contracts'; import { address, BalanceCheckFlag, ContractCallOptions, Integer, TxResult } from '../types'; import { BorrowPositionProxyV1 } from './BorrowPositionProxyV1'; export declare class BorrowPositionProxyV2 extends BorrowPositionProxyV1 { constructor(contracts: Contracts); dolomiteMargin(): Promise<address>; setIsCallerAuthorized(caller: address, isAuthorized: boolean, options?: ContractCallOptions): Promise<TxResult>; isCallerAuthorized(caller: address, options?: ContractCallOptions): Promise<boolean>; openBorrowPosition(fromAccountNumber: Integer, toAccountNumber: Integer, marketId: Integer, amountWei: Integer, balanceCheckFlag: BalanceCheckFlag, options?: ContractCallOptions): Promise<TxResult>; closeBorrowPosition(borrowAccountNumber: Integer, toAccountNumber: Integer, marketIds: Integer[], options?: ContractCallOptions): Promise<TxResult>; transferBetweenAccounts(fromAccountNumber: Integer, toAccountNumber: Integer, marketId: Integer, amountWei: Integer, balanceCheckFlag: BalanceCheckFlag, options?: ContractCallOptions): Promise<TxResult>; repayAllForBorrowPosition(fromAccountNumber: Integer, borrowAccountNumber: Integer, marketId: Integer, balanceCheckFlag: BalanceCheckFlag, options?: ContractCallOptions): Promise<TxResult>; openBorrowPositionWithDifferentAccounts(fromAccountOwner: address, fromAccountNumber: Integer, toAccountOwner: address, toAccountNumber: Integer, marketId: Integer, amountWei: Integer, balanceCheckFlag: BalanceCheckFlag, options?: ContractCallOptions): Promise<TxResult>; closeBorrowPositionWithDifferentAccounts(borrowAccountOwner: address, borrowAccountNumber: Integer, toAccountOwner: address, toAccountNumber: Integer, marketIds: Integer[], options?: ContractCallOptions): Promise<TxResult>; transferBetweenAccountsWithDifferentAccounts(fromAccountOwner: address, fromAccountNumber: Integer, toAccountOwner: address, toAccountNumber: Integer, marketId: Integer, amountWei: Integer, balanceCheckFlag: BalanceCheckFlag, options?: ContractCallOptions): Promise<TxResult>; repayAllForBorrowPositionWithDifferentAccounts(fromAccountOwner: address, fromAccountNumber: Integer, borrowAccountOwner: address, borrowAccountNumber: Integer, marketId: Integer, balanceCheckFlag: BalanceCheckFlag, options?: ContractCallOptions): Promise<TxResult>; }