@q-dev/q-ts-gdk-sdk
Version:
Typescript Library to interact with GDK Contracts
79 lines (68 loc) • 1.94 kB
text/typescript
/* 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 type ContractURIChanged = ContractEventLog<{
contractURI: string;
0: string;
}>;
export type Initialized = ContractEventLog<{
version: string;
0: string;
}>;
export interface ContractMetadata extends BaseContract {
constructor(
jsonInterface: any[],
address?: string,
options?: ContractOptions
): ContractMetadata;
clone(): ContractMetadata;
methods: {
CHANGE_METADATA_PERMISSION(): NonPayableTransactionObject<string>;
contractURI(): NonPayableTransactionObject<string>;
setContractMetadata(
contractURI_: string
): NonPayableTransactionObject<void>;
};
events: {
ContractURIChanged(cb?: Callback<ContractURIChanged>): EventEmitter;
ContractURIChanged(
options?: EventOptions,
cb?: Callback<ContractURIChanged>
): EventEmitter;
Initialized(cb?: Callback<Initialized>): EventEmitter;
Initialized(
options?: EventOptions,
cb?: Callback<Initialized>
): EventEmitter;
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
};
once(event: "ContractURIChanged", cb: Callback<ContractURIChanged>): void;
once(
event: "ContractURIChanged",
options: EventOptions,
cb: Callback<ContractURIChanged>
): void;
once(event: "Initialized", cb: Callback<Initialized>): void;
once(
event: "Initialized",
options: EventOptions,
cb: Callback<Initialized>
): void;
}