UNPKG

@dolomite-exchange/dolomite-margin

Version:

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

29 lines (28 loc) 2.86 kB
import { Contracts } from '../lib/Contracts'; import { address, ContractCallOptions, Decimal, Integer, TxResult } from '../types'; export declare class Admin { private contracts; constructor(contracts: Contracts); withdrawExcessTokens(marketId: Integer, recipient: address, options?: ContractCallOptions): Promise<TxResult>; withdrawUnsupportedTokens(token: address, recipient: address, options?: ContractCallOptions): Promise<TxResult>; addMarket(token: address, priceOracle: address, interestSetter: address, marginPremium: Decimal, spreadPremium: Decimal, maxSupplyWei: Integer, maxBorrowWei: Integer, earningsRateOverride: Decimal, isClosing: boolean, options?: ContractCallOptions): Promise<TxResult>; setIsClosing(marketId: Integer, isClosing: boolean, options?: ContractCallOptions): Promise<TxResult>; setPriceOracle(marketId: Integer, oracle: address, options?: ContractCallOptions): Promise<TxResult>; setInterestSetter(marketId: Integer, interestSetter: address, options?: ContractCallOptions): Promise<TxResult>; setMarginPremium(marketId: Integer, marginPremium: Decimal, options?: ContractCallOptions): Promise<TxResult>; setLiquidationSpreadPremium(marketId: Integer, spreadPremium: Decimal, options?: ContractCallOptions): Promise<TxResult>; setMaxSupplyWei(marketId: Integer, maxSupplyWei: Integer, options?: ContractCallOptions): Promise<TxResult>; setMaxBorrowWei(marketId: Integer, maxBorrowWei: Integer, options?: ContractCallOptions): Promise<TxResult>; setEarningsRateOverride(marketId: Integer, earningsRateOverride: Decimal, options?: ContractCallOptions): Promise<TxResult>; setMarginRatio(marginRatio: Decimal, options?: ContractCallOptions): Promise<TxResult>; setLiquidationSpread(spread: Decimal, options?: ContractCallOptions): Promise<TxResult>; setEarningsRate(rate: Decimal, options?: ContractCallOptions): Promise<TxResult>; setMinBorrowedValue(minBorrowedValue: Integer, options?: ContractCallOptions): Promise<TxResult>; setAccountMaxNumberOfMarketsWithBalances(accountMaxNumberOfMarketsWithBalances: number, options?: ContractCallOptions): Promise<TxResult>; setOracleSentinel(oracleSentinel: address, options?: ContractCallOptions): Promise<TxResult>; setCallbackGasLimit(callbackGasLimit: Integer, options?: ContractCallOptions): Promise<TxResult>; setDefaultAccountRiskOverride(accountRiskOverrideSetter: address, options?: ContractCallOptions): Promise<TxResult>; setAccountRiskOverride(accountOwner: address, accountRiskOverrideSetter: address, options?: ContractCallOptions): Promise<TxResult>; setGlobalOperator(operator: address, approved: boolean, options?: ContractCallOptions): Promise<TxResult>; setAutoTraderIsSpecial(autoTrader: address, isSpecial: boolean, options?: ContractCallOptions): Promise<TxResult>; }