import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; import { Listener, Provider } from "@ethersproject/providers"; import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; export interface ERC1155PresetMinterPauserInterface extends utils.Interface { contractName: "ERC1155PresetMinterPauser"; functions: { "DEFAULT_ADMIN_ROLE()": FunctionFragment; "MINTER_ROLE()": FunctionFragment; "PAUSER_ROLE()": FunctionFragment; "balanceOf(address,uint256)": FunctionFragment; "balanceOfBatch(address[],uint256[])": FunctionFragment; "burn(address,uint256,uint256)": FunctionFragment; "burnBatch(address,uint256[],uint256[])": FunctionFragment; "getRoleAdmin(bytes32)": FunctionFragment; "getRoleMember(bytes32,uint256)": FunctionFragment; "getRoleMemberCount(bytes32)": FunctionFragment; "grantRole(bytes32,address)": FunctionFragment; "hasRole(bytes32,address)": FunctionFragment; "isApprovedForAll(address,address)": FunctionFragment; "paused()": FunctionFragment; "renounceRole(bytes32,address)": FunctionFragment; "revokeRole(bytes32,address)": FunctionFragment; "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": FunctionFragment; "safeTransferFrom(address,address,uint256,uint256,bytes)": FunctionFragment; "setApprovalForAll(address,bool)": FunctionFragment; "uri(uint256)": FunctionFragment; "mint(address,uint256,uint256,bytes)": FunctionFragment; "mintBatch(address,uint256[],uint256[],bytes)": FunctionFragment; "pause()": FunctionFragment; "unpause()": FunctionFragment; "supportsInterface(bytes4)": FunctionFragment; }; encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string; encodeFunctionData(functionFragment: "MINTER_ROLE", values?: undefined): string; encodeFunctionData(functionFragment: "PAUSER_ROLE", values?: undefined): string; encodeFunctionData(functionFragment: "balanceOf", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "balanceOfBatch", values: [string[], BigNumberish[]]): string; encodeFunctionData(functionFragment: "burn", values: [string, BigNumberish, BigNumberish]): string; encodeFunctionData(functionFragment: "burnBatch", values: [string, BigNumberish[], BigNumberish[]]): string; encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string; encodeFunctionData(functionFragment: "getRoleMember", values: [BytesLike, BigNumberish]): string; encodeFunctionData(functionFragment: "getRoleMemberCount", values: [BytesLike]): string; encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, string]): string; encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, string]): string; encodeFunctionData(functionFragment: "isApprovedForAll", values: [string, string]): string; encodeFunctionData(functionFragment: "paused", values?: undefined): string; encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, string]): string; encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, string]): string; encodeFunctionData(functionFragment: "safeBatchTransferFrom", values: [string, string, BigNumberish[], BigNumberish[], BytesLike]): string; encodeFunctionData(functionFragment: "safeTransferFrom", values: [string, string, BigNumberish, BigNumberish, BytesLike]): string; encodeFunctionData(functionFragment: "setApprovalForAll", values: [string, boolean]): string; encodeFunctionData(functionFragment: "uri", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "mint", values: [string, BigNumberish, BigNumberish, BytesLike]): string; encodeFunctionData(functionFragment: "mintBatch", values: [string, BigNumberish[], BigNumberish[], BytesLike]): string; encodeFunctionData(functionFragment: "pause", values?: undefined): string; encodeFunctionData(functionFragment: "unpause", values?: undefined): string; encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string; decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "MINTER_ROLE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "PAUSER_ROLE", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOfBatch", data: BytesLike): Result; decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result; decodeFunctionResult(functionFragment: "burnBatch", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getRoleMember", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getRoleMemberCount", data: BytesLike): Result; decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isApprovedForAll", data: BytesLike): Result; decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result; decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "safeBatchTransferFrom", data: BytesLike): Result; decodeFunctionResult(functionFragment: "safeTransferFrom", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setApprovalForAll", data: BytesLike): Result; decodeFunctionResult(functionFragment: "uri", data: BytesLike): Result; decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; decodeFunctionResult(functionFragment: "mintBatch", data: BytesLike): Result; decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result; decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result; decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result; events: { "ApprovalForAll(address,address,bool)": EventFragment; "Paused(address)": EventFragment; "RoleAdminChanged(bytes32,bytes32,bytes32)": EventFragment; "RoleGranted(bytes32,address,address)": EventFragment; "RoleRevoked(bytes32,address,address)": EventFragment; "TransferBatch(address,address,address,uint256[],uint256[])": EventFragment; "TransferSingle(address,address,address,uint256,uint256)": EventFragment; "URI(string,uint256)": EventFragment; "Unpaused(address)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "ApprovalForAll"): EventFragment; getEvent(nameOrSignatureOrTopic: "Paused"): EventFragment; getEvent(nameOrSignatureOrTopic: "RoleAdminChanged"): EventFragment; getEvent(nameOrSignatureOrTopic: "RoleGranted"): EventFragment; getEvent(nameOrSignatureOrTopic: "RoleRevoked"): EventFragment; getEvent(nameOrSignatureOrTopic: "TransferBatch"): EventFragment; getEvent(nameOrSignatureOrTopic: "TransferSingle"): EventFragment; getEvent(nameOrSignatureOrTopic: "URI"): EventFragment; getEvent(nameOrSignatureOrTopic: "Unpaused"): EventFragment; } export declare type ApprovalForAllEvent = TypedEvent<[ string, string, boolean ], { account: string; operator: string; approved: boolean; }>; export declare type ApprovalForAllEventFilter = TypedEventFilter; export declare type PausedEvent = TypedEvent<[string], { account: string; }>; export declare type PausedEventFilter = TypedEventFilter; export declare type RoleAdminChangedEvent = TypedEvent<[ string, string, string ], { role: string; previousAdminRole: string; newAdminRole: string; }>; export declare type RoleAdminChangedEventFilter = TypedEventFilter; export declare type RoleGrantedEvent = TypedEvent<[ string, string, string ], { role: string; account: string; sender: string; }>; export declare type RoleGrantedEventFilter = TypedEventFilter; export declare type RoleRevokedEvent = TypedEvent<[ string, string, string ], { role: string; account: string; sender: string; }>; export declare type RoleRevokedEventFilter = TypedEventFilter; export declare type TransferBatchEvent = TypedEvent<[ string, string, string, BigNumber[], BigNumber[] ], { operator: string; from: string; to: string; ids: BigNumber[]; values: BigNumber[]; }>; export declare type TransferBatchEventFilter = TypedEventFilter; export declare type TransferSingleEvent = TypedEvent<[ string, string, string, BigNumber, BigNumber ], { operator: string; from: string; to: string; id: BigNumber; value: BigNumber; }>; export declare type TransferSingleEventFilter = TypedEventFilter; export declare type URIEvent = TypedEvent<[ string, BigNumber ], { value: string; id: BigNumber; }>; export declare type URIEventFilter = TypedEventFilter; export declare type UnpausedEvent = TypedEvent<[string], { account: string; }>; export declare type UnpausedEventFilter = TypedEventFilter; export interface ERC1155PresetMinterPauser extends BaseContract { contractName: "ERC1155PresetMinterPauser"; connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: ERC1155PresetMinterPauserInterface; queryFilter(event: TypedEventFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>; listeners(eventFilter?: TypedEventFilter): Array>; listeners(eventName?: string): Array; removeAllListeners(eventFilter: TypedEventFilter): this; removeAllListeners(eventName?: string): this; off: OnEvent; on: OnEvent; once: OnEvent; removeListener: OnEvent; functions: { DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<[string]>; MINTER_ROLE(overrides?: CallOverrides): Promise<[string]>; PAUSER_ROLE(overrides?: CallOverrides): Promise<[string]>; /** * See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address. */ balanceOf(account: string, id: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>; /** * See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch(accounts: string[], ids: BigNumberish[], overrides?: CallOverrides): Promise<[BigNumber[]]>; burn(account: string, id: BigNumberish, value: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; burnBatch(account: string, ids: BigNumberish[], values: BigNumberish[], overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}. */ getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise<[string]>; /** * Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information. */ getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise<[string]>; /** * Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role. */ getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise<[BigNumber]>; /** * Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. */ grantRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns `true` if `account` has been granted `role`. */ hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise<[boolean]>; /** * See {IERC1155-isApprovedForAll}. */ isApprovedForAll(account: string, operator: string, overrides?: CallOverrides): Promise<[boolean]>; /** * Returns true if the contract is paused, and false otherwise. */ paused(overrides?: CallOverrides): Promise<[boolean]>; /** * Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. */ renounceRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. */ revokeRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155-safeBatchTransferFrom}. */ safeBatchTransferFrom(from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155-safeTransferFrom}. */ safeTransferFrom(from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155-setApprovalForAll}. */ setApprovalForAll(operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\{id\}` substring with the actual token type ID. */ uri(arg0: BigNumberish, overrides?: CallOverrides): Promise<[string]>; /** * Creates `amount` new tokens for `to`, of token type `id`. See {ERC1155-_mint}. Requirements: - the caller must have the `MINTER_ROLE`. */ mint(to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}. */ mintBatch(to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Pauses all token transfers. See {ERC1155Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`. */ pause(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Unpauses all token transfers. See {ERC1155Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`. */ unpause(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC165-supportsInterface}. */ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise<[boolean]>; }; DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; MINTER_ROLE(overrides?: CallOverrides): Promise; PAUSER_ROLE(overrides?: CallOverrides): Promise; /** * See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address. */ balanceOf(account: string, id: BigNumberish, overrides?: CallOverrides): Promise; /** * See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch(accounts: string[], ids: BigNumberish[], overrides?: CallOverrides): Promise; burn(account: string, id: BigNumberish, value: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; burnBatch(account: string, ids: BigNumberish[], values: BigNumberish[], overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}. */ getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise; /** * Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information. */ getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role. */ getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise; /** * Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. */ grantRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns `true` if `account` has been granted `role`. */ hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * See {IERC1155-isApprovedForAll}. */ isApprovedForAll(account: string, operator: string, overrides?: CallOverrides): Promise; /** * Returns true if the contract is paused, and false otherwise. */ paused(overrides?: CallOverrides): Promise; /** * Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. */ renounceRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. */ revokeRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155-safeBatchTransferFrom}. */ safeBatchTransferFrom(from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155-safeTransferFrom}. */ safeTransferFrom(from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155-setApprovalForAll}. */ setApprovalForAll(operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\{id\}` substring with the actual token type ID. */ uri(arg0: BigNumberish, overrides?: CallOverrides): Promise; /** * Creates `amount` new tokens for `to`, of token type `id`. See {ERC1155-_mint}. Requirements: - the caller must have the `MINTER_ROLE`. */ mint(to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}. */ mintBatch(to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Pauses all token transfers. See {ERC1155Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`. */ pause(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Unpauses all token transfers. See {ERC1155Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`. */ unpause(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC165-supportsInterface}. */ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise; callStatic: { DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; MINTER_ROLE(overrides?: CallOverrides): Promise; PAUSER_ROLE(overrides?: CallOverrides): Promise; /** * See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address. */ balanceOf(account: string, id: BigNumberish, overrides?: CallOverrides): Promise; /** * See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch(accounts: string[], ids: BigNumberish[], overrides?: CallOverrides): Promise; burn(account: string, id: BigNumberish, value: BigNumberish, overrides?: CallOverrides): Promise; burnBatch(account: string, ids: BigNumberish[], values: BigNumberish[], overrides?: CallOverrides): Promise; /** * Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}. */ getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise; /** * Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information. */ getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role. */ getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise; /** * Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. */ grantRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * Returns `true` if `account` has been granted `role`. */ hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * See {IERC1155-isApprovedForAll}. */ isApprovedForAll(account: string, operator: string, overrides?: CallOverrides): Promise; /** * Returns true if the contract is paused, and false otherwise. */ paused(overrides?: CallOverrides): Promise; /** * Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. */ renounceRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. */ revokeRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * See {IERC1155-safeBatchTransferFrom}. */ safeBatchTransferFrom(from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: CallOverrides): Promise; /** * See {IERC1155-safeTransferFrom}. */ safeTransferFrom(from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: CallOverrides): Promise; /** * See {IERC1155-setApprovalForAll}. */ setApprovalForAll(operator: string, approved: boolean, overrides?: CallOverrides): Promise; /** * See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\{id\}` substring with the actual token type ID. */ uri(arg0: BigNumberish, overrides?: CallOverrides): Promise; /** * Creates `amount` new tokens for `to`, of token type `id`. See {ERC1155-_mint}. Requirements: - the caller must have the `MINTER_ROLE`. */ mint(to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: CallOverrides): Promise; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}. */ mintBatch(to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: CallOverrides): Promise; /** * Pauses all token transfers. See {ERC1155Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`. */ pause(overrides?: CallOverrides): Promise; /** * Unpauses all token transfers. See {ERC1155Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`. */ unpause(overrides?: CallOverrides): Promise; /** * See {IERC165-supportsInterface}. */ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise; }; filters: { "ApprovalForAll(address,address,bool)"(account?: string | null, operator?: string | null, approved?: null): ApprovalForAllEventFilter; ApprovalForAll(account?: string | null, operator?: string | null, approved?: null): ApprovalForAllEventFilter; "Paused(address)"(account?: null): PausedEventFilter; Paused(account?: null): PausedEventFilter; "RoleAdminChanged(bytes32,bytes32,bytes32)"(role?: BytesLike | null, previousAdminRole?: BytesLike | null, newAdminRole?: BytesLike | null): RoleAdminChangedEventFilter; RoleAdminChanged(role?: BytesLike | null, previousAdminRole?: BytesLike | null, newAdminRole?: BytesLike | null): RoleAdminChangedEventFilter; "RoleGranted(bytes32,address,address)"(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleGrantedEventFilter; RoleGranted(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleGrantedEventFilter; "RoleRevoked(bytes32,address,address)"(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleRevokedEventFilter; RoleRevoked(role?: BytesLike | null, account?: string | null, sender?: string | null): RoleRevokedEventFilter; "TransferBatch(address,address,address,uint256[],uint256[])"(operator?: string | null, from?: string | null, to?: string | null, ids?: null, values?: null): TransferBatchEventFilter; TransferBatch(operator?: string | null, from?: string | null, to?: string | null, ids?: null, values?: null): TransferBatchEventFilter; "TransferSingle(address,address,address,uint256,uint256)"(operator?: string | null, from?: string | null, to?: string | null, id?: null, value?: null): TransferSingleEventFilter; TransferSingle(operator?: string | null, from?: string | null, to?: string | null, id?: null, value?: null): TransferSingleEventFilter; "URI(string,uint256)"(value?: null, id?: BigNumberish | null): URIEventFilter; URI(value?: null, id?: BigNumberish | null): URIEventFilter; "Unpaused(address)"(account?: null): UnpausedEventFilter; Unpaused(account?: null): UnpausedEventFilter; }; estimateGas: { DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; MINTER_ROLE(overrides?: CallOverrides): Promise; PAUSER_ROLE(overrides?: CallOverrides): Promise; /** * See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address. */ balanceOf(account: string, id: BigNumberish, overrides?: CallOverrides): Promise; /** * See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch(accounts: string[], ids: BigNumberish[], overrides?: CallOverrides): Promise; burn(account: string, id: BigNumberish, value: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; burnBatch(account: string, ids: BigNumberish[], values: BigNumberish[], overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}. */ getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise; /** * Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information. */ getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role. */ getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise; /** * Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. */ grantRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns `true` if `account` has been granted `role`. */ hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * See {IERC1155-isApprovedForAll}. */ isApprovedForAll(account: string, operator: string, overrides?: CallOverrides): Promise; /** * Returns true if the contract is paused, and false otherwise. */ paused(overrides?: CallOverrides): Promise; /** * Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. */ renounceRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. */ revokeRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155-safeBatchTransferFrom}. */ safeBatchTransferFrom(from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155-safeTransferFrom}. */ safeTransferFrom(from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155-setApprovalForAll}. */ setApprovalForAll(operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\{id\}` substring with the actual token type ID. */ uri(arg0: BigNumberish, overrides?: CallOverrides): Promise; /** * Creates `amount` new tokens for `to`, of token type `id`. See {ERC1155-_mint}. Requirements: - the caller must have the `MINTER_ROLE`. */ mint(to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}. */ mintBatch(to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Pauses all token transfers. See {ERC1155Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`. */ pause(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Unpauses all token transfers. See {ERC1155Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`. */ unpause(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC165-supportsInterface}. */ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise; }; populateTransaction: { DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise; MINTER_ROLE(overrides?: CallOverrides): Promise; PAUSER_ROLE(overrides?: CallOverrides): Promise; /** * See {IERC1155-balanceOf}. Requirements: - `account` cannot be the zero address. */ balanceOf(account: string, id: BigNumberish, overrides?: CallOverrides): Promise; /** * See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length. */ balanceOfBatch(accounts: string[], ids: BigNumberish[], overrides?: CallOverrides): Promise; burn(account: string, id: BigNumberish, value: BigNumberish, overrides?: Overrides & { from?: string | Promise; }): Promise; burnBatch(account: string, ids: BigNumberish[], values: BigNumberish[], overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}. */ getRoleAdmin(role: BytesLike, overrides?: CallOverrides): Promise; /** * Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information. */ getRoleMember(role: BytesLike, index: BigNumberish, overrides?: CallOverrides): Promise; /** * Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role. */ getRoleMemberCount(role: BytesLike, overrides?: CallOverrides): Promise; /** * Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. */ grantRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Returns `true` if `account` has been granted `role`. */ hasRole(role: BytesLike, account: string, overrides?: CallOverrides): Promise; /** * See {IERC1155-isApprovedForAll}. */ isApprovedForAll(account: string, operator: string, overrides?: CallOverrides): Promise; /** * Returns true if the contract is paused, and false otherwise. */ paused(overrides?: CallOverrides): Promise; /** * Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. */ renounceRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. */ revokeRole(role: BytesLike, account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155-safeBatchTransferFrom}. */ safeBatchTransferFrom(from: string, to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155-safeTransferFrom}. */ safeTransferFrom(from: string, to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155-setApprovalForAll}. */ setApprovalForAll(operator: string, approved: boolean, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\{id\}` substring with the actual token type ID. */ uri(arg0: BigNumberish, overrides?: CallOverrides): Promise; /** * Creates `amount` new tokens for `to`, of token type `id`. See {ERC1155-_mint}. Requirements: - the caller must have the `MINTER_ROLE`. */ mint(to: string, id: BigNumberish, amount: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}. */ mintBatch(to: string, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Pauses all token transfers. See {ERC1155Pausable} and {Pausable-_pause}. Requirements: - the caller must have the `PAUSER_ROLE`. */ pause(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * Unpauses all token transfers. See {ERC1155Pausable} and {Pausable-_unpause}. Requirements: - the caller must have the `PAUSER_ROLE`. */ unpause(overrides?: Overrides & { from?: string | Promise; }): Promise; /** * See {IERC165-supportsInterface}. */ supportsInterface(interfaceId: BytesLike, overrides?: CallOverrides): Promise; }; }