-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathAdvancedNestable.sol
33 lines (26 loc) · 1.25 KB
/
AdvancedNestable.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
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.18;
import "@rmrk-team/evm-contracts/contracts/RMRK/nestable/RMRKNestable.sol";
contract AdvancedNestable is RMRKNestable {
// NOTE: Additional custom arguments can be added to the constructor based on your needs.
constructor(string memory name, string memory symbol)
RMRKNestable(name, symbol)
{
// Custom optional: constructor logic
}
// Custom expected: external, optionally gated, functions to mint.
// Available internal functions:
// _mint(address to, uint256 tokenId)
// _safeMint(address to, uint256 tokenId)
// _safeMint(address to, uint256 tokenId, bytes memory data)
// Custom expected: external, optionally gated, functions to nest mint.
// Available internal functions:
// _nestMint(address to, uint256 tokenId, uint256 destinationId)
// Custom expected: external gated function to burn.
// Available internal functions:
// _burn(uint256 tokenId)
// Custom optional: utility functions to transfer and nest transfer from caller
// Available public functions:
// transferFrom(address from, address to, uint256 tokenId)
// nestTransfer(address from, address to, uint256 tokenId, uint256 destinationId)
}