Options
All
  • Public
  • Public/Protected
  • All
Menu

Augmint Exchange contract class

Hierarchy

Index

Constructors

constructor

Properties

instance

instance: ExchangeInstance

Accessors

address

  • get address(): string

isLegacyExchangeContract

  • get isLegacyExchangeContract(): boolean
  • Returns boolean

Static OrderBook

  • Returns typeof OrderBook

Methods

getMatchingOrders

  • Fetches current OrderBook and returns as many matching orderIds (at current ETHFiat rate) as fits into the provided gas limit. if no gasLimit provided then ethereumConnection.safeBlockGasLimit is used The returned matchingOrders can be passed to signAndSendMatchMultiple or matchMultiple functions

    Parameters

    • Default value gasLimit: number = this.safeBlockGasLimit

    Returns Promise<IMatchingOrders>

    pairs of matching order id , ordered by execution sequence { buyIds: [], sellIds: [], gasEstimate }

getOrderBook

  • Fetches, parses and orders the current, full orderBook from Exchange

    memberof

    Exchange

    Returns Promise<OrderBook>

    the current, ordered orderBook

matchMultipleOrders

  • Returns a [Transaction] object with which can be signed and sent or sent to the ethereum network

    memberof

    Exchange

    Parameters

    Returns Transaction

placeBuyTokenOrder

placeSellTokenOrder

Generated using TypeDoc