UNPKG

@q-dev/q-ts-gdk-sdk

Version:

Typescript Library to interact with GDK Contracts

30 lines (29 loc) 1.46 kB
/// <reference types="node" /> 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, NonPayableTransactionObject, BlockType, BaseContract } from "./types"; export interface EventOptions { filter?: object; fromBlock?: BlockType; topics?: string[]; } export interface ParameterSetMock extends BaseContract { constructor(jsonInterface: any[], address?: string, options?: ContractOptions): ParameterSetMock; clone(): ParameterSetMock; methods: { add(value_: [string, string | number[], number | string | BN]): NonPayableTransactionObject<void>; at(index_: number | string | BN): NonPayableTransactionObject<[string, string, string]>; change(value_: [string, string | number[], number | string | BN]): NonPayableTransactionObject<void>; contains(name_: string): NonPayableTransactionObject<boolean>; get(name_: string): NonPayableTransactionObject<[string, string, string]>; getSet(): NonPayableTransactionObject<[string, string, string][]>; length(): NonPayableTransactionObject<string>; remove(name_: string): NonPayableTransactionObject<void>; values(): NonPayableTransactionObject<[string, string, string][]>; }; events: { allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; }