UNPKG

@ardier16/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

150 lines (124 loc) 3.81 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 Approval = ContractEventLog<{ owner: string; spender: string; value: string; 0: string; 1: string; 2: string; }>; export type Transfer_address_address_uint256_bytes = ContractEventLog<{ from: string; to: string; value: string; data: string; 0: string; 1: string; 2: string; 3: string; }>; export type Transfer_address_address_uint256 = ContractEventLog<{ from: string; to: string; value: string; 0: string; 1: string; 2: string; }>; export interface StableCoinMock extends BaseContract { constructor( jsonInterface: any[], address?: string, options?: ContractOptions ): StableCoinMock; clone(): StableCoinMock; methods: { allowance( owner: string, spender: string ): NonPayableTransactionObject<string>; approve( spender: string, amount: number | string | BN ): NonPayableTransactionObject<boolean>; balanceOf(account: string): NonPayableTransactionObject<string>; burn(amount: number | string | BN): NonPayableTransactionObject<void>; burnFrom( account: string, amount: number | string | BN ): NonPayableTransactionObject<void>; decimals(): NonPayableTransactionObject<string>; decreaseAllowance( spender: string, subtractedValue: number | string | BN ): NonPayableTransactionObject<boolean>; increaseAllowance( spender: string, addedValue: number | string | BN ): NonPayableTransactionObject<boolean>; isTrustedForwarder(forwarder: string): NonPayableTransactionObject<boolean>; mint( _recepient: string, _amount: number | string | BN ): NonPayableTransactionObject<boolean>; name(): NonPayableTransactionObject<string>; symbol(): NonPayableTransactionObject<string>; totalSupply(): NonPayableTransactionObject<string>; transfer( recipient: string, amount: number | string | BN ): NonPayableTransactionObject<boolean>; transferAndCall( _to: string, _value: number | string | BN, _data: string | number[] ): NonPayableTransactionObject<boolean>; transferFrom( sender: string, recipient: string, amount: number | string | BN ): NonPayableTransactionObject<boolean>; trustedForwarder(): NonPayableTransactionObject<string>; versionRecipient(): NonPayableTransactionObject<string>; }; events: { Approval(cb?: Callback<Approval>): EventEmitter; Approval(options?: EventOptions, cb?: Callback<Approval>): EventEmitter; "Transfer(address,address,uint256,bytes)"( cb?: Callback<Transfer_address_address_uint256_bytes> ): EventEmitter; "Transfer(address,address,uint256,bytes)"( options?: EventOptions, cb?: Callback<Transfer_address_address_uint256_bytes> ): EventEmitter; "Transfer(address,address,uint256)"( cb?: Callback<Transfer_address_address_uint256> ): EventEmitter; "Transfer(address,address,uint256)"( options?: EventOptions, cb?: Callback<Transfer_address_address_uint256> ): EventEmitter; allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; once(event: "Approval", cb: Callback<Approval>): void; once(event: "Approval", options: EventOptions, cb: Callback<Approval>): void; }