Tickets smart contracts
1) Monsters
Functions
_requestIdToRandomStatus
Returns the cap conditionId
from random RequestNumbers.
You can find the hex for input in the logs under RequestNumbers output after a successful call of the requestNft
function.
airnode
Oracle address.
airnodeRrp
Oracle address.
balanceOf
Returns amount of tickets on the address.
id
is always 1
balanceOfBatch
Returns the total amount of tickets across multiple addresses.
endpointIdUint256
Endpoint for random generation.
getLatestPrice
Returns the price of the native network currency in USD used to calculate the ticket purchase price at the time of the transaction (only for the 1st collection).
isApprovedForAll
Check if the address owner is allowed to spend any amount of tickets from their address to the chosen contract address.
Do not give this kind of approval to random individuals or phishing sites.
maxReward
Amount of tickets which can be minted for free. Used to distribute 20'000 tickets to promotion multisig controlled budget and 1'000 tickets to creators as their own personal good (only for the 1st collection).
maxSupply
The maximum amount of tickets that can be minted (100'000 always).
nftContract
Address that has the right to burn tickets and mint caps.
owner
Address that always controls the right to [sendReward], [setNftCollectionAddress], [setRequestParameters] and [transferOwnership].
payee
Two addresses (with index 0 and 1) of the founders have the right to withdraw received income from selling 79,000 tickets as their own personal gain (only for the 1st collection).