-
Notifications
You must be signed in to change notification settings - Fork 13
/
IERC1155MixedFungible.sol
43 lines (33 loc) · 1.33 KB
/
IERC1155MixedFungible.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol';
import '@openzeppelin/contracts/utils/introspection/IERC165.sol';
import './IERC1155Factory.sol';
/**
* ERC1155 interface with mint, burn, and attached data support for fungible & non-fungible tokens.
* Non-fungible tokens also have support for custom URI's.
*/
interface IERC1155MixedFungible is IERC165, IERC1155Factory, IERC1155MetadataURI {
function create(bool is_fungible, bytes calldata data) external override;
function mintNonFungible(uint256 type_id, address[] calldata to, bytes calldata data) external;
function mintNonFungibleWithURI(
uint256 type_id,
address[] calldata to,
bytes calldata data,
string memory _uri
) external;
function mintFungible(
uint256 type_id,
address[] calldata to,
uint256[] calldata amounts,
bytes calldata data
) external;
function burn(address from, uint256 id, uint256 amount, bytes calldata data) external;
function setApprovalForAllWithData(
address operator,
bool approved,
bytes calldata data
) external;
function uri(uint256 id) external view returns (string memory);
function baseTokenUri() external returns (string memory);
}