Loading
[ { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "address", "name": "initialOwner", "type": "address" }, { "internalType": "string", "name": "tokenName", "type": "string" }, { "internalType": "string", "name": "tokenSymbol", "type": "string" }, { "internalType": "uint256", "name": "maxSupply", "type": "uint256" }, { "internalType": "uint8", "name": "decimal", "type": "uint8" }, { "internalType": "uint256", "name": "tokenPerMint", "type": "uint256" }, { "internalType": "uint256", "name": "miningDifficulty", "type": "uint256" }, { "internalType": "bool", "name": "editable", "type": "bool" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "allowance", "type": "uint256" }, { "internalType": "uint256", "name": "needed", "type": "uint256" } ], "name": "ERC20InsufficientAllowance", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "needed", "type": "uint256" } ], "name": "ERC20InsufficientBalance", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "approver", "type": "address" } ], "name": "ERC20InvalidApprover", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "receiver", "type": "address" } ], "name": "ERC20InvalidReceiver", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" } ], "name": "ERC20InvalidSender", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" } ], "name": "ERC20InvalidSpender", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "Transfer", "type": "event" }, { "inputs": [], "name": "DIFFICULTY", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "EDITABLE", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_SUPPLY", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MINT_AMOUNT_PER_TX", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "TOKEN_ID", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "VERSION", "outputs": [ { "internalType": "uint32", "name": "", "type": "uint32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" } ], "name": "allowance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "approve", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "decimals", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "nonce", "type": "uint256" } ], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "symbol", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalSupply", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transfer", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "transferFrom", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "incrSupply", "type": "uint256" }, { "internalType": "uint256", "name": "miningDifficulty", "type": "uint256" }, { "internalType": "bool", "name": "editable", "type": "bool" } ], "name": "updateToken", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]
6080604052600a805460ff191660011790553480156200001e57600080fd5b50604051620010ea380380620010ea833981016040819052620000419162000224565b87878760036200005283826200038d565b5060046200006182826200038d565b5050506001600160a01b0381166200009357604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6200009e81620000e2565b50600b98909855600893909355600c805460ff90931660ff19938416179055600955600691909155600a805495151595909116949094179093555062000459915050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200015c57600080fd5b81516001600160401b038082111562000179576200017962000134565b604051601f8301601f19908116603f01168101908282118183101715620001a457620001a462000134565b8160405283815260209250866020858801011115620001c257600080fd5b600091505b83821015620001e65785820183015181830184015290820190620001c7565b6000602085830101528094505050505092915050565b805160ff811681146200020e57600080fd5b919050565b805180151581146200020e57600080fd5b60008060008060008060008060006101208a8c0312156200024457600080fd5b895160208b01519099506001600160a01b03811681146200026457600080fd5b60408b01519098506001600160401b03808211156200028257600080fd5b620002908d838e016200014a565b985060608c0151915080821115620002a757600080fd5b50620002b68c828d016200014a565b96505060808a01519450620002ce60a08b01620001fc565b935060c08a0151925060e08a01519150620002ed6101008b0162000213565b90509295985092959850929598565b600181811c908216806200031157607f821691505b6020821081036200033257634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000388576000816000526020600020601f850160051c81016020861015620003635750805b601f850160051c820191505b8181101562000384578281556001016200036f565b5050505b505050565b81516001600160401b03811115620003a957620003a962000134565b620003c181620003ba8454620002fc565b8462000338565b602080601f831160018114620003f95760008415620003e05750858301515b600019600386901b1c1916600185901b17855562000384565b600085815260208120601f198616915b828110156200042a5788860151825594840194600190910190840162000409565b5085821015620004495787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610c8180620004696000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063715018a6116100ad578063a0712d6811610071578063a0712d6814610246578063a9059cbb14610259578063dd62ed3e1461026c578063f2fde38b146102a5578063ffa1ad74146102b857600080fd5b8063715018a61461020957806389a89002146102115780638da5cb5b1461021a5780638e295e9f1461023557806395d89b411461023e57600080fd5b8063313ce567116100f4578063313ce567146101a457806332cb6b0c146101b95780633fa352f5146101c2578063514ffbe2146101cb57806370a08231146101e057600080fd5b806306fdde0314610131578063095ea7b31461014f57806318160ddd14610172578063201b947a1461018457806323b872dd14610191575b600080fd5b6101396102d5565b6040516101469190610a51565b60405180910390f35b61016261015d366004610abc565b610367565b6040519015158152602001610146565b6002545b604051908152602001610146565b600a546101629060ff1681565b61016261019f366004610ae6565b610381565b600c5460405160ff9091168152602001610146565b61017660085481565b61017660065481565b6101de6101d9366004610b22565b6103a5565b005b6101766101ee366004610b60565b6001600160a01b031660009081526020819052604090205490565b6101de610487565b610176600b5481565b6007546040516001600160a01b039091168152602001610146565b61017660095481565b6101396104a3565b6101de610254366004610b82565b6104b2565b610162610267366004610abc565b610520565b61017661027a366004610b9b565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6101de6102b3366004610b60565b61052e565b6102c0600181565b60405163ffffffff9091168152602001610146565b6060600380546102e490610bce565b80601f016020809104026020016040519081016040528092919081815260200182805461031090610bce565b801561035d5780601f106103325761010080835404028352916020019161035d565b820191906000526020600020905b81548152906001019060200180831161034057829003601f168201915b5050505050905090565b600033610375818585610569565b60019150505b92915050565b60003361038f85828561057b565b61039a8585856105f9565b506001949350505050565b6103ad610658565b600a5460ff166104045760405162461bcd60e51b815260206004820152601a60248201527f546f6b656e20696e666f206973206e6f74206564697461626c6500000000000060448201526064015b60405180910390fd5b6000600654116104565760405162461bcd60e51b815260206004820152601a60248201527f446966666963756c74792063616e206e6f74206265207a65726f00000000000060448201526064016103fb565b82600860008282546104689190610c08565b9091555050600691909155600a805460ff191691151591909117905550565b61048f610658565b600a805460ff191690556104a1610685565b565b6060600480546102e490610bce565b6008546009546002546104c59190610c08565b11156105085760405162461bcd60e51b815260206004820152601260248201527113585e081cdd5c1c1b1e481c995858da195960721b60448201526064016103fb565b61051181610697565b61051d336009546107c6565b50565b6000336103758185856105f9565b610536610658565b6001600160a01b03811661056057604051631e4fbdf760e01b8152600060048201526024016103fb565b61051d81610800565b6105768383836001610852565b505050565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146105f357818110156105e457604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016103fb565b6105f384848484036000610852565b50505050565b6001600160a01b03831661062357604051634b637e8f60e11b8152600060048201526024016103fb565b6001600160a01b03821661064d5760405163ec442f0560e01b8152600060048201526024016103fb565b610576838383610927565b6007546001600160a01b031633146104a15760405163118cdaa760e01b81523360048201526024016103fb565b61068d610658565b6104a16000610800565b60008181526005602052604090205460ff16156106eb5760405162461bcd60e51b8152602060048201526012602482015271139bdb98d948185b1c9958591e481d5cd95960721b60448201526064016103fb565b6000818152600560209081526040808320805460ff19166001179055600654905161074b9230923392879201606094851b6bffffffffffffffffffffffff1990811682529390941b90921660148401526028830152604882015260680190565b60405160208183030381529060405280519060200120905060006006546000196107759190610c29565b90508082106105765760405162461bcd60e51b815260206004820152601760248201527f506f5720766572696669636174696f6e206661696c656400000000000000000060448201526064016103fb565b6001600160a01b0382166107f05760405163ec442f0560e01b8152600060048201526024016103fb565b6107fc60008383610927565b5050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03841661087c5760405163e602df0560e01b8152600060048201526024016103fb565b6001600160a01b0383166108a657604051634a1406b160e11b8152600060048201526024016103fb565b6001600160a01b03808516600090815260016020908152604080832093871683529290522082905580156105f357826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161091991815260200190565b60405180910390a350505050565b6001600160a01b0383166109525780600260008282546109479190610c08565b909155506109c49050565b6001600160a01b038316600090815260208190526040902054818110156109a55760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016103fb565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166109e0576002805482900390556109ff565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610a4491815260200190565b60405180910390a3505050565b60006020808352835180602085015260005b81811015610a7f57858101830151858201604001528201610a63565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610ab757600080fd5b919050565b60008060408385031215610acf57600080fd5b610ad883610aa0565b946020939093013593505050565b600080600060608486031215610afb57600080fd5b610b0484610aa0565b9250610b1260208501610aa0565b9150604084013590509250925092565b600080600060608486031215610b3757600080fd5b833592506020840135915060408401358015158114610b5557600080fd5b809150509250925092565b600060208284031215610b7257600080fd5b610b7b82610aa0565b9392505050565b600060208284031215610b9457600080fd5b5035919050565b60008060408385031215610bae57600080fd5b610bb783610aa0565b9150610bc560208401610aa0565b90509250929050565b600181811c90821680610be257607f821691505b602082108103610c0257634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561037b57634e487b7160e01b600052601160045260246000fd5b600082610c4657634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220bafdb216532d3d7f8d0decb5494b82f2d4b086c387f9a20b1724648da92d129a64736f6c634300081700330000000000000000000000000000000000000000000000000000000000000007000000000000000000000000ea3475e778f46cea29476a1e4a975e9bd8383f0b00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000115eec47f6cf7e35000000000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000000000000000599b117c00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015800000000000000000000000000000000000000000000000000000000000000