Address Contract Verified
Address
0xcC67911710677AA75c22B8Da52aE1c9A964cF028
Balance
0.856000 ETH
Nonce
1
Code Size
18415 bytes
Creator
0x1d9535D1...797a at tx 0x5c720933...da7b58
Indexed Transactions
0
Contract Bytecode
18415 bytes
0x6080604052600436106102045760003560e01c80635c975abb11610118578063a22cb465116100a0578063d5abeb011161006f578063d5abeb0114610735578063e2e784d514610760578063e985e9c514610789578063f254933d146107c6578063f2fde38b146107ef57610204565b8063a22cb4651461068f578063b88d4fde146106b8578063c87b56dd146106e1578063d111515d1461071e57610204565b8063715018a6116100e7578063715018a6146105dd5780637ec4a659146105f45780638da5cb5b1461061d57806395d89b4114610648578063a0712d681461067357610204565b80635c975abb1461050d57806362b99ad4146105385780636352211e1461056357806370a08231146105a057610204565b806323b872dd1161019b57806342842e0e1161016a57806342842e0e14610428578063429f87ff14610451578063438b63001461047c57806344a0d68a146104b95780635503a0e8146104e257610204565b806323b872dd1461037f5780632a55205a146103a857806333eeb147146103e65780633ccfd60b1461041157610204565b806313faede6116101d757806313faede6146102d757806316ba10e01461030257806316c38b3c1461032b57806318160ddd1461035457610204565b806301ffc9a71461020957806306fdde0314610246578063081812fc14610271578063095ea7b3146102ae575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b91906130de565b610818565b60405161023d91906138ea565b60405180910390f35b34801561025257600080fd5b5061025b61082a565b6040516102689190613905565b60405180910390f35b34801561027d57600080fd5b5061029860048036038101906102939190613181565b6108bc565b6040516102a591906137fa565b60405180910390f35b3480156102ba57600080fd5b506102d560048036038101906102d09190613071565b610941565b005b3480156102e357600080fd5b506102ec610a59565b6040516102f99190613c07565b60405180910390f35b34801561030e57600080fd5b5061032960048036038101906103249190613138565b610a5f565b005b34801561033757600080fd5b50610352600480360381019061034d91906130b1565b610b4b565b005b34801561036057600080fd5b50610369610be4565b6040516103769190613c07565b60405180910390f35b34801561038b57600080fd5b506103a660048036038101906103a19190612f5b565b610bf1565b005b3480156103b457600080fd5b506103cf60048036038101906103ca91906131ae565b610c51565b6040516103dd929190613861565b60405180910390f35b3480156103f257600080fd5b506103fb610d11565b60405161040891906138ea565b60405180910390f35b34801561041d57600080fd5b50610426610d24565b005b34801561043457600080fd5b5061044f600480360381019061044a9190612f5b565b610e56565b005b34801561045d57600080fd5b50610466610e76565b60405161047391906138c8565b60405180910390f35b34801561048857600080fd5b506104a3600480360381019061049e9190612eee565b610ece565b6040516104b091906138c8565b60405180910390f35b3480156104c557600080fd5b506104e060048036038101906104db9190613181565b610fd4565b005b3480156104ee57600080fd5b506104f761105a565b6040516105049190613905565b60405180910390f35b34801561051957600080fd5b506105226110e8565b60405161052f91906138ea565b60405180910390f35b34801561054457600080fd5b5061054d6110fb565b60405161055a9190613905565b60405180910390f35b34801561056f57600080fd5b5061058a60048036038101906105859190613181565b611189565b60405161059791906137fa565b60405180910390f35b3480156105ac57600080fd5b506105c760048036038101906105c29190612eee565b61123b565b6040516105d49190613c07565b60405180910390f35b3480156105e957600080fd5b506105f26112f3565b005b34801561060057600080fd5b5061061b60048036038101906106169190613138565b61137b565b005b34801561062957600080fd5b50610632611467565b60405161063f91906137fa565b60405180910390f35b34801561065457600080fd5b5061065d611491565b60405161066a9190613905565b60405180910390f35b61068d60048036038101906106889190613181565b611523565b005b34801561069b57600080fd5b506106b660048036038101906106b19190613031565b611720565b005b3480156106c457600080fd5b506106df60048036038101906106da9190612fae565b611736565b005b3480156106ed57600080fd5b5061070860048036038101906107039190613181565b611798565b6040516107159190613905565b60405180910390f35b34801561072a57600080fd5b50610733611842565b005b34801561074157600080fd5b5061074a611931565b6040516107579190613c07565b60405180910390f35b34801561076c57600080fd5b5061078760048036038101906107829190613071565b611937565b005b34801561079557600080fd5b506107b060048036038101906107ab9190612f1b565b6119c1565b6040516107bd91906138ea565b60405180910390f35b3480156107d257600080fd5b506107ed60048036038101906107e89190613071565b611a55565b005b3480156107fb57600080fd5b5061081660048036038101906108119190612eee565b611bf9565b005b600061082382611cf1565b9050919050565b60606000805461083990613f47565b80601f016020809104026020016040519081016040528092919081815260200182805461086590613f47565b80156108b25780601f10610887576101008083540402835291602001916108b2565b820191906000526020600020905b81548152906001019060200180831161089557829003601f168201915b5050505050905090565b60006108c782611d6b565b610906576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fd90613ae7565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061094c82611189565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b490613b67565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109dc611dd7565b73ffffffffffffffffffffffffffffffffffffffff161480610a0b5750610a0a81610a05611dd7565b6119c1565b5b610a4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4190613a67565b60405180910390fd5b610a548383611ddf565b505050565b600b5481565b610a67611dd7565b73ffffffffffffffffffffffffffffffffffffffff16610a85611467565b73ffffffffffffffffffffffffffffffffffffffff1614610adb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad290613b07565b60405180910390fd5b60001515600e60019054906101000a900460ff16151514610b31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2890613bc7565b60405180910390fd5b8060099080519060200190610b47929190612d02565b5050565b610b53611dd7565b73ffffffffffffffffffffffffffffffffffffffff16610b71611467565b73ffffffffffffffffffffffffffffffffffffffff1614610bc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbe90613b07565b60405180910390fd5b80600e60006101000a81548160ff02191690831515021790555050565b6000600d80549050905090565b610c02610bfc611dd7565b82611e98565b610c41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3890613b87565b60405180910390fd5b610c4c838383611f76565b505050565b600080600060076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900462ffffff1662ffffff1662ffffff1681525050905080600001519250612710816020015162ffffff1685610cfd9190613df9565b610d079190613dc8565b9150509250929050565b600e60019054906101000a900460ff1681565b610d2c611dd7565b73ffffffffffffffffffffffffffffffffffffffff16610d4a611467565b73ffffffffffffffffffffffffffffffffffffffff1614610da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9790613b07565b60405180910390fd5b6000610daa611467565b73ffffffffffffffffffffffffffffffffffffffff1647604051610dcd906137e5565b60006040518083038185875af1925050503d8060008114610e0a576040519150601f19603f3d011682016040523d82523d6000602084013e610e0f565b606091505b5050905080610e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4a90613927565b60405180910390fd5b50565b610e7183838360405180602001604052806000815250611736565b505050565b6060600d805480602002602001604051908101604052809291908181526020018280548015610ec457602002820191906000526020600020905b815481526020019060010190808311610eb0575b5050505050905090565b60606000610edb8361123b565b905060008167ffffffffffffffff811115610ef957610ef86140fa565b5b604051908082528060200260200182016040528015610f275781602001602082028036833780820191505090505b5090506000805b8381108015610f3f5750600a548211155b15610fc8576000610f4f83611189565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610fb45782848381518110610f9957610f986140cb565b5b6020026020010181815250508180610fb090613fc4565b9250505b8280610fbf90613fc4565b93505050610f2e565b82945050505050919050565b610fdc611dd7565b73ffffffffffffffffffffffffffffffffffffffff16610ffa611467565b73ffffffffffffffffffffffffffffffffffffffff1614611050576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104790613b07565b60405180910390fd5b80600b8190555050565b6009805461106790613f47565b80601f016020809104026020016040519081016040528092919081815260200182805461109390613f47565b80156110e05780601f106110b5576101008083540402835291602001916110e0565b820191906000526020600020905b8154815290600101906020018083116110c357829003601f168201915b505050505081565b600e60009054906101000a900460ff1681565b6008805461110890613f47565b80601f016020809104026020016040519081016040528092919081815260200182805461113490613f47565b80156111815780601f1061115657610100808354040283529160200191611181565b820191906000526020600020905b81548152906001019060200180831161116457829003601f168201915b505050505081565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611232576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122990613aa7565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156112ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a390613a87565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112fb611dd7565b73ffffffffffffffffffffffffffffffffffffffff16611319611467565b73ffffffffffffffffffffffffffffffffffffffff161461136f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136690613b07565b60405180910390fd5b61137960006121dd565b565b611383611dd7565b73ffffffffffffffffffffffffffffffffffffffff166113a1611467565b73ffffffffffffffffffffffffffffffffffffffff16146113f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ee90613b07565b60405180910390fd5b60001515600e60019054906101000a900460ff1615151461144d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144490613bc7565b60405180910390fd5b8060089080519060200190611463929190612d02565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546114a090613f47565b80601f01602080910402602001604051908101604052809291908181526020018280546114cc90613f47565b80156115195780601f106114ee57610100808354040283529160200191611519565b820191906000526020600020905b8154815290600101906020018083116114fc57829003601f168201915b5050505050905090565b80600a548110611568576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155f90613ba7565b60405180910390fd5b600a54600d80549050106115b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a890613be7565b60405180910390fd5b60001515600e60009054906101000a900460ff16151514611607576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115fe90613b27565b60405180910390fd5b600b54341015611618600b546122a3565b60405160200161162891906137c3565b60405160208183030381529060405290611678576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166f9190613905565b60405180910390fd5b50600061168483612404565b9050600d8190806001815401808255809150506001900390600052602060002001600090919091909150556116b9338261245a565b80600c5414156116df576116d86001826116d39190613d72565b612404565b600c819055505b7fc3e2d1dd1ee00c250026322f6edb6f1858c79dd75d115c5f72da17bafd2a84d23382600d6040516117139392919061388a565b60405180910390a1505050565b61173261172b611dd7565b8383612478565b5050565b611747611741611dd7565b83611e98565b611786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177d90613b87565b60405180910390fd5b611792848484846125e5565b50505050565b60606117a382611d6b565b6117e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d990613b47565b60405180910390fd5b60006117ec612641565b9050600081511161180c576040518060200160405280600081525061183a565b80611816846122a3565b600960405160200161182a93929190613792565b6040516020818303038152906040525b915050919050565b61184a611dd7565b73ffffffffffffffffffffffffffffffffffffffff16611868611467565b73ffffffffffffffffffffffffffffffffffffffff16146118be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b590613b07565b60405180910390fd5b60001515600e60019054906101000a900460ff16151514611914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190b906139e7565b60405180910390fd5b6001600e60016101000a81548160ff021916908315150217905550565b600a5481565b61193f611dd7565b73ffffffffffffffffffffffffffffffffffffffff1661195d611467565b73ffffffffffffffffffffffffffffffffffffffff16146119b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119aa90613b07565b60405180910390fd5b6119bd82826126d3565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b80600a548110611a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9190613ba7565b60405180910390fd5b600a54600d8054905010611ae3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ada90613be7565b60405180910390fd5b611aeb611dd7565b73ffffffffffffffffffffffffffffffffffffffff16611b09611467565b73ffffffffffffffffffffffffffffffffffffffff1614611b5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5690613b07565b60405180910390fd5b600d829080600181540180825580915050600190039060005260206000200160009091909190915055611b92838361245a565b81600c541415611bb857611bb1600183611bac9190613d72565b612404565b600c819055505b7fc3e2d1dd1ee00c250026322f6edb6f1858c79dd75d115c5f72da17bafd2a84d28383600d604051611bec9392919061388a565b60405180910390a1505050565b611c01611dd7565b73ffffffffffffffffffffffffffffffffffffffff16611c1f611467565b73ffffffffffffffffffffffffffffffffffffffff1614611c75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6c90613b07565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ce5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cdc90613987565b60405180910390fd5b611cee816121dd565b50565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d645750611d63826127bd565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611e5283611189565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611ea382611d6b565b611ee2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed990613a47565b60405180910390fd5b6000611eed83611189565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611f5c57508373ffffffffffffffffffffffffffffffffffffffff16611f44846108bc565b73ffffffffffffffffffffffffffffffffffffffff16145b80611f6d5750611f6c81856119c1565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611f9682611189565b73ffffffffffffffffffffffffffffffffffffffff1614611fec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fe3906139a7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561205c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161205390613a07565b60405180910390fd5b61206783838361289f565b612072600082611ddf565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546120c29190613e53565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121199190613d72565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121d88383836128a4565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b606060008214156122eb576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506123ff565b600082905060005b6000821461231d57808061230690613fc4565b915050600a826123169190613dc8565b91506122f3565b60008167ffffffffffffffff811115612339576123386140fa565b5b6040519080825280601f01601f19166020018201604052801561236b5781602001600182028036833780820191505090505b5090505b600085146123f8576001826123849190613e53565b9150600a85612393919061400d565b603061239f9190613d72565b60f81b8183815181106123b5576123b46140cb565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856123f19190613dc8565b945061236f565b8093505050505b919050565b600061240f82611d6b565b15612451576000600c5490505b600a5481101561244f5761242f81611d6b565b61243c5780915050612455565b808061244790613fc4565b91505061241c565b505b8190505b919050565b6124748282604051806020016040528060008152506128a9565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156124e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124de90613a27565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125d891906138ea565b60405180910390a3505050565b6125f0848484611f76565b6125fc84848484612904565b61263b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263290613967565b60405180910390fd5b50505050565b60606008805461265090613f47565b80601f016020809104026020016040519081016040528092919081815260200182805461267c90613f47565b80156126c95780601f1061269e576101008083540402835291602001916126c9565b820191906000526020600020905b8154815290600101906020018083116126ac57829003601f168201915b5050505050905090565b612710811115612718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270f90613947565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff1681526020018262ffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548162ffffff021916908362ffffff1602179055509050505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061288857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612898575061289782612a9b565b5b9050919050565b505050565b505050565b6128b38383612b05565b6128c06000848484612904565b6128ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f690613967565b60405180910390fd5b505050565b60006129258473ffffffffffffffffffffffffffffffffffffffff16612cdf565b15612a8e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261294e611dd7565b8786866040518563ffffffff1660e01b81526004016129709493929190613815565b602060405180830381600087803b15801561298a57600080fd5b505af19250505080156129bb57506040513d601f19601f820116820180604052508101906129b8919061310b565b60015b612a3e573d80600081146129eb576040519150601f19603f3d011682016040523d82523d6000602084013e6129f0565b606091505b50600081511415612a36576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2d90613967565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612a93565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6c90613ac7565b60405180910390fd5b612b7e81611d6b565b15612bbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb5906139c7565b60405180910390fd5b612bca6000838361289f565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c1a9190613d72565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612cdb600083836128a4565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612d0e90613f47565b90600052602060002090601f016020900481019282612d305760008555612d77565b82601f10612d4957805160ff1916838001178555612d77565b82800160010185558215612d77579182015b82811115612d76578251825591602001919060010190612d5b565b5b509050612d849190612d88565b5090565b5b80821115612da1576000816000905550600101612d89565b5090565b6000612db8612db384613c47565b613c22565b905082815260208101848484011115612dd457612dd3614141565b5b612ddf848285613f05565b509392505050565b6000612dfa612df584613c78565b613c22565b905082815260208101848484011115612e1657612e15614141565b5b612e21848285613f05565b509392505050565b600081359050612e388161475d565b92915050565b600081359050612e4d81614774565b92915050565b600081359050612e628161478b565b92915050565b600081519050612e778161478b565b92915050565b600082601f830112612e9257612e9161413c565b5b8135612ea2848260208601612da5565b91505092915050565b600082601f830112612ec057612ebf61413c565b5b8135612ed0848260208601612de7565b91505092915050565b600081359050612ee8816147a2565b92915050565b600060208284031215612f0457612f0361414b565b5b6000612f1284828501612e29565b91505092915050565b60008060408385031215612f3257612f3161414b565b5b6000612f4085828601612e29565b9250506020612f5185828601612e29565b9150509250929050565b600080600060608486031215612f7457612f7361414b565b5b6000612f8286828701612e29565b9350506020612f9386828701612e29565b9250506040612fa486828701612ed9565b9150509250925092565b60008060008060808587031215612fc857612fc761414b565b5b6000612fd687828801612e29565b9450506020612fe787828801612e29565b9350506040612ff887828801612ed9565b925050606085013567ffffffffffffffff81111561301957613018614146565b5b61302587828801612e7d565b91505092959194509250565b600080604083850312156130485761304761414b565b5b600061305685828601612e29565b925050602061306785828601612e3e565b9150509250929050565b600080604083850312156130885761308761414b565b5b600061309685828601612e29565b92505060206130a785828601612ed9565b9150509250929050565b6000602082840312156130c7576130c661414b565b5b60006130d584828501612e3e565b91505092915050565b6000602082840312156130f4576130f361414b565b5b600061310284828501612e53565b91505092915050565b6000602082840312156131215761312061414b565b5b600061312f84828501612e68565b91505092915050565b60006020828403121561314e5761314d61414b565b5b600082013567ffffffffffffffff81111561316c5761316b614146565b5b61317884828501612eab565b91505092915050565b6000602082840312156131975761319661414b565b5b60006131a584828501612ed9565b91505092915050565b600080604083850312156131c5576131c461414b565b5b60006131d385828601612ed9565b92505060206131e485828601612ed9565b9150509250929050565b60006131fa8383613774565b60208301905092915050565b61320f81613e91565b82525050565b600061322082613ce3565b61322a8185613d29565b935061323583613ca9565b8060005b8381101561326657815161324d88826131ee565b975061325883613d0f565b925050600181019050613239565b5085935050505092915050565b600061327e82613cee565b6132888185613d29565b935061329383613cb9565b8060005b838110156132cb576132a882614129565b6132b288826131ee565b97506132bd83613d1c565b925050600181019050613297565b5085935050505092915050565b6132e181613ea3565b82525050565b60006132f282613cf9565b6132fc8185613d3a565b935061330c818560208601613f14565b61331581614150565b840191505092915050565b600061332b82613d04565b6133358185613d56565b9350613345818560208601613f14565b61334e81614150565b840191505092915050565b600061336482613d04565b61336e8185613d67565b935061337e818560208601613f14565b80840191505092915050565b6000815461339781613f47565b6133a18186613d67565b945060018216600081146133bc57600181146133cd57613400565b60ff19831686528186019350613400565b6133d685613cce565b60005b838110156133f8578154818901526001820191506020810190506133d9565b838801955050505b50505092915050565b6000613416601483613d56565b91506134218261416e565b602082019050919050565b6000613439601a83613d56565b915061344482614197565b602082019050919050565b600061345c603283613d56565b9150613467826141c0565b604082019050919050565b600061347f602683613d56565b915061348a8261420f565b604082019050919050565b60006134a2602583613d56565b91506134ad8261425e565b604082019050919050565b60006134c5601c83613d56565b91506134d0826142ad565b602082019050919050565b60006134e8601b83613d56565b91506134f3826142d6565b602082019050919050565b600061350b602483613d56565b9150613516826142ff565b604082019050919050565b600061352e601983613d56565b91506135398261434e565b602082019050919050565b6000613551602c83613d56565b915061355c82614377565b604082019050919050565b6000613574603883613d56565b915061357f826143c6565b604082019050919050565b6000613597602a83613d56565b91506135a282614415565b604082019050919050565b60006135ba602983613d56565b91506135c582614464565b604082019050919050565b60006135dd602083613d56565b91506135e8826144b3565b602082019050919050565b6000613600602183613d67565b915061360b826144dc565b602182019050919050565b6000613623602c83613d56565b915061362e8261452b565b604082019050919050565b6000613646602083613d56565b91506136518261457a565b602082019050919050565b6000613669601783613d56565b9150613674826145a3565b602082019050919050565b600061368c602f83613d56565b9150613697826145cc565b604082019050919050565b60006136af602183613d56565b91506136ba8261461b565b604082019050919050565b60006136d2600083613d4b565b91506136dd8261466a565b600082019050919050565b60006136f5603183613d56565b91506137008261466d565b604082019050919050565b6000613718602783613d56565b9150613723826146bc565b604082019050919050565b600061373b601f83613d56565b91506137468261470b565b602082019050919050565b600061375e601d83613d56565b915061376982614734565b602082019050919050565b61377d81613efb565b82525050565b61378c81613efb565b82525050565b600061379e8286613359565b91506137aa8285613359565b91506137b6828461338a565b9150819050949350505050565b60006137ce826135f3565b91506137da8284613359565b915081905092915050565b60006137f0826136c5565b9150819050919050565b600060208201905061380f6000830184613206565b92915050565b600060808201905061382a6000830187613206565b6138376020830186613206565b6138446040830185613783565b818103606083015261385681846132e7565b905095945050505050565b60006040820190506138766000830185613206565b6138836020830184613783565b9392505050565b600060608201905061389f6000830186613206565b6138ac6020830185613783565b81810360408301526138be8184613273565b9050949350505050565b600060208201905081810360008301526138e28184613215565b905092915050565b60006020820190506138ff60008301846132d8565b92915050565b6000602082019050818103600083015261391f8184613320565b905092915050565b6000602082019050818103600083015261394081613409565b9050919050565b600060208201905081810360008301526139608161342c565b9050919050565b600060208201905081810360008301526139808161344f565b9050919050565b600060208201905081810360008301526139a081613472565b9050919050565b600060208201905081810360008301526139c081613495565b9050919050565b600060208201905081810360008301526139e0816134b8565b9050919050565b60006020820190508181036000830152613a00816134db565b9050919050565b60006020820190508181036000830152613a20816134fe565b9050919050565b60006020820190508181036000830152613a4081613521565b9050919050565b60006020820190508181036000830152613a6081613544565b9050919050565b60006020820190508181036000830152613a8081613567565b9050919050565b60006020820190508181036000830152613aa08161358a565b9050919050565b60006020820190508181036000830152613ac0816135ad565b9050919050565b60006020820190508181036000830152613ae0816135d0565b9050919050565b60006020820190508181036000830152613b0081613616565b9050919050565b60006020820190508181036000830152613b2081613639565b9050919050565b60006020820190508181036000830152613b408161365c565b9050919050565b60006020820190508181036000830152613b608161367f565b9050919050565b60006020820190508181036000830152613b80816136a2565b9050919050565b60006020820190508181036000830152613ba0816136e8565b9050919050565b60006020820190508181036000830152613bc08161370b565b9050919050565b60006020820190508181036000830152613be08161372e565b9050919050565b60006020820190508181036000830152613c0081613751565b9050919050565b6000602082019050613c1c6000830184613783565b92915050565b6000613c2c613c3d565b9050613c388282613f93565b919050565b6000604051905090565b600067ffffffffffffffff821115613c6257613c616140fa565b5b613c6b82614150565b9050602081019050919050565b600067ffffffffffffffff821115613c9357613c926140fa565b5b613c9c82614150565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081549050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000600182019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613d7d82613efb565b9150613d8883613efb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613dbd57613dbc61403e565b5b828201905092915050565b6000613dd382613efb565b9150613dde83613efb565b925082613dee57613ded61406d565b5b828204905092915050565b6000613e0482613efb565b9150613e0f83613efb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613e4857613e4761403e565b5b828202905092915050565b6000613e5e82613efb565b9150613e6983613efb565b925082821015613e7c57613e7b61403e565b5b828203905092915050565b6000819050919050565b6000613e9c82613edb565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613f32578082015181840152602081019050613f17565b83811115613f41576000848401525b50505050565b60006002820490506001821680613f5f57607f821691505b60208210811415613f7357613f7261409c565b5b50919050565b6000613f8c613f8783614161565b613e87565b9050919050565b613f9c82614150565b810181811067ffffffffffffffff82111715613fbb57613fba6140fa565b5b80604052505050565b6000613fcf82613efb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140025761400161403e565b5b600182019050919050565b600061401882613efb565b915061402383613efb565b9250826140335761403261406d565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006141358254613f79565b9050919050565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160001c9050919050565b7f7769746864726177206973206661696c65642121000000000000000000000000600082015250565b7f45524332393831526f79616c746965733a20546f6f2068696768000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4d6574616461746120696120616c72656164792066726f7a656e210000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f5468652076616c7565206d757374206265206c696b653a2056414c5545203e3d60008201527f2000000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f54686520636f6e74726163742069732070617573656421000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f54686520746f6b656e4964206d757374206c6f776572207468616e206d61782060008201527f737570706c792e00000000000000000000000000000000000000000000000000602082015250565b7f54686520636f6e747261637420697320616c72656164792066726f7a656e2e00600082015250565b7f416c6c204e465473207765726520616c7265616479206d696e7465642e000000600082015250565b61476681613e91565b811461477157600080fd5b50565b61477d81613ea3565b811461478857600080fd5b50565b61479481613eaf565b811461479f57600080fd5b50565b6147ab81613efb565b81146147b657600080fd5b5056fea264697066735822122002417d00b864833e57fc9431f89f1c249cf974a7958697195a9750f64af4ea1664736f6c63430008070033
Verified Source Code Full Match
Compiler: v0.8.7+commit.e28d00a7
EVM: london
Optimization: No
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
Strings.sol 67 lines
// SPDX-License-Identifier: MIT
// 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);
}
}
ARMC_kitsune.sol 277 lines
// SPDX-License-Identifier: MIT
/*
█████╗ ██████╗ ███╗ ███╗ ██████╗ ██╗ ██╗██╗███████╗████████╗██╗ ██╗███╗ ██╗███████╗
██╔══██╗██╔══██╗████╗ ████║██╔════╝ ██║ ██╔╝██║██╔════╝╚══██╔══╝██║ ██║████╗ ██║██╔════╝
███████║██████╔╝██╔████╔██║██║ █████╔╝ ██║███████╗ ██║ ██║ ██║██╔██╗ ██║█████╗
██╔══██║██╔══██╗██║╚██╔╝██║██║ ██╔═██╗ ██║╚════██║ ██║ ██║ ██║██║╚██╗██║██╔══╝
██║ ██║██║ ██║██║ ╚═╝ ██║╚██████╗ ██║ ██╗██║███████║ ██║ ╚██████╔╝██║ ╚████║███████╗
╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM9MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMB>(~MMMMMMMMMMMMMM3<MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM8:;::~dMMMMMMMMMMM@:::(MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM8:::::~~JMMMMMMMMMM5:::::JMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMB<~:~(Jsc~(MMMMMMMMMt~~((::_dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM5_~~(zuuZ$~(MMMMMMMMF_.(uuo_~(MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM>.~.(zuuZZt_`MMMMMMM#_.(zuuun~~JMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM#~..(zvvzVV7! `(T"""""^ .OwzuuI~_JMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMM@~~..<<!__.````````````````` ~?zvI._JMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMM#:~_ ` ...`...```````````````````` _MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMM>~.........`...````````````````````` dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMF:~~~..x........````````````````````.`.(MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMmHHkA&J-.XHJ-.......``````` ,.,```````....MMWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMH@HHfyyo(HWZX&.~...J{````.X%`jn,````1,..(uX#yyWHNMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMM#;dggHWyZkHHWXZZX&(WXn.``,OOO.JOO%```,u.(XuXBZyWMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMD;<[email protected]?? .<~` ` wV(uuX0zXXNMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMM>::;::<7WHkkuzdpWWXdbp$..````` ``.XtXXXWvvwMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMM#;;:;:::~:dgHkkzzWVSdfyXzw+.````````.wvzXXXzvwdMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMM#;:::::~~(+YTWHkkXXWkXkXZUkw{``````.XvXXZZXXUNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMM@;::?h-~(#<~~~~~jWkuXWbkXWXkI``````(yXXX0z2(:MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMb;;::X$JHb<::::(HX4HkuXWWWXu}``````(XyXUuuZ_+MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMb>>;+WrzWNx<;;;?MmH@(TWkkkk!```` ``` jkV=?3(IMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMM@>;;XJp/7WMHmaaggga&&++dMM#l````````` TMY"7=(MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMM@>>>dhXWhJJJ.~~_~.~~..~_?TZZl.````````.I...JSMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMM#?>>>7Hx7YYYT5-ze---_.~~~~~?4{..``````` ~.wX>MHWMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMNz???>>?Ukk+:~_((THWWX+~~~~~......```````.wuuWWWMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMb???>>;;?HWHHWfVW&XVXzl~~~~~~~.....``````.OzzXMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMM#==1ggmmagMMYYTWkkWkkzv<(XWX<~~~...```````.OwXMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMs=dNHMM#MMN+:;;?HH97WXwXWWXl~~~~...`````` ,XdMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMNzvMNHMMMMMMN,<dh/<;>?Wkkk$;;<___(Np-....JtNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMM#lzHNHMMMMMMMMMMMNJ>???=?>>??1z1+<(<:::~:(MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMKlllzXMMkpMMMMMMMMNJ1llz??=ltrwOz1++<>>;dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMROOl==OTMHWWMMMMMMMMNgQAOz=OwXuXrOu&&jMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNmwOllllZHNWMMMMMMMMMMMKz;WkkqkqpW6iMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNmwOtll=vHHWMMMMHMMMMMkukqkkW>(jNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNkwOOl?vTHM#>_dHpppbbkkkKl<_MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNmkwOz?JMI+:dpppbbkkkWHv>jMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM@@@@NmkwzdHy+JpbbbkkkbqkfWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMM@@@H@@H@H@H@H@@MHkwMNQkkQQHHHYYYWMM@@@@HMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMM@M@H@HH@HH@@H@H@H@HH@H@@HmUMMBI++&&&ugH@@@@@@@@@@HMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMM@@HH@@H@H@@HH@H@HH@HH@HHHH@HH@MHHHHM@H@@H@H@H@@@@@@@@@MMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMH@HHHHHH@H@HH@HH@H@HH@HHH@HHHHHHHHHHHHH@HH@@H@@H@H@@@@@@@MMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMH@H@@HHH@HH@H@HHHHHHHHHHHHHHHHHHHHHHHHH@HH@@H@@@@H@@H@@gMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMM@HH@@HHH@HHH@HH@HHHHHHHHHHHHHHHHHHHHHH@@H@@H@@H@@H@@MMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMM@HH@HH@HH@H@HH@HHHHHHHHHH#H#HHHHHHH@H@@H@@H@@@MHNMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMNMM@@H@HHHHH@HHH@HHHHHHHHH#HHHHHHHHHH@@@@MHNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNMMH@MHMMHHHHHHHHHHHHHMMHHM@MNNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
*/
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./libraries/ERC2981ContractWideRoyalties.sol";
contract ARMC_kitsune is ERC721, Ownable, ERC2981ContractWideRoyalties {
using Strings for uint256;
string public uriPrefix = "";
string public uriSuffix = ".json";
uint256 public maxSupply = 1111;
uint256 public cost = 0.05 ether;
uint256 private miniMintableTokenId = 0;
uint256[] private mintedTokenIdList;
bool public paused = true;
bool public isFrozen = false;
event NewNFTMinted(
address sender,
uint256 tokenId,
uint256[] mintedTokenIdList
);
constructor() ERC721("ARMC kitsune", "ARMCK") {}
modifier mintCompliance(uint256 _tokenId) {
require(
_tokenId < maxSupply,
"The tokenId must lower than max supply."
);
require(
mintedTokenIdList.length < maxSupply,
"All NFTs were already minted."
);
_;
}
modifier whenNotFrozen() {
require(isFrozen == false, "The contract is already frozen.");
_;
}
function freezeMetadata() external onlyOwner {
require(isFrozen == false, "Metadata ia already frozen!");
isFrozen = true;
}
function totalSupply() public view returns (uint256) {
return mintedTokenIdList.length;
}
function mintedSalesTokenIdList() external view returns (uint256[] memory) {
return mintedTokenIdList;
}
function getMintableTokenId(uint256 _tokenId)
private
view
returns (uint256)
{
if (_exists(_tokenId)) {
for (
uint256 tokenId = miniMintableTokenId;
tokenId < maxSupply;
tokenId++
) {
if (!_exists(tokenId)) return (tokenId);
}
}
return (_tokenId);
}
/// @inheritdoc ERC165
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC721, ERC2981Base)
returns (bool)
{
return super.supportsInterface(interfaceId);
}
function mint(uint256 _tokenId) public payable mintCompliance(_tokenId) {
require(paused == false, "The contract is paused!");
require(
msg.value >= cost,
string(
abi.encodePacked(
"The value must be like: VALUE >= ",
cost.toString()
)
)
);
uint256 mintableTokenId = getMintableTokenId(_tokenId);
mintedTokenIdList.push(mintableTokenId);
_safeMint(msg.sender, mintableTokenId);
if (miniMintableTokenId == mintableTokenId)
miniMintableTokenId = getMintableTokenId(mintableTokenId + 1);
emit NewNFTMinted(msg.sender, mintableTokenId, mintedTokenIdList);
}
function mintForAddress(address _receiver, uint256 _tokenId)
public
mintCompliance(_tokenId)
onlyOwner
{
mintedTokenIdList.push(_tokenId);
_safeMint(_receiver, _tokenId);
if (miniMintableTokenId == _tokenId)
miniMintableTokenId = getMintableTokenId(_tokenId + 1);
emit NewNFTMinted(_receiver, _tokenId, mintedTokenIdList);
}
function walletOfOwner(address _owner)
public
view
returns (uint256[] memory)
{
uint256 ownerTokenCount = balanceOf(_owner);
uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
uint256 currentTokenId = 0;
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"
);
string memory currentBaseURI = _baseURI();
return
bytes(currentBaseURI).length > 0
? string(
abi.encodePacked(
currentBaseURI,
_tokenId.toString(),
uriSuffix
)
)
: "";
}
function setUriPrefix(string memory _uriPrefix)
public
onlyOwner
whenNotFrozen
{
uriPrefix = _uriPrefix;
}
function setUriSuffix(string memory _uriSuffix)
public
onlyOwner
whenNotFrozen
{
uriSuffix = _uriSuffix;
}
function setPaused(bool _state) public onlyOwner {
paused = _state;
}
function setCost(uint256 _newCost) public onlyOwner {
cost = _newCost;
}
function setRoyaltyInfo(address _royaltyAddress, uint256 _percentage)
public
onlyOwner
{
_setRoyalties(_royaltyAddress, _percentage);
}
function withdraw() public onlyOwner {
(bool os, ) = payable(owner()).call{value: address(this).balance}("");
require(os, "withdraw is failed!!");
}
function _baseURI() internal view virtual override returns (string memory) {
return uriPrefix;
}
}
ERC2981ContractWideRoyalties.sol 32 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';
import './ERC2981Base.sol';
/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
/// @dev This implementation has the same royalties for each and every tokens
abstract contract ERC2981ContractWideRoyalties is ERC2981Base {
RoyaltyInfo private _royalties;
/// @dev Sets token royalties
/// @param recipient recipient of the royalties
/// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0)
function _setRoyalties(address recipient, uint256 value) internal {
require(value <= 10000, 'ERC2981Royalties: Too high');
_royalties = RoyaltyInfo(recipient, uint24(value));
}
/// @inheritdoc IERC2981Royalties
function royaltyInfo(uint256, uint256 value)
external
view
override
returns (address receiver, uint256 royaltyAmount)
{
RoyaltyInfo memory royalties = _royalties;
receiver = royalties.recipient;
royaltyAmount = (value * royalties.amount) / 10000;
}
}
IERC721Receiver.sol 27 lines
// SPDX-License-Identifier: MIT
// 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);
}
Address.sol 222 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @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
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 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);
}
}
}
}
ERC165.sol 29 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @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;
}
}
ERC2981Base.sol 27 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';
import './IERC2981Royalties.sol';
/// @dev This is a contract used to add ERC2981 support to ERC721 and 1155
abstract contract ERC2981Base is ERC165, IERC2981Royalties {
struct RoyaltyInfo {
address recipient;
uint24 amount;
}
/// @inheritdoc ERC165
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override
returns (bool)
{
return
interfaceId == type(IERC2981Royalties).interfaceId ||
super.supportsInterface(interfaceId);
}
}
ERC721.sol 447 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";
/**
* @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);
_afterTokenTransfer(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);
_afterTokenTransfer(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 from incorrect owner");
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);
_afterTokenTransfer(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 {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
IERC721Metadata.sol 27 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @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);
}
IERC165.sol 25 lines
// SPDX-License-Identifier: MIT
// 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);
}
IERC2981Royalties.sol 17 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @title IERC2981Royalties
/// @dev Interface for the ERC2981 - Token Royalty standard
interface IERC2981Royalties {
/// @notice Called with the sale price to determine how much royalty
// is owed and to whom.
/// @param _tokenId - the NFT asset queried for royalty information
/// @param _value - the sale price of the NFT asset specified by _tokenId
/// @return _receiver - address of who should be sent the royalty payment
/// @return _royaltyAmount - the royalty payment amount for value sale price
function royaltyInfo(uint256 _tokenId, uint256 _value)
external
view
returns (address _receiver, uint256 _royaltyAmount);
}
Ownable.sol 76 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
IERC721.sol 143 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/IERC165.sol";
/**
* @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;
}
Read Contract
balanceOf 0x70a08231 → uint256
cost 0x13faede6 → uint256
getApproved 0x081812fc → address
isApprovedForAll 0xe985e9c5 → bool
isFrozen 0x33eeb147 → bool
maxSupply 0xd5abeb01 → uint256
mintedSalesTokenIdList 0x429f87ff → uint256[]
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
royaltyInfo 0x2a55205a → address, uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
uriPrefix 0x62b99ad4 → string
uriSuffix 0x5503a0e8 → string
walletOfOwner 0x438b6300 → uint256[]
Write Contract 16 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address to
uint256 tokenId
freezeMetadata 0xd111515d
No parameters
mint 0xa0712d68
uint256 _tokenId
mintForAddress 0xf254933d
address _receiver
uint256 _tokenId
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 _newCost
setPaused 0x16c38b3c
bool _state
setRoyaltyInfo 0xe2e784d5
address _royaltyAddress
uint256 _percentage
setUriPrefix 0x7ec4a659
string _uriPrefix
setUriSuffix 0x16ba10e0
string _uriSuffix
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters
Token Balances (1)
View Transfers →Recent Transactions
No transactions found for this address