Address Contract Partially Verified
Address
0xBef648e3034e80efE152F3581117c1536FFf5aFc
Balance
0.005000 ETH ($9.67)
Nonce
1
Code Size
17033 bytes
Creator
0x64A15b1D...B3e1 at tx 0xaddc38e8...fdbafb
Last Active
Indexed Transactions
1 (24,460,450 → 24,460,450)
Gas Used (indexed)
25,275
Contract Bytecode
17033 bytes
0x60806040526004361061021a5760003560e01c80635503a0e811610123578063a0712d68116100ab578063d5abeb011161006f578063d5abeb011461079c578063e0a80853146107c7578063e985e9c5146107f0578063efbd73f41461082d578063f2fde38b146108565761021a565b8063a0712d68146106c6578063a22cb465146106e2578063a45ba8e71461070b578063b88d4fde14610736578063c87b56dd1461075f5761021a565b806370a08231116100f257806370a08231146105f3578063715018a6146106305780637ec4a659146106475780638da5cb5b1461067057806395d89b411461069b5761021a565b80635503a0e8146105355780635c975abb1461056057806362b99ad41461058b5780636352211e146105b65761021a565b8063228025e8116101a657806342842e0e1161017557806342842e0e14610452578063438b63001461047b57806344a0d68a146104b85780634fdd43cb146104e1578063518302271461050a5761021a565b8063228025e8146103c057806323b872dd146103e957806327f5535f146104125780633ccfd60b1461043b5761021a565b80630f4a5307116101ed5780630f4a5307146102ed57806313faede61461031857806316ba10e01461034357806316c38b3c1461036c57806318160ddd146103955761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c4575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190612eb3565b61087f565b6040516102539190613545565b60405180910390f35b34801561026857600080fd5b50610271610961565b60405161027e9190613560565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a99190612f56565b6109f3565b6040516102bb91906134bc565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e69190612e46565b610a78565b005b3480156102f957600080fd5b50610302610b90565b60405161030f9190613802565b60405180910390f35b34801561032457600080fd5b5061032d610b96565b60405161033a9190613802565b60405180910390f35b34801561034f57600080fd5b5061036a60048036038101906103659190612f0d565b610b9c565b005b34801561037857600080fd5b50610393600480360381019061038e9190612e86565b610c32565b005b3480156103a157600080fd5b506103aa610ccb565b6040516103b79190613802565b60405180910390f35b3480156103cc57600080fd5b506103e760048036038101906103e29190612f56565b610cdc565b005b3480156103f557600080fd5b50610410600480360381019061040b9190612d30565b610d62565b005b34801561041e57600080fd5b5061043960048036038101906104349190612f56565b610dc2565b005b34801561044757600080fd5b50610450610e48565b005b34801561045e57600080fd5b5061047960048036038101906104749190612d30565b610f44565b005b34801561048757600080fd5b506104a2600480360381019061049d9190612cc3565b610f64565b6040516104af9190613523565b60405180910390f35b3480156104c457600080fd5b506104df60048036038101906104da9190612f56565b61106f565b005b3480156104ed57600080fd5b5061050860048036038101906105039190612f0d565b6110f5565b005b34801561051657600080fd5b5061051f61118b565b60405161052c9190613545565b60405180910390f35b34801561054157600080fd5b5061054a61119e565b6040516105579190613560565b60405180910390f35b34801561056c57600080fd5b5061057561122c565b6040516105829190613545565b60405180910390f35b34801561059757600080fd5b506105a061123f565b6040516105ad9190613560565b60405180910390f35b3480156105c257600080fd5b506105dd60048036038101906105d89190612f56565b6112cd565b6040516105ea91906134bc565b60405180910390f35b3480156105ff57600080fd5b5061061a60048036038101906106159190612cc3565b61137f565b6040516106279190613802565b60405180910390f35b34801561063c57600080fd5b50610645611437565b005b34801561065357600080fd5b5061066e60048036038101906106699190612f0d565b6114bf565b005b34801561067c57600080fd5b50610685611555565b60405161069291906134bc565b60405180910390f35b3480156106a757600080fd5b506106b061157f565b6040516106bd9190613560565b60405180910390f35b6106e060048036038101906106db9190612f56565b611611565b005b3480156106ee57600080fd5b5061070960048036038101906107049190612e06565b61176a565b005b34801561071757600080fd5b50610720611780565b60405161072d9190613560565b60405180910390f35b34801561074257600080fd5b5061075d60048036038101906107589190612d83565b61180e565b005b34801561076b57600080fd5b5061078660048036038101906107819190612f56565b611870565b6040516107939190613560565b60405180910390f35b3480156107a857600080fd5b506107b16119c9565b6040516107be9190613802565b60405180910390f35b3480156107d357600080fd5b506107ee60048036038101906107e99190612e86565b6119cf565b005b3480156107fc57600080fd5b5061081760048036038101906108129190612cf0565b611a68565b6040516108249190613545565b60405180910390f35b34801561083957600080fd5b50610854600480360381019061084f9190612f83565b611afc565b005b34801561086257600080fd5b5061087d60048036038101906108789190612cc3565b611c32565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061094a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061095a575061095982611d2a565b5b9050919050565b60606000805461097090613b0b565b80601f016020809104026020016040519081016040528092919081815260200182805461099c90613b0b565b80156109e95780601f106109be576101008083540402835291602001916109e9565b820191906000526020600020905b8154815290600101906020018083116109cc57829003601f168201915b5050505050905090565b60006109fe82611d94565b610a3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a34906136e2565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a83826112cd565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610af4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aeb90613782565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b13611e00565b73ffffffffffffffffffffffffffffffffffffffff161480610b425750610b4181610b3c611e00565b611a68565b5b610b81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7890613662565b60405180910390fd5b610b8b8383611e08565b505050565b600d5481565b600b5481565b610ba4611e00565b73ffffffffffffffffffffffffffffffffffffffff16610bc2611555565b73ffffffffffffffffffffffffffffffffffffffff1614610c18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0f90613702565b60405180910390fd5b8060099080519060200190610c2e929190612ad7565b5050565b610c3a611e00565b73ffffffffffffffffffffffffffffffffffffffff16610c58611555565b73ffffffffffffffffffffffffffffffffffffffff1614610cae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca590613702565b60405180910390fd5b80600e60006101000a81548160ff02191690831515021790555050565b6000610cd76007611ec1565b905090565b610ce4611e00565b73ffffffffffffffffffffffffffffffffffffffff16610d02611555565b73ffffffffffffffffffffffffffffffffffffffff1614610d58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4f90613702565b60405180910390fd5b80600c8190555050565b610d73610d6d611e00565b82611ecf565b610db2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da9906137c2565b60405180910390fd5b610dbd838383611fad565b505050565b610dca611e00565b73ffffffffffffffffffffffffffffffffffffffff16610de8611555565b73ffffffffffffffffffffffffffffffffffffffff1614610e3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3590613702565b60405180910390fd5b80600d8190555050565b610e50611e00565b73ffffffffffffffffffffffffffffffffffffffff16610e6e611555565b73ffffffffffffffffffffffffffffffffffffffff1614610ec4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ebb90613702565b60405180910390fd5b6000610ece611555565b73ffffffffffffffffffffffffffffffffffffffff1647604051610ef1906134a7565b60006040518083038185875af1925050503d8060008114610f2e576040519150601f19603f3d011682016040523d82523d6000602084013e610f33565b606091505b5050905080610f4157600080fd5b50565b610f5f8383836040518060200160405280600081525061180e565b505050565b60606000610f718361137f565b905060008167ffffffffffffffff811115610f8f57610f8e613ca4565b5b604051908082528060200260200182016040528015610fbd5781602001602082028036833780820191505090505b50905060006001905060005b8381108015610fda5750600c548211155b15611063576000610fea836112cd565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561104f578284838151811061103457611033613c75565b5b602002602001018181525050818061104b90613b6e565b9250505b828061105a90613b6e565b93505050610fc9565b82945050505050919050565b611077611e00565b73ffffffffffffffffffffffffffffffffffffffff16611095611555565b73ffffffffffffffffffffffffffffffffffffffff16146110eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e290613702565b60405180910390fd5b80600b8190555050565b6110fd611e00565b73ffffffffffffffffffffffffffffffffffffffff1661111b611555565b73ffffffffffffffffffffffffffffffffffffffff1614611171576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116890613702565b60405180910390fd5b80600a9080519060200190611187929190612ad7565b5050565b600e60019054906101000a900460ff1681565b600980546111ab90613b0b565b80601f01602080910402602001604051908101604052809291908181526020018280546111d790613b0b565b80156112245780601f106111f957610100808354040283529160200191611224565b820191906000526020600020905b81548152906001019060200180831161120757829003601f168201915b505050505081565b600e60009054906101000a900460ff1681565b6008805461124c90613b0b565b80601f016020809104026020016040519081016040528092919081815260200182805461127890613b0b565b80156112c55780601f1061129a576101008083540402835291602001916112c5565b820191906000526020600020905b8154815290600101906020018083116112a857829003601f168201915b505050505081565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611376576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136d906136a2565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e790613682565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61143f611e00565b73ffffffffffffffffffffffffffffffffffffffff1661145d611555565b73ffffffffffffffffffffffffffffffffffffffff16146114b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114aa90613702565b60405180910390fd5b6114bd6000612209565b565b6114c7611e00565b73ffffffffffffffffffffffffffffffffffffffff166114e5611555565b73ffffffffffffffffffffffffffffffffffffffff161461153b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153290613702565b60405180910390fd5b8060089080519060200190611551929190612ad7565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461158e90613b0b565b80601f01602080910402602001604051908101604052809291908181526020018280546115ba90613b0b565b80156116075780601f106115dc57610100808354040283529160200191611607565b820191906000526020600020905b8154815290600101906020018083116115ea57829003601f168201915b5050505050905090565b806000811180156116245750600d548111155b611663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165a906135e2565b60405180910390fd5b600c54816116716007611ec1565b61167b9190613940565b11156116bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b3906137a2565b60405180910390fd5b600e60009054906101000a900460ff161561170c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170390613722565b60405180910390fd5b81600b5461171a91906139c7565b34101561175c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611753906137e2565b60405180910390fd5b61176633836122cf565b5050565b61177c611775611e00565b838361230f565b5050565b600a805461178d90613b0b565b80601f01602080910402602001604051908101604052809291908181526020018280546117b990613b0b565b80156118065780601f106117db57610100808354040283529160200191611806565b820191906000526020600020905b8154815290600101906020018083116117e957829003601f168201915b505050505081565b61181f611819611e00565b83611ecf565b61185e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611855906137c2565b60405180910390fd5b61186a8484848461247c565b50505050565b606061187b82611d94565b6118ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b190613762565b60405180910390fd5b60001515600e60019054906101000a900460ff161515141561196857600a80546118e390613b0b565b80601f016020809104026020016040519081016040528092919081815260200182805461190f90613b0b565b801561195c5780601f106119315761010080835404028352916020019161195c565b820191906000526020600020905b81548152906001019060200180831161193f57829003601f168201915b505050505090506119c4565b60006119726124d8565b9050600081511161199257604051806020016040528060008152506119c0565b8061199c8461256a565b60096040516020016119b093929190613476565b6040516020818303038152906040525b9150505b919050565b600c5481565b6119d7611e00565b73ffffffffffffffffffffffffffffffffffffffff166119f5611555565b73ffffffffffffffffffffffffffffffffffffffff1614611a4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a4290613702565b60405180910390fd5b80600e60016101000a81548160ff02191690831515021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b81600081118015611b0f5750600d548111155b611b4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b45906135e2565b60405180910390fd5b600c5481611b5c6007611ec1565b611b669190613940565b1115611ba7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9e906137a2565b60405180910390fd5b611baf611e00565b73ffffffffffffffffffffffffffffffffffffffff16611bcd611555565b73ffffffffffffffffffffffffffffffffffffffff1614611c23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1a90613702565b60405180910390fd5b611c2d82846122cf565b505050565b611c3a611e00565b73ffffffffffffffffffffffffffffffffffffffff16611c58611555565b73ffffffffffffffffffffffffffffffffffffffff1614611cae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca590613702565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d15906135a2565b60405180910390fd5b611d2781612209565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e7b836112cd565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b6000611eda82611d94565b611f19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1090613642565b60405180910390fd5b6000611f24836112cd565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611f9357508373ffffffffffffffffffffffffffffffffffffffff16611f7b846109f3565b73ffffffffffffffffffffffffffffffffffffffff16145b80611fa45750611fa38185611a68565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611fcd826112cd565b73ffffffffffffffffffffffffffffffffffffffff1614612023576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201a90613742565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612093576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208a90613602565b60405180910390fd5b61209e8383836126cb565b6120a9600082611e08565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120f99190613a21565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121509190613940565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60005b8181101561230a576122e460076126d0565b6122f7836122f26007611ec1565b6126e6565b808061230290613b6e565b9150506122d2565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561237e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237590613622565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161246f9190613545565b60405180910390a3505050565b612487848484611fad565b61249384848484612704565b6124d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124c990613582565b60405180910390fd5b50505050565b6060600880546124e790613b0b565b80601f016020809104026020016040519081016040528092919081815260200182805461251390613b0b565b80156125605780601f1061253557610100808354040283529160200191612560565b820191906000526020600020905b81548152906001019060200180831161254357829003601f168201915b5050505050905090565b606060008214156125b2576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506126c6565b600082905060005b600082146125e45780806125cd90613b6e565b915050600a826125dd9190613996565b91506125ba565b60008167ffffffffffffffff811115612600576125ff613ca4565b5b6040519080825280601f01601f1916602001820160405280156126325781602001600182028036833780820191505090505b5090505b600085146126bf5760018261264b9190613a21565b9150600a8561265a9190613bb7565b60306126669190613940565b60f81b81838151811061267c5761267b613c75565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126b89190613996565b9450612636565b8093505050505b919050565b505050565b6001816000016000828254019250508190555050565b61270082826040518060200160405280600081525061289b565b5050565b60006127258473ffffffffffffffffffffffffffffffffffffffff166128f6565b1561288e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261274e611e00565b8786866040518563ffffffff1660e01b815260040161277094939291906134d7565b602060405180830381600087803b15801561278a57600080fd5b505af19250505080156127bb57506040513d601f19601f820116820180604052508101906127b89190612ee0565b60015b61283e573d80600081146127eb576040519150601f19603f3d011682016040523d82523d6000602084013e6127f0565b606091505b50600081511415612836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282d90613582565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612893565b600190505b949350505050565b6128a58383612909565b6128b26000848484612704565b6128f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e890613582565b60405180910390fd5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612979576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612970906136c2565b60405180910390fd5b61298281611d94565b156129c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129b9906135c2565b60405180910390fd5b6129ce600083836126cb565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a1e9190613940565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054612ae390613b0b565b90600052602060002090601f016020900481019282612b055760008555612b4c565b82601f10612b1e57805160ff1916838001178555612b4c565b82800160010185558215612b4c579182015b82811115612b4b578251825591602001919060010190612b30565b5b509050612b599190612b5d565b5090565b5b80821115612b76576000816000905550600101612b5e565b5090565b6000612b8d612b8884613842565b61381d565b905082815260208101848484011115612ba957612ba8613cd8565b5b612bb4848285613ac9565b509392505050565b6000612bcf612bca84613873565b61381d565b905082815260208101848484011115612beb57612bea613cd8565b5b612bf6848285613ac9565b509392505050565b600081359050612c0d816141f7565b92915050565b600081359050612c228161420e565b92915050565b600081359050612c3781614225565b92915050565b600081519050612c4c81614225565b92915050565b600082601f830112612c6757612c66613cd3565b5b8135612c77848260208601612b7a565b91505092915050565b600082601f830112612c9557612c94613cd3565b5b8135612ca5848260208601612bbc565b91505092915050565b600081359050612cbd8161423c565b92915050565b600060208284031215612cd957612cd8613ce2565b5b6000612ce784828501612bfe565b91505092915050565b60008060408385031215612d0757612d06613ce2565b5b6000612d1585828601612bfe565b9250506020612d2685828601612bfe565b9150509250929050565b600080600060608486031215612d4957612d48613ce2565b5b6000612d5786828701612bfe565b9350506020612d6886828701612bfe565b9250506040612d7986828701612cae565b9150509250925092565b60008060008060808587031215612d9d57612d9c613ce2565b5b6000612dab87828801612bfe565b9450506020612dbc87828801612bfe565b9350506040612dcd87828801612cae565b925050606085013567ffffffffffffffff811115612dee57612ded613cdd565b5b612dfa87828801612c52565b91505092959194509250565b60008060408385031215612e1d57612e1c613ce2565b5b6000612e2b85828601612bfe565b9250506020612e3c85828601612c13565b9150509250929050565b60008060408385031215612e5d57612e5c613ce2565b5b6000612e6b85828601612bfe565b9250506020612e7c85828601612cae565b9150509250929050565b600060208284031215612e9c57612e9b613ce2565b5b6000612eaa84828501612c13565b91505092915050565b600060208284031215612ec957612ec8613ce2565b5b6000612ed784828501612c28565b91505092915050565b600060208284031215612ef657612ef5613ce2565b5b6000612f0484828501612c3d565b91505092915050565b600060208284031215612f2357612f22613ce2565b5b600082013567ffffffffffffffff811115612f4157612f40613cdd565b5b612f4d84828501612c80565b91505092915050565b600060208284031215612f6c57612f6b613ce2565b5b6000612f7a84828501612cae565b91505092915050565b60008060408385031215612f9a57612f99613ce2565b5b6000612fa885828601612cae565b9250506020612fb985828601612bfe565b9150509250929050565b6000612fcf8383613458565b60208301905092915050565b612fe481613a55565b82525050565b6000612ff5826138c9565b612fff81856138f7565b935061300a836138a4565b8060005b8381101561303b5781516130228882612fc3565b975061302d836138ea565b92505060018101905061300e565b5085935050505092915050565b61305181613a67565b82525050565b6000613062826138d4565b61306c8185613908565b935061307c818560208601613ad8565b61308581613ce7565b840191505092915050565b600061309b826138df565b6130a58185613924565b93506130b5818560208601613ad8565b6130be81613ce7565b840191505092915050565b60006130d4826138df565b6130de8185613935565b93506130ee818560208601613ad8565b80840191505092915050565b6000815461310781613b0b565b6131118186613935565b9450600182166000811461312c576001811461313d57613170565b60ff19831686528186019350613170565b613146856138b4565b60005b8381101561316857815481890152600182019150602081019050613149565b838801955050505b50505092915050565b6000613186603283613924565b915061319182613cf8565b604082019050919050565b60006131a9602683613924565b91506131b482613d47565b604082019050919050565b60006131cc601c83613924565b91506131d782613d96565b602082019050919050565b60006131ef601483613924565b91506131fa82613dbf565b602082019050919050565b6000613212602483613924565b915061321d82613de8565b604082019050919050565b6000613235601983613924565b915061324082613e37565b602082019050919050565b6000613258602c83613924565b915061326382613e60565b604082019050919050565b600061327b603883613924565b915061328682613eaf565b604082019050919050565b600061329e602a83613924565b91506132a982613efe565b604082019050919050565b60006132c1602983613924565b91506132cc82613f4d565b604082019050919050565b60006132e4602083613924565b91506132ef82613f9c565b602082019050919050565b6000613307602c83613924565b915061331282613fc5565b604082019050919050565b600061332a602083613924565b915061333582614014565b602082019050919050565b600061334d601783613924565b91506133588261403d565b602082019050919050565b6000613370602983613924565b915061337b82614066565b604082019050919050565b6000613393602f83613924565b915061339e826140b5565b604082019050919050565b60006133b6602183613924565b91506133c182614104565b604082019050919050565b60006133d9600083613919565b91506133e482614153565b600082019050919050565b60006133fc601483613924565b915061340782614156565b602082019050919050565b600061341f603183613924565b915061342a8261417f565b604082019050919050565b6000613442601383613924565b915061344d826141ce565b602082019050919050565b61346181613abf565b82525050565b61347081613abf565b82525050565b600061348282866130c9565b915061348e82856130c9565b915061349a82846130fa565b9150819050949350505050565b60006134b2826133cc565b9150819050919050565b60006020820190506134d16000830184612fdb565b92915050565b60006080820190506134ec6000830187612fdb565b6134f96020830186612fdb565b6135066040830185613467565b81810360608301526135188184613057565b905095945050505050565b6000602082019050818103600083015261353d8184612fea565b905092915050565b600060208201905061355a6000830184613048565b92915050565b6000602082019050818103600083015261357a8184613090565b905092915050565b6000602082019050818103600083015261359b81613179565b9050919050565b600060208201905081810360008301526135bb8161319c565b9050919050565b600060208201905081810360008301526135db816131bf565b9050919050565b600060208201905081810360008301526135fb816131e2565b9050919050565b6000602082019050818103600083015261361b81613205565b9050919050565b6000602082019050818103600083015261363b81613228565b9050919050565b6000602082019050818103600083015261365b8161324b565b9050919050565b6000602082019050818103600083015261367b8161326e565b9050919050565b6000602082019050818103600083015261369b81613291565b9050919050565b600060208201905081810360008301526136bb816132b4565b9050919050565b600060208201905081810360008301526136db816132d7565b9050919050565b600060208201905081810360008301526136fb816132fa565b9050919050565b6000602082019050818103600083015261371b8161331d565b9050919050565b6000602082019050818103600083015261373b81613340565b9050919050565b6000602082019050818103600083015261375b81613363565b9050919050565b6000602082019050818103600083015261377b81613386565b9050919050565b6000602082019050818103600083015261379b816133a9565b9050919050565b600060208201905081810360008301526137bb816133ef565b9050919050565b600060208201905081810360008301526137db81613412565b9050919050565b600060208201905081810360008301526137fb81613435565b9050919050565b60006020820190506138176000830184613467565b92915050565b6000613827613838565b90506138338282613b3d565b919050565b6000604051905090565b600067ffffffffffffffff82111561385d5761385c613ca4565b5b61386682613ce7565b9050602081019050919050565b600067ffffffffffffffff82111561388e5761388d613ca4565b5b61389782613ce7565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061394b82613abf565b915061395683613abf565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561398b5761398a613be8565b5b828201905092915050565b60006139a182613abf565b91506139ac83613abf565b9250826139bc576139bb613c17565b5b828204905092915050565b60006139d282613abf565b91506139dd83613abf565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613a1657613a15613be8565b5b828202905092915050565b6000613a2c82613abf565b9150613a3783613abf565b925082821015613a4a57613a49613be8565b5b828203905092915050565b6000613a6082613a9f565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613af6578082015181840152602081019050613adb565b83811115613b05576000848401525b50505050565b60006002820490506001821680613b2357607f821691505b60208210811415613b3757613b36613c46565b5b50919050565b613b4682613ce7565b810181811067ffffffffffffffff82111715613b6557613b64613ca4565b5b80604052505050565b6000613b7982613abf565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613bac57613bab613be8565b5b600182019050919050565b6000613bc282613abf565b9150613bcd83613abf565b925082613bdd57613bdc613c17565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f54686520636f6e74726163742069732070617573656421000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f496e73756666696369656e742066756e64732100000000000000000000000000600082015250565b61420081613a55565b811461420b57600080fd5b50565b61421781613a67565b811461422257600080fd5b50565b61422e81613a73565b811461423957600080fd5b50565b61424581613abf565b811461425057600080fd5b5056fea26469706673582212208e399e44a44265443f170410e2711353619bd1c12a938e91eca850163e5ff8e864736f6c63430008070033
Verified Source Code Partial Match
Compiler: v0.8.7+commit.e28d00a7
EVM: london
Optimization: No
Ohnahji.sol 1339 lines
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
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);
}
}
// File: @openzeppelin/contracts/utils/Context.sol
// 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: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// File: @openzeppelin/contracts/utils/Address.sol
// 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: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
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);
}
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
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);
}
// File: @openzeppelin/contracts/utils/introspection/ERC165.sol
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
// File: @openzeppelin/contracts/token/ERC721/IERC721.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
/**
* @dev Required interface of an ERC721 compliant contract.
*/
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;
}
// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
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);
}
// File: @openzeppelin/contracts/token/ERC721/ERC721.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
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;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.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);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
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);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
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);
}
/**
* @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.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
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");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
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"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
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);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.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);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
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;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
// File: contracts/Ohnahji.sol
/**
██████╗ ██╗ ██╗███╗ ██╗ █████╗ ██╗ ██╗ ██╗██╗
██╔═══██╗██║ ██║████╗ ██║██╔══██╗██║ ██║ ██║██║
██║ ██║███████║██╔██╗ ██║███████║███████║ ██║██║
██║ ██║██╔══██║██║╚██╗██║██╔══██║██╔══██║██ ██║██║
╚██████╔╝██║ ██║██║ ╚████║██║ ██║██║ ██║╚█████╔╝██║
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚════╝ ╚═╝
_
|_ \/ |V| _ __ | _ |_) __ o __ _
|_) / | |(_| | |<|_|_> | | | |||(/_
_ ___ ___ _ _ _ _ _ _ ___ _ _
( | ) \ / / |_ ___ __ _| | | __ _ ___ _ _ ( ) | |__ ___ | |_| |_ ___ _ _ __|__ ( | )
V V \ \/\/ /| ' \/ _ \ / _` | | | / _` / _ \ ' \|/ | '_ \/ -_) | _| ' \/ -_) '_/ -_)/_/V V
\_/\_/ |_||_\___/ \__,_|_|_| \__, \___/_||_| |_.__/\___| \__|_||_\___|_| \___(_)
|___/
*/
// @devs: Make sure to read to the bottom if planning on using
pragma solidity >=0.7.0 <0.9.0;
contract Ohnahji is ERC721, Ownable {
using Strings for uint256;
using Counters for Counters.Counter;
Counters.Counter private supply;
string public uriPrefix = "";
string public uriSuffix = ".json";
string public hiddenMetadataUri;
uint256 public cost = 0.01 ether;
uint256 public maxSupply = 9010;
uint256 public maxMintPerAccnt = 10;
bool public paused = true;
bool public revealed = false;
constructor() ERC721("Ohnahji", "OHNAH") {
setHiddenMetadataUri("ipfs://QmZfz86hCvBN7KE5G2Sw6pCdYgwT68nh1BDstFWwkPg29S/hidden.json");
}
modifier mintCompliance(uint256 _mintAmount) {
require(_mintAmount > 0 && _mintAmount <= maxMintPerAccnt, "Invalid mint amount!");
require(supply.current() + _mintAmount <= maxSupply, "Max supply exceeded!");
_;
}
function totalSupply() public view returns (uint256) {
return supply.current();
}
function mint(uint256 _mintAmount) public payable mintCompliance(_mintAmount) {
require(!paused, "The contract is paused!");
require(msg.value >= cost * _mintAmount, "Insufficient funds!");
_mintLoop(msg.sender, _mintAmount);
}
function mintForAddress(uint256 _mintAmount, address _receiver) public mintCompliance(_mintAmount) onlyOwner {
_mintLoop(_receiver, _mintAmount);
}
function walletOfOwner(address _owner)
public
view
returns (uint256[] memory)
{
uint256 ownerTokenCount = balanceOf(_owner);
uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
uint256 currentTokenId = 1;
uint256 ownedTokenIndex = 0;
while (ownedTokenIndex < ownerTokenCount && currentTokenId <= maxSupply) {
address currentTokenOwner = ownerOf(currentTokenId);
if (currentTokenOwner == _owner) {
ownedTokenIds[ownedTokenIndex] = currentTokenId;
ownedTokenIndex++;
}
currentTokenId++;
}
return ownedTokenIds;
}
function tokenURI(uint256 _tokenId)
public
view
virtual
override
returns (string memory)
{
require(
_exists(_tokenId),
"ERC721Metadata: URI query for nonexistent token"
);
if (revealed == false) {
return hiddenMetadataUri;
}
string memory currentBaseURI = _baseURI();
return bytes(currentBaseURI).length > 0
? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix))
: "";
}
function setRevealed(bool _state) public onlyOwner {
revealed = _state;
}
function setCost(uint256 _cost) public onlyOwner {
cost = _cost;
}
function setmaxSupply(uint256 _maxSupply) public onlyOwner {
maxSupply = _maxSupply;
}
function setmaxMintPerAccnt(uint256 _maxMintPerAccnt) public onlyOwner {
maxMintPerAccnt = _maxMintPerAccnt;
}
function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner {
hiddenMetadataUri = _hiddenMetadataUri;
}
function setUriPrefix(string memory _uriPrefix) public onlyOwner {
uriPrefix = _uriPrefix;
}
function setUriSuffix(string memory _uriSuffix) public onlyOwner {
uriSuffix = _uriSuffix;
}
function setPaused(bool _state) public onlyOwner {
paused = _state;
}
function withdraw() public onlyOwner {
(bool os, ) = payable(owner()).call{value: address(this).balance}("");
require(os);
}
function _mintLoop(address _receiver, uint256 _mintAmount) internal {
for (uint256 i = 0; i < _mintAmount; i++) {
supply.increment();
_safeMint(_receiver, supply.current());
}
}
function _baseURI() internal view virtual override returns (string memory) {
return uriPrefix;
}
}
/** Feel free to contact us for questions, help and/or comments:
[email protected]
TipJar:
----------
OhnahjiB: 0xF4DF7A060388b155D58de25bc24ABa4130B5d8A2
Markus Prime: 0xbcf6c2DbB2517D306E34E19D93D891d834c897CD
HashLips: 0x943590A42C27D08e3744202c4Ae5eD55c2dE240D
*YouTube and Google Him!
image2ascii.com textkool.com/en/ascii-art-generator
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
°°°°°°°°°°°°°°°°°°°°°*@@@@@@*°°°°°°°.°°°°°°°°°°°°°
°°°°°°°°°°°°°°°***°°.O@@@@@@O°°o@@@@#*°°°°°°°°°°°°
°°°°°°°°°°°°°o@@@@@@@@@@@@@@@@@@@@@@@O.°°°°°°°°°°°
°°°°°°°°°°°°°@@@@@@@@@@@@@@@@@@@@@@@o**°°°°°°°°°°°
°°°°°°°°°°°°°°O@@@@@@@@@@@@@@@@@@@@@@@@@O°°°°°°°°°
°°°°°°°°°°°°°°°@@@@@@@@@@@@@@@@@@@@@@@@@O°°°°°°°°°
°°°°°°°°°°°°°°°@#O@@@@@@@@@@@@@@@@@@o**°°°°°°°°°°°
°°°°°°°°°°°°°[email protected]@@@@@O @@@@@@@@@@@@#.°°°°°°°°°°°
°°°°°°°°°°°°°o@@@@@@@@@@@@@@@@@@@@@@@@°°°°°°°°°°°°
°°°°°°°°°°°°.#@@@@@@@@@@@@@@@@@@@##O*°°°°°°°°°°°°°
°°°°°°°°°°°°°°#@@@@@@@@@@@@@@@@#*...°°°°°°°°°°°°°°
°°°°°°°°°°°°°°°*O@@@@@@@@@@@O*°.°°°°°°°°°°°°°°°°°°
°°°°°°°°°°°°°°°°..°°*o@@@@@@***°°°°°°°°°°°°°°°°°°°
°°°°°°°°°°°°°°°°o#@@@@@@#Ooo#@OOOo°°°°°°°°°°°°°°°°
°°°°°°°°°°°°°°°@@@@@@Oo**oOOO@**o@o°°°°°°°°°°°°°°°
°°°°°°°°°°°°°°@@O. o#Oo*° @*o*O@.°°°°°°°°°°°°°°
°°°°°°°°°°°°°@@@ @o**o@°°°°°°°°°°°°°°°
\ / _ | _ _ _ _ _ _|_ _ _|_|_ _ |~ _ _ _ .|
\/\/ (/_|(_(_)| | |(/_ | (_) | | |(/_ |~(_|| | |||\/
/
P.S. This is what happens when two artists living & loving
life, figure out coding a tiny bit.
*/
Read Contract
balanceOf 0x70a08231 → uint256
cost 0x13faede6 → uint256
getApproved 0x081812fc → address
hiddenMetadataUri 0xa45ba8e7 → string
isApprovedForAll 0xe985e9c5 → bool
maxMintPerAccnt 0x0f4a5307 → uint256
maxSupply 0xd5abeb01 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
revealed 0x51830227 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
uriPrefix 0x62b99ad4 → string
uriSuffix 0x5503a0e8 → string
walletOfOwner 0x438b6300 → uint256[]
Write Contract 18 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address to
uint256 tokenId
mint 0xa0712d68
uint256 _mintAmount
mintForAddress 0xefbd73f4
uint256 _mintAmount
address _receiver
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
setCost 0x44a0d68a
uint256 _cost
setHiddenMetadataUri 0x4fdd43cb
string _hiddenMetadataUri
setPaused 0x16c38b3c
bool _state
setRevealed 0xe0a80853
bool _state
setUriPrefix 0x7ec4a659
string _uriPrefix
setUriSuffix 0x16ba10e0
string _uriSuffix
setmaxMintPerAccnt 0x27f5535f
uint256 _maxMintPerAccnt
setmaxSupply 0x228025e8
uint256 _maxSupply
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters
Top Interactions
| Address | Txns | Sent | Received |
|---|---|---|---|
| 0x00830226...0000 | 1 | 1 |
Recent Transactions
|
| Hash | Block | Age | From/To | Value | |
|---|---|---|---|---|---|
| 0xa49aed59...bbd9ad Fail | 24,460,450 | IN | 0x00830226...0000 | 0 ETH |