/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { ethers, EventFilter, Signer, BigNumber, BigNumberish, PopulatedTransaction, BaseContract, ContractTransaction, Overrides, CallOverrides, } from "ethers"; import { BytesLike } from "@ethersproject/bytes"; import { Listener, Provider } from "@ethersproject/providers"; import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi"; import { TypedEventFilter, TypedEvent, TypedListener } from "./commons"; interface MockNFTImplementationInterface extends ethers.utils.Interface { functions: { "approve(address,uint256)": FunctionFragment; "balanceOf(address)": FunctionFragment; "burn(uint256)": FunctionFragment; "chainId()": FunctionFragment; "getApproved(uint256)": FunctionFragment; "initialize(string,string,address,uint16,bytes32)": FunctionFragment; "isApprovedForAll(address,address)": FunctionFragment; "mint(address,uint256,string)": FunctionFragment; "name()": FunctionFragment; "nativeContract()": FunctionFragment; "owner()": FunctionFragment; "ownerOf(uint256)": FunctionFragment; "safeTransferFrom(address,address,uint256)": FunctionFragment; "setApprovalForAll(address,bool)": FunctionFragment; "supportsInterface(bytes4)": FunctionFragment; "symbol()": FunctionFragment; "tokenURI(uint256)": FunctionFragment; "transferFrom(address,address,uint256)": FunctionFragment; "testNewImplementationActive()": FunctionFragment; }; encodeFunctionData( functionFragment: "approve", values: [string, BigNumberish] ): string; encodeFunctionData(functionFragment: "balanceOf", values: [string]): string; encodeFunctionData(functionFragment: "burn", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "chainId", values?: undefined): string; encodeFunctionData( functionFragment: "getApproved", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "initialize", values: [string, string, string, BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "isApprovedForAll", values: [string, string] ): string; encodeFunctionData( functionFragment: "mint", values: [string, BigNumberish, string] ): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData( functionFragment: "nativeContract", values?: undefined ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "ownerOf", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "safeTransferFrom", values: [string, string, BigNumberish] ): string; encodeFunctionData( functionFragment: "setApprovalForAll", values: [string, boolean] ): string; encodeFunctionData( functionFragment: "supportsInterface", values: [BytesLike] ): string; encodeFunctionData(functionFragment: "symbol", values?: undefined): string; encodeFunctionData( functionFragment: "tokenURI", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "transferFrom", values: [string, string, BigNumberish] ): string; encodeFunctionData( functionFragment: "testNewImplementationActive", values?: undefined ): string; decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result; decodeFunctionResult(functionFragment: "chainId", data: BytesLike): Result; decodeFunctionResult( functionFragment: "getApproved", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result; decodeFunctionResult( functionFragment: "isApprovedForAll", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; decodeFunctionResult( functionFragment: "nativeContract", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result; decodeFunctionResult( functionFragment: "safeTransferFrom", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setApprovalForAll", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "supportsInterface", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result; decodeFunctionResult( functionFragment: "transferFrom", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "testNewImplementationActive", data: BytesLike ): Result; events: { "Approval(address,address,uint256)": EventFragment; "ApprovalForAll(address,address,bool)": EventFragment; "Transfer(address,address,uint256)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; getEvent(nameOrSignatureOrTopic: "ApprovalForAll"): EventFragment; getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; } export class MockNFTImplementation extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; listeners, EventArgsObject>( eventFilter?: TypedEventFilter ): Array>; off, EventArgsObject>( eventFilter: TypedEventFilter, listener: TypedListener ): this; on, EventArgsObject>( eventFilter: TypedEventFilter, listener: TypedListener ): this; once, EventArgsObject>( eventFilter: TypedEventFilter, listener: TypedListener ): this; removeListener, EventArgsObject>( eventFilter: TypedEventFilter, listener: TypedListener ): this; removeAllListeners, EventArgsObject>( eventFilter: TypedEventFilter ): this; listeners(eventName?: string): Array; off(eventName: string, listener: Listener): this; on(eventName: string, listener: Listener): this; once(eventName: string, listener: Listener): this; removeListener(eventName: string, listener: Listener): this; removeAllListeners(eventName?: string): this; queryFilter, EventArgsObject>( event: TypedEventFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; interface: MockNFTImplementationInterface; functions: { /** * Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event. */ approve( to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; balanceOf(owner_: string, overrides?: CallOverrides): Promise<[BigNumber]>; burn( tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; chainId(overrides?: CallOverrides): Promise<[number]>; /** * Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist. */ getApproved( tokenId: BigNumberish, overrides?: CallOverrides ): Promise<[string]>; initialize( name_: string, symbol_: string, owner_: string, chainId_: BigNumberish, nativeContract_: BytesLike, overrides?: Overrides & { from?: string | Promise } ): Promise; isApprovedForAll( owner_: string, operator: string, overrides?: CallOverrides ): Promise<[boolean]>; mint( to: string, tokenId: BigNumberish, uri: string, overrides?: Overrides & { from?: string | Promise } ): Promise; /** * Returns the token collection name. */ name(overrides?: CallOverrides): Promise<[string]>; nativeContract(overrides?: CallOverrides): Promise<[string]>; owner(overrides?: CallOverrides): Promise<[string]>; /** * Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist. */ ownerOf( tokenId: BigNumberish, overrides?: CallOverrides ): Promise<[string]>; /** * Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event. */ "safeTransferFrom(address,address,uint256)"( from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; "safeTransferFrom(address,address,uint256,bytes)"( from: string, to: string, tokenId: BigNumberish, _data: BytesLike, overrides?: Overrides & { from?: string | Promise } ): Promise; setApprovalForAll( operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise } ): Promise; supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise<[boolean]>; /** * Returns the token collection symbol. */ symbol(overrides?: CallOverrides): Promise<[string]>; /** * Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ tokenURI( tokenId: BigNumberish, overrides?: CallOverrides ): Promise<[string]>; /** * Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event. */ transferFrom( from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; testNewImplementationActive(overrides?: CallOverrides): Promise<[boolean]>; }; /** * Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event. */ approve( to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; balanceOf(owner_: string, overrides?: CallOverrides): Promise; burn( tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; chainId(overrides?: CallOverrides): Promise; /** * Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist. */ getApproved( tokenId: BigNumberish, overrides?: CallOverrides ): Promise; initialize( name_: string, symbol_: string, owner_: string, chainId_: BigNumberish, nativeContract_: BytesLike, overrides?: Overrides & { from?: string | Promise } ): Promise; isApprovedForAll( owner_: string, operator: string, overrides?: CallOverrides ): Promise; mint( to: string, tokenId: BigNumberish, uri: string, overrides?: Overrides & { from?: string | Promise } ): Promise; /** * Returns the token collection name. */ name(overrides?: CallOverrides): Promise; nativeContract(overrides?: CallOverrides): Promise; owner(overrides?: CallOverrides): Promise; /** * Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist. */ ownerOf(tokenId: BigNumberish, overrides?: CallOverrides): Promise; /** * Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event. */ "safeTransferFrom(address,address,uint256)"( from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; "safeTransferFrom(address,address,uint256,bytes)"( from: string, to: string, tokenId: BigNumberish, _data: BytesLike, overrides?: Overrides & { from?: string | Promise } ): Promise; setApprovalForAll( operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise } ): Promise; supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise; /** * Returns the token collection symbol. */ symbol(overrides?: CallOverrides): Promise; /** * Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ tokenURI(tokenId: BigNumberish, overrides?: CallOverrides): Promise; /** * Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event. */ transferFrom( from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; testNewImplementationActive(overrides?: CallOverrides): Promise; callStatic: { /** * Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event. */ approve( to: string, tokenId: BigNumberish, overrides?: CallOverrides ): Promise; balanceOf(owner_: string, overrides?: CallOverrides): Promise; burn(tokenId: BigNumberish, overrides?: CallOverrides): Promise; chainId(overrides?: CallOverrides): Promise; /** * Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist. */ getApproved( tokenId: BigNumberish, overrides?: CallOverrides ): Promise; initialize( name_: string, symbol_: string, owner_: string, chainId_: BigNumberish, nativeContract_: BytesLike, overrides?: CallOverrides ): Promise; isApprovedForAll( owner_: string, operator: string, overrides?: CallOverrides ): Promise; mint( to: string, tokenId: BigNumberish, uri: string, overrides?: CallOverrides ): Promise; /** * Returns the token collection name. */ name(overrides?: CallOverrides): Promise; nativeContract(overrides?: CallOverrides): Promise; owner(overrides?: CallOverrides): Promise; /** * Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist. */ ownerOf(tokenId: BigNumberish, overrides?: CallOverrides): Promise; /** * Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event. */ "safeTransferFrom(address,address,uint256)"( from: string, to: string, tokenId: BigNumberish, overrides?: CallOverrides ): Promise; "safeTransferFrom(address,address,uint256,bytes)"( from: string, to: string, tokenId: BigNumberish, _data: BytesLike, overrides?: CallOverrides ): Promise; setApprovalForAll( operator: string, approved: boolean, overrides?: CallOverrides ): Promise; supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise; /** * Returns the token collection symbol. */ symbol(overrides?: CallOverrides): Promise; /** * Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ tokenURI(tokenId: BigNumberish, overrides?: CallOverrides): Promise; /** * Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event. */ transferFrom( from: string, to: string, tokenId: BigNumberish, overrides?: CallOverrides ): Promise; testNewImplementationActive(overrides?: CallOverrides): Promise; }; filters: { Approval( owner?: string | null, approved?: string | null, tokenId?: BigNumberish | null ): TypedEventFilter< [string, string, BigNumber], { owner: string; approved: string; tokenId: BigNumber } >; ApprovalForAll( owner?: string | null, operator?: string | null, approved?: null ): TypedEventFilter< [string, string, boolean], { owner: string; operator: string; approved: boolean } >; Transfer( from?: string | null, to?: string | null, tokenId?: BigNumberish | null ): TypedEventFilter< [string, string, BigNumber], { from: string; to: string; tokenId: BigNumber } >; }; estimateGas: { /** * Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event. */ approve( to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; balanceOf(owner_: string, overrides?: CallOverrides): Promise; burn( tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; chainId(overrides?: CallOverrides): Promise; /** * Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist. */ getApproved( tokenId: BigNumberish, overrides?: CallOverrides ): Promise; initialize( name_: string, symbol_: string, owner_: string, chainId_: BigNumberish, nativeContract_: BytesLike, overrides?: Overrides & { from?: string | Promise } ): Promise; isApprovedForAll( owner_: string, operator: string, overrides?: CallOverrides ): Promise; mint( to: string, tokenId: BigNumberish, uri: string, overrides?: Overrides & { from?: string | Promise } ): Promise; /** * Returns the token collection name. */ name(overrides?: CallOverrides): Promise; nativeContract(overrides?: CallOverrides): Promise; owner(overrides?: CallOverrides): Promise; /** * Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist. */ ownerOf( tokenId: BigNumberish, overrides?: CallOverrides ): Promise; /** * Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event. */ "safeTransferFrom(address,address,uint256)"( from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; "safeTransferFrom(address,address,uint256,bytes)"( from: string, to: string, tokenId: BigNumberish, _data: BytesLike, overrides?: Overrides & { from?: string | Promise } ): Promise; setApprovalForAll( operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise } ): Promise; supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise; /** * Returns the token collection symbol. */ symbol(overrides?: CallOverrides): Promise; /** * Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ tokenURI( tokenId: BigNumberish, overrides?: CallOverrides ): Promise; /** * Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event. */ transferFrom( from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; testNewImplementationActive(overrides?: CallOverrides): Promise; }; populateTransaction: { /** * Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event. */ approve( to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; balanceOf( owner_: string, overrides?: CallOverrides ): Promise; burn( tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; chainId(overrides?: CallOverrides): Promise; /** * Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist. */ getApproved( tokenId: BigNumberish, overrides?: CallOverrides ): Promise; initialize( name_: string, symbol_: string, owner_: string, chainId_: BigNumberish, nativeContract_: BytesLike, overrides?: Overrides & { from?: string | Promise } ): Promise; isApprovedForAll( owner_: string, operator: string, overrides?: CallOverrides ): Promise; mint( to: string, tokenId: BigNumberish, uri: string, overrides?: Overrides & { from?: string | Promise } ): Promise; /** * Returns the token collection name. */ name(overrides?: CallOverrides): Promise; nativeContract(overrides?: CallOverrides): Promise; owner(overrides?: CallOverrides): Promise; /** * Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist. */ ownerOf( tokenId: BigNumberish, overrides?: CallOverrides ): Promise; /** * Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event. */ "safeTransferFrom(address,address,uint256)"( from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; "safeTransferFrom(address,address,uint256,bytes)"( from: string, to: string, tokenId: BigNumberish, _data: BytesLike, overrides?: Overrides & { from?: string | Promise } ): Promise; setApprovalForAll( operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise } ): Promise; supportsInterface( interfaceId: BytesLike, overrides?: CallOverrides ): Promise; /** * Returns the token collection symbol. */ symbol(overrides?: CallOverrides): Promise; /** * Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ tokenURI( tokenId: BigNumberish, overrides?: CallOverrides ): Promise; /** * Transfers `tokenId` token from `from` to `to`. WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event. */ transferFrom( from: string, to: string, tokenId: BigNumberish, overrides?: Overrides & { from?: string | Promise } ): Promise; testNewImplementationActive( overrides?: CallOverrides ): Promise; }; }