Forkchoice Ethereum Mainnet

Address Contract Partially Verified

Address 0x7842eE02393F8cc49D859F5dFCdae4EeE315567A
Balance 0.039000 ETH ($83.00)
Nonce 1
Code Size 15657 bytes
Indexed Transactions 0 (1 on-chain, 0.8% indexed)
External Etherscan · Sourcify

Contract Bytecode

15657 bytes
0x6080604052600436106101ee5760003560e01c8063853828b61161010d578063a22cb465116100a0578063d26ea6c01161006f578063d26ea6c0146106cc578063dee816e6146106f5578063e351da4c14610720578063e985e9c51461074b578063f2fde38b14610788576101ee565b8063a22cb46514610612578063b88d4fde1461063b578063bd34fc5714610664578063c87b56dd1461068f576101ee565b806395d89b41116100dc57806395d89b4114610575578063966784ec146105a05780639a525d9c146105cb578063a0712d68146105f6576101ee565b8063853828b6146104cb57806388aadd41146104e25780638d859f3e1461051f5780638da5cb5b1461054a576101ee565b80633f5632b0116101855780636352211e116101545780636352211e1461041157806370a082311461044e578063715018a61461048b578063738a92e8146104a2576101ee565b80633f5632b01461036957806342842e0e1461039457806355f804b3146103bd5780635f717202146103e6576101ee565b8063163e1e61116101c1578063163e1e61146102c157806318160ddd146102ea57806323b872dd146103155780633354fe341461033e576101ee565b806301ffc9a7146101f357806306fdde0314610230578063081812fc1461025b578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190612a4f565b6107b1565b6040516102279190612fad565b60405180910390f35b34801561023c57600080fd5b50610245610893565b6040516102529190612fc8565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d9190612b23565b610925565b60405161028f9190612f46565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba91906129c2565b6109aa565b005b3480156102cd57600080fd5b506102e860048036038101906102e39190612a02565b610ac2565b005b3480156102f657600080fd5b506102ff610c1e565b60405161030c91906132aa565b60405180910390f35b34801561032157600080fd5b5061033c600480360381019061033791906128ac565b610c35565b005b34801561034a57600080fd5b50610353610c95565b60405161036091906132aa565b60405180910390f35b34801561037557600080fd5b5061037e610c9a565b60405161038b91906132aa565b60405180910390f35b3480156103a057600080fd5b506103bb60048036038101906103b691906128ac565b610ca0565b005b3480156103c957600080fd5b506103e460048036038101906103df9190612ad6565b610cc0565b005b3480156103f257600080fd5b506103fb610d52565b60405161040891906132aa565b60405180910390f35b34801561041d57600080fd5b5061043860048036038101906104339190612b23565b610d64565b6040516104459190612f46565b60405180910390f35b34801561045a57600080fd5b506104756004803603810190610470919061283f565b610e16565b60405161048291906132aa565b60405180910390f35b34801561049757600080fd5b506104a0610ece565b005b3480156104ae57600080fd5b506104c960048036038101906104c49190612b23565b610f56565b005b3480156104d757600080fd5b506104e0610fdc565b005b3480156104ee57600080fd5b506105096004803603810190610504919061283f565b6110e4565b60405161051691906132aa565b60405180910390f35b34801561052b57600080fd5b506105346110fc565b60405161054191906132aa565b60405180910390f35b34801561055657600080fd5b5061055f611107565b60405161056c9190612f46565b60405180910390f35b34801561058157600080fd5b5061058a611130565b6040516105979190612fc8565b60405180910390f35b3480156105ac57600080fd5b506105b56111c2565b6040516105c291906132aa565b60405180910390f35b3480156105d757600080fd5b506105e06111c8565b6040516105ed91906132aa565b60405180910390f35b610610600480360381019061060b9190612b23565b6111ce565b005b34801561061e57600080fd5b5061063960048036038101906106349190612982565b6114b6565b005b34801561064757600080fd5b50610662600480360381019061065d91906128ff565b6114cc565b005b34801561067057600080fd5b5061067961152e565b60405161068691906132aa565b60405180910390f35b34801561069b57600080fd5b506106b660048036038101906106b19190612b23565b611534565b6040516106c39190612fc8565b60405180910390f35b3480156106d857600080fd5b506106f360048036038101906106ee919061283f565b6115db565b005b34801561070157600080fd5b5061070a61169b565b60405161071791906132aa565b60405180910390f35b34801561072c57600080fd5b506107356116a1565b60405161074291906132aa565b60405180910390f35b34801561075757600080fd5b50610772600480360381019061076d919061286c565b6116a6565b60405161077f9190612fad565b60405180910390f35b34801561079457600080fd5b506107af60048036038101906107aa919061283f565b6117a8565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061087c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061088c575061088b826118a0565b5b9050919050565b6060600180546108a29061353b565b80601f01602080910402602001604051908101604052809291908181526020018280546108ce9061353b565b801561091b5780601f106108f05761010080835404028352916020019161091b565b820191906000526020600020905b8154815290600101906020018083116108fe57829003601f168201915b5050505050905090565b60006109308261190a565b61096f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610966906131ca565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109b582610d64565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1d9061326a565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a45611976565b73ffffffffffffffffffffffffffffffffffffffff161480610a745750610a7381610a6e611976565b6116a6565b5b610ab3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aaa9061310a565b60405180910390fd5b610abd838361197e565b505050565b610aca611976565b73ffffffffffffffffffffffffffffffffffffffff16610ae8611107565b73ffffffffffffffffffffffffffffffffffffffff1614610b3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b359061320a565b60405180910390fd5b600a82829050600a54610b51919061335e565b1115610b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b89906131ea565b60405180910390fd5b6000610b9c610c1e565b905082829050600a6000828254610bb3919061335e565b9250508190555060005b83839050811015610c1857610c05848483818110610bde57610bdd6136a5565b5b9050602002016020810190610bf3919061283f565b83610bfd9061359e565b935083611a37565b8080610c109061359e565b915050610bbd565b50505050565b6000600a54600954610c30919061335e565b905090565b610c46610c40611976565b82611c05565b610c85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7c9061328a565b60405180910390fd5b610c90838383611ce3565b505050565b600a81565b60095481565b610cbb838383604051806020016040528060008152506114cc565b505050565b610cc8611976565b73ffffffffffffffffffffffffffffffffffffffff16610ce6611107565b73ffffffffffffffffffffffffffffffffffffffff1614610d3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d339061320a565b60405180910390fd5b818160079190610d4d929190612602565b505050565b600a610d05610d61919061343f565b81565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e049061316a565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610e87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7e9061314a565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610ed6611976565b73ffffffffffffffffffffffffffffffffffffffff16610ef4611107565b73ffffffffffffffffffffffffffffffffffffffff1614610f4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f419061320a565b60405180910390fd5b610f546000611f3f565b565b610f5e611976565b73ffffffffffffffffffffffffffffffffffffffff16610f7c611107565b73ffffffffffffffffffffffffffffffffffffffff1614610fd2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc99061320a565b60405180910390fd5b8060088190555050565b610fe4611976565b73ffffffffffffffffffffffffffffffffffffffff16611002611107565b73ffffffffffffffffffffffffffffffffffffffff1614611058576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104f9061320a565b60405180910390fd5b6000471161109b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110929061306a565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156110e1573d6000803e3d6000fd5b50565b600b6020528060005260406000206000915090505481565b668a8e4b1a3d800081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461113f9061353b565b80601f016020809104026020016040519081016040528092919081815260200182805461116b9061353b565b80156111b85780601f1061118d576101008083540402835291602001916111b8565b820191906000526020600020905b81548152906001019060200180831161119b57829003601f168201915b5050505050905090565b60085481565b61014d81565b61014d60095410156112c05761014d816009546111eb919061335e565b111561122c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122390612fea565b60405180910390fd5b60085481600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461127a919061335e565b11156112bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b29061312a565b60405180910390fd5b611402565b600a610d056112cf919061343f565b816009546112dd919061335e565b111561131e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131590612fea565b60405180910390fd5b600f81600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461136b919061335e565b11156113ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a39061308a565b60405180910390fd5b80668a8e4b1a3d80006113bf91906133e5565b341015611401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f89061318a565b60405180910390fd5b5b600061140c610c1e565b90508160096000828254611420919061335e565b9250508190555081600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611476919061335e565b9250508190555060005b828110156114b15761149e33836114969061359e565b935083611a37565b80806114a99061359e565b915050611480565b505050565b6114c86114c1611976565b8383612003565b5050565b6114dd6114d7611976565b83611c05565b61151c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115139061328a565b60405180910390fd5b61152884848484612170565b50505050565b600a5481565b606061153f8261190a565b61157e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115759061324a565b60405180910390fd5b60006115886121cc565b905060008151116115a857604051806020016040528060008152506115d3565b806115b28461225e565b6040516020016115c3929190612f22565b6040516020818303038152906040525b915050919050565b6115e3611976565b73ffffffffffffffffffffffffffffffffffffffff16611601611107565b73ffffffffffffffffffffffffffffffffffffffff1614611657576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164e9061320a565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610d0581565b600f81565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161171e9190612f46565b60206040518083038186803b15801561173657600080fd5b505afa15801561174a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061176e9190612aa9565b73ffffffffffffffffffffffffffffffffffffffff1614156117945760019150506117a2565b61179e84846123bf565b9150505b92915050565b6117b0611976565b73ffffffffffffffffffffffffffffffffffffffff166117ce611107565b73ffffffffffffffffffffffffffffffffffffffff1614611824576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181b9061320a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188b9061302a565b60405180910390fd5b61189d81611f3f565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166119f183610d64565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611aa7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9e906131aa565b60405180910390fd5b611ab08161190a565b15611af0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae79061304a565b60405180910390fd5b611afc60008383612453565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611b4c919061335e565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000611c108261190a565b611c4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c46906130ea565b60405180910390fd5b6000611c5a83610d64565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611cc957508373ffffffffffffffffffffffffffffffffffffffff16611cb184610925565b73ffffffffffffffffffffffffffffffffffffffff16145b80611cda5750611cd981856116a6565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d0382610d64565b73ffffffffffffffffffffffffffffffffffffffff1614611d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d509061322a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611dc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc0906130aa565b60405180910390fd5b611dd4838383612453565b611ddf60008261197e565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e2f919061343f565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611e86919061335e565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612072576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612069906130ca565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121639190612fad565b60405180910390a3505050565b61217b848484611ce3565b61218784848484612458565b6121c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121bd9061300a565b60405180910390fd5b50505050565b6060600780546121db9061353b565b80601f01602080910402602001604051908101604052809291908181526020018280546122079061353b565b80156122545780601f1061222957610100808354040283529160200191612254565b820191906000526020600020905b81548152906001019060200180831161223757829003601f168201915b5050505050905090565b606060008214156122a6576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506123ba565b600082905060005b600082146122d85780806122c19061359e565b915050600a826122d191906133b4565b91506122ae565b60008167ffffffffffffffff8111156122f4576122f36136d4565b5b6040519080825280601f01601f1916602001820160405280156123265781602001600182028036833780820191505090505b5090505b600085146123b35760018261233f919061343f565b9150600a8561234e91906135e7565b603061235a919061335e565b60f81b8183815181106123705761236f6136a5565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856123ac91906133b4565b945061232a565b8093505050505b919050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b505050565b60006124798473ffffffffffffffffffffffffffffffffffffffff166125ef565b156125e2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026124a2611976565b8786866040518563ffffffff1660e01b81526004016124c49493929190612f61565b602060405180830381600087803b1580156124de57600080fd5b505af192505050801561250f57506040513d601f19601f8201168201806040525081019061250c9190612a7c565b60015b612592573d806000811461253f576040519150601f19603f3d011682016040523d82523d6000602084013e612544565b606091505b5060008151141561258a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125819061300a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506125e7565b600190505b949350505050565b600080823b905060008111915050919050565b82805461260e9061353b565b90600052602060002090601f0160209004810192826126305760008555612677565b82601f1061264957803560ff1916838001178555612677565b82800160010185558215612677579182015b8281111561267657823582559160200191906001019061265b565b5b5090506126849190612688565b5090565b5b808211156126a1576000816000905550600101612689565b5090565b60006126b86126b3846132ea565b6132c5565b9050828152602081018484840111156126d4576126d3613712565b5b6126df8482856134f9565b509392505050565b6000813590506126f681613c80565b92915050565b60008083601f84011261271257612711613708565b5b8235905067ffffffffffffffff81111561272f5761272e613703565b5b60208301915083602082028301111561274b5761274a61370d565b5b9250929050565b60008135905061276181613c97565b92915050565b60008135905061277681613cae565b92915050565b60008151905061278b81613cae565b92915050565b600082601f8301126127a6576127a5613708565b5b81356127b68482602086016126a5565b91505092915050565b6000815190506127ce81613cc5565b92915050565b60008083601f8401126127ea576127e9613708565b5b8235905067ffffffffffffffff81111561280757612806613703565b5b6020830191508360018202830111156128235761282261370d565b5b9250929050565b60008135905061283981613cdc565b92915050565b6000602082840312156128555761285461371c565b5b6000612863848285016126e7565b91505092915050565b600080604083850312156128835761288261371c565b5b6000612891858286016126e7565b92505060206128a2858286016126e7565b9150509250929050565b6000806000606084860312156128c5576128c461371c565b5b60006128d3868287016126e7565b93505060206128e4868287016126e7565b92505060406128f58682870161282a565b9150509250925092565b600080600080608085870312156129195761291861371c565b5b6000612927878288016126e7565b9450506020612938878288016126e7565b93505060406129498782880161282a565b925050606085013567ffffffffffffffff81111561296a57612969613717565b5b61297687828801612791565b91505092959194509250565b600080604083850312156129995761299861371c565b5b60006129a7858286016126e7565b92505060206129b885828601612752565b9150509250929050565b600080604083850312156129d9576129d861371c565b5b60006129e7858286016126e7565b92505060206129f88582860161282a565b9150509250929050565b60008060208385031215612a1957612a1861371c565b5b600083013567ffffffffffffffff811115612a3757612a36613717565b5b612a43858286016126fc565b92509250509250929050565b600060208284031215612a6557612a6461371c565b5b6000612a7384828501612767565b91505092915050565b600060208284031215612a9257612a9161371c565b5b6000612aa08482850161277c565b91505092915050565b600060208284031215612abf57612abe61371c565b5b6000612acd848285016127bf565b91505092915050565b60008060208385031215612aed57612aec61371c565b5b600083013567ffffffffffffffff811115612b0b57612b0a613717565b5b612b17858286016127d4565b92509250509250929050565b600060208284031215612b3957612b3861371c565b5b6000612b478482850161282a565b91505092915050565b612b5981613473565b82525050565b612b6881613485565b82525050565b6000612b798261331b565b612b838185613331565b9350612b93818560208601613508565b612b9c81613721565b840191505092915050565b6000612bb282613326565b612bbc8185613342565b9350612bcc818560208601613508565b612bd581613721565b840191505092915050565b6000612beb82613326565b612bf58185613353565b9350612c05818560208601613508565b80840191505092915050565b6000612c1e600483613342565b9150612c2982613732565b602082019050919050565b6000612c41603283613342565b9150612c4c8261375b565b604082019050919050565b6000612c64602683613342565b9150612c6f826137aa565b604082019050919050565b6000612c87601c83613342565b9150612c92826137f9565b602082019050919050565b6000612caa600483613342565b9150612cb582613822565b602082019050919050565b6000612ccd600483613342565b9150612cd88261384b565b602082019050919050565b6000612cf0602483613342565b9150612cfb82613874565b604082019050919050565b6000612d13601983613342565b9150612d1e826138c3565b602082019050919050565b6000612d36602c83613342565b9150612d41826138ec565b604082019050919050565b6000612d59603883613342565b9150612d648261393b565b604082019050919050565b6000612d7c600483613342565b9150612d878261398a565b602082019050919050565b6000612d9f602a83613342565b9150612daa826139b3565b604082019050919050565b6000612dc2602983613342565b9150612dcd82613a02565b604082019050919050565b6000612de5600483613342565b9150612df082613a51565b602082019050919050565b6000612e08602083613342565b9150612e1382613a7a565b602082019050919050565b6000612e2b602c83613342565b9150612e3682613aa3565b604082019050919050565b6000612e4e600483613342565b9150612e5982613af2565b602082019050919050565b6000612e71602083613342565b9150612e7c82613b1b565b602082019050919050565b6000612e94602983613342565b9150612e9f82613b44565b604082019050919050565b6000612eb7602f83613342565b9150612ec282613b93565b604082019050919050565b6000612eda602183613342565b9150612ee582613be2565b604082019050919050565b6000612efd603183613342565b9150612f0882613c31565b604082019050919050565b612f1c816134ef565b82525050565b6000612f2e8285612be0565b9150612f3a8284612be0565b91508190509392505050565b6000602082019050612f5b6000830184612b50565b92915050565b6000608082019050612f766000830187612b50565b612f836020830186612b50565b612f906040830185612f13565b8181036060830152612fa28184612b6e565b905095945050505050565b6000602082019050612fc26000830184612b5f565b92915050565b60006020820190508181036000830152612fe28184612ba7565b905092915050565b6000602082019050818103600083015261300381612c11565b9050919050565b6000602082019050818103600083015261302381612c34565b9050919050565b6000602082019050818103600083015261304381612c57565b9050919050565b6000602082019050818103600083015261306381612c7a565b9050919050565b6000602082019050818103600083015261308381612c9d565b9050919050565b600060208201905081810360008301526130a381612cc0565b9050919050565b600060208201905081810360008301526130c381612ce3565b9050919050565b600060208201905081810360008301526130e381612d06565b9050919050565b6000602082019050818103600083015261310381612d29565b9050919050565b6000602082019050818103600083015261312381612d4c565b9050919050565b6000602082019050818103600083015261314381612d6f565b9050919050565b6000602082019050818103600083015261316381612d92565b9050919050565b6000602082019050818103600083015261318381612db5565b9050919050565b600060208201905081810360008301526131a381612dd8565b9050919050565b600060208201905081810360008301526131c381612dfb565b9050919050565b600060208201905081810360008301526131e381612e1e565b9050919050565b6000602082019050818103600083015261320381612e41565b9050919050565b6000602082019050818103600083015261322381612e64565b9050919050565b6000602082019050818103600083015261324381612e87565b9050919050565b6000602082019050818103600083015261326381612eaa565b9050919050565b6000602082019050818103600083015261328381612ecd565b9050919050565b600060208201905081810360008301526132a381612ef0565b9050919050565b60006020820190506132bf6000830184612f13565b92915050565b60006132cf6132e0565b90506132db828261356d565b919050565b6000604051905090565b600067ffffffffffffffff821115613305576133046136d4565b5b61330e82613721565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613369826134ef565b9150613374836134ef565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156133a9576133a8613618565b5b828201905092915050565b60006133bf826134ef565b91506133ca836134ef565b9250826133da576133d9613647565b5b828204905092915050565b60006133f0826134ef565b91506133fb836134ef565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561343457613433613618565b5b828202905092915050565b600061344a826134ef565b9150613455836134ef565b92508282101561346857613467613618565b5b828203905092915050565b600061347e826134cf565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006134c882613473565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561352657808201518184015260208101905061350b565b83811115613535576000848401525b50505050565b6000600282049050600182168061355357607f821691505b6020821081141561356757613566613676565b5b50919050565b61357682613721565b810181811067ffffffffffffffff82111715613595576135946136d4565b5b80604052505050565b60006135a9826134ef565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156135dc576135db613618565b5b600182019050919050565b60006135f2826134ef565b91506135fd836134ef565b92508261360d5761360c613647565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4d41584c00000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f5a45524f00000000000000000000000000000000000000000000000000000000600082015250565b7f4d41585000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4d41584600000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f5345544800000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4d41584700000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b613c8981613473565b8114613c9457600080fd5b50565b613ca081613485565b8114613cab57600080fd5b50565b613cb781613491565b8114613cc257600080fd5b50565b613cce816134bd565b8114613cd957600080fd5b50565b613ce5816134ef565b8114613cf057600080fd5b5056fea2646970667358221220ba2716a32d6fb21b7582790972eb6217d37582c29abd7eb2b561b346933e4f7964736f6c63430008070033

Verified Source Code Partial Match

Compiler: v0.8.7+commit.e28d00a7 EVM: london Optimization: No
Dogdles.sol 1104 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

/**
 * @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);
    }
}

/**
 * @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;
    }
}

/**
 * @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);
    }
}

/**
 * @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);
            }
        }
    }
}

/**
 * @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);
}

/**
 * @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);
}

/**
 * @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;
    }
}

/**
 * @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;
}

/**
 * @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);
}

/**
 * @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 {}
}

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

contract Dogdles is Ownable, ERC721 {
    uint256 public constant TOTAL_MAX_QTY = 3333;
    uint256 public constant FREE_MINT_MAX_QTY = 333;
    uint256 public constant GIFT_MAX_QTY = 10;
    uint256 public constant TOTAL_MINT_MAX_QTY = TOTAL_MAX_QTY - GIFT_MAX_QTY;
    uint256 public constant PRICE = 0.039 ether;
    uint256 public constant MAX_QTY_PER_WALLET = 15;
    string private _tokenBaseURI;
    uint256 public maxFreeQtyPerWallet = 1;
    uint256 public mintedQty = 0;
    uint256 public giftedQty = 0;
    mapping(address => uint256) public minterToTokenQty;
    address proxyRegistryAddress;

    constructor() ERC721("Dogdles", "DOGS") {
        if(block.chainid == 0) {
            proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1;
        }
        else if(block.chainid == 4) {
            proxyRegistryAddress = 0xF57B2c51dED3A29e6891aba85459d600256Cf317;
        }
    }

    function totalSupply() public view returns (uint256) {
        return mintedQty + giftedQty;
    }

    function mint(uint256 _mintQty) external payable {
        // free
        if (mintedQty < FREE_MINT_MAX_QTY) {
            require(mintedQty + _mintQty <= FREE_MINT_MAX_QTY, "MAXL");
            require(minterToTokenQty[msg.sender] + _mintQty <= maxFreeQtyPerWallet, "MAXF");
        }
        //paid
        else {
            require(mintedQty + _mintQty <= TOTAL_MINT_MAX_QTY, "MAXL");
            require(minterToTokenQty[msg.sender] + _mintQty <= MAX_QTY_PER_WALLET, "MAXP");
            require(msg.value >= PRICE * _mintQty, "SETH");
        }
        uint256 totalSupplyBefore = totalSupply();
        mintedQty += _mintQty;
        minterToTokenQty[msg.sender] += _mintQty;
        for (uint256 i = 0; i < _mintQty; i++) {
            _mint(msg.sender, ++totalSupplyBefore);
        }
    }

    function gift(address[] calldata receivers) external onlyOwner {
        require(giftedQty + receivers.length <= GIFT_MAX_QTY, "MAXG");

        uint256 totalSupplyBefore = totalSupply();
        giftedQty += receivers.length;
        for (uint256 i = 0; i < receivers.length; i++) {
            _mint(receivers[i], ++totalSupplyBefore);
        }
    }

    function withdrawAll() external onlyOwner {
        require(address(this).balance > 0, "ZERO");
        payable(msg.sender).transfer(address(this).balance);
    }

    function setMaxFreeQtyPerTx(uint256 _maxQtyPerTx) external onlyOwner {
        maxFreeQtyPerWallet = _maxQtyPerTx;
    }

    function setProxyRegistryAddress(address proxyAddress) external onlyOwner {
        proxyRegistryAddress = proxyAddress;
    }

    function isApprovedForAll(address owner, address operator)
        public
        view
        override
        returns (bool)
    {
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    function setBaseURI(string calldata URI) external onlyOwner {
        _tokenBaseURI = URI;
    }

    function _baseURI() internal view override(ERC721) returns (string memory) {
        return _tokenBaseURI;
    }
}

Read Contract

FREE_MINT_MAX_QTY 0x9a525d9c → uint256
GIFT_MAX_QTY 0x3354fe34 → uint256
MAX_QTY_PER_WALLET 0xe351da4c → uint256
PRICE 0x8d859f3e → uint256
TOTAL_MAX_QTY 0xdee816e6 → uint256
TOTAL_MINT_MAX_QTY 0x5f717202 → uint256
balanceOf 0x70a08231 → uint256
getApproved 0x081812fc → address
giftedQty 0xbd34fc57 → uint256
isApprovedForAll 0xe985e9c5 → bool
maxFreeQtyPerWallet 0x966784ec → uint256
mintedQty 0x3f5632b0 → uint256
minterToTokenQty 0x88aadd41 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256

Write Contract 13 functions

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

approve 0x095ea7b3
address to
uint256 tokenId
gift 0x163e1e61
address[] receivers
mint 0xa0712d68
uint256 _mintQty
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 URI
setMaxFreeQtyPerTx 0x738a92e8
uint256 _maxQtyPerTx
setProxyRegistryAddress 0xd26ea6c0
address proxyAddress
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdrawAll 0x853828b6
No parameters

Recent Transactions

This address has 1 on-chain transactions, but only 0.8% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →