/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type BN from "bn.js"; import type { ContractOptions } from "web3-eth-contract"; import type { EventLog } from "web3-core"; import type { EventEmitter } from "events"; import type { Callback, PayableTransactionObject, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract, } from "../types"; export interface EventOptions { filter?: object; fromBlock?: BlockType; topics?: string[]; } export interface IMarsbaseExchange extends BaseContract { constructor( jsonInterface: any[], address?: string, options?: ContractOptions ): IMarsbaseExchange; clone(): IMarsbaseExchange; methods: { acceptOffer( offerId: number | string | BN, tokenBob: string, amountBob: number | string | BN ): PayableTransactionObject; cancelBid(offerId: number | string | BN): NonPayableTransactionObject; cancelExpiredOffers(): PayableTransactionObject; cancelOffer(offerId: number | string | BN): PayableTransactionObject; cancelOffers( from: number | string | BN, to: number | string | BN ): PayableTransactionObject; changeOfferParams( offerId: number | string | BN, tokenBob: string[], amountBob: (number | string | BN)[], offerParameters: [ boolean, boolean, boolean, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN ] ): NonPayableTransactionObject; changeOwner(newOwner: string): NonPayableTransactionObject; createOffer( tokenAlice: string, tokenBob: string[], amountAlice: number | string | BN, amountBob: (number | string | BN)[], offerParameters: [ boolean, boolean, boolean, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN ] ): PayableTransactionObject; getAllOffers(): NonPayableTransactionObject< [ boolean, boolean, string, string, string, string, string, string, string, string, string, string, string, string, boolean[], string[], string[], string[], string[], string[], string[] ][] >; getMinimumFee(): NonPayableTransactionObject; getNextOfferId(): NonPayableTransactionObject; getOffer( offerId: number | string | BN ): NonPayableTransactionObject< [ boolean, boolean, string, string, string, string, string, string, string, string, string, string, string, string, boolean[], string[], string[], string[], string[], string[], string[] ] >; getOwner(): NonPayableTransactionObject; lockContract(): NonPayableTransactionObject; migrateContract(): PayableTransactionObject; price( amountAlice: number | string | BN, offerAmountAlice: number | string | BN, offerAmountBob: number | string | BN ): NonPayableTransactionObject; setCommissionAddress(wallet: string): NonPayableTransactionObject; setExchangerAddress( exchangeContract: string ): NonPayableTransactionObject; setMinimumFee( _minimumFee: number | string | BN ): NonPayableTransactionObject; setNextOfferId( _nextOfferId: number | string | BN ): NonPayableTransactionObject; }; events: { allEvents(options?: EventOptions, cb?: Callback): EventEmitter; }; }