Address Contract Partially Verified
Address
0x7c9C6E39E6d1D539acC2ec1DE5CC4Ab30C6Bfe0e
Balance
0 ETH
Nonce
1
Code Size
23794 bytes
Creator
0x1ffCa049...693C at tx 0x3a2f23fb...53339f
Indexed Transactions
0
Contract Bytecode
23794 bytes
0x60806040526004361061027d5760003560e01c80634a94d4871161014f57806395d89b41116100c1578063d547cfb71161007a578063d547cfb7146109a9578063d54aacd3146109d4578063e985e9c514610a11578063ed92377c14610a4e578063f2fde38b14610a6a578063f923e8c314610a935761027d565b806395d89b411461089b5780639dc29fac146108c6578063a22cb465146108ef578063b88d4fde14610918578063c87b56dd14610941578063cd7c03261461097e5761027d565b80636352211e116101135780636352211e1461079f57806370a08231146107dc578063715018a6146108195780638456cb5914610830578063862440e2146108475780638da5cb5b146108705761027d565b80634a94d4871461069f5780634f558e79146106cf57806353de9ae61461070c5780635c975abb146107375780635dd7a93d146107625761027d565b806323b872dd116101f35780633588ad7c116101ac5780633588ad7c146105b45780633a5a2f29146105dd5780633f4ba83a1461060657806341facdf11461061d57806342842e0e1461063957806346bdd5b7146106625761027d565b806323b872dd146104a657806324d88785146104cf578063261cb92a146104f85780632b1d65b6146105235780632d0335ab1461054c5780633408e470146105895761027d565b80630c53c51c116102455780630c53c51c1461038d5780630f7e5970146103bd5780631570b77c146103e857806318160ddd146104135780631e7d9dbb1461043e57806320379ee51461047b5761027d565b806301ffc9a71461028257806304efcc40146102bf57806306fdde03146102fc578063081812fc14610327578063095ea7b314610364575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190613c6f565b610abe565b6040516102b69190613cb7565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e19190613e4e565b610ba0565b6040516102f39190613eb9565b60405180910390f35b34801561030857600080fd5b50610311610c1b565b60405161031e9190613f5c565b60405180910390f35b34801561033357600080fd5b5061034e60048036038101906103499190613f7e565b610cad565b60405161035b9190613fec565b60405180910390f35b34801561037057600080fd5b5061038b60048036038101906103869190614033565b610d32565b005b6103a760048036038101906103a29190614183565b610ed5565b6040516103b4919061426f565b60405180910390f35b3480156103c957600080fd5b506103d2611108565b6040516103df9190613f5c565b60405180910390f35b3480156103f457600080fd5b506103fd611141565b60405161040a9190613fec565b60405180910390f35b34801561041f57600080fd5b50610428611167565b6040516104359190613eb9565b60405180910390f35b34801561044a57600080fd5b5061046560048036038101906104609190613f7e565b611184565b6040516104729190613cb7565b60405180910390f35b34801561048757600080fd5b506104906111ae565b60405161049d91906142a0565b60405180910390f35b3480156104b257600080fd5b506104cd60048036038101906104c891906142bb565b6111b8565b005b3480156104db57600080fd5b506104f660048036038101906104f1919061430e565b6111d8565b005b34801561050457600080fd5b5061050d611241565b60405161051a9190613fec565b60405180910390f35b34801561052f57600080fd5b5061054a60048036038101906105459190614357565b611267565b005b34801561055857600080fd5b50610573600480360381019061056e91906143c6565b611313565b6040516105809190613eb9565b60405180910390f35b34801561059557600080fd5b5061059e61135c565b6040516105ab9190613eb9565b60405180910390f35b3480156105c057600080fd5b506105db60048036038101906105d691906143f3565b611369565b005b3480156105e957600080fd5b5061060460048036038101906105ff91906143c6565b611411565b005b34801561061257600080fd5b5061061b6114a4565b005b6106376004803603810190610632919061444f565b6114fd565b005b34801561064557600080fd5b50610660600480360381019061065b91906142bb565b61163e565b005b34801561066e57600080fd5b506106896004803603810190610684919061430e565b61165e565b6040516106969190613eb9565b60405180910390f35b6106b960048036038101906106b491906144da565b611686565b6040516106c6919061426f565b60405180910390f35b3480156106db57600080fd5b506106f660048036038101906106f19190613f7e565b6116eb565b6040516107039190613cb7565b60405180910390f35b34801561071857600080fd5b50610721611757565b60405161072e9190613eb9565b60405180910390f35b34801561074357600080fd5b5061074c61175d565b6040516107599190613cb7565b60405180910390f35b34801561076e57600080fd5b5061078960048036038101906107849190613e4e565b611774565b6040516107969190613eb9565b60405180910390f35b3480156107ab57600080fd5b506107c660048036038101906107c19190613f7e565b6117b9565b6040516107d39190613fec565b60405180910390f35b3480156107e857600080fd5b5061080360048036038101906107fe91906143c6565b6117cb565b6040516108109190613eb9565b60405180910390f35b34801561082557600080fd5b5061082e6117f8565b005b34801561083c57600080fd5b50610845611880565b005b34801561085357600080fd5b5061086e600480360381019061086991906143f3565b6118d9565b005b34801561087c57600080fd5b5061088561199f565b6040516108929190613fec565b60405180910390f35b3480156108a757600080fd5b506108b06119c9565b6040516108bd9190613f5c565b60405180910390f35b3480156108d257600080fd5b506108ed60048036038101906108e89190614033565b611a5b565b005b3480156108fb57600080fd5b5061091660048036038101906109119190614575565b611ab5565b005b34801561092457600080fd5b5061093f600480360381019061093a91906145b5565b611c36565b005b34801561094d57600080fd5b5061096860048036038101906109639190613f7e565b611d28565b6040516109759190613f5c565b60405180910390f35b34801561098a57600080fd5b50610993611e8d565b6040516109a09190613fec565b60405180910390f35b3480156109b557600080fd5b506109be611eb3565b6040516109cb9190613f5c565b60405180910390f35b3480156109e057600080fd5b506109fb60048036038101906109f6919061430e565b611f45565b604051610a089190613eb9565b60405180910390f35b348015610a1d57600080fd5b50610a386004803603810190610a339190614638565b611f6d565b604051610a459190613cb7565b60405180910390f35b610a686004803603810190610a639190613e4e565b612001565b005b348015610a7657600080fd5b50610a916004803603810190610a8c91906143c6565b6122a5565b005b348015610a9f57600080fd5b50610aa861239d565b604051610ab59190613f5c565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b8957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b995750610b9882612523565b5b9050919050565b6000610bb2610bad61258d565b61259c565b610bf1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be8906146ea565b60405180910390fd5b81601584604051610c029190614746565b9081526020016040518091039020819055905092915050565b606060008054610c2a9061478c565b80601f0160208091040260200160405190810160405280929190818152602001828054610c569061478c565b8015610ca35780601f10610c7857610100808354040283529160200191610ca3565b820191906000526020600020905b815481529060010190602001808311610c8657829003601f168201915b5050505050905090565b6000610cb8826125f3565b610cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cee90614830565b60405180910390fd5b600e600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d3d826117b9565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da5906148c2565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610dcd61258d565b73ffffffffffffffffffffffffffffffffffffffff1614610e23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1a90614954565b60405180910390fd5b82600e600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b606060006040518060600160405280600860008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610f58878287878761265f565b610f97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8e906149e6565b60405180910390fd5b6001600860008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610fe79190614a35565b925050819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b87338860405161102193929190614aac565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001611056929190614b6e565b6040516020818303038152906040526040516110729190614b96565b6000604051808303816000865af19150503d80600081146110af576040519150601f19603f3d011682016040523d82523d6000602084013e6110b4565b606091505b5091509150816110f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f090614bf9565b60405180910390fd5b80935050505095945050505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006001611175600a612515565b61117f9190614c19565b905090565b60006019600083815260200190815260200160002060009054906101000a900460ff169050919050565b6000600754905090565b6111d383838360405180602001604052806000815250611c36565b505050565b6111e86111e361258d565b61259c565b611227576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121e906146ea565b60405180910390fd5b806010908051906020019061123d929190613b13565b5050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61127761127261258d565b61259c565b6112b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ad906146ea565b60405180910390fd5b806015846040516112c79190614746565b908152602001604051809103902081905550816017846040516112ea9190614746565b90815260200160405180910390208190555061130e8383611309611eb3565b612768565b505050565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000804690508091505090565b61137961137461258d565b61259c565b6113b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113af906146ea565b60405180910390fd5b816113c281611184565b15611402576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f990614cbf565b60405180910390fd5b61140c83836128a7565b505050565b61142161141c61258d565b61259c565b611460576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611457906146ea565b60405180910390fd5b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6114b46114af61258d565b61259c565b6114f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ea906146ea565b60405180910390fd5b6114fb61295d565b565b6002600f541415611543576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153a90614d2b565b60405180910390fd5b6002600f819055503461157d836015866040516115609190614746565b9081526020016040518091039020546129ff90919063ffffffff16565b146115bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b490614d97565b60405180910390fd5b6115c8838383612768565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015611630573d6000803e3d6000fd5b506001600f81905550505050565b61165983838360405180602001604052806000815250611c36565b505050565b60006015826040516116709190614746565b9081526020016040518091039020549050919050565b606061169861169361258d565b61259c565b6116d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ce906146ea565b60405180910390fd5b6116e2848484612a15565b90509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff16600d600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60115481565b6000600660009054906101000a900460ff16905090565b60006014836040516117869190614746565b908152602001604051809103902082815481106117a6576117a5614db7565b5b9060005260206000200154905092915050565b60006117c482612a44565b9050919050565b60006117d68261259c565b6117e8576117e382612af6565b6117f1565b6117f0611167565b5b9050919050565b61180061258d565b73ffffffffffffffffffffffffffffffffffffffff1661181e61199f565b73ffffffffffffffffffffffffffffffffffffffff1614611874576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186b90614e32565b60405180910390fd5b61187e6000612bae565b565b61189061188b61258d565b61259c565b6118cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c6906146ea565b60405180910390fd5b6118d7612c74565b565b6118e96118e461258d565b61259c565b611928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191f906146ea565b60405180910390fd5b8161193281611184565b15611972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196990614cbf565b60405180910390fd5b81601860008581526020019081526020016000209080519060200190611999929190613b13565b50505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546119d89061478c565b80601f0160208091040260200160405190810160405280929190818152602001828054611a049061478c565b8015611a515780601f10611a2657610100808354040283529160200191611a51565b820191906000526020600020905b815481529060010190602001808311611a3457829003601f168201915b5050505050905090565b8181611a678282612d17565b611aa6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9d90614eea565b60405180910390fd5b611aaf83612d8d565b50505050565b611abd61258d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2290614f56565b60405180910390fd5b8060056000611b3861258d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611be561258d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611c2a9190613cb7565b60405180910390a35050565b611c47611c4161258d565b83612d17565b611c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7d90614eea565b60405180910390fd5b611c96611c9161258d565b61259c565b15611ca757611ca4826117b9565b93505b8273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611d16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0d90614fe8565b60405180910390fd5b611d2284848484612edb565b50505050565b6060611d33826125f3565b611d72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d699061507a565b60405180910390fd5b6000601860008481526020019081526020016000208054611d929061478c565b80601f0160208091040260200160405190810160405280929190818152602001828054611dbe9061478c565b8015611e0b5780601f10611de057610100808354040283529160200191611e0b565b820191906000526020600020905b815481529060010190602001808311611dee57829003601f168201915b505050505090506000611e1c611eb3565b511415611e2c5780915050611e88565b600081511115611e3f5780915050611e88565b611e47611eb3565b60166000858152602001908152602001600020611e6385613291565b604051602001611e759392919061517a565b6040516020818303038152906040529150505b919050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060108054611ec29061478c565b80601f0160208091040260200160405190810160405280929190818152602001828054611eee9061478c565b8015611f3b5780601f10611f1057610100808354040283529160200191611f3b565b820191906000526020600020905b815481529060010190602001808311611f1e57829003601f168201915b5050505050905090565b6000601782604051611f579190614746565b9081526020016040518091039020549050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6002600f541415612047576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203e90614d2b565b60405180910390fd5b6002600f8190555034612081826015856040516120649190614746565b9081526020016040518091039020546129ff90919063ffffffff16565b146120c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120b890614d97565b60405180910390fd5b60006120cc83611f45565b905081811015612111576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210890615202565b60405180910390fd5b60006001905060008390505b60008111156121ff57600081101561216a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121619061526e565b60405180910390fd5b600060148660405161217c9190614746565b908152602001604051809103902083856121969190614c19565b815481106121a7576121a6614db7565b5b906000526020600020015490506121dd6121bf61199f565b6121c761258d565b8360405180602001604052806000815250612edb565b82806121e89061528e565b9350505080806121f7906152d7565b91505061211d565b50828261220c9190614c19565b60178560405161221c9190614746565b908152602001604051809103902081905550601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015612296573d6000803e3d6000fd5b5050506001600f819055505050565b6122ad61258d565b73ffffffffffffffffffffffffffffffffffffffff166122cb61199f565b73ffffffffffffffffffffffffffffffffffffffff1614612321576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231890614e32565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612391576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238890615373565b60405180910390fd5b61239a81612bae565b50565b601080546123aa9061478c565b80601f01602080910402602001604051908101604052809291908181526020018280546123d69061478c565b80156124235780601f106123f857610100808354040283529160200191612423565b820191906000526020600020905b81548152906001019060200180831161240657829003601f168201915b505050505081565b6001816000016000828254019250508190555050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156124eb57600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff8183015116925050506124ef565b3390505b90565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600081600001549050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000612597612441565b905090565b60008173ffffffffffffffffffffffffffffffffffffffff166125bd61199f565b73ffffffffffffffffffffffffffffffffffffffff1614806125ec57506125eb6125e561199f565b836133f2565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff16600d600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614156126d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c790615405565b60405180910390fd5b60016126e36126de87613524565b61358c565b838686604051600081526020016040526040516127039493929190615434565b6020604051602081039080840390855afa158015612725573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b60008267ffffffffffffffff81111561278457612783613ced565b5b6040519080825280602002602001820160405280156127b25781602001602082028036833780820191505090505b50905060005b8381101561286d57846016600060016127cf611167565b6127d99190614a35565b815260200190815260200160002090805190602001906127fa929190613b13565b506001612805611167565b61280f9190614a35565b82828151811061282257612821614db7565b5b60200260200101818152505061285a601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846135c5565b80806128659061528e565b9150506127b8565b508060148560405161287f9190614746565b908152602001604051809103902090805190602001906128a0929190613b99565b5050505050565b60008151116128eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128e2906154eb565b60405180910390fd5b60016019600084815260200190815260200160002060006101000a81548160ff02191690831515021790555061292182826137d0565b817fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207826040516129519190613f5c565b60405180910390a25050565b61296561175d565b6129a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161299b90615557565b60405180910390fd5b6000600660006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6129e861258d565b6040516129f59190613fec565b60405180910390a1565b60008183612a0d9190615577565b905092915050565b6060612a3b848484604051806060016040528060298152602001615c94602991396137fc565b90509392505050565b600080600d600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612aed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ae490615643565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5e906156d5565b60405180910390fd5b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612c7c61175d565b15612cbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb390615741565b60405180910390fd5b6001600660006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d0061258d565b604051612d0d9190613fec565b60405180910390a1565b6000612d228361259c565b612d82578273ffffffffffffffffffffffffffffffffffffffff16612d46836117b9565b73ffffffffffffffffffffffffffffffffffffffff161480612d7d5750612d7c612d6f836117b9565b612d7761258d565b611f6d565b5b612d85565b60015b905092915050565b612d9561175d565b15612dd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dcc90615741565b60405180910390fd5b6000612de0826117b9565b9050612dee81600084613910565b6001600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e3e9190614c19565b92505081905550600d600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612ee361175d565b15612f23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f1a90615741565b60405180910390fd5b612f33612f2e61258d565b61259c565b80612f7157508373ffffffffffffffffffffffffffffffffffffffff16612f59836117b9565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f915750612f90612f83836117b9565b612f8b61258d565b611f6d565b5b612fd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc7906157d3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613040576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161303790615865565b60405180910390fd5b613049826117b9565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461308757613084826117b9565b93505b613092848484613910565b6000600e600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131359190614c19565b925050819055506001600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461318c9190614a35565b9250508190555082600d600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506131f184848484613915565b613230576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613227906158f7565b60405180910390fd5b818373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b606060008214156132d9576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506133ed565b600082905060005b6000821461330b5780806132f49061528e565b915050600a826133049190615946565b91506132e1565b60008167ffffffffffffffff81111561332757613326613ced565b5b6040519080825280601f01601f1916602001820160405280156133595781602001600182028036833780820191505090505b5090505b600085146133e6576001826133729190614c19565b9150600a856133819190615977565b603061338d9190614a35565b60f81b8183815181106133a3576133a2614db7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856133df9190615946565b945061335d565b8093505050505b919050565b6000613435600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166124f2565b613442576000905061351e565b8173ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c4552791856040518263ffffffff1660e01b81526004016134b49190613fec565b60206040518083038186803b1580156134cc57600080fd5b505afa1580156134e0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061350491906159bd565b73ffffffffffffffffffffffffffffffffffffffff161490505b92915050565b6000604051806080016040528060438152602001615c5160439139805190602001208260000151836020015184604001518051906020012060405160200161356f94939291906159ea565b604051602081830303815290604052805190602001209050919050565b60006135966111ae565b826040516020016135a8929190615a2f565b604051602081830303815290604052805190602001209050919050565b6135cd61175d565b1561360d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161360490615741565b60405180910390fd5b6000613619600a612515565b9050613625600a61242b565b61362e816125f3565b1561366e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161366590615aa4565b60405180910390fd5b61367a60008483613910565b6001600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136ca9190614a35565b9250508190555082600d600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506137306000848385613915565b61376f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613766906158f7565b60405180910390fd5b808373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b806018600084815260200190815260200160002090805190602001906137f7929190613b13565b505050565b606082471015613841576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161383890615b36565b60405180910390fd5b61384a856124f2565b613889576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161388090615ba2565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516138b29190614b96565b60006040518083038185875af1925050503d80600081146138ef576040519150601f19603f3d011682016040523d82523d6000602084013e6138f4565b606091505b5091509150613904828286613aac565b92505050949350505050565b505050565b60006139368473ffffffffffffffffffffffffffffffffffffffff166124f2565b15613a9f578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261395f61258d565b8786866040518563ffffffff1660e01b81526004016139819493929190615bc2565b602060405180830381600087803b15801561399b57600080fd5b505af19250505080156139cc57506040513d601f19601f820116820180604052508101906139c99190615c23565b60015b613a4f573d80600081146139fc576040519150601f19603f3d011682016040523d82523d6000602084013e613a01565b606091505b50600081511415613a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a3e906158f7565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613aa4565b600190505b949350505050565b60608315613abc57829050613b0c565b600083511115613acf5782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b039190613f5c565b60405180910390fd5b9392505050565b828054613b1f9061478c565b90600052602060002090601f016020900481019282613b415760008555613b88565b82601f10613b5a57805160ff1916838001178555613b88565b82800160010185558215613b88579182015b82811115613b87578251825591602001919060010190613b6c565b5b509050613b959190613be6565b5090565b828054828255906000526020600020908101928215613bd5579160200282015b82811115613bd4578251825591602001919060010190613bb9565b5b509050613be29190613be6565b5090565b5b80821115613bff576000816000905550600101613be7565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613c4c81613c17565b8114613c5757600080fd5b50565b600081359050613c6981613c43565b92915050565b600060208284031215613c8557613c84613c0d565b5b6000613c9384828501613c5a565b91505092915050565b60008115159050919050565b613cb181613c9c565b82525050565b6000602082019050613ccc6000830184613ca8565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d2582613cdc565b810181811067ffffffffffffffff82111715613d4457613d43613ced565b5b80604052505050565b6000613d57613c03565b9050613d638282613d1c565b919050565b600067ffffffffffffffff821115613d8357613d82613ced565b5b613d8c82613cdc565b9050602081019050919050565b82818337600083830152505050565b6000613dbb613db684613d68565b613d4d565b905082815260208101848484011115613dd757613dd6613cd7565b5b613de2848285613d99565b509392505050565b600082601f830112613dff57613dfe613cd2565b5b8135613e0f848260208601613da8565b91505092915050565b6000819050919050565b613e2b81613e18565b8114613e3657600080fd5b50565b600081359050613e4881613e22565b92915050565b60008060408385031215613e6557613e64613c0d565b5b600083013567ffffffffffffffff811115613e8357613e82613c12565b5b613e8f85828601613dea565b9250506020613ea085828601613e39565b9150509250929050565b613eb381613e18565b82525050565b6000602082019050613ece6000830184613eaa565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613f0e578082015181840152602081019050613ef3565b83811115613f1d576000848401525b50505050565b6000613f2e82613ed4565b613f388185613edf565b9350613f48818560208601613ef0565b613f5181613cdc565b840191505092915050565b60006020820190508181036000830152613f768184613f23565b905092915050565b600060208284031215613f9457613f93613c0d565b5b6000613fa284828501613e39565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613fd682613fab565b9050919050565b613fe681613fcb565b82525050565b60006020820190506140016000830184613fdd565b92915050565b61401081613fcb565b811461401b57600080fd5b50565b60008135905061402d81614007565b92915050565b6000806040838503121561404a57614049613c0d565b5b60006140588582860161401e565b925050602061406985828601613e39565b9150509250929050565b600067ffffffffffffffff82111561408e5761408d613ced565b5b61409782613cdc565b9050602081019050919050565b60006140b76140b284614073565b613d4d565b9050828152602081018484840111156140d3576140d2613cd7565b5b6140de848285613d99565b509392505050565b600082601f8301126140fb576140fa613cd2565b5b813561410b8482602086016140a4565b91505092915050565b6000819050919050565b61412781614114565b811461413257600080fd5b50565b6000813590506141448161411e565b92915050565b600060ff82169050919050565b6141608161414a565b811461416b57600080fd5b50565b60008135905061417d81614157565b92915050565b600080600080600060a0868803121561419f5761419e613c0d565b5b60006141ad8882890161401e565b955050602086013567ffffffffffffffff8111156141ce576141cd613c12565b5b6141da888289016140e6565b94505060406141eb88828901614135565b93505060606141fc88828901614135565b925050608061420d8882890161416e565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b60006142418261421a565b61424b8185614225565b935061425b818560208601613ef0565b61426481613cdc565b840191505092915050565b600060208201905081810360008301526142898184614236565b905092915050565b61429a81614114565b82525050565b60006020820190506142b56000830184614291565b92915050565b6000806000606084860312156142d4576142d3613c0d565b5b60006142e28682870161401e565b93505060206142f38682870161401e565b925050604061430486828701613e39565b9150509250925092565b60006020828403121561432457614323613c0d565b5b600082013567ffffffffffffffff81111561434257614341613c12565b5b61434e84828501613dea565b91505092915050565b6000806000606084860312156143705761436f613c0d565b5b600084013567ffffffffffffffff81111561438e5761438d613c12565b5b61439a86828701613dea565b93505060206143ab86828701613e39565b92505060406143bc86828701613e39565b9150509250925092565b6000602082840312156143dc576143db613c0d565b5b60006143ea8482850161401e565b91505092915050565b6000806040838503121561440a57614409613c0d565b5b600061441885828601613e39565b925050602083013567ffffffffffffffff81111561443957614438613c12565b5b61444585828601613dea565b9150509250929050565b60008060006060848603121561446857614467613c0d565b5b600084013567ffffffffffffffff81111561448657614485613c12565b5b61449286828701613dea565b93505060206144a386828701613e39565b925050604084013567ffffffffffffffff8111156144c4576144c3613c12565b5b6144d0868287016140e6565b9150509250925092565b6000806000606084860312156144f3576144f2613c0d565b5b60006145018682870161401e565b935050602084013567ffffffffffffffff81111561452257614521613c12565b5b61452e868287016140e6565b925050604061453f86828701613e39565b9150509250925092565b61455281613c9c565b811461455d57600080fd5b50565b60008135905061456f81614549565b92915050565b6000806040838503121561458c5761458b613c0d565b5b600061459a8582860161401e565b92505060206145ab85828601614560565b9150509250929050565b600080600080608085870312156145cf576145ce613c0d565b5b60006145dd8782880161401e565b94505060206145ee8782880161401e565b93505060406145ff87828801613e39565b925050606085013567ffffffffffffffff8111156146205761461f613c12565b5b61462c878288016140e6565b91505092959194509250565b6000806040838503121561464f5761464e613c0d565b5b600061465d8582860161401e565b925050602061466e8582860161401e565b9150509250929050565b7f4552433732315472616461626c65236f6e6c794f776e65723a2043414c4c455260008201527f5f49535f4e4f545f4f574e455200000000000000000000000000000000000000602082015250565b60006146d4602d83613edf565b91506146df82614678565b604082019050919050565b60006020820190508181036000830152614703816146c7565b9050919050565b600081905092915050565b600061472082613ed4565b61472a818561470a565b935061473a818560208601613ef0565b80840191505092915050565b60006147528284614715565b915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806147a457607f821691505b602082108114156147b8576147b761475d565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061481a602c83613edf565b9150614825826147be565b604082019050919050565b600060208201905081810360008301526148498161480d565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006148ac602183613edf565b91506148b782614850565b604082019050919050565b600060208201905081810360008301526148db8161489f565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061493e603883613edf565b9150614949826148e2565b604082019050919050565b6000602082019050818103600083015261496d81614931565b9050919050565b7f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008201527f6800000000000000000000000000000000000000000000000000000000000000602082015250565b60006149d0602183613edf565b91506149db82614974565b604082019050919050565b600060208201905081810360008301526149ff816149c3565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614a4082613e18565b9150614a4b83613e18565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a8057614a7f614a06565b5b828201905092915050565b6000614a9682613fab565b9050919050565b614aa681614a8b565b82525050565b6000606082019050614ac16000830186613fdd565b614ace6020830185614a9d565b8181036040830152614ae08184614236565b9050949350505050565b600081905092915050565b6000614b008261421a565b614b0a8185614aea565b9350614b1a818560208601613ef0565b80840191505092915050565b60008160601b9050919050565b6000614b3e82614b26565b9050919050565b6000614b5082614b33565b9050919050565b614b68614b6382613fcb565b614b45565b82525050565b6000614b7a8285614af5565b9150614b868284614b57565b6014820191508190509392505050565b6000614ba28284614af5565b915081905092915050565b7f46756e6374696f6e2063616c6c206e6f74207375636365737366756c00000000600082015250565b6000614be3601c83613edf565b9150614bee82614bad565b602082019050919050565b60006020820190508181036000830152614c1281614bd6565b9050919050565b6000614c2482613e18565b9150614c2f83613e18565b925082821015614c4257614c41614a06565b5b828203905092915050565b7f4173736574436f6e7472616374236f6e6c79496d7065726d616e656e7455524960008201527f3a205552495f43414e4e4f545f42455f4348414e474544000000000000000000602082015250565b6000614ca9603783613edf565b9150614cb482614c4d565b604082019050919050565b60006020820190508181036000830152614cd881614c9c565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614d15601f83613edf565b9150614d2082614cdf565b602082019050919050565b60006020820190508181036000830152614d4481614d08565b9050919050565b7f45746865722076616c7565206973206e6f7420636f7272656374000000000000600082015250565b6000614d81601a83613edf565b9150614d8c82614d4b565b602082019050919050565b60006020820190508181036000830152614db081614d74565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614e1c602083613edf565b9150614e2782614de6565b602082019050919050565b60006020820190508181036000830152614e4b81614e0f565b9050919050565b7f4173736574436f6e7472616374236f6e6c79546f6b656e416d6f756e744f776e60008201527f65643a204f4e4c595f544f4b454e5f414d4f554e545f4f574e45445f414c4c4f60208201527f5745440000000000000000000000000000000000000000000000000000000000604082015250565b6000614ed4604383613edf565b9150614edf82614e52565b606082019050919050565b60006020820190508181036000830152614f0381614ec7565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614f40601983613edf565b9150614f4b82614f0a565b602082019050919050565b60006020820190508181036000830152614f6f81614f33565b9050919050565b7f4173736574436f6e7472616374236f776e65724f66546f6b656e3a2066726f6d60008201527f20657175616c20746f2061646472000000000000000000000000000000000000602082015250565b6000614fd2602e83613edf565b9150614fdd82614f76565b604082019050919050565b6000602082019050818103600083015261500181614fc5565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000615064602f83613edf565b915061506f82615008565b604082019050919050565b6000602082019050818103600083015261509381615057565b9050919050565b60008190508160005260206000209050919050565b600081546150bc8161478c565b6150c6818661470a565b945060018216600081146150e157600181146150f257615125565b60ff19831686528186019350615125565b6150fb8561509a565b60005b8381101561511d578154818901526001820191506020810190506150fe565b838801955050505b50505092915050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b600061516460018361470a565b915061516f8261512e565b600182019050919050565b60006151868286614715565b915061519282856150af565b915061519d82615157565b91506151a98284614715565b9150819050949350505050565b7f20746f6b656e206e756d62657220737572706c7573206e6f7420656e6f756768600082015250565b60006151ec602083613edf565b91506151f7826151b6565b602082019050919050565b6000602082019050818103600083015261521b816151df565b9050919050565b7f20746f6b656e206e756d6265722069206e6f7420656e6f756768000000000000600082015250565b6000615258601a83613edf565b915061526382615222565b602082019050919050565b600060208201905081810360008301526152878161524b565b9050919050565b600061529982613e18565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152cc576152cb614a06565b5b600182019050919050565b60006152e282613e18565b915060008214156152f6576152f5614a06565b5b600182039050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061535d602683613edf565b915061536882615301565b604082019050919050565b6000602082019050818103600083015261538c81615350565b9050919050565b7f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008201527f49474e4552000000000000000000000000000000000000000000000000000000602082015250565b60006153ef602583613edf565b91506153fa82615393565b604082019050919050565b6000602082019050818103600083015261541e816153e2565b9050919050565b61542e8161414a565b82525050565b60006080820190506154496000830187614291565b6154566020830186615425565b6154636040830185614291565b6154706060830184614291565b95945050505050565b7f4173736574436f6e7472616374237365745065726d616e656e745552493a204f60008201527f4e4c595f56414c49445f55524900000000000000000000000000000000000000602082015250565b60006154d5602d83613edf565b91506154e082615479565b604082019050919050565b60006020820190508181036000830152615504816154c8565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615541601483613edf565b915061554c8261550b565b602082019050919050565b6000602082019050818103600083015261557081615534565b9050919050565b600061558282613e18565b915061558d83613e18565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156155c6576155c5614a06565b5b828202905092915050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b600061562d602983613edf565b9150615638826155d1565b604082019050919050565b6000602082019050818103600083015261565c81615620565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006156bf602a83613edf565b91506156ca82615663565b604082019050919050565b600060208201905081810360008301526156ee816156b2565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061572b601083613edf565b9150615736826156f5565b602082019050919050565b6000602082019050818103600083015261575a8161571e565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e206f722050726f78790000000000000000000000000000602082015250565b60006157bd603283613edf565b91506157c882615761565b604082019050919050565b600060208201905081810360008301526157ec816157b0565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061584f602483613edf565b915061585a826157f3565b604082019050919050565b6000602082019050818103600083015261587e81615842565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006158e1603283613edf565b91506158ec82615885565b604082019050919050565b60006020820190508181036000830152615910816158d4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061595182613e18565b915061595c83613e18565b92508261596c5761596b615917565b5b828204905092915050565b600061598282613e18565b915061598d83613e18565b92508261599d5761599c615917565b5b828206905092915050565b6000815190506159b781614007565b92915050565b6000602082840312156159d3576159d2613c0d565b5b60006159e1848285016159a8565b91505092915050565b60006080820190506159ff6000830187614291565b615a0c6020830186613eaa565b615a196040830185613fdd565b615a266060830184614291565b95945050505050565b6000604082019050615a446000830185614291565b615a516020830184614291565b9392505050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615a8e601c83613edf565b9150615a9982615a58565b602082019050919050565b60006020820190508181036000830152615abd81615a81565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000615b20602683613edf565b9150615b2b82615ac4565b604082019050919050565b60006020820190508181036000830152615b4f81615b13565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000615b8c601d83613edf565b9150615b9782615b56565b602082019050919050565b60006020820190508181036000830152615bbb81615b7f565b9050919050565b6000608082019050615bd76000830187613fdd565b615be46020830186613fdd565b615bf16040830185613eaa565b8181036060830152615c038184614236565b905095945050505050565b600081519050615c1d81613c43565b92915050565b600060208284031215615c3957615c38613c0d565b5b6000615c4784828501615c0e565b9150509291505056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529416464726573733a206c6f772d6c6576656c2063616c6c20776974682076616c7565206661696c6564a2646970667358221220f29d3e2fdd17d84f0b756f98ec9e8f8fbdb9536d13270ec63de89d54b1beaa7b64736f6c63430008090033
Verified Source Code Partial Match
Compiler: v0.8.9+commit.e5eed63a
EVM: london
Optimization: No
Commodity.sol 2297 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
/**
* @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);
}
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.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;
}
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)
/**
* @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 `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.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);
}
contract Initializable {
bool inited = false;
modifier initializer() {
require(!inited, "already inited");
_;
inited = true;
}
}
contract EIP712Base is Initializable {
struct EIP712Domain {
string name;
string version;
address verifyingContract;
bytes32 salt;
}
string public constant ERC712_VERSION = "1";
bytes32 internal constant EIP712_DOMAIN_TYPEHASH =
keccak256(
bytes(
"EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
)
);
bytes32 internal domainSeperator;
function _initializeEIP712(string memory name) internal initializer {
_setDomainSeperator(name);
}
function _setDomainSeperator(string memory name) internal {
domainSeperator = keccak256(
abi.encode(
EIP712_DOMAIN_TYPEHASH,
keccak256(bytes(name)),
keccak256(bytes(ERC712_VERSION)),
address(this),
bytes32(getChainId())
)
);
}
function getDomainSeperator() public view returns (bytes32) {
return domainSeperator;
}
function getChainId() public view returns (uint256) {
uint256 id;
assembly {
id := chainid()
}
return id;
}
function toTypedMessageHash(bytes32 messageHash)
internal
view
returns (bytes32)
{
return keccak256(abi.encode(getDomainSeperator(), messageHash));
}
}
contract NativeMetaTransaction is EIP712Base {
bytes32 private constant META_TRANSACTION_TYPEHASH =
keccak256(
bytes(
"MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
)
);
event MetaTransactionExecuted(
address userAddress,
address payable relayerAddress,
bytes functionSignature
);
mapping(address => uint256) nonces;
struct MetaTransaction {
uint256 nonce;
address from;
bytes functionSignature;
}
function executeMetaTransaction(
address userAddress,
bytes memory functionSignature,
bytes32 sigR,
bytes32 sigS,
uint8 sigV
) external payable returns (bytes memory) {
MetaTransaction memory metaTx = MetaTransaction({
nonce: nonces[userAddress],
from: userAddress,
functionSignature: functionSignature
});
require(
verify(userAddress, metaTx, sigR, sigS, sigV),
"Signer and signature do not match"
);
nonces[userAddress] += 1;
emit MetaTransactionExecuted(
userAddress,
payable(msg.sender),
functionSignature
);
(bool success, bytes memory returnData) = address(this).call(
abi.encodePacked(functionSignature, userAddress)
);
require(success, "Function call not successful");
return returnData;
}
function hashMetaTransaction(MetaTransaction memory metaTx)
internal
pure
returns (bytes32)
{
return
keccak256(
abi.encode(
META_TRANSACTION_TYPEHASH,
metaTx.nonce,
metaTx.from,
keccak256(metaTx.functionSignature)
)
);
}
function getNonce(address user) public view returns (uint256 nonce) {
nonce = nonces[user];
}
function verify(
address signer,
MetaTransaction memory metaTx,
bytes32 sigR,
bytes32 sigS,
uint8 sigV
) internal view returns (bool) {
require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
return
signer ==
ecrecover(
toTypedMessageHash(hashMetaTransaction(metaTx)),
sigV,
sigR,
sigS
);
}
}
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
/**
* @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);
}
}
}
}
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
/**
* @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);
}
}
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.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;
}
}
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
/**
* @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;
}
}
// OpenZeppelin Contracts v4.4.1 (access/Ownable.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);
}
}
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract Pausable is Context {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
constructor() {
_paused = false;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
}
abstract contract ContextMixin {
function msgSender() internal view returns (address payable sender) {
if (msg.sender == address(this)) {
bytes memory array = msg.data;
uint256 index = msg.data.length;
assembly {
sender := and(
mload(add(array, index)),
0xffffffffffffffffffffffffffffffffffffffff
)
}
} else {
sender = payable(msg.sender);
}
return sender;
}
}
abstract contract ProxyRegistry {
mapping(address => address) public proxies;
}
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b)
internal
pure
returns (bool, uint256)
{
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
/**
* @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;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC165, IERC165)
returns (bool)
{
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
function balanceOf(address owner)
public
view
virtual
override
returns (uint256)
{
require(
owner != address(0),
"ERC721: balance query for the zero address"
);
return _balances[owner];
}
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;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
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()))
: "";
}
function _baseURI() internal view virtual returns (string memory) {
return "";
}
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);
}
function getApproved(uint256 tokenId)
public
view
virtual
override
returns (address)
{
require(
_exists(tokenId),
"ERC721: approved query for nonexistent token"
);
return _tokenApprovals[tokenId];
}
function setApprovalForAll(address operator, bool approved)
public
virtual
override
{
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
function isApprovedForAll(address owner, address operator)
public
view
virtual
override
returns (bool)
{
return _operatorApprovals[owner][operator];
}
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {}
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {}
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {}
/**
* @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 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 {
...
// [truncated — 69761 bytes total]
Read Contract
ERC712_VERSION 0x0f7e5970 → string
PRODUCE_TOKEN_MAX 0x53de9ae6 → uint256
balanceOf 0x70a08231 → uint256
baseTokenURI 0xd547cfb7 → string
exists 0x4f558e79 → bool
getApproved 0x081812fc → address
getChainId 0x3408e470 → uint256
getDomainSeperator 0x20379ee5 → bytes32
getNonce 0x2d0335ab → uint256
isApprovedForAll 0xe985e9c5 → bool
isPermanentURI 0x1e7d9dbb → bool
mineAcceptAddr 0x261cb92a → address
mintAddr 0x1570b77c → address
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
proxyRegistryAddress 0xcd7c0326 → address
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
templateURI 0xf923e8c3 → string
tokenPriceOf 0x46bdd5b7 → uint256
tokenSell 0x5dd7a93d → uint256
tokenTypeOf 0xd54aacd3 → uint256
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
Write Contract 20 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address to
uint256 tokenId
burn 0x9dc29fac
address _from
uint256 _id
changeAcceptAddr 0x3a5a2f29
address acceptAddr
executeMetaTransaction 0x0c53c51c
address userAddress
bytes functionSignature
bytes32 sigR
bytes32 sigS
uint8 sigV
returns: bytes
functionCall 0x4a94d487
address target
bytes data
uint256 value
returns: bytes
mintTo 0x41facdf1
string _tokenType
uint256 numberOfTokens
bytes _data
pause 0x8456cb59
No parameters
putSell 0x2b1d65b6
string _tokenType
uint256 numberOfTokens
uint256 _tokenPrice
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address _from
address _to
uint256 _id
safeTransferFrom 0xb88d4fde
address _from
address _to
uint256 _id
bytes _data
setApprovalForAll 0xa22cb465
address operator
bool approved
setPermanentURI 0x3588ad7c
uint256 _id
string _uri
setTemplateURI 0x24d88785
string _uri
setTokenPriceOf 0x04efcc40
string _tokenType
uint256 _tokenPrice
returns: uint256
setURI 0x862440e2
uint256 _id
string _uri
tokenMake 0xed92377c
string _tokenType
uint256 numberOfTokens
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
unpause 0x3f4ba83a
No parameters
Recent Transactions
No transactions found for this address