Address Contract Partially Verified
Address
0xc9CD957D96607efC468ab8e5C4B60839b117F55a
Balance
0 ETH
Nonce
1
Code Size
15297 bytes
Creator
0xcBE34bae...0BD8 at tx 0x9003c293...c62af7
Indexed Transactions
0
Contract Bytecode
15297 bytes
0x6080604052600436106102ff5760003560e01c80637e8816b911610190578063b88d4fde116100dc578063ca52a43311610095578063d96a094a1161006f578063d96a094a14610d39578063e985e9c514610d56578063f146292114610d91578063f2fde38b14610dbb576102ff565b8063ca52a43314610cd9578063cda4beef14610cee578063d16fd8d414610d24576102ff565b8063b88d4fde14610b3d578063b9a2de3a14610c0e578063bc8ba28f14610c2b578063bdde789714610c55578063c2fffd6b14610c85578063c87b56dd14610caf576102ff565b806395d89b4111610149578063978bbdb911610123578063978bbdb914610aa65780639819826a14610abb57806398214bcb14610ad0578063a22cb46514610b02576102ff565b806395d89b4114610a4a57806396b5a75514610a5f5780639703ef3514610a89576102ff565b80637e8816b91461081257806382367b2d146108d15780638456cb59146109015780638804da63146109165780638a72ea6a146109db5780638da5cb5b14610a35576102ff565b806342966c681161024f57806355f804b31161020857806369fe0e2d116101e257806369fe0e2d1461078b5780636c0360eb146107b557806370a08231146107ca578063715018a6146107fd576102ff565b806355f804b31461069b5780635c975abb1461074c5780636352211e14610761576102ff565b806342966c68146105bb5780634423c5f1146105d8578063454a2ab31461062a5780634e79f1a1146106475780634f6ccce71461065c57806350f1c94f14610686576102ff565b806326a49e37116102bc5780632f745c59116102965780632f745c59146105155780633c4da5531461054e5780633f4ba83a1461056357806342842e0e14610578576102ff565b806326a49e37146104c157806327fbe123146104eb5780632bb3b11414610500576102ff565b806301ffc9a71461030457806306fdde031461034c578063081812fc146103d6578063095ea7b31461041c57806318160ddd1461045757806323b872dd1461047e575b600080fd5b34801561031057600080fd5b506103386004803603602081101561032757600080fd5b50356001600160e01b031916610dee565b604080519115158252519081900360200190f35b34801561035857600080fd5b50610361610e11565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561039b578181015183820152602001610383565b50505050905090810190601f1680156103c85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103e257600080fd5b50610400600480360360208110156103f957600080fd5b5035610ea8565b604080516001600160a01b039092168252519081900360200190f35b34801561042857600080fd5b506104556004803603604081101561043f57600080fd5b506001600160a01b038135169060200135610ed8565b005b34801561046357600080fd5b5061046c610f4f565b60408051918252519081900360200190f35b34801561048a57600080fd5b50610455600480360360608110156104a157600080fd5b506001600160a01b03813581169160208101359091169060400135610f60565b3480156104cd57600080fd5b5061046c600480360360208110156104e457600080fd5b5035610f98565b3480156104f757600080fd5b50610338610faa565b34801561050c57600080fd5b50610400610fb8565b34801561052157600080fd5b5061046c6004803603604081101561053857600080fd5b506001600160a01b038135169060200135610fc7565b34801561055a57600080fd5b5061046c610ff2565b34801561056f57600080fd5b50610455611015565b34801561058457600080fd5b506104556004803603606081101561059b57600080fd5b506001600160a01b03813581169160208101359091169060400135611101565b610455600480360360208110156105d157600080fd5b503561112f565b3480156105e457600080fd5b50610602600480360360208110156105fb57600080fd5b503561122c565b6040805193151584526001600160a01b03909216602084015282820152519081900360600190f35b6104556004803603602081101561064057600080fd5b5035611259565b34801561065357600080fd5b50610455611265565b34801561066857600080fd5b5061046c6004803603602081101561067f57600080fd5b5035611333565b34801561069257600080fd5b50610338611349565b3480156106a757600080fd5b50610455600480360360208110156106be57600080fd5b810190602081018135600160201b8111156106d857600080fd5b8201836020820111156106ea57600080fd5b803590602001918460018302840111600160201b8311171561070b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611352945050505050565b34801561075857600080fd5b506103386113a4565b34801561076d57600080fd5b506104006004803603602081101561078457600080fd5b50356113b4565b34801561079757600080fd5b50610455600480360360208110156107ae57600080fd5b50356113bf565b3480156107c157600080fd5b5061036161148f565b3480156107d657600080fd5b5061046c600480360360208110156107ed57600080fd5b50356001600160a01b03166114f0565b34801561080957600080fd5b50610338611526565b34801561081e57600080fd5b5061046c6004803603606081101561083557600080fd5b810190602081018135600160201b81111561084f57600080fd5b82018360208201111561086157600080fd5b803590602001918460018302840111600160201b8311171561088257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160a01b03833516935050506020013561157c565b3480156108dd57600080fd5b50610338600480360360408110156108f457600080fd5b5080359060200135611686565b34801561090d57600080fd5b5061045561172f565b34801561092257600080fd5b5061046c6004803603608081101561093957600080fd5b810190602081018135600160201b81111561095357600080fd5b82018360208201111561096557600080fd5b803590602001918460018302840111600160201b8311171561098657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550506001600160a01b038335169350505060208101359060400135611801565b3480156109e757600080fd5b50610a05600480360360208110156109fe57600080fd5b50356118ff565b6040805194151585526001600160a01b039093166020850152838301919091526060830152519081900360800190f35b348015610a4157600080fd5b50610400611933565b348015610a5657600080fd5b50610361611942565b348015610a6b57600080fd5b5061045560048036036020811015610a8257600080fd5b50356119a3565b61045560048036036020811015610a9f57600080fd5b50356119ac565b348015610ab257600080fd5b5061046c6119b5565b348015610ac757600080fd5b506104556119d8565b348015610adc57600080fd5b5061033860048036036040811015610af357600080fd5b50803590602001351515611aa6565b348015610b0e57600080fd5b5061045560048036036040811015610b2557600080fd5b506001600160a01b0381351690602001351515611b40565b348015610b4957600080fd5b5061045560048036036080811015610b6057600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b811115610b9a57600080fd5b820183602082011115610bac57600080fd5b803590602001918460018302840111600160201b83111715610bcd57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611bfd945050505050565b61045560048036036020811015610c2457600080fd5b5035611c3c565b348015610c3757600080fd5b5061033860048036036020811015610c4e57600080fd5b5035611c45565b348015610c6157600080fd5b5061033860048036036040811015610c7857600080fd5b5080359060200135611c5a565b348015610c9157600080fd5b5061045560048036036020811015610ca857600080fd5b5035611d76565b348015610cbb57600080fd5b5061036160048036036020811015610cd257600080fd5b5035611e47565b348015610ce557600080fd5b50610455612096565b348015610cfa57600080fd5b5061045560048036036060811015610d1157600080fd5b5080359060208101359060400135612165565b348015610d3057600080fd5b5061045561218c565b61045560048036036020811015610d4f57600080fd5b503561225c565b348015610d6257600080fd5b5061033860048036036040811015610d7957600080fd5b506001600160a01b0381358116916020013516612359565b348015610d9d57600080fd5b5061033860048036036020811015610db457600080fd5b5035612387565b348015610dc757600080fd5b5061033860048036036020811015610dde57600080fd5b50356001600160a01b03166123b6565b6001600160e01b0319811660009081526020819052604090205460ff165b919050565b600c8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610e9d5780601f10610e7257610100808354040283529160200191610e9d565b820191906000526020600020905b815481529060010190602001808311610e8057829003601f168201915b505050505090505b90565b6000610eb382612450565b610ebc57600080fd5b506000908152600860205260409020546001600160a01b031690565b6000610ee3826113b4565b9050806001600160a01b0316836001600160a01b03161415610f0457600080fd5b806001600160a01b0316610f1661245d565b6001600160a01b03161480610f375750610f3781610f3261245d565b612359565b610f4057600080fd5b610f4a8383612461565b505050565b6000610f5b60056124cf565b905090565b610f71610f6b61245d565b826124da565b610f7a57600080fd5b610f8381612387565b15610f8d57600080fd5b610f4a83838361256b565b60116020526000908152604090205481565b600454610100900460ff1690565b6010546001600160a01b031681565b6001600160a01b0382166000908152600760205260408120610fe99083612653565b90505b92915050565b6000610ffc610faa565b15156001141561100e57506000610ea5565b5060035490565b6001546001600160a01b0316331461105e5760405162461bcd60e51b815260040180806020018281038252602f815260200180613ac6602f913960400191505060405180910390fd5b6110666113a4565b6110ae576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6110e461245d565b604080516001600160a01b039092168252519081900360200190a1565b61110a81612387565b1561111457600080fd5b610f4a83838360405180602001604052806000815250611bfd565b61113a610f6b61245d565b8061115a575061114861245d565b6001546001600160a01b039081169116145b6111955760405162461bcd60e51b8152600401808060200182810382526030815260200180613b176030913960400191505060405180910390fd5b6000818152600e60205260409020805460ff1615156001141561121f576000828152600f60205260409020805460ff1615156001141561121457805460018201546040516101009092046001600160a01b03169182916108fc811502916000818181858888f19350505050158015611211573d6000803e3d6000fd5b50505b61121d8361265f565b505b6112288261271d565b5050565b600f602052600090815260409020805460019091015460ff82169161010090046001600160a01b03169083565b611262816127ec565b50565b6001546001600160a01b031633146112ae5760405162461bcd60e51b815260040180806020018281038252602f815260200180613ac6602f913960400191505060405180910390fd5b6112b6611349565b6112fe576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6004805460ff191690556040517f0a9d058aff97d3ed3388247bac7d508f44a460217484407ce5bba66affc17daf90600090a1565b60008061134160058461294a565b509392505050565b60045460ff1690565b6001546001600160a01b0316331461139b5760405162461bcd60e51b815260040180806020018281038252602f815260200180613ac6602f913960400191505060405180910390fd5b61126281612966565b600154600160a01b900460ff1690565b6000610fec82612979565b6001546001600160a01b031633146114085760405162461bcd60e51b815260040180806020018281038252602f815260200180613ac6602f913960400191505060405180910390fd5b6064811115611455576040805162461bcd60e51b81526020600482015260146024820152732ab8103a37901898181031b7b6b6b4b9b9b4b7b760611b604482015290519081900360640190fd5b60028190556040805182815290517e172ddfc5ae88d08b3de01a5a187667c37a5a53989e8c175055cb6c993792a79181900360200190a150565b600b8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610e9d5780601f10610e7257610100808354040283529160200191610e9d565b60006001600160a01b03821661150557600080fd5b6001600160a01b0382166000908152600760205260409020610fec906124cf565b6001546000906001600160a01b031633146115725760405162461bcd60e51b815260040180806020018281038252602f815260200180613ac6602f913960400191505060405180910390fd5b610f5b6000612986565b600080611587610f4f565b6001908101600081815260116020908152604080832088905560129091529020805460ff191690921790915590506115bf84826129e7565b6115c98186612a01565b836001600160a01b03167ff2cb5e52049d127ad1c335f1cc25f2fdbc911bec1beb2611f4c1e8b1c274d4b48483886040518084815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015611640578181015183820152602001611628565b50505050905090810190601f16801561166d5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a290505b9392505050565b600061169183612387565b1561169b57600080fd5b6000838152601160205260409020546116b3846113b4565b6001600160a01b0316336001600160a01b0316146116d057600080fd5b6000848152601160209081526040918290208590558151838152908101859052808201869052905133917f8647dab5101cbe18afb171756e9753802f9d66725bf2346b079b8b1a275e0116919081900360600190a25060019392505050565b6001546001600160a01b031633146117785760405162461bcd60e51b815260040180806020018281038252602f815260200180613ac6602f913960400191505060405180910390fd5b6117806113a4565b156117c5576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586110e461245d565b60008061180c610f4f565b6001016000818152601160205260409020859055905061182c85826129e7565b6118368187612a01565b846001600160a01b03167ff2cb5e52049d127ad1c335f1cc25f2fdbc911bec1beb2611f4c1e8b1c274d4b48583896040518084815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156118ad578181015183820152602001611895565b50505050905090810190601f1680156118da5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a26118f4818585612a32565b90505b949350505050565b600e6020526000908152604090208054600182015460029092015460ff8216926101009092046001600160a01b0316919084565b6001546001600160a01b031690565b600d8054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610e9d5780601f10610e7257610100808354040283529160200191610e9d565b61126281612b30565b61126281612c39565b60006119bf611349565b1515600114156119d157506000610ea5565b5060025490565b6001546001600160a01b03163314611a215760405162461bcd60e51b815260040180806020018281038252602f815260200180613ac6602f913960400191505060405180910390fd5b611a29611349565b15611a6e576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6004805460ff191660011790556040517f51f99560a97e6809d74ff4458c12419031c9b6d4d8eae6a6b26bf8386fb0c4fa90600090a1565b6000611ab1836113b4565b6001600160a01b0316336001600160a01b031614611ace57600080fd5b611ad783612387565b15611ae157600080fd5b600083815260126020908152604091829020805460ff1916851515908117909155825186815291820152815133927f3fd63d9ca8dc693a1b9911e664951294721009a4f6239c862d6719a160a1edfc928290030190a250600192915050565b611b4861245d565b6001600160a01b0316826001600160a01b03161415611b6657600080fd5b8060096000611b7361245d565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155611bb761245d565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405180821515815260200191505060405180910390a35050565b611c0e611c0861245d565b836124da565b611c1757600080fd5b611c2082612387565b15611c2a57600080fd5b611c3684848484612def565b50505050565b61126281612e0f565b60126020526000908152604090205460ff1681565b6000611c6583612387565b15611c6f57600080fd5b600083815260116020526040902054611c87846113b4565b6001600160a01b0316336001600160a01b031614611ca457600080fd5b6000848152601160209081526040918290208590558151868152600191810191909152815133927f3fd63d9ca8dc693a1b9911e664951294721009a4f6239c862d6719a160a1edfc928290030190a260008481526012602052604090205460ff161515600114611d6c57600084815260126020908152604091829020805460ff191660011790558151838152908101859052808201869052905133917f8647dab5101cbe18afb171756e9753802f9d66725bf2346b079b8b1a275e0116919081900360600190a25b5060019392505050565b6001546001600160a01b03163314611dbf5760405162461bcd60e51b815260040180806020018281038252602f815260200180613ac6602f913960400191505060405180910390fd5b6064811115611e0c576040805162461bcd60e51b81526020600482015260146024820152732ab8103a37901898181031b7b6b6b4b9b9b4b7b760611b604482015290519081900360640190fd5b60038190556040805182815290517fb0bd0bcf4953b497ec896cb758888392f62fa6f295bfc13eee9b91900febb33d9181900360200190a150565b6060611e5282612450565b611e5b57600080fd5b6000828152600a602090815260408083208054825160026001831615610100026000190190921691909104601f810185900485028201850190935282815292909190830182828015611eee5780601f10611ec357610100808354040283529160200191611eee565b820191906000526020600020905b815481529060010190602001808311611ed157829003601f168201915b505050505090506000611eff61148f565b9050805160001415611f1357509050610e0c565b815115611fd45780826040516020018083805190602001908083835b60208310611f4e5780518252601f199092019160209182019101611f2f565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b60208310611f965780518252601f199092019160209182019101611f77565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050610e0c565b80611fde85612f75565b6040516020018083805190602001908083835b602083106120105780518252601f199092019160209182019101611ff1565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b602083106120585780518252601f199092019160209182019101612039565b6001836020036101000a0380198251168184511680821785525050505050509050019250505060405160208183030381529060405292505050919050565b6001546001600160a01b031633146120df5760405162461bcd60e51b815260040180806020018281038252602f815260200180613ac6602f913960400191505060405180910390fd5b6120e7610faa565b61212f576040805162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015290519081900360640190fd5b6004805461ff00191690556040517f67592efac9ad4bc8a051561f7008dd48427e81ea709a2f61ad386fa68189b35c90600090a1565b60008381526012602052604090205460ff161561218157600080fd5b610f4a838383612a32565b6001546001600160a01b031633146121d55760405162461bcd60e51b815260040180806020018281038252602f815260200180613ac6602f913960400191505060405180910390fd5b6121dd610faa565b15612222576040805162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015290519081900360640190fd5b6004805461ff0019166101001790556040517f6f941072281a73a3d1a56154741446c3752559d3c97ae913f09e25382677933590600090a1565b61226581613050565b6000612270826113b4565b90503361227c836130a5565b806001600160a01b0316826001600160a01b03167fef258f47a33a1cba99d81ea828f234ff5d6cb31034c0f79ecb5198f8c6d118f66011600087815260200190815260200160002054866122cf88611e47565b6040518084815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015612318578181015183820152602001612300565b50505050905090810190601f1680156123455780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a3505050565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6000818152600e60205260408120805460ff1615156001146123ad576000915050610e0c565b50600192915050565b6001546000906001600160a01b031633146124025760405162461bcd60e51b815260040180806020018281038252602f815260200180613ac6602f913960400191505060405180910390fd5b6001600160a01b0382166124475760405162461bcd60e51b8152600401808060200182810382526045815260200180613b476045913960600191505060405180910390fd5b610fec82612986565b6000610fec60058361320d565b3390565b600081815260086020526040902080546001600160a01b0319166001600160a01b038416908117909155819061249682612979565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610fec82613219565b60006124e582612450565b6124ee57600080fd5b60006124f983612979565b9050806001600160a01b0316846001600160a01b031614806125345750836001600160a01b031661252984610ea8565b6001600160a01b0316145b806118f757506001600160a01b0380821660009081526009602090815260408083209388168352929052205460ff16949350505050565b826001600160a01b031661257e82612979565b6001600160a01b03161461259157600080fd5b6001600160a01b0382166125a457600080fd5b6125af83838361321d565b6125ba600082612461565b6001600160a01b03831660009081526007602052604090206125dc908261322f565b506001600160a01b03821660009081526007602052604090206125ff908261323b565b5061260c60058284613247565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000610fe9838361325d565b60408051608081018252600080825260208083018281528385018381526060808601858152888652600e85528786209651875494516001600160a01b03908116610100908102610100600160a81b031993151560ff19988916178416178a55945160018a810191909155925160029099019890985588519283018952868352828601878152838a018881529a8852600f9096529790952090518154945190961690910294151592909116919091179093169190911782559151910155565b600061272882612979565b90506127368160008461321d565b612741600083612461565b6000828152600a6020526040902054600260001961010060018416150201909116041561277f576000828152600a6020526040812061277f9161398c565b6001600160a01b03811660009081526007602052604090206127a1908361322f565b506127af6005836000613247565b5060405182906000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b336127f682612979565b6001600160a01b0316141561280a57600080fd5b6000818152600e602052604090206002810154421061282857600080fd5b806001015434101561283957600080fd5b6000828152600f602052604090206001810154341161285757600080fd5b6001810154156128a657805460018201546040516101009092046001600160a01b03169182916108fc811502916000818181858888f193505050501580156128a3573d6000803e3d6000fd5b50505b6040805160608101825260018082523360208084019182523484860181815260008a8152600f84528790209551865494516001600160a01b031661010002610100600160a81b031991151560ff1990961695909517169390931785559151939092019290925582518681529081019190915281517f6fe605fcf3f0af8122bf2ca880af248fc500eed81268c984dc2f51f73d96fc66929181900390910190a1505050565b600080808061295986866132c1565b9097909650945050505050565b805161122890600b9060208401906139d0565b6000610fec60058361333c565b6001546040516000916001600160a01b03808516929116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908490a350600180546001600160a01b0319166001600160a01b039290921691909117815590565b611228828260405180602001604052806000815250613348565b612a0a82612450565b612a1357600080fd5b6000828152600a602090815260409091208251610f4a928401906139d0565b33612a3c84612979565b6001600160a01b031614612a4f57600080fd5b6000838152600e60205260409020805460ff16151560011415612a7157600080fd5b604080516080810182526001808252336020808401828152848601898152428901606080880182815260008e8152600e87528a90209851895495516001600160a01b031661010002610100600160a81b031991151560ff199097169690961716949094178855915195870195909555905160029095019490945584518981529081018890528085019290925292517f5e4dbe799442580e0983dedea209e02d0497b6e3383338a9e1ac3aa117b491ec929181900390910190a250505050565b33612b3a82612979565b6001600160a01b031614612b4d57600080fd5b6000818152600e60205260409020805460ff161515600114612b6e57600080fd5b6000828152600f60205260409020805460ff16151560011415612b9057600080fd5b60408051608081018252600080825233602080840191825283850183815260608501848152898552600e8352938690209451855493516001600160a01b031661010002610100600160a81b031991151560ff199095169490941716929092178455905160018401559051600290920191909155815185815291517fbea0e66c2d42b9131695ceea7d1aaa21b37e93070cde19c9b5fbd686a32592929281900390910190a1505050565b6000818152600e60205260409020805460ff161515600114612c5a57600080fd5b80600201544210612c6a57600080fd5b6000828152600f60205260409020805460ff161515600114612c8b57600080fd5b805461010090046001600160a01b03163314612ca657600080fd5b805482546001600160a01b03610100928390048116929091041660006103e8612ccd610ff2565b85600101540281612cda57fe5b049050826001600160a01b03166108fc828660010154039081150290604051600060405180830381858888f19350505050158015612d1c573d6000803e3d6000fd5b506040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015612d53573d6000803e3d6000fd5b5060408051606081018252600080825260208083018281528385018381528b8452600f8352928590209351845491516001600160a01b031661010002610100600160a81b031991151560ff199093169290921716178355905160019290920191909155815188815291517f7687efe94566d20f7ebb8eff43bb57b2c014749dfd9ad179089e58c338ecdfa79281900390910190a1505050505050565b612dfa84848461256b565b612e0684848484613368565b611c3657600080fd5b6000818152600e602052604090206002810154421015612e2e57600080fd5b805460ff161515600114612e4157600080fd5b6000612e4c83612979565b6000848152600f60205260409020835481549293509091612e84916001600160a01b036101009182900481169291909104168661256b565b60006103e8612e916119b5565b83600101540281612e9e57fe5b0490506000818360010154039050836001600160a01b03166108fc829081150290604051600060405180830381858888f19350505050158015612ee5573d6000803e3d6000fd5b506001546040516001600160a01b0390911690819084156108fc029085906000818181858888f19350505050158015612f22573d6000803e3d6000fd5b50600184015460408051898152602081019290925280517fc87036081503cc1fd53dc456ee0c40aef140882f77b06b4b4b554fee2b60816a9281900390910190a1612f6c8761265f565b50505050505050565b606081612f9a57506040805180820190915260018152600360fc1b6020820152610e0c565b8160005b8115612fb257600101600a82049150612f9e565b60008167ffffffffffffffff81118015612fcb57600080fd5b506040519080825280601f01601f191660200182016040528015612ff6576020820181803683370190505b50859350905060001982015b831561304757600a840660300160f81b8282806001900393508151811061302557fe5b60200101906001600160f81b031916908160001a905350600a84049350613002565b50949350505050565b60008181526012602052604090205460ff1661306b82612450565b61307457600080fd5b8061307e57600080fd5b613087826113b4565b6001600160a01b0316336001600160a01b0316141561122857600080fd5b6000818152601160205260409020543410156130c057600080fd5b6001546001600160a01b03163360006130d8846113b4565b90506130e581838661256b565b60006103e86130f26119b5565b600087815260116020526040902054028161310957fe5b60008781526011602052604080822054905193909204935090839003916001600160a01b0385169183156108fc02918491818181858888f19350505050158015613157573d6000803e3d6000fd5b506040516001600160a01b0386169083156108fc029084906000818181858888f1935050505015801561318e573d6000803e3d6000fd5b506000868152601160205260409020543411156131f0576000868152601160205260408082205490516001600160a01b03871692349290920380156108fc0292909190818181858888f193505050501580156131ee573d6000803e3d6000fd5b505b50505060009283525050601260205260409020805460ff19169055565b6000610fe983836134d0565b5490565b6132256113a4565b15610f4a57600080fd5b6000610fe983836134e8565b6000610fe983836135ae565b60006118f784846001600160a01b0385166135f8565b8154600090821061329f5760405162461bcd60e51b8152600401808060200182810382526022815260200180613a726022913960400191505060405180910390fd5b8260000182815481106132ae57fe5b9060005260206000200154905092915050565b8154600090819083106133055760405162461bcd60e51b8152600401808060200182810382526022815260200180613af56022913960400191505060405180910390fd5b600084600001848154811061331657fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b6000610fe9838361368f565b613352838361371f565b61335f6000848484613368565b610f4a57600080fd5b600061337c846001600160a01b03166137bd565b613388575060016118f7565b6000613496630a85bd0160e11b61339d61245d565b88878760405160240180856001600160a01b03168152602001846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156134045781810151838201526020016133ec565b50505050905090810190601f1680156134315780820380516001836020036101000a031916815260200191505b5095505050505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b038381831617835250505050604051806060016040528060328152602001613a94603291396001600160a01b03881691906137c3565b905060008180602001905160208110156134af57600080fd5b50516001600160e01b031916630a85bd0160e11b1492505050949350505050565b60009081526001919091016020526040902054151590565b600081815260018301602052604081205480156135a4578354600019808301919081019060009087908390811061351b57fe5b906000526020600020015490508087600001848154811061353857fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061356857fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610fec565b6000915050610fec565b60006135ba83836134d0565b6135f057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610fec565b506000610fec565b60008281526001840160205260408120548061365d57505060408051808201825283815260208082018481528654600181810189556000898152848120955160029093029095019182559151908201558654868452818801909252929091205561167f565b8285600001600183038154811061367057fe5b906000526020600020906002020160010181905550600091505061167f565b6000818152600183016020526040812054806136f2576040805162461bcd60e51b815260206004820152601e60248201527f456e756d657261626c654d61703a206e6f6e6578697374656e74206b65790000604482015290519081900360640190fd5b83600001600182038154811061370457fe5b90600052602060002090600202016001015491505092915050565b6001600160a01b03821661373257600080fd5b61373b81612450565b1561374557600080fd5b6137516000838361321d565b6001600160a01b0382166000908152600760205260409020613773908261323b565b5061378060058284613247565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b3b151590565b60606118f78484600085856137d7856137bd565b613828576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106138665780518252601f199092019160209182019101613847565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146138c8576040519150601f19603f3d011682016040523d82523d6000602084013e6138cd565b606091505b50915091506138dd8282866138e8565b979650505050505050565b606083156138f757508161167f565b8251156139075782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613951578181015183820152602001613939565b50505050905090810190601f16801561397e5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50805460018160011615610100020316600290046000825580601f106139b25750611262565b601f0160209004906000526020600020908101906112629190613a5c565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282613a065760008555613a4c565b82601f10613a1f57805160ff1916838001178555613a4c565b82800160010185558215613a4c579182015b82811115613a4c578251825591602001919060010190613a31565b50613a58929150613a5c565b5090565b5b80821115613a585760008155600101613a5d56fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c65203a2046756e6374696f6e2063616c6c656420627920756e617574686f72697a656420757365722e456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e64734552433732314275726e61626c653a2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665644f776e61626c652f7472616e736665724f776e657273686970203a2063616e6e6f74207472616e73666572206f776e65727368697020746f207a65726f2061646472657373a264697066735822122090f661cccc057f1dccd913b5f922aea931ec8717d408602205fb4c359d5c398664736f6c63430007060033
Verified Source Code Partial Match
Compiler: v0.7.6+commit.7338295f
EVM: istanbul
Optimization: Yes (200 runs)
AuctionMarket.sol 1667 lines
pragma solidity >=0.6.0 <0.8.0;
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;
}
}
abstract contract Ownable {
address internal _owner;
event OwnershipTransferred(
address indexed currentOwner,
address indexed newOwner
);
constructor() {
_owner = msg.sender;
emit OwnershipTransferred(address(0), msg.sender);
}
modifier onlyOwner() {
require(
msg.sender == _owner,
"Ownable : Function called by unauthorized user."
);
_;
}
function owner() external view returns (address ownerAddress) {
ownerAddress = _owner;
}
function transferOwnership(address newOwner)
public
onlyOwner
returns (bool success)
{
require(newOwner != address(0), "Ownable/transferOwnership : cannot transfer ownership to zero address");
success = _transferOwnership(newOwner);
}
function renounceOwnership() external onlyOwner returns (bool success) {
success = _transferOwnership(address(0));
}
function _transferOwnership(address newOwner) internal returns (bool success) {
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
success = true;
}
}
interface IERC165 {
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
interface IERC721 is IERC165 {
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
function balanceOf(address owner) external view returns (uint256 balance);
function ownerOf(uint256 tokenId) external view returns (address owner);
function safeTransferFrom(address from, address to, uint256 tokenId) external;
function transferFrom(address from, address to, uint256 tokenId) external;
function approve(address to, uint256 tokenId) external;
function getApproved(uint256 tokenId) external view returns (address operator);
function setApprovalForAll(address operator, bool _approved) external;
function isApprovedForAll(address owner, address operator) external view returns (bool);
function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}
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);
}
interface IERC721Enumerable is IERC721 {
function totalSupply() external view returns (uint256);
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
function tokenByIndex(uint256 index) external view returns (uint256);
}
interface IERC721Receiver {
function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}
abstract contract ERC165 is IERC165 {
bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;
mapping(bytes4 => bool) private _supportedInterfaces;
constructor () internal {
_registerInterface(_INTERFACE_ID_ERC165);
}
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return _supportedInterfaces[interfaceId];
}
function _registerInterface(bytes4 interfaceId) internal virtual {
require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
_supportedInterfaces[interfaceId] = true;
}
}
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;
}
}
library Address {
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly { size := extcodesize(account) }
return size > 0;
}
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");
}
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
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");
}
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);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
if (success) {
return returndata;
} else {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
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));
}
}
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))));
}
}
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);
uint256 index = digits - 1;
temp = value;
while (temp != 0) {
buffer[index--] = bytes1(uint8(48 + temp % 10));
temp /= 10;
}
return string(buffer);
}
}
abstract contract ERC721Pausable is Context,Ownable {
event Paused(address account);
event Unpaused(address account);
bool private _paused;
constructor () {
_paused = false;
}
function paused() public view virtual returns (bool) {
return _paused;
}
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
function pause() onlyOwner whenNotPaused public {
_paused = true;
emit Paused(_msgSender());
}
function unpause() onlyOwner whenPaused public {
_paused = false;
emit Unpaused(_msgSender());
}
}
abstract contract ERC721Fees is Context,Ownable {
event FeePaused();
event FeeUnPaused();
event CancelFeePaused();
event CancelFeeUnPaused();
event SetFee(uint feeRate);
event SetCancelFee(uint feeRate);
uint private _feeRate;
uint private _cancelFeeRate;
bool private _feePaused;
bool private _cancelFeePaused;
constructor (uint feeRate_,uint cancelFeeRate_) {
_feeRate = feeRate_;
_cancelFeeRate = cancelFeeRate_;
_feePaused = false;
_cancelFeePaused = false;
}
function feeRate() public view virtual returns (uint) {
if(feePaused() == true){
return 0;
}
return _feeRate;
}
function cancelFeeRate() public view virtual returns (uint) {
if(cancelFeePaused() == true){
return 0;
}
return _cancelFeeRate;
}
function feePaused() public view virtual returns (bool) {
return _feePaused;
}
function cancelFeePaused() public view virtual returns (bool) {
return _cancelFeePaused;
}
modifier whenNotFeePaused() {
require(!feePaused(), "Pausable: paused");
_;
}
modifier whenFeePaused() {
require(feePaused(), "Pausable: not paused");
_;
}
modifier whenNotCancelFeePaused() {
require(!cancelFeePaused(), "Pausable: paused");
_;
}
modifier whenCancelFeePaused() {
require(cancelFeePaused(), "Pausable: not paused");
_;
}
function feePause() onlyOwner whenNotFeePaused public {
_feePaused = true;
emit FeePaused();
}
function feeUnPause() onlyOwner whenFeePaused public {
_feePaused = false;
emit FeeUnPaused();
}
function cancelFeePause() onlyOwner whenNotCancelFeePaused public {
_cancelFeePaused = true;
emit CancelFeePaused();
}
function cancelFeeUnPause() onlyOwner whenCancelFeePaused public {
_cancelFeePaused = false;
emit CancelFeeUnPaused();
}
function setFee(uint feeRate_) onlyOwner public {
require(feeRate_ <= 100, "Up to 100 commission");
_feeRate = feeRate_;
emit SetFee(feeRate_);
}
function setCancelFee(uint feeRate_) onlyOwner public {
require(feeRate_ <= 100, "Up to 100 commission");
_cancelFeeRate = feeRate_;
emit SetCancelFee(feeRate_);
}
}
abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable
,ERC721Pausable
,ERC721Fees
{
using SafeMath for uint256;
using Address for address;
using EnumerableSet for EnumerableSet.UintSet;
using Strings for uint256;
using EnumerableMap for EnumerableMap.UintToAddressMap;
EnumerableMap.UintToAddressMap internal _tokenOwners;
bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;
mapping (address => EnumerableSet.UintSet) internal _holderTokens;
mapping (uint256 => address) private _tokenApprovals;
mapping (address => mapping (address => bool)) internal _operatorApprovals;
mapping (uint256 => string) internal _tokenURIs;
string internal _baseURI;
string private _name;
string private _symbol;
bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;
bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;
bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;
constructor (string memory name_, string memory symbol_)
ERC721Fees(50,10)
{
_name = name_;
_symbol = symbol_;
_baseURI = "ipfs://";
_registerInterface(_INTERFACE_ID_ERC721);
_registerInterface(_INTERFACE_ID_ERC721_METADATA);
_registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
}
function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
return _tokenOwners.get(tokenId);
}
function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data));
}
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _tokenOwners.contains(tokenId);
}
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId));
address owner = _ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || _operatorApprovals[owner][spender]);
}
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
_mint(to, tokenId);
require(_checkOnERC721Received(address(0), to, tokenId, _data));
}
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0));
require(!_exists(tokenId));
_beforeTokenTransfer(address(0), to, tokenId);
_holderTokens[to].add(tokenId);
_tokenOwners.set(tokenId, to);
emit Transfer(address(0), to, tokenId);
}
function _burn(uint256 tokenId) internal virtual {
address owner = _ownerOf(tokenId); // internal owner
_beforeTokenTransfer(owner, address(0), tokenId);
_approve(address(0), tokenId);
if (bytes(_tokenURIs[tokenId]).length != 0) {
delete _tokenURIs[tokenId];
}
_holderTokens[owner].remove(tokenId);
_tokenOwners.set(tokenId, address(0));
emit Transfer(owner, address(0), tokenId);
}
function _transfer(address from, address to, uint256 tokenId) internal virtual {
require(_ownerOf(tokenId) == from);
require(to != address(0));
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_holderTokens[from].remove(tokenId);
_holderTokens[to].add(tokenId);
_tokenOwners.set(tokenId, to);
emit Transfer(from, to, tokenId);
}
function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
require(_exists(tokenId));
_tokenURIs[tokenId] = _tokenURI;
}
function _setBaseURI(string memory baseURI_) internal virtual {
_baseURI = baseURI_;
}
function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
private returns (bool)
{
if (!to.isContract()) {
return true;
}
bytes memory returndata = to.functionCall(abi.encodeWithSelector(
IERC721Receiver(to).onERC721Received.selector,
_msgSender(),
from,
tokenId,
_data
), "ERC721: transfer to non ERC721Receiver implementer");
bytes4 retval = abi.decode(returndata, (bytes4));
return (retval == _ERC721_RECEIVED);
}
function _approve(address to, uint256 tokenId) internal {
_tokenApprovals[tokenId] = to;
emit Approval(_ownerOf(tokenId), to, tokenId); // internal owner
}
function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual {
require(!paused());
}
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId));
return _tokenApprovals[tokenId];
}
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0));
return _holderTokens[owner].length();
}
function setBaseURI(string memory baseURI_) onlyOwner public virtual {
_setBaseURI(baseURI_);
}
function baseURI() public view virtual returns (string memory) {
return _baseURI;
}
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId));
string memory _tokenURI = _tokenURIs[tokenId];
string memory base = baseURI();
// If there is no base URI, return the token URI.
if (bytes(base).length == 0) {
return _tokenURI;
}
// If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
if (bytes(_tokenURI).length > 0) {
return string(abi.encodePacked(base, _tokenURI));
}
// If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
return string(abi.encodePacked(base, tokenId.toString()));
}
function totalSupply() public view virtual override returns (uint256) {
return _tokenOwners.length();
}
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
(uint256 tokenId, ) = _tokenOwners.at(index);
return tokenId;
}
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
return _holderTokens[owner].at(index);
}
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
return _ownerOf(tokenId);
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function approve(address to, uint256 tokenId) public virtual override {
address owner = ownerOf(tokenId);
require(to != owner);
require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()));
_approve(to, tokenId);
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender());
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(address from, address to, uint256 tokenId) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId));
require(hasAuction(tokenId) == false);
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
require(hasAuction(tokenId) == false);
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId));
require(hasAuction(tokenId) == false);
_safeTransfer(from, to, tokenId, _data);
}
struct Offer {
bool isForSale;
address seller;
uint minValue;
uint endTime;
}
struct Bid {
bool hasBid;
address bidder;
uint value;
}
// NFT 경매 등록 목록
mapping (uint256 => Offer) public offers;
// NFT 입찰 목록
mapping (uint256 => Bid) public bids;
event CreateAuction(address indexed owner,uint _tokenId, uint _minValue,uint _endTime);
event CancelAuction(uint _tokenId);
event EndAuction(uint _tokenId,uint price);
event Bidding(uint _tokenId,uint value);
event CancelBid(uint _tokenId);
//경매등록
function _createAuction(uint256 _tokenId, uint _minValue,uint _auctionTime) internal virtual {
require(_ownerOf(_tokenId) == msg.sender);//토큰 소유자인지 확인
Offer storage offer = offers[_tokenId];
require(offer.isForSale != true);//현재 판매중인지 확인
offers[_tokenId] = Offer(true, msg.sender, _minValue,block.timestamp + _auctionTime);
emit CreateAuction(msg.sender, _tokenId, _minValue,block.timestamp + _auctionTime);
}
//경매취소
function _cancelAuction(uint256 _tokenId) internal virtual {
require(_ownerOf(_tokenId) == msg.sender);//토큰 소유자인지 체크
Offer storage offer = offers[_tokenId];
require(offer.isForSale == true);//현재 경매중인지 체크
Bid storage bid = bids[_tokenId];
require(bid.hasBid != true);//입찰자가 있을경우 경매 취소 불가능
offers[_tokenId] = Offer(false, msg.sender, 0,0);
emit CancelAuction(_tokenId);
}
//입찰하기
function _bid(uint256 _tokenId) internal virtual {
require(_ownerOf(_tokenId) != msg.sender);//토큰 보유자
Offer storage offer = offers[_tokenId];
require(block.timestamp < offer.endTime);//경매가 종료되었을 경우
require(msg.value >= offer.minValue);//입찰 금액이 최소 입찰액보다 작은지 체크
Bid storage existing = bids[_tokenId];
require(msg.value > existing.value);//입찰금액이 이전 입찰금액보다 적을경우 트랜잭션 취소
if (existing.value > 0) {
//이전 입찰자에게 이더리움을 돌려줌
address payable bidder = payable(existing.bidder);
bidder.transfer(existing.value);
}
bids[_tokenId] = Bid(true, msg.sender, msg.value);
emit Bidding(_tokenId,msg.value);
}
//입찰취소
function _cancelBid(uint256 _tokenId) internal virtual {
Offer storage offer = offers[_tokenId];
require(offer.isForSale == true);//경매가 진행중인지 체크
require(block.timestamp < offer.endTime);//경매가 종료되었을 경우
Bid storage bid = bids[_tokenId];
require(bid.hasBid == true);
require(bid.bidder == msg.sender);//입찰자가 본인인 경우
address payable bidder = payable(bid.bidder);
address payable seller = payable(offer.seller);
uint cancelFee = bid.value * cancelFeeRate() / 1000;
bidder.transfer(bid.value - cancelFee);
seller.transfer(cancelFee);
bids[_tokenId] = Bid(false, address(0), 0);
emit CancelBid(_tokenId);
}
//경매종료
function _endAuction(uint256 _tokenId) internal virtual {
Offer storage offer = offers[_tokenId];
require(block.timestamp >= offer.endTime);//경매 종료 시간이 아닐경우 오류
require(offer.isForSale == true);//경매가 이미 종료된 경우
address payable seller = payable(_ownerOf(_tokenId));
Bid storage bid = bids[_tokenId];
_transfer(offer.seller, bid.bidder, _tokenId);
// 수수료
uint _commissionValue = bid.value * feeRate() / 1000;
uint _sellerValue = bid.value - _commissionValue;
seller.transfer(_sellerValue);//판매자에게 판매대금 지급
address payable contractOwner = payable(_owner);
contractOwner.transfer(_commissionValue);//발행자에게 수수료 지급
emit EndAuction(_tokenId,bid.value);
_resetAuction(_tokenId);
}
function _resetAuction(uint256 _tokenId) internal virtual {
offers[_tokenId] = Offer(false, address(0), 0,0);
bids[_tokenId] = Bid(false, address(0), 0);
}
function hasAuction(uint256 _tokenId) public view virtual returns (bool){
Offer storage offer = offers[_tokenId];
if(offer.isForSale != true){
return false;
}
return true;
}
}
abstract contract ERC721Burnable is ERC721
{
function burn(uint256 _tokenId) external payable{
require(_isApprovedOrOwner(_msgSender(), _tokenId) || _owner == _msgSender(), "ERC721Burnable: caller is not owner nor approved");
Offer storage offer = offers[_tokenId];
if(offer.isForSale == true){
Bid storage bid = bids[_tokenId];
if(bid.hasBid == true){
address payable bidder = payable(bid.bidder);
bidder.transfer(bid.value);
}
_resetAuction(_tokenId);
}
_burn(_tokenId);
}
}
abstract
contract Market is
ERC721Burnable
{
address payable public _contractOwner;
mapping (uint => uint) public price;
...
// [truncated — 54561 bytes total]
Read Contract
_contractOwner 0x2bb3b114 → address
balanceOf 0x70a08231 → uint256
baseURI 0x6c0360eb → string
bids 0x4423c5f1 → bool, address, uint256
cancelFeePaused 0x27fbe123 → bool
cancelFeeRate 0x3c4da553 → uint256
feePaused 0x50f1c94f → bool
feeRate 0x978bbdb9 → uint256
getApproved 0x081812fc → address
hasAuction 0xf1462921 → bool
isApprovedForAll 0xe985e9c5 → bool
listedMap 0xbc8ba28f → bool
name 0x06fdde03 → string
offers 0x8a72ea6a → bool, address, uint256, uint256
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
price 0x26a49e37 → uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
Write Contract 28 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address to
uint256 tokenId
auctionMint 0x8804da63
string _tokenURI
address _toAddress
uint256 _minValue
uint256 _auctionTime
returns: uint256
bid 0x454a2ab3
uint256 _tokenId
burn 0x42966c68
uint256 _tokenId
buy 0xd96a094a
uint256 _id
cancelAuction 0x96b5a755
uint256 _tokenId
cancelBid 0x9703ef35
uint256 _tokenId
cancelFeePause 0xd16fd8d4
No parameters
cancelFeeUnPause 0xca52a433
No parameters
createAuction 0xcda4beef
uint256 _tokenId
uint256 _minValue
uint256 _auctionTime
endAuction 0xb9a2de3a
uint256 _tokenId
feePause 0x9819826a
No parameters
feeUnPause 0x4e79f1a1
No parameters
mint 0x7e8816b9
string _tokenURI
address _toAddress
uint256 _price
returns: uint256
pause 0x8456cb59
No parameters
renounceOwnership 0x715018a6
No parameters
returns: bool
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_
setCancelFee 0xc2fffd6b
uint256 feeRate_
setFee 0x69fe0e2d
uint256 feeRate_
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
returns: bool
unpause 0x3f4ba83a
No parameters
updateListingStatus 0x98214bcb
uint256 _tokenId
bool shouldBeListed
returns: bool
updatePrice 0x82367b2d
uint256 _tokenId
uint256 _price
returns: bool
updateSale 0xbdde7897
uint256 _tokenId
uint256 _price
returns: bool
Recent Transactions
No transactions found for this address