ERC1155Owl
ERC1155Owl
MINTER_ROLE
bytes32 MINTER_ROLE
URI_ROLE
bytes32 URI_ROLE
ROYALTY_ROLE
bytes32 ROYALTY_ROLE
contractURI_
string contractURI_
version
string version
ERC165TAG
bytes4 ERC165TAG
constructor
constructor() public
initialize
function initialize(address _admin, string uri_, string newContractURI, address _forwarder, address _receiver, uint96 _feeNumerator) external
Initializes an ERC721Owl contract
Name | Type | Description |
---|---|---|
_admin | address | admin for contract |
uri_ | string | uri for contract |
newContractURI | string | new uri for contract |
_forwarder | address | address for trusted forwarder for open GSN |
_receiver | address | address of receiver of royalty fees |
_feeNumerator | uint96 | numerator of royalty fee percentage (numerator / 10000) |
proxyInitialize
function proxyInitialize(address _admin, string uri_, string newContractURI, address _forwarder, address _receiver, uint96 _feeNumerator) external
__ERC1155Owl_init
function __ERC1155Owl_init(address _admin, string uri_, string newContractURI, address _forwarder, address _receiver, uint96 _feeNumerator) internal
__ERC1155Owl_init_unchained
function __ERC1155Owl_init_unchained(string newContractURI) internal
grantMinter
function grantMinter(address to) public
Must have DEFAULT_ADMIN_ROLE
Grants MINTER_ROLE to {a}
Name | Type | Description |
---|---|---|
to | address | address to |
grantUriRole
function grantUriRole(address to) public
Must have DEFAULT_ADMIN_ROLE
Grants URI_ROLE to {a}
Name | Type | Description |
---|---|---|
to | address | address to |
grantRoyaltyRole
function grantRoyaltyRole(address to) public
Must have DEFAULT_ADMIN_ROLE
Grants ROYALTY_ROLE to {a}
Name | Type | Description |
---|---|---|
to | address | address to |
mint
function mint(address to, uint256 id, uint256 amount, bytes data) public
Must have MINTER_ROLE
Allows MINTER_ROLE to mint NFTs
Name | Type | Description |
---|---|---|
to | address | address to |
id | uint256 | tokenId value |
amount | uint256 | to mint |
data | bytes | for hooks |
mintBatch
function mintBatch(address to, uint256[] ids, uint256[] amounts, bytes data) public
Must have MINTER_ROLE
Allows caller to mint NFTs (safeMint)
Name | Type | Description |
---|---|---|
to | address | address to |
ids | uint256[] | id values |
amounts | uint256[] | to mint |
data | bytes | for hooks |
setURI
function setURI(string newuri) public
Must have URI_ROLE role!
Allows setting the uri
Name | Type | Description |
---|---|---|
newuri | string | set the baseURI value. |
setContractURI
function setContractURI(string newContractURI) public
Must have URI_ROLE role!
Allows setting the contract uri
Name | Type | Description |
---|---|---|
newContractURI | string | set the contractURI_ value. |
contractURI
function contractURI() public view returns (string)
Defines collection-wide metadata that is URI-accessible
setTokenRoyalty
function setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) external
Exposing _setTokenRoyalty
setDefaultRoyalty
function setDefaultRoyalty(address receiver, uint96 feeNumerator) external
Exposing _setDefaultRoyalty
_msgSender
function _msgSender() internal view returns (address)
the following 3 functions are all required for OpenGSN integration
_msgData
function _msgData() internal view returns (bytes)
supportsInterface
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool)