@q-dev/q-ts-gdk-sdk
Version:
Typescript Library to interact with GDK Contracts
22 lines (21 loc) • 903 B
TypeScript
/// <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 IERC721ReceiverUpgradeable extends BaseContract {
constructor(jsonInterface: any[], address?: string, options?: ContractOptions): IERC721ReceiverUpgradeable;
clone(): IERC721ReceiverUpgradeable;
methods: {
onERC721Received(operator: string, from: string, tokenId: number | string | BN, data: string | number[]): NonPayableTransactionObject<string>;
};
events: {
allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter;
};
}