Contract 0xc190ef0c36e47974ff9b708caabbaf8eb7091a33

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xf205c9fd9eac7598f6f0855cb316b3807d35b95e4008de0e1660b698aa80dfb5Buy Ticket183473702022-08-07 21:04:392 hrs 10 mins ago0xec01aa65a19579f794d800e429f9d15a1ad32005 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0039242225 27.5
0xdc2372d6fe00d8d73c9255906d992d1945fd55b4029b3be66d4d51be62b184e1Buy Ticket183457372022-08-07 20:10:093 hrs 4 mins ago0xcba504f2c4441edd3e6ab57a65da413fd4ceeb8d IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0039242225 27.5
0xc60d0ff7c50799a3973d8c42248381c4d6bb5b7d8ef5339177ec33d76552a88aBuy Ticket183436622022-08-07 19:00:444 hrs 14 mins ago0x4ac147644db1a0c3191954ba30b6c639e5b7ebcf IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.003710174 26
0x00e08a7573db434b3dcf3ee80980d6359f0b8f0a56c168c667fcb31836dfb1bbBuy Ticket183432342022-08-07 18:46:164 hrs 28 mins ago0x535ca9545088060bb3e325b798072d53ecc436d5 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0039242225 27.5
0xe82f906234732bdec63fc7339e3f9926a69356e41f7eb9860d4ecffabac9546bBuy Ticket183396202022-08-07 16:45:086 hrs 29 mins ago0x5e361f4eca711beb97b864e31e52497f398d1d78 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.003924222527.5
0xae73ecb8cd4fcbe544b596d208e84c7b9520b724d0b58b8dfb4428a39644d981Buy Ticket183375162022-08-07 15:34:377 hrs 40 mins ago0xcd9604d9f5a452a24d06b242b0d384f2e200a2b7 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.00376868059 26.41
0x40383d7ec5e8616fb7370251d68970a6bde2facb6bef308c2305c2ce5e2a1888Buy Ticket183369822022-08-07 15:16:457 hrs 58 mins ago0x7af805b7ab1438ff01621f00ef1389f9dab38285 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0039242225 27.5
0x9110834bd5864ba1bc554cb2cff73c944886fa900951b1a9329f474f9d2d9851Buy Ticket183346942022-08-07 14:00:349 hrs 14 mins ago0x22bf820f942913223b88b80d715f5fcd229683fe IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0039242225 27.5
0x1d47dd8bbce637485a8845fa1280a2f178dc29424d72104adc294e805b8df021Buy Ticket183331192022-08-07 13:08:0010 hrs 7 mins ago0x6098712b3b6e8bd8a89600cd097d213b6c36a754 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0039242225 27.5
0x53b9d7d60e30432dee062c5f67d94200dbacfd717a91cfd68ade2c2a19eaa55eBuy Ticket183324332022-08-07 12:45:1910 hrs 29 mins ago0x82ed398b9e445d08d70ddab8c1285a5131fc61c9 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.013966132707 97.871272453
0x02362694a8cbb07709d9febf201c1af01b51c5e6964d4abd5c086a1afdfb93b0Buy Ticket183256952022-08-07 8:58:5114 hrs 16 mins ago0x534e671d76e57ff8c3814cb1b6dee4b2ea47aa18 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0039242225 27.5
0x05337808b9e4111c777de235f4a0b13cd17b36ec07cb1e3fc350287d889b455eBuy Ticket183256792022-08-07 8:58:1914 hrs 16 mins ago0x8671d9fd5e1dce35867da59a1426fedb77995a8e IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0039242225 27.5
0xcaa420b8d5b81164b270866bc0bc8507c5e757d67dcfcbe68677e3f0abc3796dBuy Ticket183222312022-08-07 7:01:1216 hrs 13 mins ago0x9effeb8905fd36954d035870c682b17df14287f6 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0039242225 27.5
0x7fb01abd19abeec2cf0ca8d0dd1f7f051c54b51861626a9e3d427a19db81ddfdBuy Ticket183213662022-08-07 6:31:5016 hrs 43 mins ago0xac55b64d8c1420af909d3ea07777114cad3ca50c IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.003756608254 26.3254
0xd201bae15232d2cf1279c40dc445955ba2e6f8c4e481c380d068779e97a119d8Buy Ticket183152702022-08-07 3:04:1020 hrs 10 mins ago0xf94dfff330fdc8ac582e7e72b4ced5e90d1bced4 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0039242225 27.5
0x9508f84c2dd28869302752351e67465c7e190d08d75f17b66fad79d509b545dcBuy Ticket183145812022-08-07 2:40:4220 hrs 34 mins ago0x117c87915a5208d1315dfd85f0f90df7eeadde60 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.00376868059 26.41
0xdeaf97040cbcd5cce165b2e6f0a49268088dbcbaf6937b2c33d82cdc01d59b35Buy Ticket183050452022-08-06 21:19:191 day 1 hr ago0x94fdebddc49be39760563f4274292487ff034946 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0039242225 27.5
0x68e3ffb0d6913afe4207e6b348d8963f6d9276454ec74ea5395fdb80c2826d3aBuy Ticket183045932022-08-06 21:04:141 day 2 hrs ago0x2a8584bb5f9b9a4e5d4790b6ec40b921b3f365f6 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.003852873 27
0xa835348f8ed20391e698c21b09473f2f64936331663b971fb7e4d217d26133aaBuy Ticket183043252022-08-06 20:55:081 day 2 hrs ago0x288ccdf66d1e9c99d3d456140d2d5c2788f8f468 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0048647225 27.5
0xc6cce88f3c9eeec7ef541ce7d5ec2d7914dba07590b6f25cdf3ad4b8b3580c5dCreate Party183039602022-08-06 20:42:531 day 2 hrs ago0xf6386b60fdd7d1e97ab4770837e3f1761250ddfd IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.004040608 26
0x6ac2daa90afd887d0a9633a2a8c314c55de672ad1c068afa3fed4aae8b66e13eBuy Ticket183001972022-08-06 18:36:321 day 4 hrs ago0x0d0ec585e3b3c82010e2192c4176fafc9d33e528 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0039245525 27.5
0x763d6a3b88943cd8d508142813dedc083f9f1764a6d8c852161b182e30a14cb6Buy Ticket182999032022-08-06 18:26:351 day 4 hrs ago0x94fdebddc49be39760563f4274292487ff034946 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.00214115 27.5
0xb6c43df322cdf6dd77ce93a2d5b2a2c1e8c70256a0e5c569958d774b5330ade0Buy Ticket182969892022-08-06 16:49:411 day 6 hrs ago0x5e361f4eca711beb97b864e31e52497f398d1d78 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0021411527.5
0x8f3bee72650a0f3758393fa35bd42de35aac3da00d8aa3b4367a9697e6f4e8d2Buy Ticket182944722022-08-06 15:25:461 day 7 hrs ago0x5e361f4eca711beb97b864e31e52497f398d1d78 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0021411527.5
0x07cf93c0b550100fe9eb3b3302f56212484c2e41330a3501bc509ef1eb5a9e13Buy Ticket182926872022-08-06 14:26:021 day 8 hrs ago0x80efb583c1c77659251200b7f127c00f13400823 IN  0xc190ef0c36e47974ff9b708caabbaf8eb7091a330 AVAX0.0039242225 27.5
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PizzaParty

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 7 : PizzaParty.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";

import "./Pizza.sol";

contract PizzaParty is Ownable {

    address public treasureWallet;

    struct Party {
        uint256 id;
        uint256 startTime;
        uint256 endTime;
        uint256 totalTickets;
        uint256 ticketPrice;
        uint256 initialPrize;
    } 

    uint256 currentPartyId;
    mapping(uint256 => Party) public parties;

    struct Player {
        address owner;
        uint256 tickets;
    }

    mapping(uint256 => mapping(uint256 => Player)) public participantPlayers; // (Party Id, player Index) => player
    
    mapping(uint256 => mapping(address => uint256)) public playerIndex; // (Party Id, player address) => player index

    mapping(uint256 => uint256) public numberOfPlayers; // Party Id => total number of players

    Pizza pizza;

    // Events
    event PartyCreated(uint256 id, uint256 startTime, uint256 endTime, uint256 ticketPrice, uint256 initialPrize);
    event PartyTicketBought(uint256 id, uint256 tickets);

    constructor(address _treasureWallet, Pizza _pizza) {
        treasureWallet = _treasureWallet;
        pizza = _pizza;
    }

    function setPizza(Pizza _pizza) external onlyOwner {
        pizza = _pizza;
    }
    function setTreasureWallet(address _treasureWallet) external onlyOwner {
        treasureWallet = _treasureWallet;
    }


    function createParty(uint256 _startTime, uint256 _endTime, uint256 _ticketPrice, uint256 _initialPrize) external onlyOwner {
        require(_endTime > 0, 'Invalid end time');
        require(_ticketPrice > 0, 'Invalid price amount');
        require(!partyActive(), 'There is a party already.');
        currentPartyId++;
        Party storage party = parties[currentPartyId];
        party.id = currentPartyId;
        party.startTime = _startTime;
        party.endTime = _endTime;
        party.ticketPrice = _ticketPrice;
        party.initialPrize = _initialPrize;
        emit PartyCreated(party.id, party.startTime, party.endTime, party.ticketPrice, party.initialPrize);
    }

    // Needs to approve Pizza first
    function buyTicket(uint256 _nrTickets) public {
        address owner = msg.sender;
        Party storage party = parties[currentPartyId];
        uint256 _amountPizza = _nrTickets * party.ticketPrice;
        require(partyActive(), 'There is no active PARTY.');
        require(pizza.balanceOf(owner) >= _amountPizza, "not enough PIZZA");

        pizza.transferFrom(address(owner), treasureWallet, _amountPizza);

        party.totalTickets += _nrTickets;

        if(playerIndex[currentPartyId][owner] == 0){
            numberOfPlayers[currentPartyId]++;
            playerIndex[currentPartyId][owner] = numberOfPlayers[currentPartyId];
            Player storage player = participantPlayers[currentPartyId][numberOfPlayers[currentPartyId]];
            player.owner = owner;
            player.tickets += _nrTickets;
        } else {
            Player storage player = participantPlayers[currentPartyId][playerIndex[currentPartyId][owner]];
            player.tickets += _nrTickets;
        }

        emit PartyTicketBought(currentPartyId, _nrTickets);
    }


    // Views
    function getPlayerTicket(address _player) public view returns (uint256) {
        Player memory player = participantPlayers[currentPartyId][playerIndex[currentPartyId][_player]];
        return player.tickets;
    }

    function getTotalTickets() public view returns (uint256) {
        Party memory party = parties[currentPartyId];
        return party.totalTickets;
    }

    function getPlayers(uint256 partyId, uint256 _offset, uint256 _maxSize) public view returns (Player[] memory) {
        if (_offset >= numberOfPlayers[partyId]) {
            return new Player[](0);
        }

        uint256 outputSize = _maxSize;
        if (_offset + _maxSize >= numberOfPlayers[partyId]) {
            outputSize = numberOfPlayers[partyId] - _offset;
        }
        Player[] memory outputs = new Player[](outputSize);

        for (uint256 i = 1; i <= outputSize; i++) {
            outputs[i-1] = participantPlayers[partyId][i];
        }

        return outputs;
    }

    function currentParty() public view returns (Party memory) {
        Party memory party = parties[currentPartyId];
        return party;
    }

    function partyActive() public view returns (bool) {
        Party memory party = parties[currentPartyId];
        uint256 currentTimeStamp = block.timestamp;
        return currentTimeStamp >= party.startTime && currentTimeStamp <= party.endTime;
    }

}

File 2 of 7 : Pizza.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract Pizza is ERC20("Pizza", "PIZZA"), Ownable {
    uint256 public constant ONE_PIZZA = 1e18;
    uint256 public constant NUM_PROMOTIONAL_PIZZA = 500_000;
    uint256 public constant NUM_PIZZA_SODA_LP = 20_000_000;

    uint256 public NUM_PIZZA_AVAX_LP = 34_000_000;

    address public freezerAddress;
    address public pizzeriaAddress;
    address public chefAddress;
    address public upgradeAddress;

    bool public promotionalPizzaMinted = false;
    bool public avaxLPPizzaMinted = false;
    bool public sodaLPPizzaMinted = false;

    // ADMIN

    /**
     * pizzeria yields pizza
     */
    function setPizzeriaAddress(address _pizzeriaAddress) external onlyOwner {
        pizzeriaAddress = _pizzeriaAddress;
    }

    function setFreezerAddress(address _freezerAddress) external onlyOwner {
        freezerAddress = _freezerAddress;
    }

    function setUpgradeAddress(address _upgradeAddress) external onlyOwner {
        upgradeAddress = _upgradeAddress;
    }

    /**
     * chef consumes pizza
     * chef address can only be set once
     */
    function setChefAddress(address _chefAddress) external onlyOwner {
        require(address(chefAddress) == address(0), "chef address already set");
        chefAddress = _chefAddress;
    }

    function mintPromotionalPizza(address _to) external onlyOwner {
        require(!promotionalPizzaMinted, "promotional pizza has already been minted");
        promotionalPizzaMinted = true;
        _mint(_to, NUM_PROMOTIONAL_PIZZA * ONE_PIZZA);
    }

    function mintAvaxLPPizza() external onlyOwner {
        require(!avaxLPPizzaMinted, "avax pizza LP has already been minted");
        avaxLPPizzaMinted = true;
        _mint(owner(), NUM_PIZZA_AVAX_LP * ONE_PIZZA);
    }

    function mintSodaLPPizza() external onlyOwner {
        require(!sodaLPPizzaMinted, "soda pizza LP has already been minted");
        sodaLPPizzaMinted = true;
        _mint(owner(), NUM_PIZZA_SODA_LP * ONE_PIZZA);
    }

    function setNumPizzaAvaxLp(uint256 _numPizzaAvaxLp) external onlyOwner {
        NUM_PIZZA_AVAX_LP = _numPizzaAvaxLp;
    }

    // external

    function mint(address _to, uint256 _amount) external {
        require(pizzeriaAddress != address(0) && chefAddress != address(0) && freezerAddress != address(0) && upgradeAddress != address(0), "missing initial requirements");
        require(_msgSender() == pizzeriaAddress,"msgsender does not have permission");
        _mint(_to, _amount);
    }

    function burn(address _from, uint256 _amount) external {
        require(chefAddress != address(0) && freezerAddress != address(0) && upgradeAddress != address(0), "missing initial requirements");
        require(
            _msgSender() == chefAddress 
            || _msgSender() == freezerAddress 
            || _msgSender() == upgradeAddress,
            "msgsender does not have permission"
        );
        _burn(_from, _amount);
    }

    function transferToFreezer(address _from, uint256 _amount) external {
        require(freezerAddress != address(0), "missing initial requirements");
        require(_msgSender() == freezerAddress, "only the freezer contract can call transferToFreezer");
        _transfer(_from, freezerAddress, _amount);
    }

    function transferForUpgradesFees(address _from, uint256 _amount) external {
        require(upgradeAddress != address(0), "missing initial requirements");
        require(_msgSender() == upgradeAddress, "only the upgrade contract can call transferForUpgradesFees");
        _transfer(_from, upgradeAddress, _amount);
    }
}

File 3 of 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 4 of 7 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 5 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 6 of 7 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 7 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "london",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_treasureWallet","type":"address"},{"internalType":"contract Pizza","name":"_pizza","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ticketPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"initialPrize","type":"uint256"}],"name":"PartyCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tickets","type":"uint256"}],"name":"PartyTicketBought","type":"event"},{"inputs":[{"internalType":"uint256","name":"_nrTickets","type":"uint256"}],"name":"buyTicket","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_ticketPrice","type":"uint256"},{"internalType":"uint256","name":"_initialPrize","type":"uint256"}],"name":"createParty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentParty","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"totalTickets","type":"uint256"},{"internalType":"uint256","name":"ticketPrice","type":"uint256"},{"internalType":"uint256","name":"initialPrize","type":"uint256"}],"internalType":"struct PizzaParty.Party","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_player","type":"address"}],"name":"getPlayerTicket","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"partyId","type":"uint256"},{"internalType":"uint256","name":"_offset","type":"uint256"},{"internalType":"uint256","name":"_maxSize","type":"uint256"}],"name":"getPlayers","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tickets","type":"uint256"}],"internalType":"struct PizzaParty.Player[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalTickets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"numberOfPlayers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"participantPlayers","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tickets","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"parties","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"totalTickets","type":"uint256"},{"internalType":"uint256","name":"ticketPrice","type":"uint256"},{"internalType":"uint256","name":"initialPrize","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partyActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"playerIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract Pizza","name":"_pizza","type":"address"}],"name":"setPizza","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasureWallet","type":"address"}],"name":"setTreasureWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasureWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b506040516110f83803806110f883398101604081905261002f916100d1565b61003833610069565b600180546001600160a01b039384166001600160a01b0319918216179091556007805492909316911617905561010b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146100ce57600080fd5b50565b600080604083850312156100e457600080fd5b82516100ef816100b9565b6020840151909250610100816100b9565b809150509250929050565b610fde8061011a6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c806384411c0a116100a2578063de798e1c11610071578063de798e1c146103c6578063dfa21577146103d9578063ecf337e9146103f1578063f2fde38b14610404578063f5f7b9621461041757600080fd5b806384411c0a146103435780638da5cb5b1461036e578063a68ce10d14610393578063cea3ff16146103a657600080fd5b806367dd74ca116100de57806367dd74ca1461025b5780636a2d3bc01461027057806370651a18146102c4578063715018a61461033b57600080fd5b806306e8337f146101105780631709e4921461017d5780632513a2c71461019d5780635ff5b7f9146101fa575b600080fd5b60028054600090815260036020818152604092839020835160c081018552815481526001820154928101929092529384015492810192909252820154606082018190526004830154608083015260059092015460a0909101525b6040519081526020015b60405180910390f35b61016a61018b366004610d3c565b60066020526000908152604090205481565b6101db6101ab366004610d55565b6004602090815260009283526040808420909152908252902080546001909101546001600160a01b039091169082565b604080516001600160a01b039093168352602083019190915201610174565b61016a610208366004610d8c565b6002546000908152600460209081526040808320600583528184206001600160a01b0395861685528352818420548452825291829020825180840190935280549093168252600190920154910181905290565b61026e610269366004610d3c565b61042a565b005b610278610750565b6040516101749190600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b61030e6102d2366004610d3c565b60036020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154905086565b604080519687526020870195909552938501929092526060840152608083015260a082015260c001610174565b61026e6107e3565b61016a610351366004610da9565b600560209081526000928352604080842090915290825290205481565b6000546001600160a01b03165b6040516001600160a01b039091168152602001610174565b61026e6103a1366004610dd9565b610819565b6103b96103b4366004610e0b565b6109bc565b6040516101749190610e37565b60015461037b906001600160a01b031681565b6103e1610b45565b6040519015158152602001610174565b61026e6103ff366004610d8c565b610bb9565b61026e610412366004610d8c565b610c05565b61026e610425366004610d8c565b610ca0565b6002546000908152600360205260408120600481015433929061044d9085610ea5565b9050610457610b45565b6104a85760405162461bcd60e51b815260206004820152601960248201527f5468657265206973206e6f206163746976652050415254592e0000000000000060448201526064015b60405180910390fd5b6007546040516370a0823160e01b81526001600160a01b038581166004830152839216906370a0823190602401602060405180830381865afa1580156104f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105169190610ec4565b10156105575760405162461bcd60e51b815260206004820152601060248201526f6e6f7420656e6f7567682050495a5a4160801b604482015260640161049f565b6007546001546040516323b872dd60e01b81526001600160a01b0386811660048301529182166024820152604481018490529116906323b872dd906064016020604051808303816000875af11580156105b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105d89190610edd565b50838260030160008282546105ed9190610eff565b909155505060025460009081526005602090815260408083206001600160a01b038716845290915281205490036106be57600254600090815260066020526040812080549161063b83610f17565b909155505060028054600090815260066020818152604080842054600583528185206001600160a01b038a16808752908452828620919091559454845260048252808420928252808420548452919052812080546001600160a01b03191690921782556001820180548792906106b2908490610eff565b9091555061070e915050565b6002546000908152600460209081526040808320600583528184206001600160a01b03881685528352818420548452909152812060018101805491928792610707908490610eff565b9091555050505b60025460408051918252602082018690527f239d14edadf973e1e63a380b296195b599be4c1d01399d8c9409435b0388a69c910160405180910390a150505050565b6107896040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b5060028054600090815260036020818152604092839020835160c08101855281548152600182015492810192909252938401549281019290925282015460608201526004820154608082015260059091015460a082015290565b6000546001600160a01b0316331461080d5760405162461bcd60e51b815260040161049f90610f30565b6108176000610cec565b565b6000546001600160a01b031633146108435760405162461bcd60e51b815260040161049f90610f30565b600083116108865760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420656e642074696d6560801b604482015260640161049f565b600082116108cd5760405162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081c1c9a58d948185b5bdd5b9d60621b604482015260640161049f565b6108d5610b45565b156109225760405162461bcd60e51b815260206004820152601960248201527f5468657265206973206120706172747920616c72656164792e00000000000000604482015260640161049f565b6002805490600061093283610f17565b90915550506002805460008181526003602090815260409182902083815560018101899055938401879055600484018690556005840185905581519283528201879052810185905260608101849052608081018390527f2ae2b49aa5390983b5c466c25161cdca1aea4a96ce87bcdaec6170673c2a482a9060a00160405180910390a15050505050565b6000838152600660205260409020546060908310610a19576040805160008082526020820190925290610a11565b60408051808201909152600080825260208201528152602001906001900390816109ea5790505b509050610b3e565b6000848152600660205260409020548290610a348286610eff565b10610a5657600085815260066020526040902054610a53908590610f7b565b90505b60008167ffffffffffffffff811115610a7157610a71610f65565b604051908082528060200260200182016040528015610ab657816020015b6040805180820190915260008082526020820152815260200190600190039081610a8f5790505b50905060015b828111610b39576000878152600460209081526040808320848452825291829020825180840190935280546001600160a01b03168352600190810154918301919091528390610b0b9084610f7b565b81518110610b1b57610b1b610f92565b60200260200101819052508080610b3190610f17565b915050610abc565b509150505b9392505050565b600280546000908152600360208181526040808420815160c08101835281548152600182015493810184905295810154918601919091529182015460608501526004820154608085015260059091015460a084015290919042908110801590610bb2575081604001518111155b9250505090565b6000546001600160a01b03163314610be35760405162461bcd60e51b815260040161049f90610f30565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610c2f5760405162461bcd60e51b815260040161049f90610f30565b6001600160a01b038116610c945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161049f565b610c9d81610cec565b50565b6000546001600160a01b03163314610cca5760405162461bcd60e51b815260040161049f90610f30565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215610d4e57600080fd5b5035919050565b60008060408385031215610d6857600080fd5b50508035926020909101359150565b6001600160a01b0381168114610c9d57600080fd5b600060208284031215610d9e57600080fd5b8135610b3e81610d77565b60008060408385031215610dbc57600080fd5b823591506020830135610dce81610d77565b809150509250929050565b60008060008060808587031215610def57600080fd5b5050823594602084013594506040840135936060013592509050565b600080600060608486031215610e2057600080fd5b505081359360208301359350604090920135919050565b602080825282518282018190526000919060409081850190868401855b82811015610e8257815180516001600160a01b03168552860151868501529284019290850190600101610e54565b5091979650505050505050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610ebf57610ebf610e8f565b500290565b600060208284031215610ed657600080fd5b5051919050565b600060208284031215610eef57600080fd5b81518015158114610b3e57600080fd5b60008219821115610f1257610f12610e8f565b500190565b600060018201610f2957610f29610e8f565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052604160045260246000fd5b600082821015610f8d57610f8d610e8f565b500390565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220e916f6683bf29623f644c2d479cdfa4c6ee8eae6580541c38898683eb410284f64736f6c634300080f0033000000000000000000000000f6386b60fdd7d1e97ab4770837e3f1761250ddfd0000000000000000000000006121191018baf067c6dc6b18d42329447a164f05

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000f6386b60fdd7d1e97ab4770837e3f1761250ddfd0000000000000000000000006121191018baf067c6dc6b18d42329447a164f05

-----Decoded View---------------
Arg [0] : _treasureWallet (address): 0xf6386b60fdd7d1e97ab4770837e3f1761250ddfd
Arg [1] : _pizza (address): 0x6121191018baf067c6dc6b18d42329447a164f05

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000f6386b60fdd7d1e97ab4770837e3f1761250ddfd
Arg [1] : 0000000000000000000000006121191018baf067c6dc6b18d42329447a164f05


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.