UNPKG

@ardier16/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

66 lines (58 loc) 1.53 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import BN from "bn.js"; import { ContractOptions } from "web3-eth-contract"; import { EventLog } from "web3-core"; import { EventEmitter } from "events"; import { Callback, PayableTransactionObject, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract, } from "./types"; interface EventOptions { filter?: object; fromBlock?: BlockType; topics?: string[]; } export type TokenFallback = ContractEventLog<{ _from: string; _amount: string; _data: string; 0: string; 1: string; 2: string; }>; export interface ERC677TransferRecieverMock extends BaseContract { constructor( jsonInterface: any[], address?: string, options?: ContractOptions ): ERC677TransferRecieverMock; clone(): ERC677TransferRecieverMock; methods: { tokenFallback( _from: string, _amount: number | string | BN, _data: string | number[] ): NonPayableTransactionObject<boolean>; getLastData(): NonPayableTransactionObject<string>; }; events: { TokenFallback(cb?: Callback<TokenFallback>): EventEmitter; TokenFallback( options?: EventOptions, cb?: Callback<TokenFallback> ): EventEmitter; allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; once(event: "TokenFallback", cb: Callback<TokenFallback>): void; once( event: "TokenFallback", options: EventOptions, cb: Callback<TokenFallback> ): void; }