UNPKG

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

Version:

Typescript Library to interact with GDK Contracts

85 lines (71 loc) 2.25 kB
/* 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 ParameterCodecMock extends BaseContract { constructor( jsonInterface: any[], address?: string, options?: ContractOptions ): ParameterCodecMock; clone(): ParameterCodecMock; methods: { add( value_: [string, string | number[], number | string | BN] ): NonPayableTransactionObject<void>; decodeAddress( parameter_: [string, string | number[], number | string | BN] ): NonPayableTransactionObject<string>; decodeBool( parameter_: [string, string | number[], number | string | BN] ): NonPayableTransactionObject<boolean>; decodeBytes32( parameter_: [string, string | number[], number | string | BN] ): NonPayableTransactionObject<string>; decodeString( parameter_: [string, string | number[], number | string | BN] ): NonPayableTransactionObject<string>; decodeUint256( parameter_: [string, string | number[], number | string | BN] ): NonPayableTransactionObject<string>; encodeAddress( value_: string, name_: string ): NonPayableTransactionObject<[string, string, string]>; encodeBool( value_: boolean, name_: string ): NonPayableTransactionObject<[string, string, string]>; encodeBytes32( value_: string | number[], name_: string ): NonPayableTransactionObject<[string, string, string]>; encodeString( value_: string, name_: string ): NonPayableTransactionObject<[string, string, string]>; encodeUint256( value_: number | string | BN, name_: string ): NonPayableTransactionObject<[string, string, string]>; }; events: { allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; }