Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xf91523Bc0ffA151ABd971f1b11D2567d4167DB3E
Balance 0.385000 ETH
Nonce 1
Code Size 23084 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

23084 bytes
0x60806040526004361061027d5760003560e01c806355367ba91161014f578063a22cb465116100c1578063d158e70e1161007a578063d158e70e14610945578063deb59b3b1461096e578063e86fe2bb14610999578063e985e9c5146109b5578063ec1c2754146109f2578063f2fde38b14610a095761027d565b8063a22cb4651461085a578063b499315214610883578063b66a0e5d1461089f578063b88d4fde146108b6578063c87b56dd146108df578063cd22ad1a1461091c5761027d565b8063715018a611610113578063715018a61461078f578063775b9c13146107a6578063853828b6146107cf5780638da5cb5b146107d957806395d89b4114610804578063993cb9021461082f5761027d565b806355367ba91461069857806355f804b3146106af5780636352211e146106d85780637031a89f1461071557806370a08231146107525761027d565b8063338dbf59116101f357806348447e09116101ac57806348447e091461058a5780634a3cd688146105b35780634d5963f4146105dc5780634f02c420146106195780634fd47f2014610644578063553144d31461065b5761027d565b8063338dbf591461049057806335d62f9e146104a7578063378e56bd146104be5780633efaa682146104fb578063402794831461053857806342842e0e146105615761027d565b80630da45188116102455780630da451881461037b5780631c8b232d146103b85780631d18404e146103e357806323b872dd1461040e5780632a5ad594146104375780632db11544146104745761027d565b806301ffc9a714610282578063051d0b04146102bf57806306fdde03146102ea578063081812fc14610315578063095ea7b314610352575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190614330565b610a32565b6040516102b69190614a4b565b60405180910390f35b3480156102cb57600080fd5b506102d4610b14565b6040516102e19190614a4b565b60405180910390f35b3480156102f657600080fd5b506102ff610b27565b60405161030c9190614a66565b60405180910390f35b34801561032157600080fd5b5061033c600480360381019061033791906143d3565b610bb9565b60405161034991906149c2565b60405180910390f35b34801561035e57600080fd5b506103796004803603810190610374919061410b565b610c3e565b005b34801561038757600080fd5b506103a2600480360381019061039d9190613f88565b610d56565b6040516103af9190614a29565b60405180910390f35b3480156103c457600080fd5b506103cd610f02565b6040516103da9190614a4b565b60405180910390f35b3480156103ef57600080fd5b506103f8610f15565b6040516104059190614dc8565b60405180910390f35b34801561041a57600080fd5b5061043560048036038101906104309190613ff5565b610f1b565b005b34801561044357600080fd5b5061045e60048036038101906104599190613f88565b610f7b565b60405161046b9190614de3565b60405180910390f35b61048e600480360381019061048991906143d3565b610fd1565b005b34801561049c57600080fd5b506104a56111cd565b005b3480156104b357600080fd5b506104bc611266565b005b3480156104ca57600080fd5b506104e560048036038101906104e09190613f88565b6112ff565b6040516104f29190614de3565b60405180910390f35b34801561050757600080fd5b50610522600480360381019061051d9190613f88565b611355565b60405161052f9190614dc8565b60405180910390f35b34801561054457600080fd5b5061055f600480360381019061055a919061414b565b61139e565b005b34801561056d57600080fd5b5061058860048036038101906105839190613ff5565b6114d1565b005b34801561059657600080fd5b506105b160048036038101906105ac919061429a565b6114f1565b005b3480156105bf57600080fd5b506105da60048036038101906105d591906143d3565b6116d8565b005b3480156105e857600080fd5b5061060360048036038101906105fe9190613f88565b611809565b6040516106109190614a29565b60405180910390f35b34801561062557600080fd5b5061062e611a3f565b60405161063b9190614dc8565b60405180910390f35b34801561065057600080fd5b50610659611a45565b005b34801561066757600080fd5b50610682600480360381019061067d91906143d3565b611c57565b60405161068f9190614a4b565b60405180910390f35b3480156106a457600080fd5b506106ad611c81565b005b3480156106bb57600080fd5b506106d660048036038101906106d1919061438a565b611d1a565b005b3480156106e457600080fd5b506106ff60048036038101906106fa91906143d3565b611db0565b60405161070c91906149c2565b60405180910390f35b34801561072157600080fd5b5061073c600480360381019061073791906143d3565b611e62565b6040516107499190614a4b565b60405180910390f35b34801561075e57600080fd5b5061077960048036038101906107749190613f88565b611e82565b6040516107869190614dc8565b60405180910390f35b34801561079b57600080fd5b506107a4611f3a565b005b3480156107b257600080fd5b506107cd60048036038101906107c8919061414b565b611fc2565b005b6107d76120e4565b005b3480156107e557600080fd5b506107ee6121a0565b6040516107fb91906149c2565b60405180910390f35b34801561081057600080fd5b506108196121c9565b6040516108269190614a66565b60405180910390f35b34801561083b57600080fd5b5061084461225b565b60405161085191906149c2565b60405180910390f35b34801561086657600080fd5b50610881600480360381019061087c91906140cb565b612273565b005b61089d60048036038101906108989190614400565b612289565b005b3480156108ab57600080fd5b506108b4612591565b005b3480156108c257600080fd5b506108dd60048036038101906108d89190614048565b61262a565b005b3480156108eb57600080fd5b50610906600480360381019061090191906143d3565b61268c565b6040516109139190614a66565b60405180910390f35b34801561092857600080fd5b50610943600480360381019061093e9190614198565b6126c0565b005b34801561095157600080fd5b5061096c60048036038101906109679190614219565b6127e8565b005b34801561097a57600080fd5b50610983612932565b6040516109909190614dc8565b60405180910390f35b6109b360048036038101906109ae91906143d3565b612938565b005b3480156109c157600080fd5b506109dc60048036038101906109d79190613fb5565b612bf7565b6040516109e99190614a4b565b60405180910390f35b3480156109fe57600080fd5b50610a07612c8b565b005b348015610a1557600080fd5b50610a306004803603810190610a2b9190613f88565b612df9565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610afd57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b0d5750610b0c82612ef1565b5b9050919050565b600760019054906101000a900460ff1681565b606060018054610b369061514e565b80601f0160208091040260200160405190810160405280929190818152602001828054610b629061514e565b8015610baf5780601f10610b8457610100808354040283529160200191610baf565b820191906000526020600020905b815481529060010190602001808311610b9257829003601f168201915b5050505050905090565b6000610bc482612f5b565b610c03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bfa90614ce8565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c4982611db0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb190614d48565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cd9612fc7565b73ffffffffffffffffffffffffffffffffffffffff161480610d085750610d0781610d02612fc7565b612bf7565b5b610d47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3e90614c28565b60405180910390fd5b610d518383612fcf565b505050565b60606000805b601054811015610def578373ffffffffffffffffffffffffffffffffffffffff16600a600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610ddc578180610dd8906151b1565b9250505b8080610de7906151b1565b915050610d5c565b5060008167ffffffffffffffff811115610e0c57610e0b6152e7565b5b604051908082528060200260200182016040528015610e3a5781602001602082028036833780820191505090505b5090506000915060005b601054811015610ef7578473ffffffffffffffffffffffffffffffffffffffff16600a600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610ee45780828481518110610ec957610ec86152b8565b5b6020026020010181815250508280610ee0906151b1565b9350505b8080610eef906151b1565b915050610e44565b508092505050919050565b600760009054906101000a900460ff1681565b610a1181565b610f2c610f26612fc7565b82613088565b610f6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6290614d88565b60405180910390fd5b610f76838383613166565b505050565b6000600960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b61275d610a11600e54610fe49190614f42565b10611024576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101b90614d68565b60405180910390fd5b60011515600760009054906101000a900460ff1615151461107a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107190614c08565b60405180910390fd5b600b81106110bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110b490614da8565b60405180910390fd5b61275d81610a11600e546110d19190614f42565b6110db9190614f42565b111561111c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111390614b68565b60405180910390fd5b806701118f178fb480006111309190614fc9565b341015611172576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116990614ca8565b60405180910390fd5b60005b818110156111c9576000610a11600e5461118f9190614f42565b905061119b33826133cd565b6001600e60008282546111ae9190614f42565b925050819055505080806111c1906151b1565b915050611175565b5050565b6111d5612fc7565b73ffffffffffffffffffffffffffffffffffffffff166111f36121a0565b73ffffffffffffffffffffffffffffffffffffffff1614611249576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161124090614d08565b60405180910390fd5b6001600760016101000a81548160ff021916908315150217905550565b61126e612fc7565b73ffffffffffffffffffffffffffffffffffffffff1661128c6121a0565b73ffffffffffffffffffffffffffffffffffffffff16146112e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112d990614d08565b60405180910390fd5b6000600760016101000a81548160ff021916908315150217905550565b6000600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6113a6612fc7565b73ffffffffffffffffffffffffffffffffffffffff166113c46121a0565b73ffffffffffffffffffffffffffffffffffffffff161461141a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141190614d08565b60405180910390fd5b60005b828290508110156114cc5782828281811061143b5761143a6152b8565b5b90506020020160208101906114509190613f88565b600a600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601060008154809291906114b4906151b1565b919050555080806114c4906151b1565b91505061141d565b505050565b6114ec8383836040518060200160405280600081525061262a565b505050565b60006114fc33611809565b905060008383905090506000825190506001811015611550576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154790614ac8565b60405180910390fd5b60011515600760019054906101000a900460ff161515146115a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159d90614c08565b60405180910390fd5b60006001905060005b83811015611641576000805b8483101561161a578888848181106115d6576115d56152b8565b5b905060200201358782815181106115f0576115ef6152b8565b5b60200260200101511415611607576001915061161a565b8080611612906151b1565b9150506115bb565b5060001515811515141561162d57600092505b508080611639906151b1565b9150506115af565b5080156116d05760005b838110156116ce576116763388888481811061166a576116696152b8565b5b905060200201356133cd565b6001600c600089898581811061168f5761168e6152b8565b5b90506020020135815260200190815260200160002060006101000a81548160ff02191690831515021790555080806116c6906151b1565b91505061164b565b505b505050505050565b6116e0612fc7565b73ffffffffffffffffffffffffffffffffffffffff166116fe6121a0565b73ffffffffffffffffffffffffffffffffffffffff1614611754576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174b90614d08565b60405180910390fd5b61275d610a11600e546117679190614f42565b106117a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179e90614b68565b60405180910390fd5b60005b81811015611805576000610a11600e546117c49190614f42565b90506117d76117d16121a0565b826133cd565b6001600e60008282546117ea9190614f42565b925050819055505080806117fd906151b1565b9150506117aa565b5050565b6060600073bea8123277142de42571f1fac045225a1d34797773ffffffffffffffffffffffffffffffffffffffff16638462151c846040518263ffffffff1660e01b815260040161185a91906149c2565b60006040518083038186803b15801561187257600080fd5b505afa158015611886573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906118af91906142e7565b90506000815190506000805b828110156119325760008482815181106118d8576118d76152b8565b5b6020026020010151905060001515600c600083815260200190815260200160002060009054906101000a900460ff161515141561191e57828061191a906151b1565b9350505b50808061192a906151b1565b9150506118bb565b5060008167ffffffffffffffff81111561194f5761194e6152e7565b5b60405190808252806020026020018201604052801561197d5781602001602082028036833780820191505090505b5090506000915060005b83811015611a325760001515600c60008784815181106119aa576119a96152b8565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff1615151415611a1f578481815181106119e9576119e86152b8565b5b6020026020010151828481518110611a0457611a036152b8565b5b6020026020010181815250508280611a1b906151b1565b9350505b8080611a2a906151b1565b915050611987565b5080945050505050919050565b600e5481565b6000600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905060011515600760019054906101000a900460ff16151514611aec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae390614a88565b60405180910390fd5b60008160ff1611611b32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2990614bc8565b60405180910390fd5b61012d8160ff16600f54611b469190614f42565b10611b86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7d90614d28565b60405180910390fd5b60005b8160ff16811015611be05760006108e5600f54611ba69190614f42565b9050611bb233826133cd565b6001600f6000828254611bc59190614f42565b92505081905550508080611bd8906151b1565b915050611b89565b5080600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900460ff16611c3c9190615057565b92506101000a81548160ff021916908360ff16021790555050565b6000600c600083815260200190815260200160002060009054906101000a900460ff169050919050565b611c89612fc7565b73ffffffffffffffffffffffffffffffffffffffff16611ca76121a0565b73ffffffffffffffffffffffffffffffffffffffff1614611cfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf490614d08565b60405180910390fd5b6000600760006101000a81548160ff021916908315150217905550565b611d22612fc7565b73ffffffffffffffffffffffffffffffffffffffff16611d406121a0565b73ffffffffffffffffffffffffffffffffffffffff1614611d96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8d90614d08565b60405180910390fd5b80600d9080519060200190611dac929190613bd2565b5050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611e59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5090614c88565b60405180910390fd5b80915050919050565b600c6020528060005260406000206000915054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ef3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eea90614c68565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611f42612fc7565b73ffffffffffffffffffffffffffffffffffffffff16611f606121a0565b73ffffffffffffffffffffffffffffffffffffffff1614611fb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fad90614d08565b60405180910390fd5b611fc060006133eb565b565b611fca612fc7565b73ffffffffffffffffffffffffffffffffffffffff16611fe86121a0565b73ffffffffffffffffffffffffffffffffffffffff161461203e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203590614d08565b60405180910390fd5b60005b828290508110156120df57600260096000858585818110612065576120646152b8565b5b905060200201602081019061207a9190613f88565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff16021790555080806120d7906151b1565b915050612041565b505050565b6120ec612fc7565b73ffffffffffffffffffffffffffffffffffffffff1661210a6121a0565b73ffffffffffffffffffffffffffffffffffffffff1614612160576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215790614d08565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505061219e57600080fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546121d89061514e565b80601f01602080910402602001604051908101604052809291908181526020018280546122049061514e565b80156122515780601f1061222657610100808354040283529160200191612251565b820191906000526020600020905b81548152906001019060200180831161223457829003601f168201915b5050505050905090565b73bea8123277142de42571f1fac045225a1d34797781565b61228561227e612fc7565b83836134af565b5050565b60011515600760019054906101000a900460ff161515146122df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d690614a88565b60405180910390fd5b61275d8160ff16610a11600e546122f69190614f42565b6123009190614f42565b1115612341576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233890614b68565b60405180910390fd5b8060ff1666f8b0a10e4700006123579190614fc9565b341015612399576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239090614ca8565b60405180910390fd5b6000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff161161242b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242290614c48565b60405180910390fd5b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff168160ff1611156124c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b790614aa8565b60405180910390fd5b60005b8160ff1681101561251a576000610a11600e546124e09190614f42565b90506124ec33826133cd565b6001600e60008282546124ff9190614f42565b92505081905550508080612512906151b1565b9150506124c3565b5080600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900460ff166125769190615057565b92506101000a81548160ff021916908360ff16021790555050565b612599612fc7565b73ffffffffffffffffffffffffffffffffffffffff166125b76121a0565b73ffffffffffffffffffffffffffffffffffffffff161461260d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260490614d08565b60405180910390fd5b6001600760006101000a81548160ff021916908315150217905550565b61263b612635612fc7565b83613088565b61267a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267190614d88565b60405180910390fd5b6126868484848461361c565b50505050565b6060600d61269983613678565b6040516020016126aa92919061499e565b6040516020818303038152906040529050919050565b6126c8612fc7565b73ffffffffffffffffffffffffffffffffffffffff166126e66121a0565b73ffffffffffffffffffffffffffffffffffffffff161461273c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161273390614d08565b60405180910390fd5b60005b848490508110156127e15782828281811061275d5761275c6152b8565b5b905060200201356008600087878581811061277b5761277a6152b8565b5b90506020020160208101906127909190613f88565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806127d9906151b1565b91505061273f565b5050505050565b6127f0612fc7565b73ffffffffffffffffffffffffffffffffffffffff1661280e6121a0565b73ffffffffffffffffffffffffffffffffffffffff1614612864576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285b90614d08565b60405180910390fd5b60005b8484905081101561292b57828282818110612885576128846152b8565b5b905060200201602081019061289a9190614400565b600b60008787858181106128b1576128b06152b8565b5b90506020020160208101906128c69190613f88565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908360ff1602179055508080612923906151b1565b915050612867565b5050505050565b61275d81565b60011515600760019054906101000a900460ff1615151461298e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298590614a88565b60405180910390fd5b61275d81610a11600e546129a29190614f42565b6129ac9190614f42565b11156129ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e490614b68565b60405180910390fd5b8066f8b0a10e470000612a009190614fc9565b341015612a42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3990614ca8565b60405180910390fd5b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411612ac4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612abb90614c48565b60405180910390fd5b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054811115612b46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b3d90614aa8565b60405180910390fd5b60005b81811015612b9d576000610a11600e54612b639190614f42565b9050612b6f33826133cd565b6001600e6000828254612b829190614f42565b92505081905550508080612b95906151b1565b915050612b49565b5080600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bed9190615023565b9250508190555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60011515600760019054906101000a900460ff16151514612ce1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd890614c08565b60405180910390fd5b6000612cec33610d56565b90506000815111612d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2990614bc8565b60405180910390fd5b60005b8151811015612df557600061081d838381518110612d5657612d556152b8565b5b6020026020010151612d689190614f42565b9050612d7433826133cd565b6000600a6000858581518110612d8d57612d8c6152b8565b5b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550508080612ded906151b1565b915050612d35565b5050565b612e01612fc7565b73ffffffffffffffffffffffffffffffffffffffff16612e1f6121a0565b73ffffffffffffffffffffffffffffffffffffffff1614612e75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6c90614d08565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612ee5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612edc90614b08565b60405180910390fd5b612eee816133eb565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661304283611db0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061309382612f5b565b6130d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130c990614be8565b60405180910390fd5b60006130dd83611db0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061314c57508373ffffffffffffffffffffffffffffffffffffffff1661313484610bb9565b73ffffffffffffffffffffffffffffffffffffffff16145b8061315d575061315c8185612bf7565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661318682611db0565b73ffffffffffffffffffffffffffffffffffffffff16146131dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131d390614b28565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561324c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324390614b88565b60405180910390fd5b6132578383836137d9565b613262600082612fcf565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546132b29190615023565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546133099190614f42565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133c88383836137de565b505050565b6133e78282604051806020016040528060008152506137e3565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561351e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161351590614ba8565b60405180910390fd5b80600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161360f9190614a4b565b60405180910390a3505050565b613627848484613166565b6136338484848461383e565b613672576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161366990614ae8565b60405180910390fd5b50505050565b606060008214156136c0576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506137d4565b600082905060005b600082146136f25780806136db906151b1565b915050600a826136eb9190614f98565b91506136c8565b60008167ffffffffffffffff81111561370e5761370d6152e7565b5b6040519080825280601f01601f1916602001820160405280156137405781602001600182028036833780820191505090505b5090505b600085146137cd576001826137599190615023565b9150600a8561376891906151fa565b60306137749190614f42565b60f81b81838151811061378a576137896152b8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856137c69190614f98565b9450613744565b8093505050505b919050565b505050565b505050565b6137ed83836139d5565b6137fa600084848461383e565b613839576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161383090614ae8565b60405180910390fd5b505050565b600061385f8473ffffffffffffffffffffffffffffffffffffffff16613baf565b156139c8578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613888612fc7565b8786866040518563ffffffff1660e01b81526004016138aa94939291906149dd565b602060405180830381600087803b1580156138c457600080fd5b505af19250505080156138f557506040513d601f19601f820116820180604052508101906138f2919061435d565b60015b613978573d8060008114613925576040519150601f19603f3d011682016040523d82523d6000602084013e61392a565b606091505b50600081511415613970576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161396790614ae8565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506139cd565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613a45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a3c90614cc8565b60405180910390fd5b613a4e81612f5b565b15613a8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a8590614b48565b60405180910390fd5b613a9a600083836137d9565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613aea9190614f42565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613bab600083836137de565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054613bde9061514e565b90600052602060002090601f016020900481019282613c005760008555613c47565b82601f10613c1957805160ff1916838001178555613c47565b82800160010185558215613c47579182015b82811115613c46578251825591602001919060010190613c2b565b5b509050613c549190613c58565b5090565b5b80821115613c71576000816000905550600101613c59565b5090565b6000613c88613c8384614e23565b614dfe565b90508083825260208201905082856020860282011115613cab57613caa615320565b5b60005b85811015613cdb5781613cc18882613f5e565b845260208401935060208301925050600181019050613cae565b5050509392505050565b6000613cf8613cf384614e4f565b614dfe565b905082815260208101848484011115613d1457613d13615325565b5b613d1f84828561510c565b509392505050565b6000613d3a613d3584614e80565b614dfe565b905082815260208101848484011115613d5657613d55615325565b5b613d6184828561510c565b509392505050565b600081359050613d7881615983565b92915050565b60008083601f840112613d9457613d9361531b565b5b8235905067ffffffffffffffff811115613db157613db0615316565b5b602083019150836020820283011115613dcd57613dcc615320565b5b9250929050565b60008083601f840112613dea57613de961531b565b5b8235905067ffffffffffffffff811115613e0757613e06615316565b5b602083019150836020820283011115613e2357613e22615320565b5b9250929050565b600082601f830112613e3f57613e3e61531b565b5b8151613e4f848260208601613c75565b91505092915050565b60008083601f840112613e6e57613e6d61531b565b5b8235905067ffffffffffffffff811115613e8b57613e8a615316565b5b602083019150836020820283011115613ea757613ea6615320565b5b9250929050565b600081359050613ebd8161599a565b92915050565b600081359050613ed2816159b1565b92915050565b600081519050613ee7816159b1565b92915050565b600082601f830112613f0257613f0161531b565b5b8135613f12848260208601613ce5565b91505092915050565b600082601f830112613f3057613f2f61531b565b5b8135613f40848260208601613d27565b91505092915050565b600081359050613f58816159c8565b92915050565b600081519050613f6d816159c8565b92915050565b600081359050613f82816159df565b92915050565b600060208284031215613f9e57613f9d61532f565b5b6000613fac84828501613d69565b91505092915050565b60008060408385031215613fcc57613fcb61532f565b5b6000613fda85828601613d69565b9250506020613feb85828601613d69565b9150509250929050565b60008060006060848603121561400e5761400d61532f565b5b600061401c86828701613d69565b935050602061402d86828701613d69565b925050604061403e86828701613f49565b9150509250925092565b600080600080608085870312156140625761406161532f565b5b600061407087828801613d69565b945050602061408187828801613d69565b935050604061409287828801613f49565b925050606085013567ffffffffffffffff8111156140b3576140b261532a565b5b6140bf87828801613eed565b91505092959194509250565b600080604083850312156140e2576140e161532f565b5b60006140f085828601613d69565b925050602061410185828601613eae565b9150509250929050565b600080604083850312156141225761412161532f565b5b600061413085828601613d69565b925050602061414185828601613f49565b9150509250929050565b600080602083850312156141625761416161532f565b5b600083013567ffffffffffffffff8111156141805761417f61532a565b5b61418c85828601613d7e565b92509250509250929050565b600080600080604085870312156141b2576141b161532f565b5b600085013567ffffffffffffffff8111156141d0576141cf61532a565b5b6141dc87828801613d7e565b9450945050602085013567ffffffffffffffff8111156141ff576141fe61532a565b5b61420b87828801613dd4565b925092505092959194509250565b600080600080604085870312156142335761423261532f565b5b600085013567ffffffffffffffff8111156142515761425061532a565b5b61425d87828801613d7e565b9450945050602085013567ffffffffffffffff8111156142805761427f61532a565b5b61428c87828801613e58565b925092505092959194509250565b600080602083850312156142b1576142b061532f565b5b600083013567ffffffffffffffff8111156142cf576142ce61532a565b5b6142db85828601613dd4565b92509250509250929050565b6000602082840312156142fd576142fc61532f565b5b600082015167ffffffffffffffff81111561431b5761431a61532a565b5b61432784828501613e2a565b91505092915050565b6000602082840312156143465761434561532f565b5b600061435484828501613ec3565b91505092915050565b6000602082840312156143735761437261532f565b5b600061438184828501613ed8565b91505092915050565b6000602082840312156143a05761439f61532f565b5b600082013567ffffffffffffffff8111156143be576143bd61532a565b5b6143ca84828501613f1b565b91505092915050565b6000602082840312156143e9576143e861532f565b5b60006143f784828501613f49565b91505092915050565b6000602082840312156144165761441561532f565b5b600061442484828501613f73565b91505092915050565b60006144398383614971565b60208301905092915050565b61444e8161508b565b82525050565b600061445f82614ed6565b6144698185614f04565b935061447483614eb1565b8060005b838110156144a557815161448c888261442d565b975061449783614ef7565b925050600181019050614478565b5085935050505092915050565b6144bb8161509d565b82525050565b60006144cc82614ee1565b6144d68185614f15565b93506144e681856020860161511b565b6144ef81615334565b840191505092915050565b600061450582614eec565b61450f8185614f26565b935061451f81856020860161511b565b61452881615334565b840191505092915050565b600061453e82614eec565b6145488185614f37565b935061455881856020860161511b565b80840191505092915050565b600081546145718161514e565b61457b8186614f37565b9450600182166000811461459657600181146145a7576145da565b60ff198316865281860193506145da565b6145b085614ec1565b60005b838110156145d2578154818901526001820191506020810190506145b3565b838801955050505b50505092915050565b60006145f0602483614f26565b91506145fb82615345565b604082019050919050565b6000614613601683614f26565b915061461e82615394565b602082019050919050565b6000614636601083614f26565b9150614641826153bd565b602082019050919050565b6000614659603283614f26565b9150614664826153e6565b604082019050919050565b600061467c602683614f26565b915061468782615435565b604082019050919050565b600061469f602583614f26565b91506146aa82615484565b604082019050919050565b60006146c2601c83614f26565b91506146cd826154d3565b602082019050919050565b60006146e5601183614f26565b91506146f0826154fc565b602082019050919050565b6000614708602483614f26565b915061471382615525565b604082019050919050565b600061472b601983614f26565b915061473682615574565b602082019050919050565b600061474e600e83614f26565b91506147598261559d565b602082019050919050565b6000614771602c83614f26565b915061477c826155c6565b604082019050919050565b6000614794601c83614f26565b915061479f82615615565b602082019050919050565b60006147b7603883614f26565b91506147c28261563e565b604082019050919050565b60006147da600f83614f26565b91506147e58261568d565b602082019050919050565b60006147fd602a83614f26565b9150614808826156b6565b604082019050919050565b6000614820602983614f26565b915061482b82615705565b604082019050919050565b6000614843602383614f26565b915061484e82615754565b604082019050919050565b6000614866602083614f26565b9150614871826157a3565b602082019050919050565b6000614889602c83614f26565b9150614894826157cc565b604082019050919050565b60006148ac602083614f26565b91506148b78261581b565b602082019050919050565b60006148cf601183614f26565b91506148da82615844565b602082019050919050565b60006148f2602183614f26565b91506148fd8261586d565b604082019050919050565b6000614915601683614f26565b9150614920826158bc565b602082019050919050565b6000614938603183614f26565b9150614943826158e5565b604082019050919050565b600061495b602583614f26565b915061496682615934565b604082019050919050565b61497a816150f5565b82525050565b614989816150f5565b82525050565b614998816150ff565b82525050565b60006149aa8285614564565b91506149b68284614533565b91508190509392505050565b60006020820190506149d76000830184614445565b92915050565b60006080820190506149f26000830187614445565b6149ff6020830186614445565b614a0c6040830185614980565b8181036060830152614a1e81846144c1565b905095945050505050565b60006020820190508181036000830152614a438184614454565b905092915050565b6000602082019050614a6060008301846144b2565b92915050565b60006020820190508181036000830152614a8081846144fa565b905092915050565b60006020820190508181036000830152614aa1816145e3565b9050919050565b60006020820190508181036000830152614ac181614606565b9050919050565b60006020820190508181036000830152614ae181614629565b9050919050565b60006020820190508181036000830152614b018161464c565b9050919050565b60006020820190508181036000830152614b218161466f565b9050919050565b60006020820190508181036000830152614b4181614692565b9050919050565b60006020820190508181036000830152614b61816146b5565b9050919050565b60006020820190508181036000830152614b81816146d8565b9050919050565b60006020820190508181036000830152614ba1816146fb565b9050919050565b60006020820190508181036000830152614bc18161471e565b9050919050565b60006020820190508181036000830152614be181614741565b9050919050565b60006020820190508181036000830152614c0181614764565b9050919050565b60006020820190508181036000830152614c2181614787565b9050919050565b60006020820190508181036000830152614c41816147aa565b9050919050565b60006020820190508181036000830152614c61816147cd565b9050919050565b60006020820190508181036000830152614c81816147f0565b9050919050565b60006020820190508181036000830152614ca181614813565b9050919050565b60006020820190508181036000830152614cc181614836565b9050919050565b60006020820190508181036000830152614ce181614859565b9050919050565b60006020820190508181036000830152614d018161487c565b9050919050565b60006020820190508181036000830152614d218161489f565b9050919050565b60006020820190508181036000830152614d41816148c2565b9050919050565b60006020820190508181036000830152614d61816148e5565b9050919050565b60006020820190508181036000830152614d8181614908565b9050919050565b60006020820190508181036000830152614da18161492b565b9050919050565b60006020820190508181036000830152614dc18161494e565b9050919050565b6000602082019050614ddd6000830184614980565b92915050565b6000602082019050614df8600083018461498f565b92915050565b6000614e08614e19565b9050614e148282615180565b919050565b6000604051905090565b600067ffffffffffffffff821115614e3e57614e3d6152e7565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614e6a57614e696152e7565b5b614e7382615334565b9050602081019050919050565b600067ffffffffffffffff821115614e9b57614e9a6152e7565b5b614ea482615334565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f4d826150f5565b9150614f58836150f5565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614f8d57614f8c61522b565b5b828201905092915050565b6000614fa3826150f5565b9150614fae836150f5565b925082614fbe57614fbd61525a565b5b828204905092915050565b6000614fd4826150f5565b9150614fdf836150f5565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156150185761501761522b565b5b828202905092915050565b600061502e826150f5565b9150615039836150f5565b92508282101561504c5761504b61522b565b5b828203905092915050565b6000615062826150ff565b915061506d836150ff565b9250828210156150805761507f61522b565b5b828203905092915050565b6000615096826150d5565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561513957808201518184015260208101905061511e565b83811115615148576000848401525b50505050565b6000600282049050600182168061516657607f821691505b6020821081141561517a57615179615289565b5b50919050565b61518982615334565b810181811067ffffffffffffffff821117156151a8576151a76152e7565b5b80604052505050565b60006151bc826150f5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151ef576151ee61522b565b5b600182019050919050565b6000615205826150f5565b9150615210836150f5565b9250826152205761521f61525a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f507269766174652073616c6520686173206e6f7420616c72656164792073746160008201527f7274656400000000000000000000000000000000000000000000000000000000602082015250565b7f45786365656473207768697465206c697374206e756d00000000000000000000600082015250565b7f4e6f7468696e6720746f20636c61696d00000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f45786365656473204d41585f50554e4b53000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4e6f74207768697465204c697374000000000000000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53616c6520686173206e6f7420616c7265616479207374617274656400000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4e6f742077686974656c69737465640000000000000000000000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45746865722076616c75652073656e742069732062656c6f772074686520707260008201527f6963650000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f457863656564732066726565204c697374000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f53616c652068617320616c726561647920656e64656400000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f596f752063616e206d696e74206d696e696d756d20312c206d6178696d756d2060008201527f3130205658000000000000000000000000000000000000000000000000000000602082015250565b61598c8161508b565b811461599757600080fd5b50565b6159a38161509d565b81146159ae57600080fd5b50565b6159ba816150a9565b81146159c557600080fd5b50565b6159d1816150f5565b81146159dc57600080fd5b50565b6159e8816150ff565b81146159f357600080fd5b5056fea26469706673582212205de9115b497d4490de220f2753f7ae68fdee1fdce5483ffbd2cc0150be85374364736f6c63430008070033

Verified Source Code Partial Match

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

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

interface DystoPunks {
    function tokensOfOwner(address ownwer) external view returns (uint256[] memory);
}

contract DystoPunksVX is  Ownable, ERC721 {
    address constant public DystoAddress = 0xbEA8123277142dE42571f1fAc045225a1D347977;
    uint public constant MAX_PUNKS = 10077;
    uint public constant RESERVED_PUNKS = 2577;
    uint constant WL_TOKEN_PRICE = 0.07 ether;
    uint constant TOKEN_PRICE = 0.077 ether;
    bool public hasSaleStarted = false;
    bool public hasPrivateSaleStarted = false;
    mapping(address => uint) private _allowList;
    mapping(address => uint8) private _whiteList;
    mapping(uint256 => address) private _claimList;
    mapping(address => uint8) private _freeList;
    mapping(uint => bool) public claimedDysto;
    string private _baseTokenURI;
    uint public minted;
    uint private freeMinted=0;
    uint _totalClaimList;

    constructor(string memory baseTokenURI) ERC721("DystoPunks VX","DYSTOVX")  {
        setBaseURI(baseTokenURI);
    }

    function setBaseURI(string memory baseURI) public onlyOwner {
        _baseTokenURI = baseURI;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return _baseTokenURI;
    }

    function tokenURI(uint256 _tokenId) override public view returns (string memory) {
        return string(abi.encodePacked(_baseTokenURI, Strings.toString(_tokenId)));
    }

    function checkDystoToClaim(uint id) public view returns (bool) {
         return claimedDysto[id];
    }

    function availableDystoToClaim(address ownwer) public view returns (uint[] memory) {
         uint[] memory punks = DystoPunks(DystoAddress).tokensOfOwner(ownwer);

         uint arrayPunksLength = punks.length;
         uint x=0;
         for (uint i=0; i<arrayPunksLength; i++) {
              uint256 id = punks[i];
              if (claimedDysto[id]==false) {
                  x++;
              }
         }
         uint[] memory punksavAliable = new uint[](x);
         x=0;
         for (uint i=0; i<arrayPunksLength; i++) {
              if (claimedDysto[punks[i]]==false) {
                  punksavAliable[x]=punks[i];
                  x++;
              }
         }
         return punksavAliable;
    }

    function DystosClaim(uint[] calldata ids) public {
        uint[] memory punks = availableDystoToClaim(msg.sender);
        uint arrayIdsLength = ids.length;
        uint arrayPunksLength = punks.length;
        require(arrayPunksLength >= 1, "Nothing to claim");
        require(hasPrivateSaleStarted == true, "Sale has not already started");
        bool mintdystos=true;
        for (uint i=0; i<arrayIdsLength; i++) {
              bool inArray=false;
              for (uint j=0; i<arrayPunksLength; j++) {
                  if (punks[j]==ids[i]) {
                       inArray=true;
                       break;
                  }
              }
              if (inArray==false) {
                  mintdystos=false;
              }
        }
        if (mintdystos) {
            for (uint i=0; i < arrayIdsLength; i++) {
                 _safeMint(msg.sender, ids[i]);
                 claimedDysto[ids[i]] = true;
            }
        }
    }

    function setAllowList(address[] calldata addresses, uint[] calldata num) external onlyOwner {
        for (uint256 i = 0; i < addresses.length; i++) {
            _allowList[addresses[i]] = num[i];
        }
    }

    function numAllowMint(address addr) public view returns (uint) {
        return _allowList[addr];
    }

    function mintAllowList(uint numVX) public payable {
        require(hasPrivateSaleStarted == true, "Private sale has not already started");
        require(minted + RESERVED_PUNKS + numVX <= MAX_PUNKS, "Exceeds MAX_PUNKS");
        require(msg.value >= WL_TOKEN_PRICE * numVX, "Ether value sent is below the price");
        require(_allowList[msg.sender] > 0, "Not whitelisted");
        require(numVX <= _allowList[msg.sender], "Exceeds white list num");
        for (uint i = 0; i < numVX; i++) {
            uint mintIndex = minted + RESERVED_PUNKS;
            _safeMint(msg.sender, mintIndex);
            minted += 1;
        }
        _allowList[msg.sender] -= numVX;
    }

    function setClaimMint(address[] calldata addresses) external onlyOwner {
        for (uint256 i = 0; i < addresses.length; i++) {
            _claimList[i] = addresses[i];
            _totalClaimList++;
        }
    }

    function availableToClaim(address ownwer) public view returns (uint[] memory) {
        uint x=0;
        for (uint i=0; i<_totalClaimList; i++) {
             if (_claimList[i]==ownwer) {
                 x++;
             }
        }
        uint[] memory punksAvailable = new uint[](x);
        x=0;
        for (uint i=0; i<_totalClaimList; i++) {
             if (_claimList[i]==ownwer) {
                 punksAvailable[x]=i;
                 x++;
             }
        }
        return punksAvailable;
    }

    function mintClaimList() public {
        require(hasPrivateSaleStarted == true, "Sale has not already started");
        uint[] memory punks = availableToClaim(msg.sender);
        require(punks.length > 0, "Not white List");
        for (uint i=0; i<punks.length; i++) {
              uint mintId=punks[i]+2077;
              _safeMint(msg.sender, mintId);
              _claimList[punks[i]]=address(0);
        }

    }

    function setFreeList(address[] calldata addresses, uint8[] calldata num) external onlyOwner {
        for (uint256 i = 0; i < addresses.length; i++) {
            _freeList[addresses[i]] = num[i];
        }
    }

    function numFreeMint(address addr) public view returns (uint8) {
        return _freeList[addr];
    }

    function mintfreeList() public {
        uint8 numVX =_freeList[msg.sender];
        require(hasPrivateSaleStarted == true, "Private sale has not already started");
        require(numVX > 0, "Not white List");
        require(freeMinted + numVX < 301, "Exceeds free List");
        for (uint i = 0; i < numVX; i++) {
            uint mintIndex = freeMinted + 2277;
            _safeMint(msg.sender, mintIndex);
             freeMinted += 1;
        }
        _freeList[msg.sender] -= numVX;
    }

    function publicMint(uint numVX) public payable {
        require(minted + RESERVED_PUNKS < MAX_PUNKS, "Sale has already ended");
        require(hasSaleStarted == true, "Sale has not already started");
        require(numVX < 11, "You can mint minimum 1, maximum 10 VX");
        require(minted + RESERVED_PUNKS + numVX <= MAX_PUNKS, "Exceeds MAX_PUNKS");
        require(msg.value >= TOKEN_PRICE * numVX, "Ether value sent is below the price");
        for (uint i = 0; i < numVX; i++) {
            uint mintIndex = minted + RESERVED_PUNKS;
            _safeMint(msg.sender, mintIndex);
            minted += 1;
        }

    }

    function setWhiteList(address[] calldata addresses) external onlyOwner {
        for (uint256 i = 0; i < addresses.length; i++) {
            _whiteList[addresses[i]] = 2;
        }
    }

    function numWhiteMint(address addr) public view returns (uint8) {
        return _whiteList[addr];
    }

    function mintWhiteList(uint8 numVX) public payable {
        require(hasPrivateSaleStarted == true, "Private sale has not already started");
        require(minted + RESERVED_PUNKS + numVX <= MAX_PUNKS, "Exceeds MAX_PUNKS");
        require(msg.value >= WL_TOKEN_PRICE * numVX, "Ether value sent is below the price");
        require(_whiteList[msg.sender] > 0, "Not whitelisted");
        require(numVX <= _whiteList[msg.sender], "Exceeds white list num");
        for (uint i = 0; i < numVX; i++) {
            uint mintIndex = minted + RESERVED_PUNKS;
            _safeMint(msg.sender, mintIndex);
            minted += 1;
        }
        _whiteList[msg.sender] -= numVX;
    }

    function reserveAirdrop(uint numVX) public onlyOwner {
        require(minted + RESERVED_PUNKS < MAX_PUNKS, "Exceeds MAX_PUNKS");
        //require(numVX < 31, "Exceeded airdrop supply");
        for (uint i = 0; i < numVX; i++) {
            uint mintIndex = minted + RESERVED_PUNKS;
            _safeMint(owner(), mintIndex);
            minted += 1;
        }

    }

    function startSale() public onlyOwner {
        hasSaleStarted = true;
    }

    function pauseSale() public onlyOwner {
        hasSaleStarted = false;
    }

    function startPrivateSale() public onlyOwner {
        hasPrivateSaleStarted = true;
    }

    function pausePrivateSale() public onlyOwner {
        hasPrivateSaleStarted = false;
    }

    function withdrawAll() public payable onlyOwner {
        require(payable(msg.sender).send(address(this).balance));
    }
}
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);
            }
        }
    }
}
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);
    }
}
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);
    }
}
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 {}
}
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;
}
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;
    }
}
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);
}
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);
}
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);
}

Read Contract

DystoAddress 0x993cb902 → address
MAX_PUNKS 0xdeb59b3b → uint256
RESERVED_PUNKS 0x1d18404e → uint256
availableDystoToClaim 0x4d5963f4 → uint256[]
availableToClaim 0x0da45188 → uint256[]
balanceOf 0x70a08231 → uint256
checkDystoToClaim 0x553144d3 → bool
claimedDysto 0x7031a89f → bool
getApproved 0x081812fc → address
hasPrivateSaleStarted 0x051d0b04 → bool
hasSaleStarted 0x1c8b232d → bool
isApprovedForAll 0xe985e9c5 → bool
minted 0x4f02c420 → uint256
name 0x06fdde03 → string
numAllowMint 0x3efaa682 → uint256
numFreeMint 0x378e56bd → uint8
numWhiteMint 0x2a5ad594 → uint8
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string

Write Contract 24 functions

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

DystosClaim 0x48447e09
uint256[] ids
approve 0x095ea7b3
address to
uint256 tokenId
mintAllowList 0xe86fe2bb
uint256 numVX
mintClaimList 0xec1c2754
No parameters
mintWhiteList 0xb4993152
uint8 numVX
mintfreeList 0x4fd47f20
No parameters
pausePrivateSale 0x35d62f9e
No parameters
pauseSale 0x55367ba9
No parameters
publicMint 0x2db11544
uint256 numVX
renounceOwnership 0x715018a6
No parameters
reserveAirdrop 0x4a3cd688
uint256 numVX
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setAllowList 0xcd22ad1a
address[] addresses
uint256[] num
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseURI 0x55f804b3
string baseURI
setClaimMint 0x40279483
address[] addresses
setFreeList 0xd158e70e
address[] addresses
uint8[] num
setWhiteList 0x775b9c13
address[] addresses
startPrivateSale 0x338dbf59
No parameters
startSale 0xb66a0e5d
No parameters
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdrawAll 0x853828b6
No parameters

Recent Transactions

No transactions found for this address