/* 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 MarsBaseExchange extends BaseContract { constructor( jsonInterface: any[], address?: string, options?: ContractOptions ): MarsBaseExchange; clone(): MarsBaseExchange; methods: { _afterFee( amountBeforeFee: number | string | BN, feePercent: number | string | BN, scale: number | string | BN, safeAmount: number | string | BN ): NonPayableTransactionObject<{ amountAfterFee: string; fee: string; 0: string; 1: string; }>; acceptOffer( offerId: number | string | BN, tokenBob: string, amountBob: number | string | BN ): PayableTransactionObject; afterFee( amountBeforeFee: number | string | BN, feePercent: number | string | BN ): NonPayableTransactionObject<{ amountAfterFee: string; fee: string; 0: string; 1: string; }>; cancelOffer(offerId: number | string | BN): PayableTransactionObject; cancelOffers( from: number | string | BN, to: number | string | BN ): PayableTransactionObject; changeOwner(newOwner: string): NonPayableTransactionObject; closeExpiredOffer( offerId: number | string | BN ): 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[] ][] >; getCommissionAddress(): NonPayableTransactionObject; getExchangerAddress(): NonPayableTransactionObject; 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; isEligibleToPayout( offer: [ boolean, boolean, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN, string, string, string, boolean[], (number | string | BN)[], (number | string | BN)[], (number | string | BN)[], string[], string[], string[] ] ): NonPayableTransactionObject; limitMinimumSize9999( minimumSize: number | string | BN, amountAlice: number | string | BN ): NonPayableTransactionObject; lockContract(): NonPayableTransactionObject; log2(x: number | string | BN): NonPayableTransactionObject; max( a: number | string | BN, b: number | string | BN ): NonPayableTransactionObject; migrateContract(): PayableTransactionObject; min( a: number | string | BN, b: number | string | BN ): NonPayableTransactionObject; minimumCovered( offer: [ boolean, boolean, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN, number | string | BN, string, string, string, boolean[], (number | string | BN)[], (number | string | BN)[], (number | string | BN)[], string[], string[], string[] ] ): NonPayableTransactionObject; offers(arg0: number | string | BN): NonPayableTransactionObject<{ active: boolean; minimumMet: boolean; offerType: string; offerId: string; amountAlice: string; feeAlice: string; feeBob: string; smallestChunkSize: string; minimumSize: string; deadline: string; amountRemaining: string; offerer: string; payoutAddress: string; tokenAlice: string; 0: boolean; 1: boolean; 2: string; 3: string; 4: string; 5: string; 6: string; 7: string; 8: string; 9: string; 10: string; 11: string; 12: string; 13: string; }>; 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; }; }