Address Contract Partially Verified
Address
0xa2Fb8851d600820D2Fc417e659Fb4Db10d52C21D
Balance
0 ETH
Nonce
1
Code Size
14111 bytes
Creator
0x8361367e...38AD at tx 0xfdd2226c...ca5ac1
Indexed Transactions
0
Contract Bytecode
14111 bytes
0x60806040526004361061038b5760003560e01c80636352211e116101dc578063a22cb46511610102578063e36d6498116100a0578063f2c4ce1e1161006f578063f2c4ce1e14610a8b578063f2fde38b14610aab578063f571d67c14610acb578063ff1b655614610b0757600080fd5b8063e36d6498146109fd578063e985e9c514610a13578063e986655014610a5c578063eb8d244414610a7157600080fd5b8063c87b56dd116100dc578063c87b56dd14610991578063cb774d47146109b1578063cd7d508f146109c7578063dc53fd92146109e757600080fd5b8063a22cb4651461093c578063a475b5dd1461095c578063b88d4fde1461097157600080fd5b80637c928fe91161017a5780638da5cb5b116101495780638da5cb5b146108b057806395d89b41146108ce5780639b19251a146108e3578063a0712d681461092957600080fd5b80637c928fe91461082e5780637d17fcbe1461084e578063819b25ba146108635780638462151c1461088357600080fd5b806370a08231116101b657806370a082311461076e578063715018a61461078e578063738c69a6146107a35780637b9417c81461080e57600080fd5b80636352211e146107195780636c0360eb146107395780637084b2b71461074e57600080fd5b80631d97f38e116102c15780633ccfd60b1161025f578063518302271161022e57806351830227146106a957806355f804b3146106c357806358941a4d146106e35780635d82cf6e146106f957600080fd5b80633ccfd60b1461063457806342842e0e146106495780634f558e79146106695780634f6ccce71461068957600080fd5b806334918dfd1161029b57806334918dfd146105d45780633502a716146105e95780633719e3b0146105ff5780633af32abf1461061457600080fd5b80631d97f38e1461057457806323b872dd146105945780632f745c59146105b457600080fd5b8063095ea7b31161032e5780631496783711610308578063149678371461050957806318160ddd1461052957806318e20a381461053e5780631970d1fb1461055457600080fd5b8063095ea7b3146104b35780630ba133c5146104d357806310969523146104e957600080fd5b806304737a011161036a57806304737a011461042557806306fdde0314610444578063081812fc14610466578063081c8c441461049e57600080fd5b806204348e14610390578063018a2c37146103b957806301ffc9a7146103db575b600080fd5b34801561039c57600080fd5b506103a6600d5481565b6040519081526020015b60405180910390f35b3480156103c557600080fd5b506103d96103d4366004613292565b610b1c565b005b3480156103e757600080fd5b506104156103f636600461320f565b6001600160e01b03191660009081526020819052604090205460ff1690565b60405190151581526020016103b0565b34801561043157600080fd5b5060165461041590610100900460ff1681565b34801561045057600080fd5b50610459610b54565b6040516103b091906133e7565b34801561047257600080fd5b50610486610481366004613292565b610be6565b6040516001600160a01b0390911681526020016103b0565b3480156104aa57600080fd5b50610459610c6e565b3480156104bf57600080fd5b506103d96104ce36600461312a565b610cfc565b3480156104df57600080fd5b506103a6600f5481565b3480156104f557600080fd5b506103d9610504366004613249565b610e12565b34801561051557600080fd5b5061041561052436600461312a565b610e53565b34801561053557600080fd5b506103a6610f1f565b34801561054a57600080fd5b506103a660125481565b34801561056057600080fd5b506103d961056f366004613292565b610f30565b34801561058057600080fd5b506103d961058f3660046132ab565b610f5f565b3480156105a057600080fd5b506103d96105af366004613036565b61107b565b3480156105c057600080fd5b506103a66105cf36600461312a565b6110ac565b3480156105e057600080fd5b506103d96110d7565b3480156105f557600080fd5b506103a660115481565b34801561060b57600080fd5b506103d9611115565b34801561062057600080fd5b5061041561062f366004612fe0565b61115c565b34801561064057600080fd5b506103d961117d565b34801561065557600080fd5b506103d9610664366004613036565b6111fe565b34801561067557600080fd5b50610415610684366004613292565b611219565b34801561069557600080fd5b506103a66106a4366004613292565b611224565b3480156106b557600080fd5b506013546104159060ff1681565b3480156106cf57600080fd5b506103d96106de366004613249565b61123a565b3480156106ef57600080fd5b506103a660105481565b34801561070557600080fd5b506103d9610714366004613292565b611270565b34801561072557600080fd5b50610486610734366004613292565b61129f565b34801561074557600080fd5b506104596112c7565b34801561075a57600080fd5b506103d9610769366004613292565b6112d6565b34801561077a57600080fd5b506103a6610789366004612fe0565b611305565b34801561079a57600080fd5b506103d9611391565b3480156107af57600080fd5b506107e96107be366004612fe0565b6018602052600090815260409020805460018201546002909201546001600160a01b03909116919083565b604080516001600160a01b0390941684526020840192909252908201526060016103b0565b34801561081a57600080fd5b50610415610829366004612fe0565b611405565b34801561083a57600080fd5b506103d9610849366004613292565b6114ac565b34801561085a57600080fd5b506103d961172d565b34801561086f57600080fd5b506103d961087e366004613292565b6117ad565b34801561088f57600080fd5b506108a361089e366004612fe0565b61185a565b6040516103b091906133a3565b3480156108bc57600080fd5b50600a546001600160a01b0316610486565b3480156108da57600080fd5b50610459611915565b3480156108ef57600080fd5b506107e96108fe366004612fe0565b6017602052600090815260409020805460018201546002909201546001600160a01b03909116919083565b6103d9610937366004613292565b611924565b34801561094857600080fd5b506103d96109573660046130f7565b611d0e565b34801561096857600080fd5b506103d9611dd3565b34801561097d57600080fd5b506103d961098c366004613077565b611e0c565b34801561099d57600080fd5b506104596109ac366004613292565b611e44565b3480156109bd57600080fd5b506103a6600c5481565b3480156109d357600080fd5b506103d96109e2366004613156565b611fe4565b3480156109f357600080fd5b506103a6600e5481565b348015610a0957600080fd5b506103a6600b5481565b348015610a1f57600080fd5b50610415610a2e366004612ffd565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610a6857600080fd5b506103d9612072565b348015610a7d57600080fd5b506016546104159060ff1681565b348015610a9757600080fd5b506103d9610aa6366004613249565b61219d565b348015610ab757600080fd5b506103d9610ac6366004612fe0565b6121da565b348015610ad757600080fd5b50610415610ae6366004612fe0565b6001600160a01b039081166000818152601860205260409020549091161490565b348015610b1357600080fd5b506104596122c5565b600a546001600160a01b03163314610b4f5760405162461bcd60e51b8152600401610b469061344c565b60405180910390fd5b601255565b606060068054610b6390613591565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8f90613591565b8015610bdc5780601f10610bb157610100808354040283529160200191610bdc565b820191906000526020600020905b815481529060010190602001808311610bbf57829003601f168201915b5050505050905090565b6000610bf1826122d2565b610c525760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b46565b506000908152600460205260409020546001600160a01b031690565b60148054610c7b90613591565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca790613591565b8015610cf45780601f10610cc957610100808354040283529160200191610cf4565b820191906000526020600020905b815481529060010190602001808311610cd757829003601f168201915b505050505081565b6000610d078261129f565b9050806001600160a01b0316836001600160a01b03161415610d755760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b46565b336001600160a01b0382161480610d915750610d918133610a2e565b610e035760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b46565b610e0d83836122df565b505050565b600a546001600160a01b03163314610e3c5760405162461bcd60e51b8152600401610b469061344c565b8051610e4f906015906020840190612e9a565b5050565b600a546000906001600160a01b03163314610e805760405162461bcd60e51b8152600401610b469061344c565b6001600160a01b038084166000818152601860205260409020549091161415610ee25760405162461bcd60e51b8152602060048201526014602482015273105b1c9958591e481dda5b9b995c9b1a5cdd195960621b6044820152606401610b46565b506001600160a01b03909116600081815260186020526040812080546001600160a01b031916909217825560018083019390935560029091015590565b6000610f2b600261234d565b905090565b600a546001600160a01b03163314610f5a5760405162461bcd60e51b8152600401610b469061344c565b600d55565b600a546001600160a01b03163314610f895760405162461bcd60e51b8152600401610b469061344c565b60008211610fd95760405162461bcd60e51b815260206004820152601f60248201527f5769746864726177206d7573742062652067726561746572207468616e2030006044820152606401610b46565b4782111561101b5760405162461bcd60e51b815260206004820152600f60248201526e082dadeeadce840e8dede40d0d2ced608b1b6044820152606401610b46565b6000816001600160a01b03168360405160006040518083038185875af1925050503d8060008114611068576040519150601f19603f3d011682016040523d82523d6000602084013e61106d565b606091505b5050905080610e0d57600080fd5b6110853382612357565b6110a15760405162461bcd60e51b8152600401610b4690613481565b610e0d838383612441565b6001600160a01b03821660009081526001602052604081206110ce90836125c2565b90505b92915050565b600a546001600160a01b031633146111015760405162461bcd60e51b8152600401610b469061344c565b6016805460ff19811660ff90911615179055565b600a546001600160a01b0316331461113f5760405162461bcd60e51b8152600401610b469061344c565b6016805461ff001981166101009182900460ff1615909102179055565b6001600160a01b039081166000818152601760205260409020549091161490565b600a546001600160a01b031633146111a75760405162461bcd60e51b8152600401610b469061344c565b6040514790600090339083908381818185875af1925050503d80600081146111eb576040519150601f19603f3d011682016040523d82523d6000602084013e6111f0565b606091505b5050905080610e4f57600080fd5b610e0d83838360405180602001604052806000815250611e0c565b60006110d1826122d2565b6000806112326002846125ce565b509392505050565b600a546001600160a01b031633146112645760405162461bcd60e51b8152600401610b469061344c565b61126d816125ea565b50565b600a546001600160a01b0316331461129a5760405162461bcd60e51b8152600401610b469061344c565b600e55565b60006110d1826040518060600160405280602981526020016136c160299139600291906125fd565b606060098054610b6390613591565b600a546001600160a01b031633146113005760405162461bcd60e51b8152600401610b469061344c565b600f55565b60006001600160a01b0382166113705760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b46565b6001600160a01b03821660009081526001602052604090206110d19061234d565b600a546001600160a01b031633146113bb5760405162461bcd60e51b8152600401610b469061344c565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b600a546000906001600160a01b031633146114325760405162461bcd60e51b8152600401610b469061344c565b61143b8261115c565b1561147e5760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481dda1a5d195b1a5cdd1959606a1b6044820152606401610b46565b506001600160a01b0316600081815260176020526040902080546001600160a01b0319169091179055600190565b60006114b6610f1f565b336000818152601860205260409020549192506001600160a01b03909116146115175760405162461bcd60e51b8152602060048201526013602482015272125cc81b9bdd081dda5b9b995c9b1a5cdd1959606a1b6044820152606401610b46565b60165460ff166115695760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610b46565b6011546115768383613503565b11156115b95760405162461bcd60e51b815260206004820152601260248201527145786365656473206d617820737570706c7960701b6044820152606401610b46565b336000908152601860205260409020600101546116185760405162461bcd60e51b815260206004820152601b60248201527f596f752068617665206e6f20616d6f756e7420746f20636c61696d00000000006044820152606401610b46565b3360009081526018602052604090206001015482111561167a5760405162461bcd60e51b815260206004820152601960248201527f596f7520636c61696d20616d6f756e74206578636565646564000000000000006044820152606401610b46565b60005b828110156116ca57600061168f610f1f565b61169a906001613503565b90506011546116a7610f1f565b10156116b7576116b73382612614565b50806116c2816135c6565b91505061167d565b50336000908152601860205260409020600101546116e990839061354e565b33600090815260186020526040902060010155600b541580156117205750601154611712610f1f565b148061172057506012544210155b15610e4f5743600b555050565b600a546001600160a01b031633146117575760405162461bcd60e51b8152600401610b469061344c565b600c54156117a75760405162461bcd60e51b815260206004820152601d60248201527f5374617274696e6720696e64657820697320616c7265616479207365740000006044820152606401610b46565b43600b55565b600a546001600160a01b031633146117d75760405162461bcd60e51b8152600401610b469061344c565b60006117e1610f1f565b6011549091506117f18383613503565b111561182a5760405162461bcd60e51b8152602060048201526008602482015267115e18d95959195960c21b6044820152606401610b46565b60005b82811015610e0d57611848336118438385613503565b612614565b80611852816135c6565b91505061182d565b6060600061186783611305565b905080611884576040805160008082526020820190925290611232565b60008167ffffffffffffffff81111561189f5761189f61364d565b6040519080825280602002602001820160405280156118c8578160200160208202803683370190505b50905060005b82811015611232576118e085826110ac565b8282815181106118f2576118f2613637565b602090810291909101015280611907816135c6565b9150506118ce565b50919050565b606060078054610b6390613591565b600061192e610f1f565b60165490915060ff166119835760405162461bcd60e51b815260206004820152601b60248201527f53616c65206d7573742062652061637469766520746f206d696e7400000000006044820152606401610b46565b6011546119908383613503565b11156119ca5760405162461bcd60e51b815260206004820152600960248201526813585e081b1a5b5a5d60ba1b6044820152606401610b46565b601654610100900460ff1615611b69573482600d546119e9919061352f565b1115611a2b5760405162461bcd60e51b815260206004820152601160248201527056616c75652062656c6f7720707269636560781b6044820152606401610b46565b601054821115611a725760405162461bcd60e51b815260206004820152601260248201527110589bdd99481b585e081d1e0818dbdd5b9d60721b6044820152606401610b46565b611a7b3361115c565b611abc5760405162461bcd60e51b8152602060048201526012602482015271125cc81b9bdd081dda1a5d195b1a5cdd195960721b6044820152606401610b46565b60105433600090815260176020526040902060020154611adc908461262e565b1115611b345760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e742032207768696c652077686974656c697374656044820152601960fa1b6064820152608401610b46565b33600090815260176020526040902060020154611b51908361262e565b33600090815260176020526040902060020155611ca7565b611b723361115c565b15611bf857600f54336000818152601760205260409020600201548491611b9890611305565b611ba2919061354e565b611bac9190613503565b1115611bf35760405162461bcd60e51b815260206004820152601660248201527543616e206f6e6c79206d696e74203220746f6b656e7360501b6044820152606401610b46565b611c56565b600f5482611c0533611305565b611c0f9190613503565b1115611c565760405162461bcd60e51b815260206004820152601660248201527543616e206f6e6c79206d696e74203220746f6b656e7360501b6044820152606401610b46565b3482600e54611c65919061352f565b1115611ca75760405162461bcd60e51b815260206004820152601160248201527056616c75652062656c6f7720707269636560781b6044820152606401610b46565b60005b82811015611cf7576000611cbc610f1f565b611cc7906001613503565b9050601154611cd4610f1f565b1015611ce457611ce43382612614565b5080611cef816135c6565b915050611caa565b50600b541580156117205750601154611712610f1f565b6001600160a01b038216331415611d675760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b46565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600a546001600160a01b03163314611dfd5760405162461bcd60e51b8152600401610b469061344c565b6013805460ff19166001179055565b611e163383612357565b611e325760405162461bcd60e51b8152600401610b4690613481565b611e3e8484848461268d565b50505050565b6060611e4f826122d2565b611eb35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b46565b611ebb610f1f565b821115611f0a5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610b46565b60135460ff16611fa65760148054611f2190613591565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4d90613591565b8015611f9a5780601f10611f6f57610100808354040283529160200191611f9a565b820191906000526020600020905b815481529060010190602001808311611f7d57829003601f168201915b50505050509050919050565b6000611fb06112c7565b905080611fbc846126c0565b604051602001611fcd929190613318565b604051602081830303815290604052915050919050565b600a546001600160a01b0316331461200e5760405162461bcd60e51b8152600401610b469061344c565b8051612021906019906020840190612f1e565b5060005b601954811015610e4f5761205f6019828154811061204557612045613637565b6000918252602090912001546001600160a01b0316611405565b508061206a816135c6565b915050612025565b600a546001600160a01b0316331461209c5760405162461bcd60e51b8152600401610b469061344c565b600c54156120ec5760405162461bcd60e51b815260206004820152601d60248201527f5374617274696e6720696e64657820697320616c7265616479207365740000006044820152606401610b46565b600b5461213b5760405162461bcd60e51b815260206004820181905260248201527f5374617274696e6720696e64657820626c6f636b206d757374206265207365746044820152606401610b46565b601154600b5461214c9190406135e1565b600c55600b5460ff9061215f904361354e565b11156121825760115461217360014361354e565b61217e9190406135e1565b600c555b600c5461219b57600c54612197906001613503565b600c555b565b600a546001600160a01b031633146121c75760405162461bcd60e51b8152600401610b469061344c565b8051610e4f906014906020840190612e9a565b600a546001600160a01b031633146122045760405162461bcd60e51b8152600401610b469061344c565b6001600160a01b0381166122695760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b46565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60158054610c7b90613591565b60006110d16002836127be565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906123148261129f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006110d1825490565b6000612362826122d2565b6123c35760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b46565b60006123ce8361129f565b9050806001600160a01b0316846001600160a01b031614806124095750836001600160a01b03166123fe84610be6565b6001600160a01b0316145b8061243957506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166124548261129f565b6001600160a01b0316146124bc5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b46565b6001600160a01b03821661251e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b46565b6125296000826122df565b6001600160a01b038316600090815260016020526040902061254b90826127d6565b506001600160a01b038216600090815260016020526040902061256e90826127e2565b5061257b600282846127ee565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60006110ce8383612804565b60008080806125dd868661288a565b9097909650945050505050565b8051610e4f906009906020840190612e9a565b600061260a848484612927565b90505b9392505050565b610e4f828260405180602001604052806000815250612990565b60008061263b8385613503565b9050838110156110ce5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610b46565b612698848484612441565b6126a4848484846129c3565b611e3e5760405162461bcd60e51b8152600401610b46906133fa565b6060816126e45750506040805180820190915260018152600360fc1b602082015290565b8160005b811561270e57806126f8816135c6565b91506127079050600a8361351b565b91506126e8565b60008167ffffffffffffffff8111156127295761272961364d565b6040519080825280601f01601f191660200182016040528015612753576020820181803683370190505b5090505b84156124395761276860018361354e565b9150612775600a866135e1565b612780906030613503565b60f81b81838151811061279557612795613637565b60200101906001600160f81b031916908160001a9053506127b7600a8661351b565b9450612757565b600081815260018301602052604081205415156110ce565b60006110ce8383612a94565b60006110ce8383612b87565b600061260a84846001600160a01b038516612bd6565b815460009082106128625760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610b46565b82600001828154811061287757612877613637565b9060005260206000200154905092915050565b8154600090819083106128ea5760405162461bcd60e51b815260206004820152602260248201527f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610b46565b600084600001848154811061290157612901613637565b906000526020600020906002020190508060000154816001015492509250509250929050565b600082815260018401602052604081205482816129575760405162461bcd60e51b8152600401610b4691906133e7565b508461296460018361354e565b8154811061297457612974613637565b9060005260206000209060020201600101549150509392505050565b61299a8383612c77565b6129a760008484846129c3565b610e0d5760405162461bcd60e51b8152600401610b46906133fa565b60006001600160a01b0384163b6129dc57506001612439565b6000612a5d630a85bd0160e11b33888787604051602401612a009493929190613366565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505060405180606001604052806032815260200161368f603291396001600160a01b0388169190612d8f565b9050600081806020019051810190612a75919061322c565b6001600160e01b031916630a85bd0160e11b1492505050949350505050565b60008181526001830160205260408120548015612b7d576000612ab860018361354e565b8554909150600090612acc9060019061354e565b90506000866000018281548110612ae557612ae5613637565b9060005260206000200154905080876000018481548110612b0857612b08613637565b600091825260209091200155612b1f836001613503565b60008281526001890160205260409020558654879080612b4157612b41613621565b600190038181906000526020600020016000905590558660010160008781526020019081526020016000206000905560019450505050506110d1565b60009150506110d1565b6000818152600183016020526040812054612bce575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556110d1565b5060006110d1565b600082815260018401602052604081205480612c3b57505060408051808201825283815260208082018481528654600181810189556000898152848120955160029093029095019182559151908201558654868452818801909252929091205561260d565b8285612c4860018461354e565b81548110612c5857612c58613637565b906000526020600020906002020160010181905550600091505061260d565b6001600160a01b038216612ccd5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b46565b612cd6816122d2565b15612d235760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b46565b6001600160a01b0382166000908152600160205260409020612d4590826127e2565b50612d52600282846127ee565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606061260a848460008585843b612de85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610b46565b600080866001600160a01b03168587604051612e0491906132fc565b60006040518083038185875af1925050503d8060008114612e41576040519150601f19603f3d011682016040523d82523d6000602084013e612e46565b606091505b5091509150612e56828286612e61565b979650505050505050565b60608315612e7057508161260d565b825115612e805782518084602001fd5b8160405162461bcd60e51b8152600401610b4691906133e7565b828054612ea690613591565b90600052602060002090601f016020900481019282612ec85760008555612f0e565b82601f10612ee157805160ff1916838001178555612f0e565b82800160010185558215612f0e579182015b82811115612f0e578251825591602001919060010190612ef3565b50612f1a929150612f73565b5090565b828054828255906000526020600020908101928215612f0e579160200282015b82811115612f0e57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190612f3e565b5b80821115612f1a5760008155600101612f74565b600067ffffffffffffffff831115612fa257612fa261364d565b612fb5601f8401601f19166020016134d2565b9050828152838383011115612fc957600080fd5b828260208301376000602084830101529392505050565b600060208284031215612ff257600080fd5b81356110ce81613663565b6000806040838503121561301057600080fd5b823561301b81613663565b9150602083013561302b81613663565b809150509250929050565b60008060006060848603121561304b57600080fd5b833561305681613663565b9250602084013561306681613663565b929592945050506040919091013590565b6000806000806080858703121561308d57600080fd5b843561309881613663565b935060208501356130a881613663565b925060408501359150606085013567ffffffffffffffff8111156130cb57600080fd5b8501601f810187136130dc57600080fd5b6130eb87823560208401612f88565b91505092959194509250565b6000806040838503121561310a57600080fd5b823561311581613663565b91506020830135801515811461302b57600080fd5b6000806040838503121561313d57600080fd5b823561314881613663565b946020939093013593505050565b6000602080838503121561316957600080fd5b823567ffffffffffffffff8082111561318157600080fd5b818501915085601f83011261319557600080fd5b8135818111156131a7576131a761364d565b8060051b91506131b88483016134d2565b8181528481019084860184860187018a10156131d357600080fd5b600095505b8386101561320257803594506131ed85613663565b848352600195909501949186019186016131d8565b5098975050505050505050565b60006020828403121561322157600080fd5b81356110ce81613678565b60006020828403121561323e57600080fd5b81516110ce81613678565b60006020828403121561325b57600080fd5b813567ffffffffffffffff81111561327257600080fd5b8201601f8101841361328357600080fd5b61243984823560208401612f88565b6000602082840312156132a457600080fd5b5035919050565b600080604083850312156132be57600080fd5b82359150602083013561302b81613663565b600081518084526132e8816020860160208601613565565b601f01601f19169290920160200192915050565b6000825161330e818460208701613565565b9190910192915050565b6000835161332a818460208801613565565b602f60f81b9083019081528351613348816001840160208801613565565b64173539b7b760d91b60019290910191820152600601949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613399908301846132d0565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156133db578351835292840192918401916001016133bf565b50909695505050505050565b6020815260006110ce60208301846132d0565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156134fb576134fb61364d565b604052919050565b60008219821115613516576135166135f5565b500190565b60008261352a5761352a61360b565b500490565b6000816000190483118215151615613549576135496135f5565b500290565b600082821015613560576135606135f5565b500390565b60005b83811015613580578181015183820152602001613568565b83811115611e3e5750506000910152565b600181811c908216806135a557607f821691505b6020821081141561190f57634e487b7160e01b600052602260045260246000fd5b60006000198214156135da576135da6135f5565b5060010190565b6000826135f0576135f061360b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461126d57600080fd5b6001600160e01b03198116811461126d57600080fdfe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea26469706673582212202b109f34bb12b7a3c680b0c201a69c22a10224127927d758738834a80996172764736f6c63430008070033
Verified Source Code Partial Match
Compiler: v0.8.7+commit.e28d00a7
EVM: london
Optimization: Yes (200 runs)
RambowCloud.sol 2579 lines
// SPDX-License-Identifier: MIT
//┏━━━┳━━━┳━┓┏━┳━━┓┏━━━┳┓┏┓┏┳━━━┳┓╋╋┏━━━┳┓╋┏┳━━━┓
//┃┏━┓┃┏━┓┃┃┗┛┃┃┏┓┃┃┏━┓┃┃┃┃┃┃┏━┓┃┃╋╋┃┏━┓┃┃╋┃┣┓┏┓┃
//┃┗━┛┃┃╋┃┃┏┓┏┓┃┗┛┗┫┃╋┃┃┃┃┃┃┃┃╋┗┫┃╋╋┃┃╋┃┃┃╋┃┃┃┃┃┃
//┃┏┓┏┫┗━┛┃┃┃┃┃┃┏━┓┃┃╋┃┃┗┛┗┛┃┃╋┏┫┃╋┏┫┃╋┃┃┃╋┃┃┃┃┃┃
//┃┃┃┗┫┏━┓┃┃┃┃┃┃┗━┛┃┗━┛┣┓┏┓┏┫┗━┛┃┗━┛┃┗━┛┃┗━┛┣┛┗┛┃
//┗┛┗━┻┛╋┗┻┛┗┛┗┻━━━┻━━━┛┗┛┗┛┗━━━┻━━━┻━━━┻━━━┻━━━┛
// RAMBOWcloud NFTs
//Compiled with 0.8.7
pragma solidity ^0.8.0;
// File: @openzeppelin/contracts/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) {
this;
// silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
// File: @openzeppelin/contracts/introspection/IERC165.sol
/**
* @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);
}
// File: @openzeppelin/contracts/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;
}
// File: @openzeppelin/contracts/token/ERC721/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);
}
// File: @openzeppelin/contracts/token/ERC721/IERC721Enumerable.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);
}
// File: @openzeppelin/contracts/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 `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
// File: @openzeppelin/contracts/introspection/ERC165.sol
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts may inherit from this and call {_registerInterface} to declare
* their support of an interface.
*/
abstract contract ERC165 is IERC165 {
/*
* bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
*/
bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
/**
* @dev Mapping of interface ids to whether or not it's supported.
*/
mapping(bytes4 => bool) private _supportedInterfaces;
constructor() {
// Derived contracts need only register support for their own interfaces,
// we register support for ERC165 itself here
_registerInterface(_INTERFACE_ID_ERC165);
}
/**
* @dev See {IERC165-supportsInterface}.
*
* Time complexity O(1), guaranteed to always use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override
returns (bool)
{
return _supportedInterfaces[interfaceId];
}
/**
* @dev Registers the contract as an implementer of the interface defined by
* `interfaceId`. Support of the actual ERC165 interface is automatic and
* registering its interface id is not required.
*
* See {IERC165-supportsInterface}.
*
* Requirements:
*
* - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
*/
function _registerInterface(bytes4 interfaceId) internal virtual {
require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
_supportedInterfaces[interfaceId] = true;
}
}
// File: @openzeppelin/contracts/math/SafeMath.sol
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
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)
{
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)
{
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)
{
// 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)
{
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)
{
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) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @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) {
require(b <= a, "SafeMath: subtraction overflow");
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) {
if (a == 0) return 0;
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @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. 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) internal pure returns (uint256) {
require(b > 0, "SafeMath: division by zero");
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) {
require(b > 0, "SafeMath: modulo by zero");
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) {
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.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryDiv}.
*
* 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) {
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) {
require(b > 0, errorMessage);
return a % b;
}
}
// File: @openzeppelin/contracts/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
* ====
*/
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;
// solhint-disable-next-line no-inline-assembly
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"
);
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(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");
// solhint-disable-next-line avoid-low-level-calls
(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");
// solhint-disable-next-line avoid-low-level-calls
(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");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) private 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
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File: @openzeppelin/contracts/utils/EnumerableSet.sol
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
// When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
// so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.
bytes32 lastvalue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastvalue;
// Update the index for the moved value
set._indexes[lastvalue] = toDeleteIndex + 1;
// All indexes are 1-based
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value)
private
view
returns (bool)
{
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index)
private
view
returns (bytes32)
{
require(
set._values.length > index,
"EnumerableSet: index out of bounds"
);
return set._values[index];
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value)
internal
returns (bool)
{
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value)
internal
returns (bool)
{
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value)
internal
view
returns (bool)
{
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index)
internal
view
returns (bytes32)
{
return _at(set._inner, index);
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value)
internal
returns (bool)
{
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value)
internal
returns (bool)
{
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value)
internal
view
returns (bool)
{
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index)
internal
view
returns (address)
{
return address(uint160(uint256(_at(set._inner, index))));
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value)
internal
returns (bool)
{
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value)
internal
view
returns (bool)
{
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index)
internal
view
returns (uint256)
{
return uint256(_at(set._inner, index));
}
}
// File: @openzeppelin/contracts/utils/EnumerableMap.sol
/**
* @dev Library for managing an enumerable variant of Solidity's
* https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
* type.
*
* Maps have the following properties:
*
* - Entries are added, removed, and checked for existence in constant time
* (O(1)).
* - Entries are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableMap for EnumerableMap.UintToAddressMap;
*
* // Declare a set state variable
* EnumerableMap.UintToAddressMap private myMap;
* }
* ```
*
* As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
* supported.
*/
library EnumerableMap {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Map type with
// bytes32 keys and values.
// The Map implementation uses private functions, and user-facing
// implementations (such as Uint256ToAddressMap) are just wrappers around
// the underlying Map.
// This means that we can only create new EnumerableMaps for types that fit
// in bytes32.
struct MapEntry {
bytes32 _key;
bytes32 _value;
}
struct Map {
// Storage of map keys and values
MapEntry[] _entries;
// Position of the entry defined by a key in the `entries` array, plus 1
// because index 0 means a key is not in the map.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Adds a key-value pair to a map, or updates the value for an existing
* key. O(1).
*
* Returns true if the key was added to the map, that is if it was not
* already present.
*/
function _set(
Map storage map,
bytes32 key,
bytes32 value
) private returns (bool) {
// We read and store the key's index to prevent multiple reads from the same storage slot
uint256 keyIndex = map._indexes[key];
if (keyIndex == 0) {
// Equivalent to !contains(map, key)
map._entries.push(MapEntry({_key: key, _value: value}));
// The entry is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
map._indexes[key] = map._entries.length;
return true;
} else {
map._entries[keyIndex - 1]._value = value;
return false;
}
}
/**
* @dev Removes a key-value pair from a map. O(1).
*
* Returns true if the key was removed from the map, that is if it was present.
*/
function _remove(Map storage map, bytes32 key) private returns (bool) {
// We read and store the key's index to prevent multiple reads from the same storage slot
uint256 keyIndex = map._indexes[key];
if (keyIndex != 0) {
// Equivalent to contains(map, key)
// To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
// in the array, and then remove the last entry (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = keyIndex - 1;
uint256 lastIndex = map._entries.length - 1;
// When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
// so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.
MapEntry storage lastEntry = map._entries[lastIndex];
// Move the last entry to the index where the entry to delete is
map._entries[toDeleteIndex] = lastEntry;
// Update the index for the moved entry
map._indexes[lastEntry._key] = toDeleteIndex + 1;
// All indexes are 1-based
// Delete the slot where the moved entry was stored
map._entries.pop();
// Delete the index for the deleted slot
delete map._indexes[key];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the key is in the map. O(1).
*/
function _contains(Map storage map, bytes32 key)
private
view
returns (bool)
{
return map._indexes[key] != 0;
}
/**
* @dev Returns the number of key-value pairs in the map. O(1).
*/
function _length(Map storage map) private view returns (uint256) {
return map._entries.length;
}
/**
* @dev Returns the key-value pair stored at position `index` in the map. O(1).
*
* Note that there are no guarantees on the ordering of entries inside the
* array, and it may change when more entries are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Map storage map, uint256 index)
private
view
returns (bytes32, bytes32)
{
require(
map._entries.length > index,
"EnumerableMap: index out of bounds"
);
MapEntry storage entry = map._entries[index];
return (entry._key, entry._value);
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*/
function _tryGet(Map storage map, bytes32 key)
private
view
returns (bool, bytes32)
{
uint256 keyIndex = map._indexes[key];
if (keyIndex == 0) return (false, 0);
// Equivalent to contains(map, key)
return (true, map._entries[keyIndex - 1]._value);
// All indexes are 1-based
}
/**
* @dev Returns the value associated with `key`. O(1).
*
* Requirements:
*
* - `key` must be in the map.
*/
function _get(Map storage map, bytes32 key) private view returns (bytes32) {
uint256 keyIndex = map._indexes[key];
require(keyIndex != 0, "EnumerableMap: nonexistent key");
// Equivalent to contains(map, key)
return map._entries[keyIndex - 1]._value;
// All indexes are 1-based
}
/**
* @dev Same as {_get}, with a custom error message when `key` is not in the map.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {_tryGet}.
*/
function _get(
Map storage map,
bytes32 key,
string memory errorMessage
) private view returns (bytes32) {
uint256 keyIndex = map._indexes[key];
require(keyIndex != 0, errorMessage);
// Equivalent to contains(map, key)
return map._entries[keyIndex - 1]._value;
// All indexes are 1-based
}
// UintToAddressMap
struct UintToAddressMap {
Map _inner;
}
/**
* @dev Adds a key-value pair to a map, or updates the value for an existing
* key. O(1).
*
* Returns true if the key was added to the map, that is if it was not
* already present.
*/
function set(
UintToAddressMap storage map,
uint256 key,
address value
) internal returns (bool) {
return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the key was removed from the map, that is if it was present.
*/
function remove(UintToAddressMap storage map, uint256 key)
internal
returns (bool)
{
return _remove(map._inner, bytes32(key));
}
/**
* @dev Returns true if the key is in the map. O(1).
*/
function contains(UintToAddressMap storage map, uint256 key)
internal
view
returns (bool)
{
return _contains(map._inner, bytes32(key));
}
/**
* @dev Returns the number of elements in the map. O(1).
*/
function length(UintToAddressMap storage map)
internal
view
returns (uint256)
{
return _length(map._inner);
}
/**
* @dev Returns the element stored at position `index` in the set. O(1).
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintToAddressMap storage map, uint256 index)
internal
view
returns (uint256, address)
{
(bytes32 key, bytes32 value) = _at(map._inner, index);
return (uint256(key), address(uint160(uint256(value))));
}
/**
* @dev Tries to returns the value associated with `key`. O(1).
* Does not revert if `key` is not in the map.
*
* _Available since v3.4._
*/
function tryGet(UintToAddressMap storage map, uint256 key)
internal
view
returns (bool, address)
{
(bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
return (success, address(uint160(uint256(value))));
}
/**
* @dev Returns the value associated with `key`. O(1).
*
* Requirements:
*
* - `key` must be in the map.
*/
function get(UintToAddressMap storage map, uint256 key)
internal
view
returns (address)
{
return address(uint160(uint256(_get(map._inner, bytes32(key)))));
}
/**
* @dev Same as {get}, with a custom error message when `key` is not in the map.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryGet}.
*/
function get(
UintToAddressMap storage map,
uint256 key,
string memory errorMessage
) internal view returns (address) {
return
address(
uint160(uint256(_get(map._inner, bytes32(key), errorMessage)))
);
}
}
// File: @openzeppelin/contracts/utils/Strings.sol
/**
* @dev String operations.
*/
library Strings {
/**
* @dev Converts a `uint256` to its ASCII `string` 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...
// [truncated — 81747 bytes total]
Read Contract
MAX_ELEMENTS 0x3502a716 → uint256
MAX_MINT_WHITELIST 0x58941a4d → uint256
PROVENANCE_HASH 0xff1b6556 → string
REVEAL_TIMESTAMP 0x18e20a38 → uint256
balanceOf 0x70a08231 → uint256
baseURI 0x6c0360eb → string
exists 0x4f558e79 → bool
getApproved 0x081812fc → address
isApprovedForAll 0xe985e9c5 → bool
isWhitelisted 0x3af32abf → bool
isWinnerlisted 0xf571d67c → bool
maxToMint 0x0ba133c5 → uint256
name 0x06fdde03 → string
notRevealedUri 0x081c8c44 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
privateMintPrice 0x0004348e → uint256
privateSaleIsActive 0x04737a01 → bool
publicMintPrice 0xdc53fd92 → uint256
revealed 0x51830227 → bool
saleIsActive 0xeb8d2444 → bool
startingIndex 0xcb774d47 → uint256
startingIndexBlock 0xe36d6498 → uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
tokensOfOwner 0x8462151c → uint256[]
totalSupply 0x18160ddd → uint256
whitelist 0x9b19251a → address, uint256, uint256
winnerlist 0x738c69a6 → address, uint256, uint256
Write Contract 27 functions
These functions modify contract state and require a wallet transaction to execute.
addAddressToWhitelist 0x7b9417c8
address addr
returns: bool
addAddressToWinnerlist 0x14967837
address addr
uint256 claimAmount
returns: bool
approve 0x095ea7b3
address to
uint256 tokenId
emergencySetStartingIndexBlock 0x7d17fcbe
No parameters
flipPrivateSaleState 0x3719e3b0
No parameters
flipSaleState 0x34918dfd
No parameters
freeMint 0x7c928fe9
uint256 _count
mint 0xa0712d68
uint256 _count
partialWithdraw 0x1d97f38e
uint256 _amount
address _to
renounceOwnership 0x715018a6
No parameters
reserve 0x819b25ba
uint256 _count
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 baseURI
setMaxToMint 0x7084b2b7
uint256 _maxValue
setNotRevealedURI 0xf2c4ce1e
string _notRevealedURI
setPrivateMintPrice 0x1970d1fb
uint256 _price
setProvenanceHash 0x10969523
string _provenanceHash
setPublicMintPrice 0x5d82cf6e
uint256 _price
setRevealTimestamp 0x018a2c37
uint256 _revealTimeStamp
setStartingIndex 0xe9866550
No parameters
setWhitelistAddr 0xcd7d508f
address[] addrs
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters
Recent Transactions
No transactions found for this address