Address Contract Verified
Address
0x5217FCfaA7c02b6BeB54c8227a81E8dcABEBFEE0
Balance
0 ETH
Nonce
1
Code Size
23078 bytes
Creator
0xeFF55134...6DD0 at tx 0x6ca2f8cc...e76421
Indexed Transactions
0
Contract Bytecode
23078 bytes
0x6080604052600436106102ae5760003560e01c806351830227116101755780639c70b512116100dc578063c87b56dd11610095578063e985e9c51161006f578063e985e9c514610ac8578063edec5f2714610b05578063f2c4ce1e14610b2e578063f2fde38b14610b57576102ae565b8063c87b56dd14610a37578063d0eb26b014610a74578063d5abeb0114610a9d576102ae565b80639c70b5121461095c578063a0712d6814610987578063a22cb465146109a3578063a475b5dd146109cc578063b88d4fde146109e3578063ba7d2c7614610a0c576102ae565b806370a082311161012e57806370a0823114610860578063715018a61461089d578063729ad39e146108b45780637f00c7a6146108dd5780638da5cb5b1461090657806395d89b4114610931576102ae565b8063518302271461073c57806355f804b31461076757806358cf77fa146107905780635c975abb146107cd5780636352211e146107f85780636c0360eb14610835576102ae565b8063239c70ae116102195780633c952764116101d25780633c9527641461061e57806342842e0e14610647578063438b63001461067057806344a0d68a146106ad57806345950358146106d65780634f6ccce7146106ff576102ae565b8063239c70ae1461050b57806323b872dd14610536578063284bf0511461055f5780632e1a7d4d146105885780632f745c59146105a45780633af32abf146105e1576102ae565b8063081c8c441161026b578063081c8c44146103fb578063095ea7b31461042657806313faede61461044f57806318160ddd1461047a57806318cae269146104a5578063228025e8146104e2576102ae565b806301ffc9a7146102b357806302329a29146102f057806306c933d81461031957806306fdde03146103565780630791ec6a14610381578063081812fc146103be575b600080fd5b3480156102bf57600080fd5b506102da60048036038101906102d5919061435b565b610b80565b6040516102e79190614aa1565b60405180910390f35b3480156102fc57600080fd5b506103176004803603810190610312919061432e565b610bfa565b005b34801561032557600080fd5b50610340600480360381019061033b919061411e565b610c93565b60405161034d9190614aa1565b60405180910390f35b34801561036257600080fd5b5061036b610cb3565b6040516103789190614abc565b60405180910390f35b34801561038d57600080fd5b506103a860048036038101906103a3919061411e565b610d45565b6040516103b59190614aa1565b60405180910390f35b3480156103ca57600080fd5b506103e560048036038101906103e091906143fe565b610d9b565b6040516103f29190614a18565b60405180910390f35b34801561040757600080fd5b50610410610e20565b60405161041d9190614abc565b60405180910390f35b34801561043257600080fd5b5061044d600480360381019061044891906142a1565b610eae565b005b34801561045b57600080fd5b50610464610fc6565b6040516104719190614dfe565b60405180910390f35b34801561048657600080fd5b5061048f610fcc565b60405161049c9190614dfe565b60405180910390f35b3480156104b157600080fd5b506104cc60048036038101906104c7919061411e565b610fd9565b6040516104d99190614dfe565b60405180910390f35b3480156104ee57600080fd5b50610509600480360381019061050491906143fe565b610ff1565b005b34801561051757600080fd5b50610520611077565b60405161052d9190614dfe565b60405180910390f35b34801561054257600080fd5b5061055d6004803603810190610558919061418b565b61107d565b005b34801561056b57600080fd5b50610586600480360381019061058191906142e1565b6110dd565b005b6105a2600480360381019061059d91906143fe565b6111fe565b005b3480156105b057600080fd5b506105cb60048036038101906105c691906142a1565b611716565b6040516105d89190614dfe565b60405180910390f35b3480156105ed57600080fd5b506106086004803603810190610603919061411e565b6117bb565b6040516106159190614aa1565b60405180910390f35b34801561062a57600080fd5b506106456004803603810190610640919061432e565b611811565b005b34801561065357600080fd5b5061066e6004803603810190610669919061418b565b6118aa565b005b34801561067c57600080fd5b506106976004803603810190610692919061411e565b6118ca565b6040516106a49190614a7f565b60405180910390f35b3480156106b957600080fd5b506106d460048036038101906106cf91906143fe565b611978565b005b3480156106e257600080fd5b506106fd60048036038101906106f891906142e1565b6119fe565b005b34801561070b57600080fd5b50610726600480360381019061072191906143fe565b611b1f565b6040516107339190614dfe565b60405180910390f35b34801561074857600080fd5b50610751611b90565b60405161075e9190614aa1565b60405180910390f35b34801561077357600080fd5b5061078e600480360381019061078991906143b5565b611ba3565b005b34801561079c57600080fd5b506107b760048036038101906107b2919061411e565b611c39565b6040516107c49190614aa1565b60405180910390f35b3480156107d957600080fd5b506107e2611c59565b6040516107ef9190614aa1565b60405180910390f35b34801561080457600080fd5b5061081f600480360381019061081a91906143fe565b611c6c565b60405161082c9190614a18565b60405180910390f35b34801561084157600080fd5b5061084a611d1e565b6040516108579190614abc565b60405180910390f35b34801561086c57600080fd5b506108876004803603810190610882919061411e565b611dac565b6040516108949190614dfe565b60405180910390f35b3480156108a957600080fd5b506108b2611e64565b005b3480156108c057600080fd5b506108db60048036038101906108d691906142e1565b611eec565b005b3480156108e957600080fd5b5061090460048036038101906108ff91906143fe565b61200d565b005b34801561091257600080fd5b5061091b612093565b6040516109289190614a18565b60405180910390f35b34801561093d57600080fd5b506109466120bd565b6040516109539190614abc565b60405180910390f35b34801561096857600080fd5b5061097161214f565b60405161097e9190614aa1565b60405180910390f35b6109a1600480360381019061099c91906143fe565b612162565b005b3480156109af57600080fd5b506109ca60048036038101906109c59190614261565b61268f565b005b3480156109d857600080fd5b506109e16126a5565b005b3480156109ef57600080fd5b50610a0a6004803603810190610a0591906141de565b61273e565b005b348015610a1857600080fd5b50610a216127a0565b604051610a2e9190614dfe565b60405180910390f35b348015610a4357600080fd5b50610a5e6004803603810190610a5991906143fe565b6127a6565b604051610a6b9190614abc565b60405180910390f35b348015610a8057600080fd5b50610a9b6004803603810190610a9691906143fe565b6128c8565b005b348015610aa957600080fd5b50610ab261294e565b604051610abf9190614dfe565b60405180910390f35b348015610ad457600080fd5b50610aef6004803603810190610aea919061414b565b612954565b604051610afc9190614aa1565b60405180910390f35b348015610b1157600080fd5b50610b2c6004803603810190610b2791906142e1565b6129e8565b005b348015610b3a57600080fd5b50610b556004803603810190610b5091906143b5565b612b09565b005b348015610b6357600080fd5b50610b7e6004803603810190610b79919061411e565b612b9f565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bf35750610bf282612c97565b5b9050919050565b610c02612d79565b73ffffffffffffffffffffffffffffffffffffffff16610c20612093565b73ffffffffffffffffffffffffffffffffffffffff1614610c76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6d90614cbe565b60405180910390fd5b80601160006101000a81548160ff02191690831515021790555050565b60126020528060005260406000206000915054906101000a900460ff1681565b606060008054610cc290615107565b80601f0160208091040260200160405190810160405280929190818152602001828054610cee90615107565b8015610d3b5780601f10610d1057610100808354040283529160200191610d3b565b820191906000526020600020905b815481529060010190602001808311610d1e57829003601f168201915b5050505050905090565b6000601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6000610da682612d81565b610de5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ddc90614c9e565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600c8054610e2d90615107565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5990615107565b8015610ea65780601f10610e7b57610100808354040283529160200191610ea6565b820191906000526020600020905b815481529060010190602001808311610e8957829003601f168201915b505050505081565b6000610eb982611c6c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610f2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2190614d3e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610f49612d79565b73ffffffffffffffffffffffffffffffffffffffff161480610f785750610f7781610f72612d79565b612954565b5b610fb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fae90614bde565b60405180910390fd5b610fc18383612ded565b505050565b600d5481565b6000600880549050905090565b60136020528060005260406000206000915090505481565b610ff9612d79565b73ffffffffffffffffffffffffffffffffffffffff16611017612093565b73ffffffffffffffffffffffffffffffffffffffff161461106d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106490614cbe565b60405180910390fd5b80600e8190555050565b600f5481565b61108e611088612d79565b82612ea6565b6110cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c490614d7e565b60405180910390fd5b6110d8838383612f84565b505050565b6110e5612d79565b73ffffffffffffffffffffffffffffffffffffffff16611103612093565b73ffffffffffffffffffffffffffffffffffffffff1614611159576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115090614cbe565b60405180910390fd5b60005b828290508110156111f9576000601460008585858181106111805761117f6152a0565b5b9050602002016020810190611195919061411e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080806111f19061516a565b91505061115c565b505050565b611206612d79565b73ffffffffffffffffffffffffffffffffffffffff16611224612093565b73ffffffffffffffffffffffffffffffffffffffff161461127a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127190614cbe565b60405180910390fd5b600081476112889190614f92565b9050600073e554050ce6d1a4091d697746c2d6c93e6d27edc973ffffffffffffffffffffffffffffffffffffffff16612710607d846112c79190614fc3565b6112d19190614f92565b6040516112dd90614a03565b60006040518083038185875af1925050503d806000811461131a576040519150601f19603f3d011682016040523d82523d6000602084013e61131f565b606091505b505090508061132d57600080fd5b600073f6f0d5acc732baf6cb630686583d0b2d8f8e726d73ffffffffffffffffffffffffffffffffffffffff16612710607d8561136a9190614fc3565b6113749190614f92565b60405161138090614a03565b60006040518083038185875af1925050503d80600081146113bd576040519150601f19603f3d011682016040523d82523d6000602084013e6113c2565b606091505b50509050806113d057600080fd5b600084476113de9190614f92565b9050600073c87aba45fccc8ad40105fc146329a5ba808640d873ffffffffffffffffffffffffffffffffffffffff16600560018461141c9190614fc3565b6114269190614f92565b60405161143290614a03565b60006040518083038185875af1925050503d806000811461146f576040519150601f19603f3d011682016040523d82523d6000602084013e611474565b606091505b505090508061148257600080fd5b600073e00ab2f5770945303877cc851a9edeb910b4d5bf73ffffffffffffffffffffffffffffffffffffffff1660056001856114be9190614fc3565b6114c89190614f92565b6040516114d490614a03565b60006040518083038185875af1925050503d8060008114611511576040519150601f19603f3d011682016040523d82523d6000602084013e611516565b606091505b505090508061152457600080fd5b600073765e099451c67db3a038eeed0def3970d95119e173ffffffffffffffffffffffffffffffffffffffff1660056001866115609190614fc3565b61156a9190614f92565b60405161157690614a03565b60006040518083038185875af1925050503d80600081146115b3576040519150601f19603f3d011682016040523d82523d6000602084013e6115b8565b606091505b50509050806115c657600080fd5b60007330fb1c12f994eccdcf0567b56f15ac8f6655882a73ffffffffffffffffffffffffffffffffffffffff1660056001876116029190614fc3565b61160c9190614f92565b60405161161890614a03565b60006040518083038185875af1925050503d8060008114611655576040519150601f19603f3d011682016040523d82523d6000602084013e61165a565b606091505b505090508061166857600080fd5b600073248bdb6908282a7f444a20f91ab1cf25de3c7bfe73ffffffffffffffffffffffffffffffffffffffff1660056001886116a49190614fc3565b6116ae9190614f92565b6040516116ba90614a03565b60006040518083038185875af1925050503d80600081146116f7576040519150601f19603f3d011682016040523d82523d6000602084013e6116fc565b606091505b505090508061170a57600080fd5b50505050505050505050565b600061172183611dac565b8210611762576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175990614ade565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b611819612d79565b73ffffffffffffffffffffffffffffffffffffffff16611837612093565b73ffffffffffffffffffffffffffffffffffffffff161461188d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188490614cbe565b60405180910390fd5b80601160026101000a81548160ff02191690831515021790555050565b6118c58383836040518060200160405280600081525061273e565b505050565b606060006118d783611dac565b905060008167ffffffffffffffff8111156118f5576118f46152cf565b5b6040519080825280602002602001820160405280156119235781602001602082028036833780820191505090505b50905060005b8281101561196d5761193b8582611716565b82828151811061194e5761194d6152a0565b5b60200260200101818152505080806119659061516a565b915050611929565b508092505050919050565b611980612d79565b73ffffffffffffffffffffffffffffffffffffffff1661199e612093565b73ffffffffffffffffffffffffffffffffffffffff16146119f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119eb90614cbe565b60405180910390fd5b80600d8190555050565b611a06612d79565b73ffffffffffffffffffffffffffffffffffffffff16611a24612093565b73ffffffffffffffffffffffffffffffffffffffff1614611a7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7190614cbe565b60405180910390fd5b60005b82829050811015611b1a57600060126000858585818110611aa157611aa06152a0565b5b9050602002016020810190611ab6919061411e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080611b129061516a565b915050611a7d565b505050565b6000611b29610fcc565b8210611b6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6190614d9e565b60405180910390fd5b60088281548110611b7e57611b7d6152a0565b5b90600052602060002001549050919050565b601160019054906101000a900460ff1681565b611bab612d79565b73ffffffffffffffffffffffffffffffffffffffff16611bc9612093565b73ffffffffffffffffffffffffffffffffffffffff1614611c1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1690614cbe565b60405180910390fd5b80600b9080519060200190611c35929190613edc565b5050565b60146020528060005260406000206000915054906101000a900460ff1681565b601160009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0c90614c1e565b60405180910390fd5b80915050919050565b600b8054611d2b90615107565b80601f0160208091040260200160405190810160405280929190818152602001828054611d5790615107565b8015611da45780601f10611d7957610100808354040283529160200191611da4565b820191906000526020600020905b815481529060010190602001808311611d8757829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1490614bfe565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611e6c612d79565b73ffffffffffffffffffffffffffffffffffffffff16611e8a612093565b73ffffffffffffffffffffffffffffffffffffffff1614611ee0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ed790614cbe565b60405180910390fd5b611eea60006131e0565b565b611ef4612d79565b73ffffffffffffffffffffffffffffffffffffffff16611f12612093565b73ffffffffffffffffffffffffffffffffffffffff1614611f68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f5f90614cbe565b60405180910390fd5b60005b8282905081101561200857600160146000858585818110611f8f57611f8e6152a0565b5b9050602002016020810190611fa4919061411e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080806120009061516a565b915050611f6b565b505050565b612015612d79565b73ffffffffffffffffffffffffffffffffffffffff16612033612093565b73ffffffffffffffffffffffffffffffffffffffff1614612089576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208090614cbe565b60405180910390fd5b80600f8190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546120cc90615107565b80601f01602080910402602001604051908101604052809291908181526020018280546120f890615107565b80156121455780601f1061211a57610100808354040283529160200191612145565b820191906000526020600020905b81548152906001019060200180831161212857829003601f168201915b5050505050905090565b601160029054906101000a900460ff1681565b601160009054906101000a900460ff16156121b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121a990614cde565b60405180910390fd5b60006121bc610fcc565b905060008211612201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f890614dde565b60405180910390fd5b600e5482826122109190614f3c565b1115612251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224890614c3e565b60405180910390fd5b612259612093565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146125ff576000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060011515601160029054906101000a900460ff1615151415612423576122f4336117bb565b612333576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232a90614dbe565b60405180910390fd5b6001831115612377576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236e90614c5e565b60405180910390fd5b600183826123859190614f3c565b11156123c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123bd90614b5e565b60405180910390fd5b6000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506124b9565b60105483826124329190614f3c565b1115612473576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161246a90614b5e565b60405180910390fd5b600f548311156124b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124af90614c5e565b60405180910390fd5b5b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156125ac57600183111561254f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254690614c5e565b60405180910390fd5b6000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506125fd565b82600d546125ba9190614fc3565b3410156125fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f390614d5e565b60405180910390fd5b5b505b6000600190505b82811161268a57601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919061265d9061516a565b91905055506126773382846126729190614f3c565b6132a6565b80806126829061516a565b915050612606565b505050565b6126a161269a612d79565b83836132c4565b5050565b6126ad612d79565b73ffffffffffffffffffffffffffffffffffffffff166126cb612093565b73ffffffffffffffffffffffffffffffffffffffff1614612721576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271890614cbe565b60405180910390fd5b6001601160016101000a81548160ff021916908315150217905550565b61274f612749612d79565b83612ea6565b61278e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161278590614d7e565b60405180910390fd5b61279a84848484613431565b50505050565b60105481565b60606127b182612d81565b6127f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e790614d1e565b60405180910390fd5b60001515601160019054906101000a900460ff161515141561286a576000600c805461281b90615107565b9050116128375760405180602001604052806000815250612863565b600c6128428361348d565b6040516020016128539291906149d4565b6040516020818303038152906040525b90506128c3565b60006128746135ee565b9050600081511161289457604051806020016040528060008152506128bf565b8061289e8461348d565b6040516020016128af9291906149b0565b6040516020818303038152906040525b9150505b919050565b6128d0612d79565b73ffffffffffffffffffffffffffffffffffffffff166128ee612093565b73ffffffffffffffffffffffffffffffffffffffff1614612944576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293b90614cbe565b60405180910390fd5b8060108190555050565b600e5481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6129f0612d79565b73ffffffffffffffffffffffffffffffffffffffff16612a0e612093565b73ffffffffffffffffffffffffffffffffffffffff1614612a64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a5b90614cbe565b60405180910390fd5b60005b82829050811015612b0457600160126000858585818110612a8b57612a8a6152a0565b5b9050602002016020810190612aa0919061411e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080612afc9061516a565b915050612a67565b505050565b612b11612d79565b73ffffffffffffffffffffffffffffffffffffffff16612b2f612093565b73ffffffffffffffffffffffffffffffffffffffff1614612b85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7c90614cbe565b60405180910390fd5b80600c9080519060200190612b9b929190613edc565b5050565b612ba7612d79565b73ffffffffffffffffffffffffffffffffffffffff16612bc5612093565b73ffffffffffffffffffffffffffffffffffffffff1614612c1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1290614cbe565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c8290614b1e565b60405180910390fd5b612c94816131e0565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d6257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d725750612d7182613680565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612e6083611c6c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612eb182612d81565b612ef0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee790614bbe565b60405180910390fd5b6000612efb83611c6c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f6a57508373ffffffffffffffffffffffffffffffffffffffff16612f5284610d9b565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f7b5750612f7a8185612954565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612fa482611c6c565b73ffffffffffffffffffffffffffffffffffffffff1614612ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff190614cfe565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561306a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161306190614b7e565b60405180910390fd5b6130758383836136ea565b613080600082612ded565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130d0919061501d565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131279190614f3c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6132c08282604051806020016040528060008152506137fe565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613333576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332a90614b9e565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516134249190614aa1565b60405180910390a3505050565b61343c848484612f84565b61344884848484613859565b613487576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347e90614afe565b60405180910390fd5b50505050565b606060008214156134d5576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506135e9565b600082905060005b600082146135075780806134f09061516a565b915050600a826135009190614f92565b91506134dd565b60008167ffffffffffffffff811115613523576135226152cf565b5b6040519080825280601f01601f1916602001820160405280156135555781602001600182028036833780820191505090505b5090505b600085146135e25760018261356e919061501d565b9150600a8561357d91906151b3565b60306135899190614f3c565b60f81b81838151811061359f5761359e6152a0565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856135db9190614f92565b9450613559565b8093505050505b919050565b6060600b80546135fd90615107565b80601f016020809104026020016040519081016040528092919081815260200182805461362990615107565b80156136765780601f1061364b57610100808354040283529160200191613676565b820191906000526020600020905b81548152906001019060200180831161365957829003601f168201915b5050505050905090565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6136f58383836139f0565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561373857613733816139f5565b613777565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613776576137758382613a3e565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156137ba576137b581613bab565b6137f9565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146137f8576137f78282613c7c565b5b5b505050565b6138088383613cfb565b6138156000848484613859565b613854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161384b90614afe565b60405180910390fd5b505050565b600061387a8473ffffffffffffffffffffffffffffffffffffffff16613ec9565b156139e3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026138a3612d79565b8786866040518563ffffffff1660e01b81526004016138c59493929190614a33565b602060405180830381600087803b1580156138df57600080fd5b505af192505050801561391057506040513d601f19601f8201168201806040525081019061390d9190614388565b60015b613993573d8060008114613940576040519150601f19603f3d011682016040523d82523d6000602084013e613945565b606091505b5060008151141561398b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161398290614afe565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506139e8565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613a4b84611dac565b613a55919061501d565b9050600060076000848152602001908152602001600020549050818114613b3a576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613bbf919061501d565b9050600060096000848152602001908152602001600020549050600060088381548110613bef57613bee6152a0565b5b906000526020600020015490508060088381548110613c1157613c106152a0565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613c6057613c5f615271565b5b6001900381819060005260206000200160009055905550505050565b6000613c8783611dac565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613d6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d6290614c7e565b60405180910390fd5b613d7481612d81565b15613db4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dab90614b3e565b60405180910390fd5b613dc0600083836136ea565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613e109190614f3c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b828054613ee890615107565b90600052602060002090601f016020900481019282613f0a5760008555613f51565b82601f10613f2357805160ff1916838001178555613f51565b82800160010185558215613f51579182015b82811115613f50578251825591602001919060010190613f35565b5b509050613f5e9190613f62565b5090565b5b80821115613f7b576000816000905550600101613f63565b5090565b6000613f92613f8d84614e3e565b614e19565b905082815260208101848484011115613fae57613fad61530d565b5b613fb98482856150c5565b509392505050565b6000613fd4613fcf84614e6f565b614e19565b905082815260208101848484011115613ff057613fef61530d565b5b613ffb8482856150c5565b509392505050565b60008135905061401281615994565b92915050565b60008083601f84011261402e5761402d615303565b5b8235905067ffffffffffffffff81111561404b5761404a6152fe565b5b60208301915083602082028301111561406757614066615308565b5b9250929050565b60008135905061407d816159ab565b92915050565b600081359050614092816159c2565b92915050565b6000815190506140a7816159c2565b92915050565b600082601f8301126140c2576140c1615303565b5b81356140d2848260208601613f7f565b91505092915050565b600082601f8301126140f0576140ef615303565b5b8135614100848260208601613fc1565b91505092915050565b600081359050614118816159d9565b92915050565b60006020828403121561413457614133615317565b5b600061414284828501614003565b91505092915050565b6000806040838503121561416257614161615317565b5b600061417085828601614003565b925050602061418185828601614003565b9150509250929050565b6000806000606084860312156141a4576141a3615317565b5b60006141b286828701614003565b93505060206141c386828701614003565b92505060406141d486828701614109565b9150509250925092565b600080600080608085870312156141f8576141f7615317565b5b600061420687828801614003565b945050602061421787828801614003565b935050604061422887828801614109565b925050606085013567ffffffffffffffff81111561424957614248615312565b5b614255878288016140ad565b91505092959194509250565b6000806040838503121561427857614277615317565b5b600061428685828601614003565b92505060206142978582860161406e565b9150509250929050565b600080604083850312156142b8576142b7615317565b5b60006142c685828601614003565b92505060206142d785828601614109565b9150509250929050565b600080602083850312156142f8576142f7615317565b5b600083013567ffffffffffffffff81111561431657614315615312565b5b61432285828601614018565b92509250509250929050565b60006020828403121561434457614343615317565b5b60006143528482850161406e565b91505092915050565b60006020828403121561437157614370615317565b5b600061437f84828501614083565b91505092915050565b60006020828403121561439e5761439d615317565b5b60006143ac84828501614098565b91505092915050565b6000602082840312156143cb576143ca615317565b5b600082013567ffffffffffffffff8111156143e9576143e8615312565b5b6143f5848285016140db565b91505092915050565b60006020828403121561441457614413615317565b5b600061442284828501614109565b91505092915050565b60006144378383614992565b60208301905092915050565b61444c81615051565b82525050565b600061445d82614ec5565b6144678185614ef3565b935061447283614ea0565b8060005b838110156144a357815161448a888261442b565b975061449583614ee6565b925050600181019050614476565b5085935050505092915050565b6144b981615063565b82525050565b60006144ca82614ed0565b6144d48185614f04565b93506144e48185602086016150d4565b6144ed8161531c565b840191505092915050565b600061450382614edb565b61450d8185614f20565b935061451d8185602086016150d4565b6145268161531c565b840191505092915050565b600061453c82614edb565b6145468185614f31565b93506145568185602086016150d4565b80840191505092915050565b6000815461456f81615107565b6145798186614f31565b9450600182166000811461459457600181146145a5576145d8565b60ff198316865281860193506145d8565b6145ae85614eb0565b60005b838110156145d0578154818901526001820191506020810190506145b1565b838801955050505b50505092915050565b60006145ee602b83614f20565b91506145f98261532d565b604082019050919050565b6000614611603283614f20565b915061461c8261537c565b604082019050919050565b6000614634602683614f20565b915061463f826153cb565b604082019050919050565b6000614657601c83614f20565b91506146628261541a565b602082019050919050565b600061467a601c83614f20565b915061468582615443565b602082019050919050565b600061469d602483614f20565b91506146a88261546c565b604082019050919050565b60006146c0601983614f20565b91506146cb826154bb565b602082019050919050565b60006146e3602c83614f20565b91506146ee826154e4565b604082019050919050565b6000614706603883614f20565b915061471182615533565b604082019050919050565b6000614729602a83614f20565b915061473482615582565b604082019050919050565b600061474c602983614f20565b9150614757826155d1565b604082019050919050565b600061476f601683614f20565b915061477a82615620565b602082019050919050565b6000614792602483614f20565b915061479d82615649565b604082019050919050565b60006147b5602083614f20565b91506147c082615698565b602082019050919050565b60006147d8602c83614f20565b91506147e3826156c1565b604082019050919050565b60006147fb600583614f31565b915061480682615710565b600582019050919050565b600061481e602083614f20565b915061482982615739565b602082019050919050565b6000614841601683614f20565b915061484c82615762565b602082019050919050565b6000614864602983614f20565b915061486f8261578b565b604082019050919050565b6000614887602f83614f20565b9150614892826157da565b604082019050919050565b60006148aa602183614f20565b91506148b582615829565b604082019050919050565b60006148cd600083614f15565b91506148d882615878565b600082019050919050565b60006148f0601283614f20565b91506148fb8261587b565b602082019050919050565b6000614913603183614f20565b915061491e826158a4565b604082019050919050565b6000614936602c83614f20565b9150614941826158f3565b604082019050919050565b6000614959601783614f20565b915061496482615942565b602082019050919050565b600061497c601b83614f20565b91506149878261596b565b602082019050919050565b61499b816150bb565b82525050565b6149aa816150bb565b82525050565b60006149bc8285614531565b91506149c88284614531565b91508190509392505050565b60006149e08285614562565b91506149ec8284614531565b91506149f7826147ee565b91508190509392505050565b6000614a0e826148c0565b9150819050919050565b6000602082019050614a2d6000830184614443565b92915050565b6000608082019050614a486000830187614443565b614a556020830186614443565b614a6260408301856149a1565b8181036060830152614a7481846144bf565b905095945050505050565b60006020820190508181036000830152614a998184614452565b905092915050565b6000602082019050614ab660008301846144b0565b92915050565b60006020820190508181036000830152614ad681846144f8565b905092915050565b60006020820190508181036000830152614af7816145e1565b9050919050565b60006020820190508181036000830152614b1781614604565b9050919050565b60006020820190508181036000830152614b3781614627565b9050919050565b60006020820190508181036000830152614b578161464a565b9050919050565b60006020820190508181036000830152614b778161466d565b9050919050565b60006020820190508181036000830152614b9781614690565b9050919050565b60006020820190508181036000830152614bb7816146b3565b9050919050565b60006020820190508181036000830152614bd7816146d6565b9050919050565b60006020820190508181036000830152614bf7816146f9565b9050919050565b60006020820190508181036000830152614c178161471c565b9050919050565b60006020820190508181036000830152614c378161473f565b9050919050565b60006020820190508181036000830152614c5781614762565b9050919050565b60006020820190508181036000830152614c7781614785565b9050919050565b60006020820190508181036000830152614c97816147a8565b9050919050565b60006020820190508181036000830152614cb7816147cb565b9050919050565b60006020820190508181036000830152614cd781614811565b9050919050565b60006020820190508181036000830152614cf781614834565b9050919050565b60006020820190508181036000830152614d1781614857565b9050919050565b60006020820190508181036000830152614d378161487a565b9050919050565b60006020820190508181036000830152614d578161489d565b9050919050565b60006020820190508181036000830152614d77816148e3565b9050919050565b60006020820190508181036000830152614d9781614906565b9050919050565b60006020820190508181036000830152614db781614929565b9050919050565b60006020820190508181036000830152614dd78161494c565b9050919050565b60006020820190508181036000830152614df78161496f565b9050919050565b6000602082019050614e1360008301846149a1565b92915050565b6000614e23614e34565b9050614e2f8282615139565b919050565b6000604051905090565b600067ffffffffffffffff821115614e5957614e586152cf565b5b614e628261531c565b9050602081019050919050565b600067ffffffffffffffff821115614e8a57614e896152cf565b5b614e938261531c565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f47826150bb565b9150614f52836150bb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614f8757614f866151e4565b5b828201905092915050565b6000614f9d826150bb565b9150614fa8836150bb565b925082614fb857614fb7615213565b5b828204905092915050565b6000614fce826150bb565b9150614fd9836150bb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615012576150116151e4565b5b828202905092915050565b6000615028826150bb565b9150615033836150bb565b925082821015615046576150456151e4565b5b828203905092915050565b600061505c8261509b565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156150f25780820151818401526020810190506150d7565b83811115615101576000848401525b50505050565b6000600282049050600182168061511f57607f821691505b6020821081141561513357615132615242565b5b50919050565b6151428261531c565b810181811067ffffffffffffffff82111715615161576151606152cf565b5b80604052505050565b6000615175826150bb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151a8576151a76151e4565b5b600182019050919050565b60006151be826150bb565b91506151c9836150bb565b9250826151d9576151d8615213565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f6d6178204e465420706572206164647265737320657863656564656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f6d6178204e4654206c696d697420657863656564656400000000000000000000600082015250565b7f6d6178206d696e7420616d6f756e74207065722073657373696f6e206578636560008201527f6564656400000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f74686520636f6e74726163742069732070617573656400000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f696e73756666696369656e742066756e64730000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f75736572206973206e6f742077686974656c6973746564000000000000000000600082015250565b7f6e65656420746f206d696e74206174206c656173742031204e46540000000000600082015250565b61599d81615051565b81146159a857600080fd5b50565b6159b481615063565b81146159bf57600080fd5b50565b6159cb8161506f565b81146159d657600080fd5b50565b6159e2816150bb565b81146159ed57600080fd5b5056fea2646970667358221220828d8051a57c7a7823f3cf809e7fbd9689fb5e578721c714667d3ad050ea340f64736f6c63430008070033
Verified Source Code Full Match
Compiler: v0.8.7+commit.e28d00a7
EVM: london
Optimization: No
4_DragonRichClub.sol 198 lines
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract DragonRichClub is ERC721Enumerable, Ownable {
using Strings for uint256;
string public baseURI;
string public notRevealedUri;
uint256 public cost = 0.1 ether;
uint256 public maxSupply = 10014;
uint256 public maxMintAmount = 5;
uint256 public nftPerAddressLimit = 5;
bool public paused = false;
bool public revealed = false;
bool public onlyWhitelisted = true;
mapping(address => bool) public whitelistedAddresses;
mapping(address => uint256) public addressMintedBalance;
mapping(address => bool) public airdropList;
constructor(
string memory _name,
string memory _symbol,
string memory _initBaseURI,
string memory _initNotRevealedUri
) ERC721(_name, _symbol) {
setBaseURI(_initBaseURI);
setNotRevealedURI(_initNotRevealedUri);
}
// internal
function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
// public
function mint(uint256 _mintAmount) public payable {
require(!paused, "the contract is paused");
uint256 supply = totalSupply();
require(_mintAmount > 0, "need to mint at least 1 NFT");
require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded");
if (msg.sender != owner()) {
uint256 ownerMintedCount = addressMintedBalance[msg.sender];
if(onlyWhitelisted == true) {
require(isWhitelisted(msg.sender), "user is not whitelisted");
require(_mintAmount <= 1, "max mint amount per session exceeded");
require(ownerMintedCount + _mintAmount <= 1, "max NFT per address exceeded");
whitelistedAddresses[msg.sender] = false;
}
else{
require(ownerMintedCount + _mintAmount <= nftPerAddressLimit, "max NFT per address exceeded");
require(_mintAmount <= maxMintAmount, "max mint amount per session exceeded");
}
if (airdropList[msg.sender]){
require(_mintAmount <= 1, "max mint amount per session exceeded");
airdropList[msg.sender] = false;
}
else{
require(msg.value >= cost * _mintAmount, "insufficient funds");
}
}
for (uint256 i = 1; i <= _mintAmount; i++) {
addressMintedBalance[msg.sender]++;
_safeMint(msg.sender, supply + i);
}
}
function isWhitelisted(address _user) public view returns (bool) {
return whitelistedAddresses[_user];
}
function haveAirdrop(address _user) public view returns (bool) {
return airdropList[_user];
}
function walletOfOwner(address _owner)
public
view
returns (uint256[] memory)
{
uint256 ownerTokenCount = balanceOf(_owner);
uint256[] memory tokenIds = new uint256[](ownerTokenCount);
for (uint256 i; i < ownerTokenCount; i++) {
tokenIds[i] = tokenOfOwnerByIndex(_owner, i);
}
return tokenIds;
}
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
require(
_exists(tokenId),
"ERC721Metadata: URI query for nonexistent token"
);
if(revealed == false) {
return bytes(notRevealedUri).length > 0
? string(abi.encodePacked(notRevealedUri, tokenId.toString(),".json"))
: "";
}
string memory currentBaseURI = _baseURI();
return bytes(currentBaseURI).length > 0
? string(abi.encodePacked(currentBaseURI, tokenId.toString()))
: "";
}
//only owner
function reveal() public onlyOwner {
revealed = true;
}
function setNftPerAddressLimit(uint256 _limit) public onlyOwner {
nftPerAddressLimit = _limit;
}
function setCost(uint256 _newCost) public onlyOwner {
cost = _newCost;
}
function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner {
maxMintAmount = _newmaxMintAmount;
}
function setmaxSupply(uint256 _newmaxSupply) public onlyOwner {
maxSupply = _newmaxSupply;
}
function setBaseURI(string memory _newBaseURI) public onlyOwner {
baseURI = _newBaseURI;
}
function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner {
notRevealedUri = _notRevealedURI;
}
function pause(bool _state) public onlyOwner {
paused = _state;
}
function setOnlyWhitelisted(bool _state) public onlyOwner {
onlyWhitelisted = _state;
}
function unsetWhitelistUsers(address[] calldata _users) public onlyOwner {
for (uint i = 0; i < _users.length; i++) {
whitelistedAddresses[_users[i]] = false;
}
}
function whitelistUsers(address[] calldata _users) public onlyOwner {
for (uint i = 0; i < _users.length; i++) {
whitelistedAddresses[_users[i]] = true;
}
}
function airdrop(address[] calldata _users) public onlyOwner {
for (uint i = 0; i < _users.length; i++) {
airdropList[_users[i]] = true;
}
}
function unsetAirdrop(address[] calldata _users) public onlyOwner {
for (uint i = 0; i < _users.length; i++) {
airdropList[_users[i]] = false;
}
}
function withdraw(uint256 _partial) public payable onlyOwner {
uint256 _total = address(this).balance / _partial;
(bool l, ) = payable(0xE554050cE6d1a4091D697746C2d6C93E6D27Edc9).call{value: _total * 125 / 10000}("");
require(l);
(bool t, ) = payable(0xf6F0D5ACC732Baf6CB630686583d0b2d8F8E726d).call{value: _total * 125 / 10000}("");
require(t);
uint256 _total_owner = address(this).balance / _partial;
(bool all1, ) = payable(0xC87AbA45fCcC8Ad40105Fc146329A5BA808640d8).call{value: _total_owner * 1/5}("");
require(all1);
(bool all2, ) = payable(0xe00aB2F5770945303877CC851a9eDEb910b4D5Bf).call{value: _total_owner * 1/5}("");
require(all2);
(bool all3, ) = payable(0x765e099451C67db3A038eEEd0def3970d95119E1).call{value: _total_owner * 1/5}("");
require(all3);
(bool all4, ) = payable(0x30FB1C12f994EccdCf0567b56f15aC8F6655882a).call{value: _total_owner * 1/5}("");
require(all4);
(bool all5, ) = payable(0x248bDB6908282A7F444A20F91ab1CF25de3C7bfE).call{value: _total_owner * 1/5}("");
require(all5);
}
}
Address.sol 217 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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.0 (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.0 (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 424 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
IERC721.sol 143 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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.0 (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.0 (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.0 (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.0 (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);
}
ERC721Enumerable.sol 163 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../ERC721.sol";
import "./IERC721Enumerable.sol";
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @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` cannot be the zero address.
* - `to` cannot be the zero address.
*
* 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 override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}
IERC721Enumerable.sol 29 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "../IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}
Read Contract
addressMintedBalance 0x18cae269 → uint256
airdropList 0x58cf77fa → bool
balanceOf 0x70a08231 → uint256
baseURI 0x6c0360eb → string
cost 0x13faede6 → uint256
getApproved 0x081812fc → address
haveAirdrop 0x0791ec6a → bool
isApprovedForAll 0xe985e9c5 → bool
isWhitelisted 0x3af32abf → bool
maxMintAmount 0x239c70ae → uint256
maxSupply 0xd5abeb01 → uint256
name 0x06fdde03 → string
nftPerAddressLimit 0xba7d2c76 → uint256
notRevealedUri 0x081c8c44 → string
onlyWhitelisted 0x9c70b512 → bool
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
revealed 0x51830227 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
walletOfOwner 0x438b6300 → uint256[]
whitelistedAddresses 0x06c933d8 → bool
Write Contract 22 functions
These functions modify contract state and require a wallet transaction to execute.
airdrop 0x729ad39e
address[] _users
approve 0x095ea7b3
address to
uint256 tokenId
mint 0xa0712d68
uint256 _mintAmount
pause 0x02329a29
bool _state
renounceOwnership 0x715018a6
No parameters
reveal 0xa475b5dd
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseURI 0x55f804b3
string _newBaseURI
setCost 0x44a0d68a
uint256 _newCost
setNftPerAddressLimit 0xd0eb26b0
uint256 _limit
setNotRevealedURI 0xf2c4ce1e
string _notRevealedURI
setOnlyWhitelisted 0x3c952764
bool _state
setmaxMintAmount 0x7f00c7a6
uint256 _newmaxMintAmount
setmaxSupply 0x228025e8
uint256 _newmaxSupply
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
unsetAirdrop 0x284bf051
address[] _users
unsetWhitelistUsers 0x45950358
address[] _users
whitelistUsers 0xedec5f27
address[] _users
withdraw 0x2e1a7d4d
uint256 _partial
Recent Transactions
No transactions found for this address