Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "general"

Index

Functions

cancelSubmittedOrder

  • cancelSubmittedOrder(co: ICancelOrder, amountAsset: string | null, priceAsset: string | null, matcherUrl: string): Promise<any>
  • Sends cancel order command to matcher. Since matcher api requires amountAsset and priceAsset in request url, this function requires them as params

    Parameters

    • co: ICancelOrder

      signed cancelOrder object

    • amountAsset: string | null

      amount asset of the order to be canceled

    • priceAsset: string | null

      price asset of the order to be canceled

    • matcherUrl: string

      matcher address to send order cancel to. E.g. https://matcher.acrylplatform.com/

    Returns Promise<any>

serialize

  • Converts transaction or order object to Uint8Array

    Parameters

    Returns Uint8Array

signTx

submitOrder

  • submitOrder(ord: TOrder, matcherUrl: string): Promise<any>

verify

  • verify(obj: TTx | TOrder, proofN?: number, publicKey?: undefined | string): boolean
  • Verifies signature of transaction or order

    Parameters

    • obj: TTx | TOrder
    • Default value proofN: number = 0

      proof index. Takes first proof by default

    • Optional publicKey: undefined | string

      takes senderPublicKey by default

    Returns boolean

verifyAuthData

  • verifyAuthData(authData: object, params: IAuthParams, chainId?: string | number): boolean
  • Parameters

    • authData: object
    • params: IAuthParams
    • Optional chainId: string | number

    Returns boolean

verifyCustomData

Object literals

Const txTypeMap

txTypeMap: object

__computed

__computed: object

sign

Generated using TypeDoc