Skip to main content

Tickets smart contracts

1) Monsters

ChainAddress
Ethereum0xB03eA7E56a60679Db61BC0775E42E344968e7CbB
Polygon0xb2e7c4D821312fcB896eB0451F300364a9Ca93F0
Binance0xCe811d6BE095f2aaFD06D0813420D825C818db56
Fantom0xc8314921661533241FD7448D805957ecda45EFB4

Functions

_requestIdToRandomStatus

Airnode QRNG Protocol by API3

Returns the cap conditionId from random RequestNumbers.

info

You can find the hex for input in the logs under RequestNumbers output after a successful call of the requestNft function.

airnode

Airnode QRNG Protocol by API3

Oracle address.

What is Airnode?↗

airnodeRrp

Airnode QRNG Protocol by API3

Oracle address.

How does Airnode work?↗

balanceOf

ERC1155 by OpenZeppelin

Returns amount of tickets on the address.

info

id is always 1

balanceOfBatch

ERC1155 by OpenZeppelin

Returns the total amount of tickets across multiple addresses.

endpointIdUint256

Airnode QRNG Protocol by API3

Endpoint for random generation.

getLatestPrice

Price Feeds by Chainlink

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

ERC1155 by OpenZeppelin

Check if the address owner is allowed to spend any amount of tickets from their address to the chosen contract address.

caution

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

ERC1155 by OpenZeppelin

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

Ownable by OpenZeppelin

Address that always controls the right to [sendReward], [setNftCollectionAddress], [setRequestParameters] and [transferOwnership].

payee

PaymentSplitter by OpenZeppelin

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).