/**
Pawn ERC721 NTF, player must have one.
function constructor(
string _name,
string _symbol,
string _baseTokenURI
) public
Constructor
ADMIN_ROLE, MINTER_ROLE are given to deployer*/
c
Name |
Type |
Description |
_name |
string |
ChainLink VRFCoordinator contract address |
_symbol |
string |
LINK token address |
_baseTokenURI |
string |
ChainLink keyHash parameter for VRF |
function tokenURI(
uint256 _id
) public returns (string)
get token URI relative to a Pawn
Name |
Type |
Description |
_id |
uint256 |
Pawn ID |
Name |
Type |
Description |
string |
uint256 |
value*/ |
function mint(
address _to
) external returns (uint256 id_)
Mint NFT token
- user must have MINTER role
- Property must be valid
Name |
Type |
Description |
_to |
address |
buyer address |
Name |
Type |
Description |
id_ |
address |
Pawn ID*/ |
function supportsInterface(
bytes4 _interfaceId
) public returns (bool)
is contract support interface
Name |
Type |
Description |
_interfaceId |
bytes4 |
interface ID |
function get(
uint256 _id
) public returns (struct PawnContract.PawnInfo p_)
get information for a Pawn
Name |
Type |
Description |
_id |
uint256 |
Pawn ID |
Name |
Type |
Description |
p_ |
uint256 |
Pawn information struct*/ |