Contract 0x095fbf78c06073b1e052da9220d71400c544ff1a 3

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xc542c214a4c4710878f6ecf088d3f6c5821b646a661e946196e9c0129f33519dPause266901952022-09-26 1:37:098 days 8 hrs ago0xbbf9dbeff9381650f99c6d780e4241291f990626 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00000953
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6Collect266882222022-09-26 1:20:438 days 9 hrs ago0x0f99f86602dd53f30a2421621e13ce3f7e0c4863 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00005829
0x30d1dc192c2dead245216e41f64ccecd67459c5d0e8bc3b6b8ef59c9c9380597Collect266829032022-09-26 0:36:348 days 9 hrs ago0xc0715cb0d899d0d595e738156613972a4e354f21 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00006118
0x58e1737f13297e49cbc5b894d3257fb4706e5f5ba45e61caefe80226fa35fffdCollect266793392022-09-26 0:03:148 days 10 hrs ago0x8450e3092b2c1c4aafd37cb6965cfce03cd5fb6d IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00004631
0xb0f9bec12149d137b836c6db85678ae12ee16fc460217fe026a406675f0b3e5aCollect266788372022-09-25 23:58:088 days 10 hrs ago0x815612815d7fb01b1e8a97fe4a0996e77245a3aa IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00003209
0xa14ea8ab9d35181e8c644bd89c04012923b5470cc5b0b66c4d0a11978f71157bCollect266781772022-09-25 23:51:058 days 10 hrs ago0xf5c2fdde417e51c63a0ec0875f9bce27b439d8dc IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.0000328
0x0da4b5d7424d69eeb22dd2dff67e2731b2f9af4b2ee5f1c0294b2130fe7303d8Collect266766102022-09-25 23:32:338 days 10 hrs ago0x94fc8240e4e2c6265b97f03d228115ead5f4144a IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00003488
0x4859cb5155ffa7b086f1a22058bf45365496e7f205aee591aa5c811aec11d001Collect266738552022-09-25 22:59:518 days 11 hrs ago0x8bced9d03f4c3bc59a0bcf91933191285af67268 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00008153
0x71f1e558745336f872f8de0a7acd115498f6ffbb4eed37bece450fa1a306d749Collect266735732022-09-25 22:56:598 days 11 hrs ago0xb03be385f4da2b881f0215dc780b26a6e65fc0bd IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00011555
0xc33176e72641e8f89be142d46b5458ea6bf2b1e956c93e0c79d8537950cef72dCollect266735102022-09-25 22:56:398 days 11 hrs ago0x953e9e00342dd8ab762350c70a6076dbe4aa7054 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00003686
0xdc1ebf20f7bfd85432c0303445585abe71afac68830182eb7457f1e29989ba95Collect266726172022-09-25 22:46:508 days 11 hrs ago0xfae4d028f1e5940c7cf3cbe8560a6158dc6a5c1e IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.0000689
0x9ba1abc368a8984a374c48f8ebbd33ac977e7bf64e503f7a0d27aa75f3dde7e6Collect266716032022-09-25 22:37:218 days 11 hrs ago0x469f0d13e2316bba2a799a6d12a422a2043cc6c2 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00009342
0x3dcc146918a8dc2ba72da2e5f7ebe69533acfb0cd559167ee6fab9fc3593abd0Collect266704942022-09-25 22:26:588 days 12 hrs ago0x41cdbe9c60c845289e1dab31163ce1948c0ebed3 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00008852
0x11f5a9b44d85925a4f855a364d801d8207af1be776d00f813bed9e3089bf2953Collect266694492022-09-25 22:18:578 days 12 hrs ago0x5d263946ffec02f00618d7c86335351ad3a1546b IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00004368
0xcb7a17eacd1ed08e402a8143d9d7d253562fc5b49d13c66b042cca258476ed8cCollect266681682022-09-25 22:11:108 days 12 hrs ago0x71ac01152cf805fab95f9d874c542fd35be2c913 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00004262
0xb885d8aef828bd800c57e39b2c6ef2d5d482e234091927bf80a0511ec75a73f1Collect266680632022-09-25 22:10:328 days 12 hrs ago0xe4ca2ab3c51525ba4db4ce023b28050d061489bf IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00007528
0xa293e74308553d63ad6fa3969f6ae48bc0b879488fd57dcd36a0421fedfb397cCollect266660452022-09-25 21:56:148 days 12 hrs ago0x331164ccc0e0daee2a92a347b51fcf48016fbd7c IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00004276
0x2e95e8cfc43f094f67c48d4fb40e3570a21ec74224d2c33a5a77920cd1f329baCollect266630392022-09-25 21:29:038 days 13 hrs ago0xf8dfc159378c7608e0eb4574b041458e9dc4af96 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00047503
0xa37041b4f04f3e99e855f4d7838c3e225738a99a27097199ee334df230d47cd8Collect266617182022-09-25 21:15:538 days 13 hrs ago0xe95c621e026c605b80f51fe02cccbfa389689c6a IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00005335
0xf0a2b4fb8b2ee46d29cee5201df9315486b11a90ee4a203660510b1f63ebaca8Activate266608722022-09-25 21:07:078 days 13 hrs ago0x7cf9f878942489b7a1725d628a9e59fb1b38ab27 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00002445
0xc1d1486c29cfa5dbae89f4aa9b200f25d57c74a5868abcd760549f925e35e066Collect266594132022-09-25 20:53:508 days 13 hrs ago0x2342e38eb4fccda8328cfd6f945ff78a0358a5e3 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00003257
0xb29f427722efa54c3ba7ed17fc2320334416ec701b8000017c2be664c35eecc0Collect266588772022-09-25 20:48:578 days 13 hrs ago0xbaa32149f2e8e4813c604deacee48e381cecb937 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00002991
0x65ed454ab63c4032133221d96290ec86f94887c53d451d15314b1018bec409dfCollect266586472022-09-25 20:46:448 days 13 hrs ago0xbaa32149f2e8e4813c604deacee48e381cecb937 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00004046
0x9d040f8532ffd9466419783a7af558d28b9ccaf04141b2f809c4b864a72c24f9Collect266583722022-09-25 20:43:438 days 13 hrs ago0xbaa32149f2e8e4813c604deacee48e381cecb937 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00004063
0x473564d7c485038346fa374b0701037cdd1d5a9c6c2f9219fd521d1cc47921e7Collect266581692022-09-25 20:41:298 days 13 hrs ago0x93c460a6d3fd2be77cf07a92e67614792a45a9c5 IN  0x095fbf78c06073b1e052da9220d71400c544ff1a0 ETH0.00002989
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xc542c214a4c4710878f6ecf088d3f6c5821b646a661e946196e9c0129f33519d266901952022-09-26 1:37:098 days 8 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0x4e572433a3bfa336b6396d13afc9f69b582528610 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0xce3051ff2ed963406b55ef505751ef88b8f0d7910 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1aTreasure DAO: Magic Token0 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0xc1d26efbe9649660e243239198aee8cefd31aef80 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0x4de95c1e202102e22e801590c51d7b979f167fbb0 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0x4de95c1e202102e22e801590c51d7b979f167fbb0 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0x4de95c1e202102e22e801590c51d7b979f167fbb0 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0xc1d26efbe9649660e243239198aee8cefd31aef80 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0xc1d26efbe9649660e243239198aee8cefd31aef80 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0xe3b4d0bf4f433bf981bd452134657ba1dc28f5580 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0xce3051ff2ed963406b55ef505751ef88b8f0d7910 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1aTreasure DAO: Magic Token0 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0xc1d26efbe9649660e243239198aee8cefd31aef80 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0x4de95c1e202102e22e801590c51d7b979f167fbb0 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0x4de95c1e202102e22e801590c51d7b979f167fbb0 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0x4de95c1e202102e22e801590c51d7b979f167fbb0 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0xc1d26efbe9649660e243239198aee8cefd31aef80 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0xc1d26efbe9649660e243239198aee8cefd31aef80 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0xe3b4d0bf4f433bf981bd452134657ba1dc28f5580 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0xce3051ff2ed963406b55ef505751ef88b8f0d7910 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1aTreasure DAO: Magic Token0 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0xc1d26efbe9649660e243239198aee8cefd31aef80 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0x4de95c1e202102e22e801590c51d7b979f167fbb0 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0x4de95c1e202102e22e801590c51d7b979f167fbb0 ETH
0xc471ebdc13f83bb924bb6d2c96dfed19641784a6de8d375da2665bb98b8b3ba6266882222022-09-26 1:20:438 days 9 hrs ago 0x095fbf78c06073b1e052da9220d71400c544ff1a 0x4de95c1e202102e22e801590c51d7b979f167fbb0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CollectibleProducer

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 15 : CollectibleProducer.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "hardhat/console.sol";

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

import "../Realm/IRealm.sol";
import "../Staker/IStructureStaker.sol";
import "../Reactor/IReactor.sol";
import "./ICollectible.sol";
import "../Utils/IProduction.sol";

import "../Manager/ManagerModifier.sol";

contract CollectibleProducer is ReentrancyGuard, Pausable, ManagerModifier {
  using SafeERC20 for IERC20;

  //=======================================
  // Immutables
  //=======================================
  IRealm public immutable REALM;
  IStructureStaker public immutable STRUCTURE_STAKER;
  IReactor public immutable REACTOR;
  IProduction public immutable PRODUCTION;
  ICollectible public immutable COLLECTIBLE;
  address public immutable VAULT;
  IERC20 public immutable TOKEN;

  //=======================================
  // Ints
  //=======================================
  uint256 public defaultCooldownAddition;
  uint256 public maxCollectibles;
  uint256 public maxCollect;
  uint256 public maxSeconds;

  //=======================================
  // Arrays
  //=======================================
  uint256[] public cooldowns;
  uint256[] public costs;

  //=======================================
  // Mappings
  //=======================================
  mapping(uint256 => mapping(uint256 => bool)) public geos;
  mapping(uint256 => uint256) public exotics;
  mapping(uint256 => uint256) public rarityHolder;

  //=======================================
  // Events
  //=======================================
  event Activated(uint256 realmId);
  event Produced(
    uint256 realmId,
    uint256 collectibleId,
    uint256 quantity,
    uint256 cost
  );

  //=======================================
  // Constructor
  //=======================================
  constructor(
    address _realm,
    address _manager,
    address _structureStaker,
    address _reactor,
    address _production,
    address _collectible,
    address _vault,
    address _token,
    uint256 _maxCollectibles,
    uint256 _maxCollect,
    uint256 _maxSeconds
  ) ManagerModifier(_manager) {
    REALM = IRealm(_realm);
    STRUCTURE_STAKER = IStructureStaker(_structureStaker);
    REACTOR = IReactor(_reactor);
    PRODUCTION = IProduction(_production);
    COLLECTIBLE = ICollectible(_collectible);
    VAULT = _vault;
    TOKEN = IERC20(_token);

    maxCollectibles = _maxCollectibles;
    maxCollect = _maxCollect;
    maxSeconds = _maxSeconds;

    exotics[0] = 1;
    exotics[1] = 23;
    exotics[2] = 16;
    exotics[3] = 34;

    // Nourishment
    geos[0][0] = true; // Pond
    geos[0][1] = true; // Valley
    geos[0][5] = true; // Canal
    geos[0][7] = true; // Prairie
    geos[0][11] = true; // River
    geos[0][25] = true; // Biosphere
    geos[0][26] = true; // Lagoon
    geos[0][31] = true; // Oasis
    geos[0][32] = true; // Waterfall

    // Aquatic
    geos[1][12] = true; // Sea
    geos[1][14] = true; // Lake
    geos[1][20] = true; // Fjord
    geos[1][23] = true; // Ocean
    geos[1][13] = true; // Cove
    geos[1][2] = true; // Gulf
    geos[1][17] = true; // Bay
    geos[1][33] = true; // Reef

    // Technological
    geos[2][16] = true; // Tundra
    geos[2][24] = true; // Desert
    geos[2][30] = true; // Cave
    geos[2][6] = true; // Cape
    geos[2][10] = true; // Peninsula
    geos[2][15] = true; // Swamp
    geos[2][19] = true; // Dune
    geos[2][28] = true; // Island
    geos[2][21] = true; // Geyser

    // Earthen
    geos[3][3] = true; // Basin
    geos[3][8] = true; // Plateau
    geos[3][9] = true; // Mesa
    geos[3][18] = true; // Ice Shelf
    geos[3][22] = true; // Glacier
    geos[3][4] = true; // Butte
    geos[3][29] = true; // Canyon
    geos[3][27] = true; // Mountain
    geos[3][34] = true; // Volcano

    // Common
    rarityHolder[0] = 0;
    rarityHolder[1] = 0;
    rarityHolder[10] = 0;
    rarityHolder[11] = 0;
    rarityHolder[20] = 0;
    rarityHolder[21] = 0;
    rarityHolder[30] = 0;
    rarityHolder[31] = 0;

    // Uncommon
    rarityHolder[2] = 1;
    rarityHolder[3] = 1;
    rarityHolder[12] = 1;
    rarityHolder[13] = 1;
    rarityHolder[22] = 1;
    rarityHolder[23] = 1;
    rarityHolder[32] = 1;
    rarityHolder[33] = 1;

    // Rare
    rarityHolder[4] = 2;
    rarityHolder[5] = 2;
    rarityHolder[14] = 2;
    rarityHolder[15] = 2;
    rarityHolder[24] = 2;
    rarityHolder[25] = 2;
    rarityHolder[34] = 2;
    rarityHolder[35] = 2;

    // Epic
    rarityHolder[6] = 3;
    rarityHolder[16] = 3;
    rarityHolder[26] = 3;
    rarityHolder[36] = 3;

    // Legendary
    rarityHolder[7] = 4;
    rarityHolder[17] = 4;
    rarityHolder[27] = 4;
    rarityHolder[37] = 4;

    // Mythic
    rarityHolder[8] = 5;
    rarityHolder[18] = 5;
    rarityHolder[28] = 5;
    rarityHolder[38] = 5;

    // Exotic
    rarityHolder[9] = 6;
    rarityHolder[19] = 6;
    rarityHolder[29] = 6;
    rarityHolder[39] = 6;

    cooldowns = [43200, 43200, 86400, 86400, 129600, 129600, 172800];
    costs = [
      100000000000000000,
      150000000000000000,
      300000000000000000,
      500000000000000000,
      1000000000000000000,
      1250000000000000000,
      2000000000000000000
    ];
  }

  //=======================================
  // External
  //=======================================
  function activate(uint256[] calldata _realmIds)
    external
    nonReentrant
    whenNotPaused
  {
    uint256 j = 0;
    uint256 length = _realmIds.length;

    for (; j < length; j++) {
      uint256 realmId = _realmIds[j];

      // Check if reactor is productive
      require(
        STRUCTURE_STAKER.hasStaked(realmId, address(REACTOR), 0),
        "CollectibleProducer: Not productive"
      );

      // Set production
      PRODUCTION.setProduction(realmId);

      emit Activated(realmId);
    }
  }

  function collect(
    uint256[] calldata _realmIds,
    uint256[][] calldata _collectibleIds,
    uint256[][] calldata _quantities
  ) external nonReentrant whenNotPaused {
    // Check if _collectibleIds are below max
    require(
      _realmIds.length <= maxCollect,
      "CollectibleProducer: Above max Realms"
    );

    uint256 h = 0;
    uint256 realmIdsLength = _realmIds.length;

    for (; h < realmIdsLength; h++) {
      uint256 realmId = _realmIds[h];
      uint256[] memory collectibleIds = _collectibleIds[h];
      uint256[] memory quantities = _quantities[h];

      // Check if _collectibleIds are below max
      require(
        collectibleIds.length <= maxCollectibles,
        "CollectibleProducer: Above max Collectibles"
      );

      // Check if reactor is productive
      require(
        STRUCTURE_STAKER.hasStaked(realmId, address(REACTOR), 0),
        "CollectibleProducer: Not productive"
      );

      // Check if product is initialized
      require(
        PRODUCTION.isProductive(realmId),
        "CollectibleProducer: You must start production first"
      );

      uint256 j = 0;
      uint256 length = collectibleIds.length;
      uint256 startedAt = PRODUCTION.getStartedAt(realmId);

      for (; j < length; j++) {
        uint256 collectibleId = collectibleIds[j];
        uint256 desiredQuantity = quantities[j];

        // Collect
        _collect(realmId, collectibleId, desiredQuantity, startedAt);
      }
    }
  }

  function getSecondsElapsed(uint256 _realmId) external view returns (uint256) {
    uint256 startedAt = PRODUCTION.getStartedAt(_realmId);

    // Return 0 if production hasn't been started
    if (startedAt == 0) return 0;

    return _secondsElapsed(startedAt);
  }

  function getQuantity(uint256 _realmId, uint256 _collectibleId)
    external
    view
    returns (uint256)
  {
    uint256 rarity = _getRarity(_collectibleId);
    uint256 startedAt = PRODUCTION.getStartedAt(_realmId);

    // Return 0 if production hasn't been started
    if (startedAt == 0) return 0;

    uint256 cooldown = cooldowns[rarity];

    return _secondsElapsed(startedAt) / cooldown;
  }

  function secondsTillIncrease(uint256 _realmId, uint256 _collectibleId)
    external
    view
    returns (uint256)
  {
    uint256 rarity = _getRarity(_collectibleId);
    uint256 startedAt = PRODUCTION.getStartedAt(_realmId);

    // Return 0 if production hasn't been started
    if (startedAt == 0) return 0;

    uint256 cooldown = cooldowns[rarity];
    uint256 elapsedTime = _secondsElapsed(startedAt);

    return cooldown - (elapsedTime - ((elapsedTime / cooldown) * cooldown));
  }

  //=======================================
  // Admin
  //=======================================
  function pause() external onlyAdmin {
    _pause();
  }

  function unpause() external onlyAdmin {
    _unpause();
  }

  function updateCosts(uint256[] calldata _costs) external onlyAdmin {
    costs = _costs;
  }

  function updateCooldowns(uint256[] calldata _cooldowns) external onlyAdmin {
    cooldowns = _cooldowns;
  }

  function updateMaxCollectibles(uint256 _maxCollectibles) external onlyAdmin {
    maxCollectibles = _maxCollectibles;
  }

  function updateMaxCollect(uint256 _maxCollect) external onlyAdmin {
    maxCollect = _maxCollect;
  }

  function updateMaxSeconds(uint256 _maxSeconds) external onlyAdmin {
    maxSeconds = _maxSeconds;
  }

  //=======================================
  // Internal
  //=======================================

  function _collect(
    uint256 _realmId,
    uint256 _collectibleId,
    uint256 _desiredQuantity,
    uint256 _startedAt
  ) internal {
    // Get rarity
    uint256 rarity = _getRarity(_collectibleId);

    // Get cooldown
    uint256 cooldown = cooldowns[rarity];

    // Get category
    uint256 category = _getCategory(_collectibleId);

    // Store if has Geo Feature
    bool hasGeo = _hasGeo(_realmId, category);

    // Check if trying to collect Exotic
    if (rarity == 6) {
      require(
        _hasExotic(_realmId, category),
        "CollectibleProducer: You cannot produce Exotic Collectible"
      );
    }

    // Require Geo Feature if not Common Rarity
    if (rarity != 0) {
      require(
        hasGeo,
        "CollectibleProducer: You cannot produce this Collectible"
      );
    }

    // Seconds elapsed
    uint256 secondsElapsed = _secondsElapsed(_startedAt);

    // Check over max seconds to collect
    if (secondsElapsed > maxSeconds) {
      secondsElapsed = maxSeconds;
    }

    // Get quantity
    uint256 quantity = secondsElapsed / cooldown;

    // Check if quantity is greater than 0
    require(
      quantity > 0,
      "CollectibleProducer: Max quantity allowed must be above 0"
    );

    // Check if desired quantity is allowed
    require(
      quantity >= _desiredQuantity,
      "CollectibleProducer: Desired quantity is above max quantity allowed"
    );

    // Update product
    PRODUCTION.setProduction(_realmId);

    // Get cost
    uint256 cost = costs[rarity] * _desiredQuantity;

    // Transfer to vault
    TOKEN.safeTransferFrom(msg.sender, VAULT, cost);

    // Mint
    COLLECTIBLE.mintFor(msg.sender, _collectibleId, _desiredQuantity);

    emit Produced(_realmId, _collectibleId, _desiredQuantity, cost);
  }

  function _getCategory(uint256 _collectibleId)
    internal
    pure
    returns (uint256)
  {
    if (_collectibleId < 10) {
      return 0;
    } else if (_collectibleId < 20) {
      return 1;
    } else if (_collectibleId < 30) {
      return 2;
    } else {
      return 3;
    }
  }

  function _secondsElapsed(uint256 _time) internal view returns (uint256) {
    if (block.timestamp <= _time) {
      return 0;
    }

    return (block.timestamp - _time);
  }

  function _getRarity(uint256 _collectibleId) internal view returns (uint256) {
    return rarityHolder[_collectibleId];
  }

  function _hasGeo(uint256 _realmId, uint256 _category)
    internal
    view
    returns (bool)
  {
    (uint256 a, uint256 b, uint256 c) = _realmFeatures(_realmId);

    if (geos[_category][a] || geos[_category][b] || geos[_category][c]) {
      return true;
    }

    return false;
  }

  function _hasExotic(uint256 _realmId, uint256 _category)
    internal
    view
    returns (bool)
  {
    (uint256 a, uint256 b, uint256 c) = _realmFeatures(_realmId);

    if (
      a == exotics[_category] ||
      b == exotics[_category] ||
      c == exotics[_category]
    ) {
      return true;
    }

    return false;
  }

  function _realmFeatures(uint256 _realmId)
    internal
    view
    returns (
      uint256,
      uint256,
      uint256
    )
  {
    return (
      REALM.realmFeatures(_realmId, 0),
      REALM.realmFeatures(_realmId, 1),
      REALM.realmFeatures(_realmId, 2)
    );
  }
}

File 2 of 15 : console.sol
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;

library console {
	address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);

	function _sendLogPayload(bytes memory payload) private view {
		uint256 payloadLength = payload.length;
		address consoleAddress = CONSOLE_ADDRESS;
		assembly {
			let payloadStart := add(payload, 32)
			let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)
		}
	}

	function log() internal view {
		_sendLogPayload(abi.encodeWithSignature("log()"));
	}

	function logInt(int p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(int)", p0));
	}

	function logUint(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function logString(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function logBool(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function logAddress(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function logBytes(bytes memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
	}

	function logBytes1(bytes1 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
	}

	function logBytes2(bytes2 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
	}

	function logBytes3(bytes3 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
	}

	function logBytes4(bytes4 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
	}

	function logBytes5(bytes5 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
	}

	function logBytes6(bytes6 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
	}

	function logBytes7(bytes7 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
	}

	function logBytes8(bytes8 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
	}

	function logBytes9(bytes9 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
	}

	function logBytes10(bytes10 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
	}

	function logBytes11(bytes11 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
	}

	function logBytes12(bytes12 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
	}

	function logBytes13(bytes13 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
	}

	function logBytes14(bytes14 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
	}

	function logBytes15(bytes15 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
	}

	function logBytes16(bytes16 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
	}

	function logBytes17(bytes17 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
	}

	function logBytes18(bytes18 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
	}

	function logBytes19(bytes19 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
	}

	function logBytes20(bytes20 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
	}

	function logBytes21(bytes21 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
	}

	function logBytes22(bytes22 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
	}

	function logBytes23(bytes23 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
	}

	function logBytes24(bytes24 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
	}

	function logBytes25(bytes25 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
	}

	function logBytes26(bytes26 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
	}

	function logBytes27(bytes27 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
	}

	function logBytes28(bytes28 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
	}

	function logBytes29(bytes29 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
	}

	function logBytes30(bytes30 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
	}

	function logBytes31(bytes31 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
	}

	function logBytes32(bytes32 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
	}

	function log(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function log(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function log(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function log(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function log(uint p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1));
	}

	function log(uint p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1));
	}

	function log(uint p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1));
	}

	function log(uint p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1));
	}

	function log(string memory p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1));
	}

	function log(string memory p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
	}

	function log(string memory p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
	}

	function log(string memory p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
	}

	function log(bool p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1));
	}

	function log(bool p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
	}

	function log(bool p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
	}

	function log(bool p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
	}

	function log(address p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1));
	}

	function log(address p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
	}

	function log(address p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
	}

	function log(address p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
	}

	function log(uint p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2));
	}

	function log(uint p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2));
	}

	function log(uint p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2));
	}

	function log(uint p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2));
	}

	function log(uint p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2));
	}

	function log(uint p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2));
	}

	function log(uint p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2));
	}

	function log(uint p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2));
	}

	function log(uint p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2));
	}

	function log(uint p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2));
	}

	function log(uint p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2));
	}

	function log(uint p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
	}

	function log(string memory p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2));
	}

	function log(string memory p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
	}

	function log(string memory p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
	}

	function log(string memory p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
	}

	function log(bool p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2));
	}

	function log(bool p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2));
	}

	function log(bool p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2));
	}

	function log(bool p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
	}

	function log(bool p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2));
	}

	function log(bool p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
	}

	function log(bool p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
	}

	function log(bool p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
	}

	function log(bool p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2));
	}

	function log(bool p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
	}

	function log(bool p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
	}

	function log(bool p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
	}

	function log(address p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2));
	}

	function log(address p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2));
	}

	function log(address p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2));
	}

	function log(address p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2));
	}

	function log(address p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2));
	}

	function log(address p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
	}

	function log(address p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
	}

	function log(address p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
	}

	function log(address p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2));
	}

	function log(address p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
	}

	function log(address p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
	}

	function log(address p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
	}

	function log(address p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2));
	}

	function log(address p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
	}

	function log(address p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
	}

	function log(address p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
	}

	function log(uint p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
	}

}

File 3 of 15 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 15 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 6 of 15 : IRealm.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

interface IRealm {
  function balanceOf(address owner) external view returns (uint256);

  function ownerOf(uint256 _realmId) external view returns (address owner);

  function safeTransferFrom(
    address from,
    address to,
    uint256 tokenId
  ) external;

  function isApprovedForAll(address owner, address operator)
    external
    returns (bool);

  function realmFeatures(uint256 realmId, uint256 index)
    external
    view
    returns (uint256);
}

File 7 of 15 : IStructureStaker.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

interface IStructureStaker {
  function stakeFor(
    address _staker,
    uint256 _realmId,
    address _addr,
    uint256 _structureId
  ) external;

  function unstakeFor(
    address _staker,
    uint256 _realmId,
    address _addr,
    uint256 _structureId
  ) external;

  function stakeBatchFor(
    address _staker,
    uint256[] calldata _realmIds,
    address[] calldata _addrs,
    uint256[] calldata _structureIds
  ) external;

  function unstakeBatchFor(
    address _staker,
    uint256[] calldata _realmIds,
    address[] calldata _addrs,
    uint256[] calldata _structureIds
  ) external;

  function getStaker(
    uint256 _realmId,
    address _addr,
    uint256 _structureId
  ) external;

  function hasStaked(
    uint256 _realmId,
    address _addr,
    uint256 _count
  ) external returns (bool);
}

File 8 of 15 : IReactor.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

interface IReactor {
  function ownerOf(uint256 _realmId) external view returns (address owner);

  function mintFor(address _for, uint256 _quantity) external returns (uint256);

  function burn(uint256 _id) external;
}

File 9 of 15 : ICollectible.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

interface ICollectible {
  function mintFor(
    address _for,
    uint256 _id,
    uint256 _amount
  ) external;

  function mintBatchFor(
    address _for,
    uint256[] memory _ids,
    uint256[] memory _amounts
  ) external;

  function burn(uint256 _id, uint256 _amount) external;

  function burnBatch(uint256[] memory ids, uint256[] memory amounts) external;
}

File 10 of 15 : IProduction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

interface IProduction {
  function setProduction(uint256 _realmId) external;

  function isProductive(uint256 _realmId) external view returns (bool);

  function getStartedAt(uint256 _realmId) external view returns (uint256);
}

File 11 of 15 : ManagerModifier.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "../Manager/IManager.sol";

abstract contract ManagerModifier {
  //=======================================
  // Immutables
  //=======================================
  IManager public immutable MANAGER;

  //=======================================
  // Constructor
  //=======================================
  constructor(address _manager) {
    MANAGER = IManager(_manager);
  }

  //=======================================
  // Modifiers
  //=======================================
  modifier onlyAdmin() {
    require(MANAGER.isAdmin(msg.sender), "Manager: Not an Admin");
    _;
  }

  modifier onlyManager() {
    require(MANAGER.isManager(msg.sender, 0), "Manager: Not manager");
    _;
  }

  modifier onlyMinter() {
    require(MANAGER.isManager(msg.sender, 1), "Manager: Not minter");
    _;
  }
}

File 12 of 15 : 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 13 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 14 of 15 : 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 15 of 15 : IManager.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

interface IManager {
  function isAdmin(address _addr) external view returns (bool);

  function isManager(address _addr, uint256 _type) external view returns (bool);

  function addManager(address _addr, uint256 _type) external;

  function removeManager(address _addr, uint256 _type) external;

  function addAdmin(address _addr) external;

  function removeAdmin(address _addr) external;
}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_realm","type":"address"},{"internalType":"address","name":"_manager","type":"address"},{"internalType":"address","name":"_structureStaker","type":"address"},{"internalType":"address","name":"_reactor","type":"address"},{"internalType":"address","name":"_production","type":"address"},{"internalType":"address","name":"_collectible","type":"address"},{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_maxCollectibles","type":"uint256"},{"internalType":"uint256","name":"_maxCollect","type":"uint256"},{"internalType":"uint256","name":"_maxSeconds","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"realmId","type":"uint256"}],"name":"Activated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"realmId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"collectibleId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"cost","type":"uint256"}],"name":"Produced","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"COLLECTIBLE","outputs":[{"internalType":"contract ICollectible","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER","outputs":[{"internalType":"contract IManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRODUCTION","outputs":[{"internalType":"contract IProduction","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REACTOR","outputs":[{"internalType":"contract IReactor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REALM","outputs":[{"internalType":"contract IRealm","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STRUCTURE_STAKER","outputs":[{"internalType":"contract IStructureStaker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VAULT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_realmIds","type":"uint256[]"}],"name":"activate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_realmIds","type":"uint256[]"},{"internalType":"uint256[][]","name":"_collectibleIds","type":"uint256[][]"},{"internalType":"uint256[][]","name":"_quantities","type":"uint256[][]"}],"name":"collect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cooldowns","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"costs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultCooldownAddition","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"exotics","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"geos","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_realmId","type":"uint256"},{"internalType":"uint256","name":"_collectibleId","type":"uint256"}],"name":"getQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_realmId","type":"uint256"}],"name":"getSecondsElapsed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxCollect","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxCollectibles","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSeconds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rarityHolder","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_realmId","type":"uint256"},{"internalType":"uint256","name":"_collectibleId","type":"uint256"}],"name":"secondsTillIncrease","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_cooldowns","type":"uint256[]"}],"name":"updateCooldowns","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_costs","type":"uint256[]"}],"name":"updateCosts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxCollect","type":"uint256"}],"name":"updateMaxCollect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxCollectibles","type":"uint256"}],"name":"updateMaxCollectibles","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSeconds","type":"uint256"}],"name":"updateMaxSeconds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6101806040523480156200001257600080fd5b50604051620036a5380380620036a5833981016040819052620000359162001040565b8960016000819055506000600160006101000a81548160ff021916908315150217905550806001600160a01b03166080816001600160a01b031660601b81525050508a6001600160a01b031660a0816001600160a01b031660601b81525050886001600160a01b031660c0816001600160a01b031660601b81525050876001600160a01b031660e0816001600160a01b031660601b81525050866001600160a01b0316610100816001600160a01b031660601b81525050856001600160a01b0316610120816001600160a01b031660601b81525050846001600160a01b0316610140816001600160a01b031660601b81525050836001600160a01b0316610160816001600160a01b031660601b8152505082600381905550816004819055508060058190555060016009600080815260200190815260200160002081905550601760096000600181526020019081526020016000208190555060106009600060028152602001908152602001600020819055506022600960006003815260200190815260200160002081905550600160086000808152602001908152602001600020600080815260200190815260200160002060006101000a81548160ff02191690831515021790555060016008600080815260200190815260200160002060006001815260200190815260200160002060006101000a81548160ff02191690831515021790555060016008600080815260200190815260200160002060006005815260200190815260200160002060006101000a81548160ff02191690831515021790555060016008600080815260200190815260200160002060006007815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860008081526020019081526020016000206000600b815260200190815260200160002060006101000a81548160ff02191690831515021790555060016008600080815260200190815260200160002060006019815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860008081526020019081526020016000206000601a815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860008081526020019081526020016000206000601f815260200190815260200160002060006101000a81548160ff02191690831515021790555060016008600080815260200190815260200160002060006020815260200190815260200160002060006101000a81548160ff021916908315150217905550600160086000600181526020019081526020016000206000600c815260200190815260200160002060006101000a81548160ff021916908315150217905550600160086000600181526020019081526020016000206000600e815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006001815260200190815260200160002060006014815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006001815260200190815260200160002060006017815260200190815260200160002060006101000a81548160ff021916908315150217905550600160086000600181526020019081526020016000206000600d815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006001815260200190815260200160002060006002815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006001815260200190815260200160002060006011815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006001815260200190815260200160002060006021815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006002815260200190815260200160002060006010815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006002815260200190815260200160002060006018815260200190815260200160002060006101000a81548160ff021916908315150217905550600160086000600281526020019081526020016000206000601e815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006002815260200190815260200160002060006006815260200190815260200160002060006101000a81548160ff021916908315150217905550600160086000600281526020019081526020016000206000600a815260200190815260200160002060006101000a81548160ff021916908315150217905550600160086000600281526020019081526020016000206000600f815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006002815260200190815260200160002060006013815260200190815260200160002060006101000a81548160ff021916908315150217905550600160086000600281526020019081526020016000206000601c815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006002815260200190815260200160002060006015815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006003815260200190815260200160002060006003815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006003815260200190815260200160002060006008815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006003815260200190815260200160002060006009815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006003815260200190815260200160002060006012815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006003815260200190815260200160002060006016815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006003815260200190815260200160002060006004815260200190815260200160002060006101000a81548160ff021916908315150217905550600160086000600381526020019081526020016000206000601d815260200190815260200160002060006101000a81548160ff021916908315150217905550600160086000600381526020019081526020016000206000601b815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600860006003815260200190815260200160002060006022815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600a6000808152602001908152602001600020819055506000600a600060018152602001908152602001600020819055506000600a6000600a8152602001908152602001600020819055506000600a6000600b8152602001908152602001600020819055506000600a600060148152602001908152602001600020819055506000600a600060158152602001908152602001600020819055506000600a6000601e8152602001908152602001600020819055506000600a6000601f8152602001908152602001600020819055506001600a600060028152602001908152602001600020819055506001600a600060038152602001908152602001600020819055506001600a6000600c8152602001908152602001600020819055506001600a6000600d8152602001908152602001600020819055506001600a600060168152602001908152602001600020819055506001600a600060178152602001908152602001600020819055506001600a600060208152602001908152602001600020819055506001600a600060218152602001908152602001600020819055506002600a600060048152602001908152602001600020819055506002600a600060058152602001908152602001600020819055506002600a6000600e8152602001908152602001600020819055506002600a6000600f8152602001908152602001600020819055506002600a600060188152602001908152602001600020819055506002600a600060198152602001908152602001600020819055506002600a600060228152602001908152602001600020819055506002600a600060238152602001908152602001600020819055506003600a600060068152602001908152602001600020819055506003600a600060108152602001908152602001600020819055506003600a6000601a8152602001908152602001600020819055506003600a600060248152602001908152602001600020819055506004600a600060078152602001908152602001600020819055506004600a600060118152602001908152602001600020819055506004600a6000601b8152602001908152602001600020819055506004600a600060258152602001908152602001600020819055506005600a600060088152602001908152602001600020819055506005600a600060128152602001908152602001600020819055506005600a6000601c8152602001908152602001600020819055506005600a600060268152602001908152602001600020819055506006600a600060098152602001908152602001600020819055506006600a600060138152602001908152602001600020819055506006600a6000601d8152602001908152602001600020819055506006600a600060278152602001908152602001600020819055506040518060e0016040528061a8c062ffffff16815260200161a8c062ffffff1681526020016201518062ffffff1681526020016201518062ffffff1681526020016201fa4062ffffff1681526020016201fa4062ffffff1681526020016202a30062ffffff16815250600690600762000edf92919062000f6c565b506040805160e08101825267016345785d8a00008152670214e8348c4f00006020820152670429d069189e0000918101919091526706f05b59d3b200006060820152670de0b6b3a76400006080820152671158e460913d000060a0820152671bc16d674ec8000060c082015262000f5a906007908162000fc3565b50505050505050505050505062001107565b82805482825590600052602060002090810192821562000fb1579160200282015b8281111562000fb1578251829062ffffff1690559160200191906001019062000f8d565b5062000fbf9291506200100c565b5090565b82805482825590600052602060002090810192821562000fb1579160200282015b8281111562000fb157825182906001600160401b031690559160200191906001019062000fe4565b5b8082111562000fbf57600081556001016200100d565b80516001600160a01b03811681146200103b57600080fd5b919050565b60008060008060008060008060008060006101608c8e03121562001062578687fd5b6200106d8c62001023565b9a506200107d60208d0162001023565b99506200108d60408d0162001023565b98506200109d60608d0162001023565b9750620010ad60808d0162001023565b9650620010bd60a08d0162001023565b9550620010cd60c08d0162001023565b9450620010dd60e08d0162001023565b93506101008c015192506101208c015191506101408c015190509295989b509295989b9093969950565b60805160601c60a05160601c60c05160601c60e05160601c6101005160601c6101205160601c6101405160601c6101605160601c6124786200122d60003960008181610331015261196d01526000818161028601526119900152600081816104b601526119d8015260008181610369015281816108f701528181610c290152818161107001528181611179015281816112ca0152818161139901526118c10152600081816103b60152818161080d0152610f93015260008181610414015281816108480152610fc201526000818161030a01528181611c5c01528181611cf30152611d9201526000818161022c015281816104f6015281816105c30152818161067b015281816109c701528181610a9201528181610b4a015261148801526124786000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80639d6fac6f11610104578063ca2d9599116100a2578063e55047d011610071578063e55047d014610495578063e6e434be146104a8578063e80d2cc2146104b1578063edeb5bcd146104d857600080fd5b8063ca2d959914610449578063d4ad055f1461045c578063da97790c1461046f578063db0307121461048257600080fd5b8063bad3dc84116100de578063bad3dc84146103d8578063bd8c48a414610406578063c5ef9fd91461040f578063c7a1bb561461043657600080fd5b80639d6fac6f1461038b578063af5204f61461039e578063b9603570146103b157600080fd5b80634be9125a1161017c57806382bfefc81161014b57806382bfefc81461032c57806383c2396c146103535780638456cb591461035c5780639707175e1461036457600080fd5b80634be9125a146102bb5780635c975abb146102db5780636222749e146102f257806379604a171461030557600080fd5b80633f27ec1c116101b85780633f27ec1c146102665780633f4ba83a14610279578063411557d11461028157806349b3b29f146102a857600080fd5b806301f61086146101df5780630e82c913146101f45780631b2df85014610227575b600080fd5b6101f26101ed366004612115565b6104e1565b005b61021461020236600461220b565b600a6020526000908152604090205481565b6040519081526020015b60405180910390f35b61024e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161021e565b6101f261027436600461220b565b6105ae565b6101f2610666565b61024e7f000000000000000000000000000000000000000000000000000000000000000081565b6102146102b636600461220b565b610723565b6102146102c936600461220b565b60096020526000908152604090205481565b60015460ff165b604051901515815260200161021e565b6101f2610300366004612115565b610744565b61024e7f000000000000000000000000000000000000000000000000000000000000000081565b61024e7f000000000000000000000000000000000000000000000000000000000000000081565b61021460045481565b6101f26109b2565b61024e7f000000000000000000000000000000000000000000000000000000000000000081565b61021461039936600461220b565b610a6d565b6101f26103ac36600461220b565b610a7d565b61024e7f000000000000000000000000000000000000000000000000000000000000000081565b6102e26103e636600461223b565b600860209081526000928352604080842090915290825290205460ff1681565b61021460055481565b61024e7f000000000000000000000000000000000000000000000000000000000000000081565b6101f2610444366004612115565b610b35565b61021461045736600461223b565b610bf4565b6101f261046a366004612155565b610d28565b61021461047d36600461220b565b6112a7565b61021461049036600461223b565b611364565b6101f26104a336600461220b565b611473565b61021460025481565b61024e7f000000000000000000000000000000000000000000000000000000000000000081565b61021460035481565b604051630935e01b60e21b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906324d7806c9060240160206040518083038186803b15801561054057600080fd5b505afa158015610554573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061057891906121eb565b61059d5760405162461bcd60e51b815260040161059490612318565b60405180910390fd5b6105a96007838361206b565b505050565b604051630935e01b60e21b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906324d7806c9060240160206040518083038186803b15801561060d57600080fd5b505afa158015610621573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064591906121eb565b6106615760405162461bcd60e51b815260040161059490612318565b600355565b604051630935e01b60e21b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906324d7806c9060240160206040518083038186803b1580156106c557600080fd5b505afa1580156106d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106fd91906121eb565b6107195760405162461bcd60e51b815260040161059490612318565b61072161152b565b565b6007818154811061073357600080fd5b600091825260209091200154905081565b600260005414156107975760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610594565b600260005560015460ff16156107bf5760405162461bcd60e51b8152600401610594906122ab565b6000815b808210156109a75760008484848181106107ed57634e487b7160e01b600052603260045260246000fd5b60405163327b6f6560e01b815260209091029290920135600483018190527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b039081166024850152600060448501529093507f0000000000000000000000000000000000000000000000000000000000000000169163327b6f659150606401602060405180830381600087803b15801561088d57600080fd5b505af11580156108a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c591906121eb565b6108e15760405162461bcd60e51b8152600401610594906122d5565b604051632b3e615b60e11b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063567cc2b690602401600060405180830381600087803b15801561094357600080fd5b505af1158015610957573d6000803e3d6000fd5b505050507f3ec796be1be7d03bff3a62b9fa594a60e947c1809bced06d929f145308ae57ce8160405161098c91815260200190565b60405180910390a1508161099f81612411565b9250506107c3565b505060016000555050565b604051630935e01b60e21b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906324d7806c9060240160206040518083038186803b158015610a1157600080fd5b505afa158015610a25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4991906121eb565b610a655760405162461bcd60e51b815260040161059490612318565b6107216115be565b6006818154811061073357600080fd5b604051630935e01b60e21b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906324d7806c9060240160206040518083038186803b158015610adc57600080fd5b505afa158015610af0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1491906121eb565b610b305760405162461bcd60e51b815260040161059490612318565b600555565b604051630935e01b60e21b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906324d7806c9060240160206040518083038186803b158015610b9457600080fd5b505afa158015610ba8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcc91906121eb565b610be85760405162461bcd60e51b815260040161059490612318565b6105a96006838361206b565b6000818152600a6020526040812054819060405163ac0de66f60e01b8152600481018690529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ac0de66f9060240160206040518083038186803b158015610c6b57600080fd5b505afa158015610c7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca39190612223565b905080610cb557600092505050610d22565b600060068381548110610cd857634e487b7160e01b600052603260045260246000fd5b906000526020600020015490506000610cf083611614565b905081610cfd818361238f565b610d0791906123af565b610d1190826123ce565b610d1b90836123ce565b9450505050505b92915050565b60026000541415610d7b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610594565b600260005560015460ff1615610da35760405162461bcd60e51b8152600401610594906122ab565b600454851115610e035760405162461bcd60e51b815260206004820152602560248201527f436f6c6c65637469626c6550726f64756365723a2041626f7665206d6178205260448201526465616c6d7360d81b6064820152608401610594565b6000855b80821015611298576000888884818110610e3157634e487b7160e01b600052603260045260246000fd5b9050602002013590506000878785818110610e5c57634e487b7160e01b600052603260045260246000fd5b9050602002810190610e6e9190612347565b808060200260200160405190810160405280939291908181526020018383602002808284376000920182905250939450899250889150879050818110610ec457634e487b7160e01b600052603260045260246000fd5b9050602002810190610ed69190612347565b80806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506003548551939450909211159150610f7590505760405162461bcd60e51b815260206004820152602b60248201527f436f6c6c65637469626c6550726f64756365723a2041626f7665206d6178204360448201526a6f6c6c65637469626c657360a81b6064820152608401610594565b60405163327b6f6560e01b8152600481018490526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166024830152600060448301527f0000000000000000000000000000000000000000000000000000000000000000169063327b6f6590606401602060405180830381600087803b15801561100657600080fd5b505af115801561101a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103e91906121eb565b61105a5760405162461bcd60e51b8152600401610594906122d5565b604051633431eceb60e01b8152600481018490527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690633431eceb9060240160206040518083038186803b1580156110ba57600080fd5b505afa1580156110ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110f291906121eb565b61115b5760405162461bcd60e51b815260206004820152603460248201527f436f6c6c65637469626c6550726f64756365723a20596f75206d757374207374604482015273185c9d081c1c9bd91d58dd1a5bdb88199a5c9cdd60621b6064820152608401610594565b815160405163ac0de66f60e01b8152600481018590526000919082907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ac0de66f9060240160206040518083038186803b1580156111c357600080fd5b505afa1580156111d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fb9190612223565b90505b8183101561127f57600085848151811061122857634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085858151811061125457634e487b7160e01b600052603260045260246000fd5b6020026020010151905061126a8883838661162f565b5050828061127790612411565b9350506111fe565b505050505050818061129090612411565b925050610e07565b50506001600055505050505050565b60405163ac0de66f60e01b81526004810182905260009081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ac0de66f9060240160206040518083038186803b15801561130c57600080fd5b505afa158015611320573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113449190612223565b9050806113545750600092915050565b61135d81611614565b9392505050565b6000818152600a6020526040812054819060405163ac0de66f60e01b8152600481018690529091506000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063ac0de66f9060240160206040518083038186803b1580156113db57600080fd5b505afa1580156113ef573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114139190612223565b90508061142557600092505050610d22565b60006006838154811061144857634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508061145f83611614565b611469919061238f565b9695505050505050565b604051630935e01b60e21b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906324d7806c9060240160206040518083038186803b1580156114d257600080fd5b505afa1580156114e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061150a91906121eb565b6115265760405162461bcd60e51b815260040161059490612318565b600455565b60015460ff166115745760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610594565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60015460ff16156115e15760405162461bcd60e51b8152600401610594906122ab565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258336115a1565b600081421161162557506000919050565b610d2282426123ce565b6000838152600a6020526040812054905060006006828154811061166357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050600061167b86611a92565b905060006116898883611acf565b905083600614156117105761169e8883611b68565b6117105760405162461bcd60e51b815260206004820152603a60248201527f436f6c6c65637469626c6550726f64756365723a20596f752063616e6e6f742060448201527f70726f647563652045786f74696320436f6c6c65637469626c650000000000006064820152608401610594565b831561178957806117895760405162461bcd60e51b815260206004820152603860248201527f436f6c6c65637469626c6550726f64756365723a20596f752063616e6e6f742060448201527f70726f64756365207468697320436f6c6c65637469626c6500000000000000006064820152608401610594565b600061179486611614565b90506005548111156117a557506005545b60006117b1858361238f565b9050600081116118295760405162461bcd60e51b815260206004820152603960248201527f436f6c6c65637469626c6550726f64756365723a204d6178207175616e74697460448201527f7920616c6c6f776564206d7573742062652061626f76652030000000000000006064820152608401610594565b878110156118ab5760405162461bcd60e51b815260206004820152604360248201527f436f6c6c65637469626c6550726f64756365723a20446573697265642071756160448201527f6e746974792069732061626f7665206d6178207175616e7469747920616c6c6f6064820152621dd95960ea1b608482015260a401610594565b604051632b3e615b60e11b8152600481018b90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063567cc2b690602401600060405180830381600087803b15801561190d57600080fd5b505af1158015611921573d6000803e3d6000fd5b505050506000886007888154811061194957634e487b7160e01b600052603260045260246000fd5b906000526020600020015461195e91906123af565b90506119b56001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016337f000000000000000000000000000000000000000000000000000000000000000084611bd0565b60405163aab68bdb60e01b8152336004820152602481018b9052604481018a90527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063aab68bdb90606401600060405180830381600087803b158015611a2457600080fd5b505af1158015611a38573d6000803e3d6000fd5b5050604080518e8152602081018e90529081018c9052606081018490527f1fb743507f2df169c0235d1dbe98cd0f75fcb016edf00f67609a31fb629177579250608001905060405180910390a15050505050505050505050565b6000600a821015611aa557506000919050565b6014821015611ab657506001919050565b601e821015611ac757506002919050565b506003919050565b600080600080611ade86611c30565b6000888152600860209081526040808320868452909152902054929550909350915060ff1680611b275750600085815260086020908152604080832085845290915290205460ff165b80611b4b5750600085815260086020908152604080832084845290915290205460ff165b15611b5c5760019350505050610d22565b50600095945050505050565b600080600080611b7786611c30565b6000888152600960205260409020549295509093509150831480611ba8575060008581526009602052604090205482145b80611b4b5750600085815260096020526040902054811415611b5c5760019350505050610d22565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611c2a908590611e21565b50505050565b604051634c0a04bb60e01b81526004810182905260006024820181905290819081906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634c0a04bb9060440160206040518083038186803b158015611c9e57600080fd5b505afa158015611cb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd69190612223565b604051634c0a04bb60e01b815260048101869052600160248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634c0a04bb9060440160206040518083038186803b158015611d3d57600080fd5b505afa158015611d51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d759190612223565b604051634c0a04bb60e01b815260048101879052600260248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690634c0a04bb9060440160206040518083038186803b158015611ddc57600080fd5b505afa158015611df0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e149190612223565b9250925092509193909250565b6000611e76826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ef39092919063ffffffff16565b8051909150156105a95780806020019051810190611e9491906121eb565b6105a95760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610594565b6060611f028484600085611f0a565b949350505050565b606082471015611f6b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610594565b843b611fb95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610594565b600080866001600160a01b03168587604051611fd5919061225c565b60006040518083038185875af1925050503d8060008114612012576040519150601f19603f3d011682016040523d82523d6000602084013e612017565b606091505b5091509150612027828286612032565b979650505050505050565b6060831561204157508161135d565b8251156120515782518084602001fd5b8160405162461bcd60e51b81526004016105949190612278565b8280548282559060005260206000209081019282156120a6579160200282015b828111156120a657823582559160200191906001019061208b565b506120b29291506120b6565b5090565b5b808211156120b257600081556001016120b7565b60008083601f8401126120dc578182fd5b50813567ffffffffffffffff8111156120f3578182fd5b6020830191508360208260051b850101111561210e57600080fd5b9250929050565b60008060208385031215612127578182fd5b823567ffffffffffffffff81111561213d578283fd5b612149858286016120cb565b90969095509350505050565b6000806000806000806060878903121561216d578182fd5b863567ffffffffffffffff80821115612184578384fd5b6121908a838b016120cb565b909850965060208901359150808211156121a8578384fd5b6121b48a838b016120cb565b909650945060408901359150808211156121cc578384fd5b506121d989828a016120cb565b979a9699509497509295939492505050565b6000602082840312156121fc578081fd5b8151801515811461135d578182fd5b60006020828403121561221c578081fd5b5035919050565b600060208284031215612234578081fd5b5051919050565b6000806040838503121561224d578182fd5b50508035926020909101359150565b6000825161226e8184602087016123e5565b9190910192915050565b60208152600082518060208401526122978160408501602087016123e5565b601f01601f19169190910160400192915050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526023908201527f436f6c6c65637469626c6550726f64756365723a204e6f742070726f6475637460408201526269766560e81b606082015260800190565b60208082526015908201527426b0b730b3b2b91d102737ba1030b71020b236b4b760591b604082015260600190565b6000808335601e1984360301811261235d578283fd5b83018035915067ffffffffffffffff821115612377578283fd5b6020019150600581901b360382131561210e57600080fd5b6000826123aa57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156123c9576123c961242c565b500290565b6000828210156123e0576123e061242c565b500390565b60005b838110156124005781810151838201526020016123e8565b83811115611c2a5750506000910152565b60006000198214156124255761242561242c565b5060010190565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220c4f72e592a6d8792dc5cc56f3d86bacb620285743a8d0cbf8a3ed4869506703f64736f6c634300080400330000000000000000000000004de95c1e202102e22e801590c51d7b979f167fbb0000000000000000000000004e572433a3bfa336b6396d13afc9f69b58252861000000000000000000000000e3b4d0bf4f433bf981bd452134657ba1dc28f5580000000000000000000000008ec68f970e1c61b44b6d81c3b78ca931c6ffc92d000000000000000000000000c1d26efbe9649660e243239198aee8cefd31aef8000000000000000000000000ce3051ff2ed963406b55ef505751ef88b8f0d791000000000000000000000000a41bc2035a8ec2d6b5d41b6a820564ae57b1ae99000000000000000000000000539bde0d7dbd336b79148aa742883198bbf603420000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000007e900

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

0000000000000000000000004de95c1e202102e22e801590c51d7b979f167fbb0000000000000000000000004e572433a3bfa336b6396d13afc9f69b58252861000000000000000000000000e3b4d0bf4f433bf981bd452134657ba1dc28f5580000000000000000000000008ec68f970e1c61b44b6d81c3b78ca931c6ffc92d000000000000000000000000c1d26efbe9649660e243239198aee8cefd31aef8000000000000000000000000ce3051ff2ed963406b55ef505751ef88b8f0d791000000000000000000000000a41bc2035a8ec2d6b5d41b6a820564ae57b1ae99000000000000000000000000539bde0d7dbd336b79148aa742883198bbf603420000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000007e900

-----Decoded View---------------
Arg [0] : _realm (address): 0x4de95c1e202102e22e801590c51d7b979f167fbb
Arg [1] : _manager (address): 0x4e572433a3bfa336b6396d13afc9f69b58252861
Arg [2] : _structureStaker (address): 0xe3b4d0bf4f433bf981bd452134657ba1dc28f558
Arg [3] : _reactor (address): 0x8ec68f970e1c61b44b6d81c3b78ca931c6ffc92d
Arg [4] : _production (address): 0xc1d26efbe9649660e243239198aee8cefd31aef8
Arg [5] : _collectible (address): 0xce3051ff2ed963406b55ef505751ef88b8f0d791
Arg [6] : _vault (address): 0xa41bc2035a8ec2d6b5d41b6a820564ae57b1ae99
Arg [7] : _token (address): 0x539bde0d7dbd336b79148aa742883198bbf60342
Arg [8] : _maxCollectibles (uint256): 1
Arg [9] : _maxCollect (uint256): 10
Arg [10] : _maxSeconds (uint256): 518400

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000004de95c1e202102e22e801590c51d7b979f167fbb
Arg [1] : 0000000000000000000000004e572433a3bfa336b6396d13afc9f69b58252861
Arg [2] : 000000000000000000000000e3b4d0bf4f433bf981bd452134657ba1dc28f558
Arg [3] : 0000000000000000000000008ec68f970e1c61b44b6d81c3b78ca931c6ffc92d
Arg [4] : 000000000000000000000000c1d26efbe9649660e243239198aee8cefd31aef8
Arg [5] : 000000000000000000000000ce3051ff2ed963406b55ef505751ef88b8f0d791
Arg [6] : 000000000000000000000000a41bc2035a8ec2d6b5d41b6a820564ae57b1ae99
Arg [7] : 000000000000000000000000539bde0d7dbd336b79148aa742883198bbf60342
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [10] : 000000000000000000000000000000000000000000000000000000000007e900


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.