Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xB1B1139D68623142618D09DD3da96dB0effc508e
Balance 0 ETH
Nonce 1
Code Size 10342 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

10342 bytes
0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063715018a61161011a578063b88d4fde116100ad578063dbe1a1721161007c578063dbe1a17214610408578063e538651a14610410578063e985e9c514610423578063f2fde38b14610436578063f921d83f14610449576101fb565b8063b88d4fde146103c7578063c87b56dd146103da578063d4bba0e9146103ed578063d8710ba3146103f5576101fb565b806395d89b41116100e957806395d89b411461038657806395de7a9e1461038e578063a22cb465146103a1578063aa9dc50c146103b4576101fb565b8063715018a6146103435780638462151c1461034b57806386529a611461036b5780638da5cb5b1461037e576101fb565b80633ccfd60b1161019257806355f804b31161016157806355f804b3146102f75780636352211e1461030a57806367746f4e1461031d57806370a0823114610330576101fb565b80633ccfd60b146102b657806342842e0e146102be5780634df08219146102d15780634f6ccce7146102e4576101fb565b806318160ddd116101ce57806318160ddd1461027357806323b872dd146102885780632f745c591461029b5780633b9e8a57146102ae576101fb565b806301ffc9a71461020057806306fdde0314610229578063081812fc1461023e578063095ea7b31461025e575b600080fd5b61021361020e366004611f4f565b610451565b60405161022091906120e5565b60405180910390f35b61023161047e565b60405161022091906120f0565b61025161024c366004611fcd565b610510565b6040516102209190612050565b61027161026c366004611e7d565b61055c565b005b61027b6105f4565b60405161022091906126f6565b610271610296366004611d3e565b6105fa565b61027b6102a9366004611e7d565b610605565b61027b6106c8565b6102716106ce565b6102716102cc366004611d3e565b610740565b6102716102df366004611ea6565b61075b565b61027b6102f2366004611fcd565b61090e565b610271610305366004611f87565b61093a565b610251610318366004611fcd565b61098c565b61027161032b366004611ea6565b6109e4565b61027b61033e366004611cf2565b610b67565b610271610c04565b61035e610359366004611cf2565b610c4f565b60405161022091906120a1565b610271610379366004611df2565b610d35565b610251610e7a565b610231610e89565b61027161039c366004611f0f565b610e98565b6102716103af366004611e43565b610f49565b6102716103c2366004611fcd565b611017565b6102716103d5366004611d79565b61107d565b6102316103e8366004611fcd565b61108f565b61027b611112565b610271610403366004611fcd565b611118565b61027b61117e565b61027161041e366004611ea6565b611184565b610213610431366004611d0c565b611356565b610271610444366004611cf2565b611384565b61027b6113f5565b60006001600160e01b0319821663780e9d6360e01b14806104765750610476826113fb565b90505b919050565b60606000805461048d9061276e565b80601f01602080910402602001604051908101604052809291908181526020018280546104b99061276e565b80156105065780601f106104db57610100808354040283529160200191610506565b820191906000526020600020905b8154815290600101906020018083116104e957829003601f168201915b5050505050905090565b600061051b8261143b565b6105405760405162461bcd60e51b8152600401610537906124d3565b60405180910390fd5b506000908152600360205260409020546001600160a01b031690565b60006105678261098c565b9050806001600160a01b0316836001600160a01b0316141561059b5760405162461bcd60e51b81526004016105379061262d565b806001600160a01b03166105ad611493565b6001600160a01b031614806105c957506105c981610431611493565b6105e55760405162461bcd60e51b815260040161053790612311565b6105ef8383611497565b505050565b60025490565b6105ef838383611505565b600061061083610b67565b821061062e5760405162461bcd60e51b8152600401610537906125c6565b6000805b6002548110156106a9576002818154811061065d57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0386811691161415610699578382141561068d5791506106c29050565b610696826127a9565b91505b6106a2816127a9565b9050610632565b5060405162461bcd60e51b8152600401610537906125c6565b92915050565b60095481565b6106d6611493565b6001600160a01b03166106e7610e7a565b6001600160a01b03161461070d5760405162461bcd60e51b815260040161053790612548565b6040514790339082156108fc029083906000818181858888f1935050505015801561073c573d6000803e3d6000fd5b5050565b6105ef8383836040518060200160405280600081525061107d565b610763611493565b6001600160a01b0316610774610e7a565b6001600160a01b03161461079a5760405162461bcd60e51b815260040161053790612548565b600260065414156107bd5760405162461bcd60e51b8152600401610537906126bf565b60026006558281146107e15760405162461bcd60e51b81526004016105379061242c565b60005b838110156109025760006107f66105f4565b905060085484848481811061081b57634e487b7160e01b600052603260045260246000fd5b90506020020135600a5461082f91906126ff565b111561084d5760405162461bcd60e51b81526004016105379061236e565b60005b84848481811061087057634e487b7160e01b600052603260045260246000fd5b905060200201358110156108ed576108c58787858181106108a157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906108b69190611cf2565b6108c083856126ff565b61153d565b600a80549060006108d5836127a9565b919050555080806108e5906127a9565b915050610850565b505080806108fa906127a9565b9150506107e4565b50506001600655505050565b60006109186105f4565b82106109365760405162461bcd60e51b8152600401610537906125f6565b5090565b610942611493565b6001600160a01b0316610953610e7a565b6001600160a01b0316146109795760405162461bcd60e51b815260040161053790612548565b805161073c90600b906020840190611b92565b600080600283815481106109b057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03169050806104765760405162461bcd60e51b8152600401610537906123e3565b6109ec611493565b6001600160a01b03166109fd610e7a565b6001600160a01b031614610a235760405162461bcd60e51b815260040161053790612548565b60026006541415610a465760405162461bcd60e51b8152600401610537906126bf565b6002600655828114610a6a5760405162461bcd60e51b81526004016105379061242c565b60005b83811015610902576000610a7f6105f4565b9050600754848484818110610aa457634e487b7160e01b600052603260045260246000fd5b90506020020135600954610ab891906126ff565b1115610ad65760405162461bcd60e51b81526004016105379061236e565b60005b848484818110610af957634e487b7160e01b600052603260045260246000fd5b90506020020135811015610b5257610b2a8787858181106108a157634e487b7160e01b600052603260045260246000fd5b60098054906000610b3a836127a9565b91905055508080610b4a906127a9565b915050610ad9565b50508080610b5f906127a9565b915050610a6d565b60006001600160a01b038216610b8f5760405162461bcd60e51b815260040161053790612399565b600254600090815b81811015610bfb5760028181548110610bc057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0386811691161415610beb57610be8836127a9565b92505b610bf4816127a9565b9050610b97565b50909392505050565b610c0c611493565b6001600160a01b0316610c1d610e7a565b6001600160a01b031614610c435760405162461bcd60e51b815260040161053790612548565b610c4d6000611557565b565b6060610c5a82610b67565b600010610c795760405162461bcd60e51b8152600401610537906125c6565b6000610c8483610b67565b905060008167ffffffffffffffff811115610caf57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610cd8578160200160208202803683370190505b50905060005b82811015610d2d57610cf08582610605565b828281518110610d1057634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610d25816127a9565b915050610cde565b509392505050565b610d3d611493565b6001600160a01b0316610d4e610e7a565b6001600160a01b031614610d745760405162461bcd60e51b815260040161053790612548565b60026006541415610d975760405162461bcd60e51b8152600401610537906126bf565b600260065580610da684610b67565b1015610dc45760405162461bcd60e51b81526004016105379061228e565b60005b81811015610e6f57610dfe838383818110610df257634e487b7160e01b600052603260045260246000fd5b9050602002013561098c565b6001600160a01b0316846001600160a01b031614610e2e5760405162461bcd60e51b81526004016105379061246e565b610e5d838383818110610e5157634e487b7160e01b600052603260045260246000fd5b905060200201356115a9565b80610e67816127a9565b915050610dc7565b505060016006555050565b6005546001600160a01b031690565b60606001805461048d9061276e565b610ea0611493565b6001600160a01b0316610eb1610e7a565b6001600160a01b031614610ed75760405162461bcd60e51b815260040161053790612548565b60026006541415610efa5760405162461bcd60e51b8152600401610537906126bf565b600260065560005b81811015610f3f57610f2d838383818110610e5157634e487b7160e01b600052603260045260246000fd5b80610f37816127a9565b915050610f02565b5050600160065550565b610f51611493565b6001600160a01b0316826001600160a01b03161415610f825760405162461bcd60e51b815260040161053790612257565b8060046000610f8f611493565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610fd3611493565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161100b91906120e5565b60405180910390a35050565b61101f611493565b6001600160a01b0316611030610e7a565b6001600160a01b0316146110565760405162461bcd60e51b815260040161053790612548565b600a548110156110785760405162461bcd60e51b81526004016105379061251f565b600855565b61108984848484611645565b50505050565b606061109a8261143b565b6110b65760405162461bcd60e51b815260040161053790612103565b60006110c061167e565b905060008151116110e0576040518060200160405280600081525061110b565b806110ea8461168d565b6040516020016110fb929190612011565b6040516020818303038152906040525b9392505050565b60085481565b611120611493565b6001600160a01b0316611131610e7a565b6001600160a01b0316146111575760405162461bcd60e51b815260040161053790612548565b6009548110156111795760405162461bcd60e51b81526004016105379061251f565b600755565b60075481565b61118c611493565b6001600160a01b031661119d610e7a565b6001600160a01b0316146111c35760405162461bcd60e51b815260040161053790612548565b600260065414156111e65760405162461bcd60e51b8152600401610537906126bf565b600260065582811461120a5760405162461bcd60e51b81526004016105379061242c565b60005b838110156109025782828281811061123557634e487b7160e01b600052603260045260246000fd5b9050602002013561127486868481811061125f57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061033e9190611cf2565b10156112925760405162461bcd60e51b81526004016105379061228e565b60006112cc8686848181106112b757634e487b7160e01b600052603260045260246000fd5b90506020020160208101906103599190611cf2565b905060005b8484848181106112f157634e487b7160e01b600052603260045260246000fd5b905060200201358110156113415761132f82828151811061132257634e487b7160e01b600052603260045260246000fd5b60200260200101516115a9565b80611339816127a9565b9150506112d1565b5050808061134e906127a9565b91505061120d565b6001600160a01b03918216600090815260046020908152604080832093909416825291909152205460ff1690565b61138c611493565b6001600160a01b031661139d610e7a565b6001600160a01b0316146113c35760405162461bcd60e51b815260040161053790612548565b6001600160a01b0381166113e95760405162461bcd60e51b815260040161053790612196565b6113f281611557565b50565b600a5481565b60006001600160e01b031982166380ac58cd60e01b148061142c57506001600160e01b03198216635b5e139f60e01b145b806104765750610476826117b0565b60025460009082108015610476575060006001600160a01b03166002838154811061147657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141592915050565b3390565b600081815260036020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114cc8261098c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611516611510611493565b826117c9565b6115325760405162461bcd60e51b81526004016105379061266e565b6105ef838383611846565b61073c828260405180602001604052806000815250611937565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006115b48261098c565b90506115c2816000846105ef565b6115cd600083611497565b6000600283815481106115f057634e487b7160e01b600052603260045260246000fd5b6000918252602082200180546001600160a01b0319166001600160a01b0393841617905560405184928416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b611656611650611493565b836117c9565b6116725760405162461bcd60e51b81526004016105379061266e565b6110898484848461196a565b6060600b805461048d9061276e565b6060816116b257506040805180820190915260018152600360fc1b6020820152610479565b8160005b81156116dc57806116c6816127a9565b91506116d59050600a83612717565b91506116b6565b60008167ffffffffffffffff81111561170557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561172f576020820181803683370190505b5090505b84156117a85761174460018361272b565b9150611751600a866127c4565b61175c9060306126ff565b60f81b81838151811061177f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506117a1600a86612717565b9450611733565b949350505050565b6001600160e01b031981166301ffc9a760e01b14919050565b60006117d48261143b565b6117f05760405162461bcd60e51b8152600401610537906122c5565b60006117fb8361098c565b9050806001600160a01b0316846001600160a01b031614806118365750836001600160a01b031661182b84610510565b6001600160a01b0316145b806117a857506117a88185611356565b826001600160a01b03166118598261098c565b6001600160a01b03161461187f5760405162461bcd60e51b81526004016105379061257d565b6001600160a01b0382166118a55760405162461bcd60e51b815260040161053790612213565b6118b08383836105ef565b6118bb600082611497565b81600282815481106118dd57634e487b7160e01b600052603260045260246000fd5b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b611941838361199d565b61194e6000848484611a71565b6105ef5760405162461bcd60e51b815260040161053790612144565b611975848484611846565b61198184848484611a71565b6110895760405162461bcd60e51b815260040161053790612144565b6001600160a01b0382166119c35760405162461bcd60e51b81526004016105379061249e565b6119cc8161143b565b156119e95760405162461bcd60e51b8152600401610537906121dc565b6119f5600083836105ef565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000611a85846001600160a01b0316611b8c565b15611b8157836001600160a01b031663150b7a02611aa1611493565b8786866040518563ffffffff1660e01b8152600401611ac39493929190612064565b602060405180830381600087803b158015611add57600080fd5b505af1925050508015611b0d575060408051601f3d908101601f19168201909252611b0a91810190611f6b565b60015b611b67573d808015611b3b576040519150601f19603f3d011682016040523d82523d6000602084013e611b40565b606091505b508051611b5f5760405162461bcd60e51b815260040161053790612144565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506117a8565b506001949350505050565b3b151590565b828054611b9e9061276e565b90600052602060002090601f016020900481019282611bc05760008555611c06565b82601f10611bd957805160ff1916838001178555611c06565b82800160010185558215611c06579182015b82811115611c06578251825591602001919060010190611beb565b506109369291505b808211156109365760008155600101611c0e565b600067ffffffffffffffff80841115611c3d57611c3d612804565b604051601f8501601f191681016020018281118282101715611c6157611c61612804565b604052848152915081838501861015611c7957600080fd5b8484602083013760006020868301015250509392505050565b80356001600160a01b038116811461047957600080fd5b60008083601f840112611cba578081fd5b50813567ffffffffffffffff811115611cd1578182fd5b6020830191508360208083028501011115611ceb57600080fd5b9250929050565b600060208284031215611d03578081fd5b61110b82611c92565b60008060408385031215611d1e578081fd5b611d2783611c92565b9150611d3560208401611c92565b90509250929050565b600080600060608486031215611d52578081fd5b611d5b84611c92565b9250611d6960208501611c92565b9150604084013590509250925092565b60008060008060808587031215611d8e578081fd5b611d9785611c92565b9350611da560208601611c92565b925060408501359150606085013567ffffffffffffffff811115611dc7578182fd5b8501601f81018713611dd7578182fd5b611de687823560208401611c22565b91505092959194509250565b600080600060408486031215611e06578283fd5b611e0f84611c92565b9250602084013567ffffffffffffffff811115611e2a578283fd5b611e3686828701611ca9565b9497909650939450505050565b60008060408385031215611e55578182fd5b611e5e83611c92565b915060208301358015158114611e72578182fd5b809150509250929050565b60008060408385031215611e8f578182fd5b611e9883611c92565b946020939093013593505050565b60008060008060408587031215611ebb578384fd5b843567ffffffffffffffff80821115611ed2578586fd5b611ede88838901611ca9565b90965094506020870135915080821115611ef6578384fd5b50611f0387828801611ca9565b95989497509550505050565b60008060208385031215611f21578182fd5b823567ffffffffffffffff811115611f37578283fd5b611f4385828601611ca9565b90969095509350505050565b600060208284031215611f60578081fd5b813561110b8161281a565b600060208284031215611f7c578081fd5b815161110b8161281a565b600060208284031215611f98578081fd5b813567ffffffffffffffff811115611fae578182fd5b8201601f81018413611fbe578182fd5b6117a884823560208401611c22565b600060208284031215611fde578081fd5b5035919050565b60008151808452611ffd816020860160208601612742565b601f01601f19169290920160200192915050565b60008351612023818460208801612742565b835190830190612037818360208801612742565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061209790830184611fe5565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156120d9578351835292840192918401916001016120bd565b50909695505050505050565b901515815260200190565b60006020825261110b6020830184611fe5565b60208082526021908201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b656040820152603760f91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252601d908201527f696e73756666696369656e742062616c616e636520666f72206275726e000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b60208082526011908201527013585e081b1a5b5a5d081c995858da1959607a1b604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526022908201527f4d69736d61746368206265747765656e204164647265737320616e6420636f756040820152611b9d60f21b606082015260800190565b6020808252601690820152751a5b98dbdc9c9958dd081bdddb995c881bd9881b999d60521b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252600f908201526e496e636f72726563742076616c756560881b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b60208082526016908201527522a9219b9918a2b73ab69d1037bbb732b91034b7b7b160511b604082015260600190565b60208082526017908201527f455243373231456e756d3a20676c6f62616c20696f6f62000000000000000000604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b60008219821115612712576127126127d8565b500190565b600082612726576127266127ee565b500490565b60008282101561273d5761273d6127d8565b500390565b60005b8381101561275d578181015183820152602001612745565b838111156110895750506000910152565b60028104600182168061278257607f821691505b602082108114156127a357634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156127bd576127bd6127d8565b5060010190565b6000826127d3576127d36127ee565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146113f257600080fdfea2646970667358221220bc2c53286d82bb7dd26af1e797b02c31d160c982911940d4f92593a813dd343264736f6c63430008000033

Verified Source Code Partial Match

Compiler: v0.8.0+commit.c7dfd78e EVM: istanbul Optimization: Yes (200 runs)
Goatorade.sol 961 lines
pragma solidity ^0.8.0;

// SPDX-License-Identifier: MIT

abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

abstract contract Ownable is Context {
    address private _owner;

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

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

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

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 make 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;
    }
}

interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

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);
            }
        }
    }
}

abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

abstract contract ERC721P is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    string private _name;
    string private _symbol;
    address[] internal _owners;
    mapping(uint256 => address) private _tokenApprovals;
    mapping(address => mapping(address => bool)) private _operatorApprovals;
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
        interfaceId == type(IERC721).interfaceId ||
        interfaceId == type(IERC721Metadata).interfaceId ||
        super.supportsInterface(interfaceId);
    }
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        uint count = 0;
        uint length = _owners.length;
        for( uint i = 0; i < length; ++i ){
            if( owner == _owners[i] ){
                ++count;
            }
        }
        delete length;
        return count;
    }
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }
    function name() public view virtual override returns (string memory) {
        return _name;
    }
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721P.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return tokenId < _owners.length && _owners[tokenId] != address(0);
    }
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721P.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);
        _owners.push(to);

        emit Transfer(address(0), to, tokenId);
    }
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721P.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);
        _owners[tokenId] = address(0);

        emit Transfer(owner, address(0), tokenId);
    }
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721P.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721P.ownerOf(tokenId), to, tokenId);
    }
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

abstract contract ERC721Enum is ERC721P, IERC721Enumerable {
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721P) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256 tokenId) {
        require(index < ERC721P.balanceOf(owner), "ERC721Enum: owner ioob");
        uint count;
        for( uint i; i < _owners.length; ++i ){
            if( owner == _owners[i] ){
                if( count == index )
                    return i;
                else
                    ++count;
            }
        }
        require(false, "ERC721Enum: owner ioob");
    }
    function tokensOfOwner(address owner) public view returns (uint256[] memory) {
        require(0 < ERC721P.balanceOf(owner), "ERC721Enum: owner ioob");
        uint256 tokenCount = balanceOf(owner);
        uint256[] memory tokenIds = new uint256[](tokenCount);
        for (uint256 i = 0; i < tokenCount; i++) {
            tokenIds[i] = tokenOfOwnerByIndex(owner, i);
        }
        return tokenIds;
    }
    function totalSupply() public view virtual override returns (uint256) {
        return _owners.length;
    }
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enum.totalSupply(), "ERC721Enum: global ioob");
        return index;
    }
}

library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
		
        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

contract Goatorade is ERC721Enum, Ownable, ReentrancyGuard {
    using Strings for uint256;
	
    uint256 public AIRDROP_NFT = 10000;
	uint256 public RESERVED_NFT = 5000;
	
	uint256 public AIRDROP_MINTED;
	uint256 public RESERVED_MINTED;
	
    string private baseURI;
    
	constructor() ERC721P('Goatorade', 'Goatorade') {}
	
    function _baseURI() internal view virtual returns (string memory) {
        return baseURI;
    }
	
	function mintReservedNFT(address[] calldata _to, uint256[] calldata _count) external onlyOwner nonReentrant{
        require(_to.length == _count.length,"Mismatch between Address and count");
		for(uint i=0; i < _to.length; i++){
		    uint256 totalSupply = totalSupply();
		    require(
				RESERVED_MINTED + _count[i] <= RESERVED_NFT, 
				"Max limit reached"
			);
			for (uint256 j = 0; j < _count[i]; j++) {
				_safeMint(_to[i], totalSupply + j);
				RESERVED_MINTED++;
			}
		}
    }
	
	function mintAirDropNFT(address[] calldata _to, uint256[] calldata _count) external onlyOwner nonReentrant{
        require(_to.length == _count.length,"Mismatch between Address and count");
		for(uint i=0; i < _to.length; i++){
		    uint256 totalSupply = totalSupply();
		    require(
				AIRDROP_MINTED + _count[i] <= AIRDROP_NFT, 
				"Max limit reached"
			);
			for (uint256 j = 0; j < _count[i]; j++) {
				_safeMint(_to[i], totalSupply + j);
				AIRDROP_MINTED++;
			}
		}
    }
	
	function burnBatchNFT(address[] calldata _holder, uint256[] calldata _count) external onlyOwner nonReentrant{
        require(_holder.length == _count.length,"Mismatch between Address and count");
		for(uint i=0; i < _holder.length; i++){
		    require(
			   balanceOf(_holder[i]) >= _count[i], 
			   "insufficient balance for burn"
			);
			uint256[] memory tokenID = tokensOfOwner(_holder[i]);
			for (uint256 j = 0; j < _count[i]; j++) {
				_burn(tokenID[j]);
			}
		}
    }
	
	function burnNFT(address _holder, uint256[] calldata _tokenId) external onlyOwner nonReentrant{
        require(
            balanceOf(_holder) >= _tokenId.length, 
            "insufficient balance for burn"
        );
        for (uint256 j = 0; j < _tokenId.length; j++) {
            require(
               _holder == ownerOf(_tokenId[j]), 
               "incorrect owner of nft"
            );
            _burn(_tokenId[j]);
        }
    }
	
	function burnNFT(uint256[] calldata _tokenId) external onlyOwner nonReentrant{
        for (uint256 j = 0; j < _tokenId.length; j++) {
            _burn(_tokenId[j]);
        }
    }
	
    function tokenURI(uint256 _tokenId) external view virtual override returns (string memory) {
        require(_exists(_tokenId), "ERC721Metadata: Nonexistent token");
        string memory currentBaseURI = _baseURI();
        return bytes(currentBaseURI).length > 0	? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), ".json")) : "";
    }
	
    function transferFrom(address _from, address _to, uint256 _tokenId) public override {
        ERC721P.transferFrom(_from, _to, _tokenId);
    }

    function safeTransferFrom(address _from, address _to, uint256 _tokenId, bytes memory _data) public override {
        ERC721P.safeTransferFrom(_from, _to, _tokenId, _data);
    }
	
	function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }
	
	function setBaseURI(string memory newBaseURI) external onlyOwner {
        baseURI = newBaseURI;
    }
	
	function updateAirDropSupply(uint256 newSupply) external onlyOwner {
	    require(newSupply >= AIRDROP_MINTED, "Incorrect value");
        AIRDROP_NFT = newSupply;
    }
	
	function updateReservedSupply(uint256 newSupply) external onlyOwner {
	    require(newSupply >= RESERVED_MINTED, "Incorrect value");
        RESERVED_NFT = newSupply;
    }
}

Read Contract

AIRDROP_MINTED 0x3b9e8a57 → uint256
AIRDROP_NFT 0xdbe1a172 → uint256
RESERVED_MINTED 0xf921d83f → uint256
RESERVED_NFT 0xd4bba0e9 → uint256
balanceOf 0x70a08231 → uint256
getApproved 0x081812fc → address
isApprovedForAll 0xe985e9c5 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
tokensOfOwner 0x8462151c → uint256[]
totalSupply 0x18160ddd → uint256

Write Contract 16 functions

These functions modify contract state and require a wallet transaction to execute.

approve 0x095ea7b3
address to
uint256 tokenId
burnBatchNFT 0xe538651a
address[] _holder
uint256[] _count
burnNFT 0x86529a61
address _holder
uint256[] _tokenId
burnNFT 0x95de7a9e
uint256[] _tokenId
mintAirDropNFT 0x67746f4e
address[] _to
uint256[] _count
mintReservedNFT 0x4df08219
address[] _to
uint256[] _count
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address _from
address _to
uint256 _tokenId
bytes _data
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseURI 0x55f804b3
string newBaseURI
transferFrom 0x23b872dd
address _from
address _to
uint256 _tokenId
transferOwnership 0xf2fde38b
address newOwner
updateAirDropSupply 0xd8710ba3
uint256 newSupply
updateReservedSupply 0xaa9dc50c
uint256 newSupply
withdraw 0x3ccfd60b
No parameters

Recent Transactions

No transactions found for this address