From 19d3da84392d01d797d2543a9a3c1a37aed21895 Mon Sep 17 00:00:00 2001 From: Ji Hwan Date: Wed, 4 Sep 2024 11:12:39 +0900 Subject: [PATCH] fix: adjust nft mint amount for cdk erigon compatibility Signed-off-by: Ji Hwan --- bindings/tokens/ERC721.bin | 2 +- bindings/tokens/ERC721.go | 2 +- contracts/src/tokens/ERC721.sol | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/tokens/ERC721.bin b/bindings/tokens/ERC721.bin index c7f1ca40..657d5519 100644 --- a/bindings/tokens/ERC721.bin +++ b/bindings/tokens/ERC721.bin @@ -1 +1 @@ -0x608060405260006006553480156200001657600080fd5b5060405180604001604052806005815260200164135e53919560da1b815250604051806040016040528060048152602001631353919560e21b815250816000908162000063919062000456565b50600162000072828262000456565b505050620000883360646200008e60201b60201c565b6200075b565b60005b81811015620000ca576000600660008154620000ad906200053c565b91829055509050620000c08482620000cf565b5060010162000091565b505050565b620000f1828260405180602001604052806000815250620000f560201b60201c565b5050565b62000101838362000138565b6200011060008484846200023c565b620000ca5760405162461bcd60e51b81526004016200012f9062000559565b60405180910390fd5b6001600160a01b038216620001615760405162461bcd60e51b81526004016200012f90620005e5565b6000818152600260205260409020546001600160a01b031615620001995760405162461bcd60e51b81526004016200012f906200062c565b6000818152600260205260409020546001600160a01b031615620001d15760405162461bcd60e51b81526004016200012f906200062c565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156200033f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029062000283903390899088908890600401620006c3565b6020604051808303816000875af1925050508015620002c1575060408051601f3d908101601f19168201909252620002be9181019062000736565b60015b62000324573d808015620002f2576040519150601f19603f3d011682016040523d82523d6000602084013e620002f7565b606091505b5080516000036200031c5760405162461bcd60e51b81526004016200012f9062000559565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000343565b5060015b949350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200038c57607f821691505b602082108103620003a157620003a162000361565b50919050565b6000620003b8620003b58381565b90565b92915050565b620003c983620003a7565b815460001960089490940293841b1916921b91909117905550565b6000620000ca818484620003be565b81811015620000f15762000409600082620003e4565b600101620003f3565b601f821115620000ca576000818152602090206020601f850104810160208510156200043b5750805b6200044f6020601f860104830182620003f3565b5050505050565b81516001600160401b038111156200047257620004726200034b565b6200047e825462000377565b6200048b82828562000412565b6020601f831160018114620004c25760008415620004a95750858201515b600019600886021c19811660028602178655506200051e565b600085815260208120601f198616915b82811015620004f45788850151825560209485019460019092019101620004d2565b86831015620005115784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b634e487b7160e01b600052601160045260246000fd5b6000600019820362000552576200055262000526565b5060010190565b60208082528101620003b881603281527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560208201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b604082015260600190565b60208082527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373910190815260005b5060200190565b60208082528101620003b881620005b0565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150620005de565b60208082528101620003b881620005f7565b60006001600160a01b038216620003b8565b6200065b816200063e565b82525050565b806200065b565b60005b83811015620006855781810151838201526020016200066b565b50506000910152565b600062000699825190565b808452602084019350620006b281856020860162000668565b601f01601f19169290920192915050565b60808101620006d3828762000650565b620006e2602083018662000650565b620006f1604083018562000661565b81810360608301526200070581846200068e565b9695505050505050565b6001600160e01b0319811681146200072657600080fd5b50565b8051620003b8816200070f565b6000602082840312156200074d576200074d600080fd5b600062000343848462000729565b611524806200076b6000396000f3fe608060405234801561001057600080fd5b50600436106100f45760003560e01c806342842e0e11610097578063a22cb46511610066578063a22cb465146101e9578063b88d4fde146101fc578063c87b56dd1461020f578063e985e9c51461022257600080fd5b806342842e0e146101a85780636352211e146101bb57806370a08231146101ce57806395d89b41146101e157600080fd5b8063081812fc116100d3578063081812fc1461014d578063095ea7b31461016d57806323b872dd14610182578063248b71fc1461019557600080fd5b80629a9b7b146100f957806301ffc9a71461011857806306fdde0314610138575b600080fd5b61010260065481565b60405161010f9190610c7f565b60405180910390f35b61012b610126366004610caf565b610235565b60405161010f9190610cd8565b610140610287565b60405161010f9190610d3c565b61016061015b366004610d5e565b610319565b60405161010f9190610d99565b61018061017b366004610dbb565b610340565b005b610180610190366004610df8565b6103ce565b6101806101a3366004610dbb565b6103ff565b6101806101b6366004610df8565b610435565b6101606101c9366004610d5e565b610450565b6101026101dc366004610e48565b610485565b6101406104c9565b6101806101f7366004610e7c565b6104d8565b61018061020a366004610fa2565b6104e7565b61014061021d366004610d5e565b61051f565b61012b610230366004611021565b610593565b60006001600160e01b031982166380ac58cd60e01b148061026657506001600160e01b03198216635b5e139f60e01b145b8061028157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546102969061106a565b80601f01602080910402602001604051908101604052809291908181526020018280546102c29061106a565b801561030f5780601f106102e45761010080835404028352916020019161030f565b820191906000526020600020905b8154815290600101906020018083116102f257829003601f168201915b5050505050905090565b6000610324826105c1565b506000908152600460205260409020546001600160a01b031690565b600061034b82610450565b9050806001600160a01b0316836001600160a01b0316036103875760405162461bcd60e51b815260040161037e906110d7565b60405180910390fd5b336001600160a01b03821614806103a357506103a38133610593565b6103bf5760405162461bcd60e51b815260040161037e90611141565b6103c983836105f8565b505050565b6103d83382610666565b6103f45760405162461bcd60e51b815260040161037e9061119b565b6103c98383836106c5565b60005b818110156103c957600060066000815461041b906111c1565b9182905550905061042c84826107ed565b50600101610402565b6103c9838383604051806020016040528060008152506104e7565b6000818152600260205260408120546001600160a01b0316806102815760405162461bcd60e51b815260040161037e90611212565b60006001600160a01b0382166104ad5760405162461bcd60e51b815260040161037e90611268565b506001600160a01b031660009081526003602052604090205490565b6060600180546102969061106a565b6104e3338383610807565b5050565b6104f13383610666565b61050d5760405162461bcd60e51b815260040161037e9061119b565b610519848484846108a9565b50505050565b606061052a826105c1565b600061054160408051602081019091526000815290565b90506000815111610561576040518060200160405280600081525061058c565b8061056b846108dc565b60405160200161057c92919061129a565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000818152600260205260409020546001600160a01b03166105f55760405162461bcd60e51b815260040161037e90611212565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061062d82610450565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061067283610450565b9050806001600160a01b0316846001600160a01b0316148061069957506106998185610593565b806106bd5750836001600160a01b03166106b284610319565b6001600160a01b0316145b949350505050565b826001600160a01b03166106d882610450565b6001600160a01b0316146106fe5760405162461bcd60e51b815260040161037e906112f4565b6001600160a01b0382166107245760405162461bcd60e51b815260040161037e90611345565b826001600160a01b031661073782610450565b6001600160a01b03161461075d5760405162461bcd60e51b815260040161037e906112f4565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6104e3828260405180602001604052806000815250610970565b816001600160a01b0316836001600160a01b0316036108385760405162461bcd60e51b815260040161037e90611389565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061089c908590610cd8565b60405180910390a3505050565b6108b48484846106c5565b6108c0848484846109a3565b6105195760405162461bcd60e51b815260040161037e906113e8565b606060006108e983610aa4565b600101905060008167ffffffffffffffff81111561090957610909610eaf565b6040519080825280601f01601f191660200182016040528015610933576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461093d575b509392505050565b61097a8383610b7c565b61098760008484846109a3565b6103c95760405162461bcd60e51b815260040161037e906113e8565b60006001600160a01b0384163b15610a9957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906109e79033908990889088906004016113f8565b6020604051808303816000875af1925050508015610a22575060408051601f3d908101601f19168201909252610a1f91810190611447565b60015b610a7f573d808015610a50576040519150601f19603f3d011682016040523d82523d6000602084013e610a55565b606091505b508051600003610a775760405162461bcd60e51b815260040161037e906113e8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506106bd565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610ae35772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610b0f576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610b2d57662386f26fc10000830492506010015b6305f5e1008310610b45576305f5e100830492506008015b6127108310610b5957612710830492506004015b60648310610b6b576064830492506002015b600a83106102815760010192915050565b6001600160a01b038216610ba25760405162461bcd60e51b815260040161037e9061149a565b6000818152600260205260409020546001600160a01b031615610bd75760405162461bcd60e51b815260040161037e906114de565b6000818152600260205260409020546001600160a01b031615610c0c5760405162461bcd60e51b815260040161037e906114de565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b805b82525050565b602081016102818284610c77565b6001600160e01b031981165b81146105f557600080fd5b803561028181610c8d565b600060208284031215610cc457610cc4600080fd5b60006106bd8484610ca4565b801515610c79565b602081016102818284610cd0565b60005b83811015610d01578181015183820152602001610ce9565b50506000910152565b6000610d14825190565b808452602084019350610d2b818560208601610ce6565b601f01601f19169290920192915050565b6020808252810161058c8184610d0a565b80610c99565b803561028181610d4d565b600060208284031215610d7357610d73600080fd5b60006106bd8484610d53565b60006001600160a01b038216610281565b610c7981610d7f565b602081016102818284610d90565b610c9981610d7f565b803561028181610da7565b60008060408385031215610dd157610dd1600080fd5b6000610ddd8585610db0565b9250506020610dee85828601610d53565b9150509250929050565b600080600060608486031215610e1057610e10600080fd5b6000610e1c8686610db0565b9350506020610e2d86828701610db0565b9250506040610e3e86828701610d53565b9150509250925092565b600060208284031215610e5d57610e5d600080fd5b60006106bd8484610db0565b801515610c99565b803561028181610e69565b60008060408385031215610e9257610e92600080fd5b6000610e9e8585610db0565b9250506020610dee85828601610e71565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715610eeb57610eeb610eaf565b6040525050565b6000610efd60405190565b9050610f098282610ec5565b919050565b600067ffffffffffffffff821115610f2857610f28610eaf565b601f19601f83011660200192915050565b82818337506000910152565b6000610f58610f5384610f0e565b610ef2565b905082815260208101848484011115610f7357610f73600080fd5b610968848285610f39565b600082601f830112610f9257610f92600080fd5b81356106bd848260208601610f45565b60008060008060808587031215610fbb57610fbb600080fd5b6000610fc78787610db0565b9450506020610fd887828801610db0565b9350506040610fe987828801610d53565b925050606085013567ffffffffffffffff81111561100957611009600080fd5b61101587828801610f7e565b91505092959194509250565b6000806040838503121561103757611037600080fd5b60006110438585610db0565b9250506020610dee85828601610db0565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061107e57607f821691505b60208210810361109057611090611054565b50919050565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291505b5060400190565b6020808252810161028181611096565b603d81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015291506110d0565b60208082528101610281816110e7565b602d81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526c1c881bdc88185c1c1c9bdd9959609a1b602082015291506110d0565b6020808252810161028181611151565b634e487b7160e01b600052601160045260246000fd5b600060001982036111d4576111d46111ab565b5060010190565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e2049440000000000000000815291505b5060200190565b60208082528101610281816111db565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b602082015291506110d0565b6020808252810161028181611222565b6000611282825190565b611290818560208601610ce6565b9290920192915050565b60006112a68285611278565b91506106bd8284611278565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b602082015291506110d0565b60208082528101610281816112b2565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506110d0565b6020808252810161028181611304565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c6572000000000000008152915061120b565b6020808252810161028181611355565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291506110d0565b6020808252810161028181611399565b608081016114068287610d90565b6114136020830186610d90565b6114206040830185610c77565b81810360608301526114328184610d0a565b9695505050505050565b805161028181610c8d565b60006020828403121561145c5761145c600080fd5b60006106bd848461143c565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152600061120b565b6020808252810161028181611468565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e746564000000008152915061120b565b60208082528101610281816114aa56fea26469706673582212205ecd344f2f5ad2ad811a8c03c40444147f7a988e15308d1acfd19b8af166fce764736f6c63430008170033 +0x608060405260006006553480156200001657600080fd5b5060405180604001604052806005815260200164135e53919560da1b815250604051806040016040528060048152602001631353919560e21b815250816000908162000063919062000456565b50600162000072828262000456565b5050506200008833600a6200008e60201b60201c565b6200075b565b60005b81811015620000ca576000600660008154620000ad906200053c565b91829055509050620000c08482620000cf565b5060010162000091565b505050565b620000f1828260405180602001604052806000815250620000f560201b60201c565b5050565b62000101838362000138565b6200011060008484846200023c565b620000ca5760405162461bcd60e51b81526004016200012f9062000559565b60405180910390fd5b6001600160a01b038216620001615760405162461bcd60e51b81526004016200012f90620005e5565b6000818152600260205260409020546001600160a01b031615620001995760405162461bcd60e51b81526004016200012f906200062c565b6000818152600260205260409020546001600160a01b031615620001d15760405162461bcd60e51b81526004016200012f906200062c565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156200033f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029062000283903390899088908890600401620006c3565b6020604051808303816000875af1925050508015620002c1575060408051601f3d908101601f19168201909252620002be9181019062000736565b60015b62000324573d808015620002f2576040519150601f19603f3d011682016040523d82523d6000602084013e620002f7565b606091505b5080516000036200031c5760405162461bcd60e51b81526004016200012f9062000559565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000343565b5060015b949350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200038c57607f821691505b602082108103620003a157620003a162000361565b50919050565b6000620003b8620003b58381565b90565b92915050565b620003c983620003a7565b815460001960089490940293841b1916921b91909117905550565b6000620000ca818484620003be565b81811015620000f15762000409600082620003e4565b600101620003f3565b601f821115620000ca576000818152602090206020601f850104810160208510156200043b5750805b6200044f6020601f860104830182620003f3565b5050505050565b81516001600160401b038111156200047257620004726200034b565b6200047e825462000377565b6200048b82828562000412565b6020601f831160018114620004c25760008415620004a95750858201515b600019600886021c19811660028602178655506200051e565b600085815260208120601f198616915b82811015620004f45788850151825560209485019460019092019101620004d2565b86831015620005115784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b634e487b7160e01b600052601160045260246000fd5b6000600019820362000552576200055262000526565b5060010190565b60208082528101620003b881603281527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560208201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b604082015260600190565b60208082527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373910190815260005b5060200190565b60208082528101620003b881620005b0565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150620005de565b60208082528101620003b881620005f7565b60006001600160a01b038216620003b8565b6200065b816200063e565b82525050565b806200065b565b60005b83811015620006855781810151838201526020016200066b565b50506000910152565b600062000699825190565b808452602084019350620006b281856020860162000668565b601f01601f19169290920192915050565b60808101620006d3828762000650565b620006e2602083018662000650565b620006f1604083018562000661565b81810360608301526200070581846200068e565b9695505050505050565b6001600160e01b0319811681146200072657600080fd5b50565b8051620003b8816200070f565b6000602082840312156200074d576200074d600080fd5b600062000343848462000729565b611524806200076b6000396000f3fe608060405234801561001057600080fd5b50600436106100f45760003560e01c806342842e0e11610097578063a22cb46511610066578063a22cb465146101e9578063b88d4fde146101fc578063c87b56dd1461020f578063e985e9c51461022257600080fd5b806342842e0e146101a85780636352211e146101bb57806370a08231146101ce57806395d89b41146101e157600080fd5b8063081812fc116100d3578063081812fc1461014d578063095ea7b31461016d57806323b872dd14610182578063248b71fc1461019557600080fd5b80629a9b7b146100f957806301ffc9a71461011857806306fdde0314610138575b600080fd5b61010260065481565b60405161010f9190610c7f565b60405180910390f35b61012b610126366004610caf565b610235565b60405161010f9190610cd8565b610140610287565b60405161010f9190610d3c565b61016061015b366004610d5e565b610319565b60405161010f9190610d99565b61018061017b366004610dbb565b610340565b005b610180610190366004610df8565b6103ce565b6101806101a3366004610dbb565b6103ff565b6101806101b6366004610df8565b610435565b6101606101c9366004610d5e565b610450565b6101026101dc366004610e48565b610485565b6101406104c9565b6101806101f7366004610e7c565b6104d8565b61018061020a366004610fa2565b6104e7565b61014061021d366004610d5e565b61051f565b61012b610230366004611021565b610593565b60006001600160e01b031982166380ac58cd60e01b148061026657506001600160e01b03198216635b5e139f60e01b145b8061028157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546102969061106a565b80601f01602080910402602001604051908101604052809291908181526020018280546102c29061106a565b801561030f5780601f106102e45761010080835404028352916020019161030f565b820191906000526020600020905b8154815290600101906020018083116102f257829003601f168201915b5050505050905090565b6000610324826105c1565b506000908152600460205260409020546001600160a01b031690565b600061034b82610450565b9050806001600160a01b0316836001600160a01b0316036103875760405162461bcd60e51b815260040161037e906110d7565b60405180910390fd5b336001600160a01b03821614806103a357506103a38133610593565b6103bf5760405162461bcd60e51b815260040161037e90611141565b6103c983836105f8565b505050565b6103d83382610666565b6103f45760405162461bcd60e51b815260040161037e9061119b565b6103c98383836106c5565b60005b818110156103c957600060066000815461041b906111c1565b9182905550905061042c84826107ed565b50600101610402565b6103c9838383604051806020016040528060008152506104e7565b6000818152600260205260408120546001600160a01b0316806102815760405162461bcd60e51b815260040161037e90611212565b60006001600160a01b0382166104ad5760405162461bcd60e51b815260040161037e90611268565b506001600160a01b031660009081526003602052604090205490565b6060600180546102969061106a565b6104e3338383610807565b5050565b6104f13383610666565b61050d5760405162461bcd60e51b815260040161037e9061119b565b610519848484846108a9565b50505050565b606061052a826105c1565b600061054160408051602081019091526000815290565b90506000815111610561576040518060200160405280600081525061058c565b8061056b846108dc565b60405160200161057c92919061129a565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000818152600260205260409020546001600160a01b03166105f55760405162461bcd60e51b815260040161037e90611212565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061062d82610450565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061067283610450565b9050806001600160a01b0316846001600160a01b0316148061069957506106998185610593565b806106bd5750836001600160a01b03166106b284610319565b6001600160a01b0316145b949350505050565b826001600160a01b03166106d882610450565b6001600160a01b0316146106fe5760405162461bcd60e51b815260040161037e906112f4565b6001600160a01b0382166107245760405162461bcd60e51b815260040161037e90611345565b826001600160a01b031661073782610450565b6001600160a01b03161461075d5760405162461bcd60e51b815260040161037e906112f4565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6104e3828260405180602001604052806000815250610970565b816001600160a01b0316836001600160a01b0316036108385760405162461bcd60e51b815260040161037e90611389565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061089c908590610cd8565b60405180910390a3505050565b6108b48484846106c5565b6108c0848484846109a3565b6105195760405162461bcd60e51b815260040161037e906113e8565b606060006108e983610aa4565b600101905060008167ffffffffffffffff81111561090957610909610eaf565b6040519080825280601f01601f191660200182016040528015610933576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461093d575b509392505050565b61097a8383610b7c565b61098760008484846109a3565b6103c95760405162461bcd60e51b815260040161037e906113e8565b60006001600160a01b0384163b15610a9957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906109e79033908990889088906004016113f8565b6020604051808303816000875af1925050508015610a22575060408051601f3d908101601f19168201909252610a1f91810190611447565b60015b610a7f573d808015610a50576040519150601f19603f3d011682016040523d82523d6000602084013e610a55565b606091505b508051600003610a775760405162461bcd60e51b815260040161037e906113e8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506106bd565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610ae35772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610b0f576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610b2d57662386f26fc10000830492506010015b6305f5e1008310610b45576305f5e100830492506008015b6127108310610b5957612710830492506004015b60648310610b6b576064830492506002015b600a83106102815760010192915050565b6001600160a01b038216610ba25760405162461bcd60e51b815260040161037e9061149a565b6000818152600260205260409020546001600160a01b031615610bd75760405162461bcd60e51b815260040161037e906114de565b6000818152600260205260409020546001600160a01b031615610c0c5760405162461bcd60e51b815260040161037e906114de565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b805b82525050565b602081016102818284610c77565b6001600160e01b031981165b81146105f557600080fd5b803561028181610c8d565b600060208284031215610cc457610cc4600080fd5b60006106bd8484610ca4565b801515610c79565b602081016102818284610cd0565b60005b83811015610d01578181015183820152602001610ce9565b50506000910152565b6000610d14825190565b808452602084019350610d2b818560208601610ce6565b601f01601f19169290920192915050565b6020808252810161058c8184610d0a565b80610c99565b803561028181610d4d565b600060208284031215610d7357610d73600080fd5b60006106bd8484610d53565b60006001600160a01b038216610281565b610c7981610d7f565b602081016102818284610d90565b610c9981610d7f565b803561028181610da7565b60008060408385031215610dd157610dd1600080fd5b6000610ddd8585610db0565b9250506020610dee85828601610d53565b9150509250929050565b600080600060608486031215610e1057610e10600080fd5b6000610e1c8686610db0565b9350506020610e2d86828701610db0565b9250506040610e3e86828701610d53565b9150509250925092565b600060208284031215610e5d57610e5d600080fd5b60006106bd8484610db0565b801515610c99565b803561028181610e69565b60008060408385031215610e9257610e92600080fd5b6000610e9e8585610db0565b9250506020610dee85828601610e71565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715610eeb57610eeb610eaf565b6040525050565b6000610efd60405190565b9050610f098282610ec5565b919050565b600067ffffffffffffffff821115610f2857610f28610eaf565b601f19601f83011660200192915050565b82818337506000910152565b6000610f58610f5384610f0e565b610ef2565b905082815260208101848484011115610f7357610f73600080fd5b610968848285610f39565b600082601f830112610f9257610f92600080fd5b81356106bd848260208601610f45565b60008060008060808587031215610fbb57610fbb600080fd5b6000610fc78787610db0565b9450506020610fd887828801610db0565b9350506040610fe987828801610d53565b925050606085013567ffffffffffffffff81111561100957611009600080fd5b61101587828801610f7e565b91505092959194509250565b6000806040838503121561103757611037600080fd5b60006110438585610db0565b9250506020610dee85828601610db0565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061107e57607f821691505b60208210810361109057611090611054565b50919050565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291505b5060400190565b6020808252810161028181611096565b603d81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015291506110d0565b60208082528101610281816110e7565b602d81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526c1c881bdc88185c1c1c9bdd9959609a1b602082015291506110d0565b6020808252810161028181611151565b634e487b7160e01b600052601160045260246000fd5b600060001982036111d4576111d46111ab565b5060010190565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e2049440000000000000000815291505b5060200190565b60208082528101610281816111db565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b602082015291506110d0565b6020808252810161028181611222565b6000611282825190565b611290818560208601610ce6565b9290920192915050565b60006112a68285611278565b91506106bd8284611278565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b602082015291506110d0565b60208082528101610281816112b2565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506110d0565b6020808252810161028181611304565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c6572000000000000008152915061120b565b6020808252810161028181611355565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291506110d0565b6020808252810161028181611399565b608081016114068287610d90565b6114136020830186610d90565b6114206040830185610c77565b81810360608301526114328184610d0a565b9695505050505050565b805161028181610c8d565b60006020828403121561145c5761145c600080fd5b60006106bd848461143c565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152600061120b565b6020808252810161028181611468565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e746564000000008152915061120b565b60208082528101610281816114aa56fea264697066735822122079c696ffec37606f8cd97efd0387db7616f3214d2e80967c47f2ba135479385864736f6c63430008170033 diff --git a/bindings/tokens/ERC721.go b/bindings/tokens/ERC721.go index 55076193..7d631647 100644 --- a/bindings/tokens/ERC721.go +++ b/bindings/tokens/ERC721.go @@ -32,7 +32,7 @@ var ( // ERC721MetaData contains all meta data concerning the ERC721 contract. var ERC721MetaData = &bind.MetaData{ ABI: "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"approve\",\"inputs\":[{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"tokenId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"currentTokenId\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getApproved\",\"inputs\":[{\"name\":\"tokenId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isApprovedForAll\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"operator\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"mintBatch\",\"inputs\":[{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"name\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"ownerOf\",\"inputs\":[{\"name\":\"tokenId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"safeTransferFrom\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"tokenId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"safeTransferFrom\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"tokenId\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"data\",\"type\":\"bytes\",\"internalType\":\"bytes\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setApprovalForAll\",\"inputs\":[{\"name\":\"operator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"approved\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportsInterface\",\"inputs\":[{\"name\":\"interfaceId\",\"type\":\"bytes4\",\"internalType\":\"bytes4\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"symbol\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"tokenURI\",\"inputs\":[{\"name\":\"tokenId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferFrom\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"tokenId\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"Approval\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"approved\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"tokenId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ApprovalForAll\",\"inputs\":[{\"name\":\"owner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"operator\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"approved\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Transfer\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"tokenId\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"}],\"anonymous\":false}]", - Bin: "0x608060405260006006553480156200001657600080fd5b5060405180604001604052806005815260200164135e53919560da1b815250604051806040016040528060048152602001631353919560e21b815250816000908162000063919062000456565b50600162000072828262000456565b505050620000883360646200008e60201b60201c565b6200075b565b60005b81811015620000ca576000600660008154620000ad906200053c565b91829055509050620000c08482620000cf565b5060010162000091565b505050565b620000f1828260405180602001604052806000815250620000f560201b60201c565b5050565b62000101838362000138565b6200011060008484846200023c565b620000ca5760405162461bcd60e51b81526004016200012f9062000559565b60405180910390fd5b6001600160a01b038216620001615760405162461bcd60e51b81526004016200012f90620005e5565b6000818152600260205260409020546001600160a01b031615620001995760405162461bcd60e51b81526004016200012f906200062c565b6000818152600260205260409020546001600160a01b031615620001d15760405162461bcd60e51b81526004016200012f906200062c565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156200033f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029062000283903390899088908890600401620006c3565b6020604051808303816000875af1925050508015620002c1575060408051601f3d908101601f19168201909252620002be9181019062000736565b60015b62000324573d808015620002f2576040519150601f19603f3d011682016040523d82523d6000602084013e620002f7565b606091505b5080516000036200031c5760405162461bcd60e51b81526004016200012f9062000559565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000343565b5060015b949350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200038c57607f821691505b602082108103620003a157620003a162000361565b50919050565b6000620003b8620003b58381565b90565b92915050565b620003c983620003a7565b815460001960089490940293841b1916921b91909117905550565b6000620000ca818484620003be565b81811015620000f15762000409600082620003e4565b600101620003f3565b601f821115620000ca576000818152602090206020601f850104810160208510156200043b5750805b6200044f6020601f860104830182620003f3565b5050505050565b81516001600160401b038111156200047257620004726200034b565b6200047e825462000377565b6200048b82828562000412565b6020601f831160018114620004c25760008415620004a95750858201515b600019600886021c19811660028602178655506200051e565b600085815260208120601f198616915b82811015620004f45788850151825560209485019460019092019101620004d2565b86831015620005115784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b634e487b7160e01b600052601160045260246000fd5b6000600019820362000552576200055262000526565b5060010190565b60208082528101620003b881603281527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560208201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b604082015260600190565b60208082527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373910190815260005b5060200190565b60208082528101620003b881620005b0565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150620005de565b60208082528101620003b881620005f7565b60006001600160a01b038216620003b8565b6200065b816200063e565b82525050565b806200065b565b60005b83811015620006855781810151838201526020016200066b565b50506000910152565b600062000699825190565b808452602084019350620006b281856020860162000668565b601f01601f19169290920192915050565b60808101620006d3828762000650565b620006e2602083018662000650565b620006f1604083018562000661565b81810360608301526200070581846200068e565b9695505050505050565b6001600160e01b0319811681146200072657600080fd5b50565b8051620003b8816200070f565b6000602082840312156200074d576200074d600080fd5b600062000343848462000729565b611524806200076b6000396000f3fe608060405234801561001057600080fd5b50600436106100f45760003560e01c806342842e0e11610097578063a22cb46511610066578063a22cb465146101e9578063b88d4fde146101fc578063c87b56dd1461020f578063e985e9c51461022257600080fd5b806342842e0e146101a85780636352211e146101bb57806370a08231146101ce57806395d89b41146101e157600080fd5b8063081812fc116100d3578063081812fc1461014d578063095ea7b31461016d57806323b872dd14610182578063248b71fc1461019557600080fd5b80629a9b7b146100f957806301ffc9a71461011857806306fdde0314610138575b600080fd5b61010260065481565b60405161010f9190610c7f565b60405180910390f35b61012b610126366004610caf565b610235565b60405161010f9190610cd8565b610140610287565b60405161010f9190610d3c565b61016061015b366004610d5e565b610319565b60405161010f9190610d99565b61018061017b366004610dbb565b610340565b005b610180610190366004610df8565b6103ce565b6101806101a3366004610dbb565b6103ff565b6101806101b6366004610df8565b610435565b6101606101c9366004610d5e565b610450565b6101026101dc366004610e48565b610485565b6101406104c9565b6101806101f7366004610e7c565b6104d8565b61018061020a366004610fa2565b6104e7565b61014061021d366004610d5e565b61051f565b61012b610230366004611021565b610593565b60006001600160e01b031982166380ac58cd60e01b148061026657506001600160e01b03198216635b5e139f60e01b145b8061028157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546102969061106a565b80601f01602080910402602001604051908101604052809291908181526020018280546102c29061106a565b801561030f5780601f106102e45761010080835404028352916020019161030f565b820191906000526020600020905b8154815290600101906020018083116102f257829003601f168201915b5050505050905090565b6000610324826105c1565b506000908152600460205260409020546001600160a01b031690565b600061034b82610450565b9050806001600160a01b0316836001600160a01b0316036103875760405162461bcd60e51b815260040161037e906110d7565b60405180910390fd5b336001600160a01b03821614806103a357506103a38133610593565b6103bf5760405162461bcd60e51b815260040161037e90611141565b6103c983836105f8565b505050565b6103d83382610666565b6103f45760405162461bcd60e51b815260040161037e9061119b565b6103c98383836106c5565b60005b818110156103c957600060066000815461041b906111c1565b9182905550905061042c84826107ed565b50600101610402565b6103c9838383604051806020016040528060008152506104e7565b6000818152600260205260408120546001600160a01b0316806102815760405162461bcd60e51b815260040161037e90611212565b60006001600160a01b0382166104ad5760405162461bcd60e51b815260040161037e90611268565b506001600160a01b031660009081526003602052604090205490565b6060600180546102969061106a565b6104e3338383610807565b5050565b6104f13383610666565b61050d5760405162461bcd60e51b815260040161037e9061119b565b610519848484846108a9565b50505050565b606061052a826105c1565b600061054160408051602081019091526000815290565b90506000815111610561576040518060200160405280600081525061058c565b8061056b846108dc565b60405160200161057c92919061129a565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000818152600260205260409020546001600160a01b03166105f55760405162461bcd60e51b815260040161037e90611212565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061062d82610450565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061067283610450565b9050806001600160a01b0316846001600160a01b0316148061069957506106998185610593565b806106bd5750836001600160a01b03166106b284610319565b6001600160a01b0316145b949350505050565b826001600160a01b03166106d882610450565b6001600160a01b0316146106fe5760405162461bcd60e51b815260040161037e906112f4565b6001600160a01b0382166107245760405162461bcd60e51b815260040161037e90611345565b826001600160a01b031661073782610450565b6001600160a01b03161461075d5760405162461bcd60e51b815260040161037e906112f4565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6104e3828260405180602001604052806000815250610970565b816001600160a01b0316836001600160a01b0316036108385760405162461bcd60e51b815260040161037e90611389565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061089c908590610cd8565b60405180910390a3505050565b6108b48484846106c5565b6108c0848484846109a3565b6105195760405162461bcd60e51b815260040161037e906113e8565b606060006108e983610aa4565b600101905060008167ffffffffffffffff81111561090957610909610eaf565b6040519080825280601f01601f191660200182016040528015610933576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461093d575b509392505050565b61097a8383610b7c565b61098760008484846109a3565b6103c95760405162461bcd60e51b815260040161037e906113e8565b60006001600160a01b0384163b15610a9957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906109e79033908990889088906004016113f8565b6020604051808303816000875af1925050508015610a22575060408051601f3d908101601f19168201909252610a1f91810190611447565b60015b610a7f573d808015610a50576040519150601f19603f3d011682016040523d82523d6000602084013e610a55565b606091505b508051600003610a775760405162461bcd60e51b815260040161037e906113e8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506106bd565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610ae35772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610b0f576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610b2d57662386f26fc10000830492506010015b6305f5e1008310610b45576305f5e100830492506008015b6127108310610b5957612710830492506004015b60648310610b6b576064830492506002015b600a83106102815760010192915050565b6001600160a01b038216610ba25760405162461bcd60e51b815260040161037e9061149a565b6000818152600260205260409020546001600160a01b031615610bd75760405162461bcd60e51b815260040161037e906114de565b6000818152600260205260409020546001600160a01b031615610c0c5760405162461bcd60e51b815260040161037e906114de565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b805b82525050565b602081016102818284610c77565b6001600160e01b031981165b81146105f557600080fd5b803561028181610c8d565b600060208284031215610cc457610cc4600080fd5b60006106bd8484610ca4565b801515610c79565b602081016102818284610cd0565b60005b83811015610d01578181015183820152602001610ce9565b50506000910152565b6000610d14825190565b808452602084019350610d2b818560208601610ce6565b601f01601f19169290920192915050565b6020808252810161058c8184610d0a565b80610c99565b803561028181610d4d565b600060208284031215610d7357610d73600080fd5b60006106bd8484610d53565b60006001600160a01b038216610281565b610c7981610d7f565b602081016102818284610d90565b610c9981610d7f565b803561028181610da7565b60008060408385031215610dd157610dd1600080fd5b6000610ddd8585610db0565b9250506020610dee85828601610d53565b9150509250929050565b600080600060608486031215610e1057610e10600080fd5b6000610e1c8686610db0565b9350506020610e2d86828701610db0565b9250506040610e3e86828701610d53565b9150509250925092565b600060208284031215610e5d57610e5d600080fd5b60006106bd8484610db0565b801515610c99565b803561028181610e69565b60008060408385031215610e9257610e92600080fd5b6000610e9e8585610db0565b9250506020610dee85828601610e71565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715610eeb57610eeb610eaf565b6040525050565b6000610efd60405190565b9050610f098282610ec5565b919050565b600067ffffffffffffffff821115610f2857610f28610eaf565b601f19601f83011660200192915050565b82818337506000910152565b6000610f58610f5384610f0e565b610ef2565b905082815260208101848484011115610f7357610f73600080fd5b610968848285610f39565b600082601f830112610f9257610f92600080fd5b81356106bd848260208601610f45565b60008060008060808587031215610fbb57610fbb600080fd5b6000610fc78787610db0565b9450506020610fd887828801610db0565b9350506040610fe987828801610d53565b925050606085013567ffffffffffffffff81111561100957611009600080fd5b61101587828801610f7e565b91505092959194509250565b6000806040838503121561103757611037600080fd5b60006110438585610db0565b9250506020610dee85828601610db0565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061107e57607f821691505b60208210810361109057611090611054565b50919050565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291505b5060400190565b6020808252810161028181611096565b603d81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015291506110d0565b60208082528101610281816110e7565b602d81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526c1c881bdc88185c1c1c9bdd9959609a1b602082015291506110d0565b6020808252810161028181611151565b634e487b7160e01b600052601160045260246000fd5b600060001982036111d4576111d46111ab565b5060010190565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e2049440000000000000000815291505b5060200190565b60208082528101610281816111db565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b602082015291506110d0565b6020808252810161028181611222565b6000611282825190565b611290818560208601610ce6565b9290920192915050565b60006112a68285611278565b91506106bd8284611278565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b602082015291506110d0565b60208082528101610281816112b2565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506110d0565b6020808252810161028181611304565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c6572000000000000008152915061120b565b6020808252810161028181611355565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291506110d0565b6020808252810161028181611399565b608081016114068287610d90565b6114136020830186610d90565b6114206040830185610c77565b81810360608301526114328184610d0a565b9695505050505050565b805161028181610c8d565b60006020828403121561145c5761145c600080fd5b60006106bd848461143c565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152600061120b565b6020808252810161028181611468565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e746564000000008152915061120b565b60208082528101610281816114aa56fea26469706673582212205ecd344f2f5ad2ad811a8c03c40444147f7a988e15308d1acfd19b8af166fce764736f6c63430008170033", + Bin: "0x608060405260006006553480156200001657600080fd5b5060405180604001604052806005815260200164135e53919560da1b815250604051806040016040528060048152602001631353919560e21b815250816000908162000063919062000456565b50600162000072828262000456565b5050506200008833600a6200008e60201b60201c565b6200075b565b60005b81811015620000ca576000600660008154620000ad906200053c565b91829055509050620000c08482620000cf565b5060010162000091565b505050565b620000f1828260405180602001604052806000815250620000f560201b60201c565b5050565b62000101838362000138565b6200011060008484846200023c565b620000ca5760405162461bcd60e51b81526004016200012f9062000559565b60405180910390fd5b6001600160a01b038216620001615760405162461bcd60e51b81526004016200012f90620005e5565b6000818152600260205260409020546001600160a01b031615620001995760405162461bcd60e51b81526004016200012f906200062c565b6000818152600260205260409020546001600160a01b031615620001d15760405162461bcd60e51b81526004016200012f906200062c565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156200033f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029062000283903390899088908890600401620006c3565b6020604051808303816000875af1925050508015620002c1575060408051601f3d908101601f19168201909252620002be9181019062000736565b60015b62000324573d808015620002f2576040519150601f19603f3d011682016040523d82523d6000602084013e620002f7565b606091505b5080516000036200031c5760405162461bcd60e51b81526004016200012f9062000559565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905062000343565b5060015b949350505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200038c57607f821691505b602082108103620003a157620003a162000361565b50919050565b6000620003b8620003b58381565b90565b92915050565b620003c983620003a7565b815460001960089490940293841b1916921b91909117905550565b6000620000ca818484620003be565b81811015620000f15762000409600082620003e4565b600101620003f3565b601f821115620000ca576000818152602090206020601f850104810160208510156200043b5750805b6200044f6020601f860104830182620003f3565b5050505050565b81516001600160401b038111156200047257620004726200034b565b6200047e825462000377565b6200048b82828562000412565b6020601f831160018114620004c25760008415620004a95750858201515b600019600886021c19811660028602178655506200051e565b600085815260208120601f198616915b82811015620004f45788850151825560209485019460019092019101620004d2565b86831015620005115784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b634e487b7160e01b600052601160045260246000fd5b6000600019820362000552576200055262000526565b5060010190565b60208082528101620003b881603281527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560208201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b604082015260600190565b60208082527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373910190815260005b5060200190565b60208082528101620003b881620005b0565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000081529150620005de565b60208082528101620003b881620005f7565b60006001600160a01b038216620003b8565b6200065b816200063e565b82525050565b806200065b565b60005b83811015620006855781810151838201526020016200066b565b50506000910152565b600062000699825190565b808452602084019350620006b281856020860162000668565b601f01601f19169290920192915050565b60808101620006d3828762000650565b620006e2602083018662000650565b620006f1604083018562000661565b81810360608301526200070581846200068e565b9695505050505050565b6001600160e01b0319811681146200072657600080fd5b50565b8051620003b8816200070f565b6000602082840312156200074d576200074d600080fd5b600062000343848462000729565b611524806200076b6000396000f3fe608060405234801561001057600080fd5b50600436106100f45760003560e01c806342842e0e11610097578063a22cb46511610066578063a22cb465146101e9578063b88d4fde146101fc578063c87b56dd1461020f578063e985e9c51461022257600080fd5b806342842e0e146101a85780636352211e146101bb57806370a08231146101ce57806395d89b41146101e157600080fd5b8063081812fc116100d3578063081812fc1461014d578063095ea7b31461016d57806323b872dd14610182578063248b71fc1461019557600080fd5b80629a9b7b146100f957806301ffc9a71461011857806306fdde0314610138575b600080fd5b61010260065481565b60405161010f9190610c7f565b60405180910390f35b61012b610126366004610caf565b610235565b60405161010f9190610cd8565b610140610287565b60405161010f9190610d3c565b61016061015b366004610d5e565b610319565b60405161010f9190610d99565b61018061017b366004610dbb565b610340565b005b610180610190366004610df8565b6103ce565b6101806101a3366004610dbb565b6103ff565b6101806101b6366004610df8565b610435565b6101606101c9366004610d5e565b610450565b6101026101dc366004610e48565b610485565b6101406104c9565b6101806101f7366004610e7c565b6104d8565b61018061020a366004610fa2565b6104e7565b61014061021d366004610d5e565b61051f565b61012b610230366004611021565b610593565b60006001600160e01b031982166380ac58cd60e01b148061026657506001600160e01b03198216635b5e139f60e01b145b8061028157506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546102969061106a565b80601f01602080910402602001604051908101604052809291908181526020018280546102c29061106a565b801561030f5780601f106102e45761010080835404028352916020019161030f565b820191906000526020600020905b8154815290600101906020018083116102f257829003601f168201915b5050505050905090565b6000610324826105c1565b506000908152600460205260409020546001600160a01b031690565b600061034b82610450565b9050806001600160a01b0316836001600160a01b0316036103875760405162461bcd60e51b815260040161037e906110d7565b60405180910390fd5b336001600160a01b03821614806103a357506103a38133610593565b6103bf5760405162461bcd60e51b815260040161037e90611141565b6103c983836105f8565b505050565b6103d83382610666565b6103f45760405162461bcd60e51b815260040161037e9061119b565b6103c98383836106c5565b60005b818110156103c957600060066000815461041b906111c1565b9182905550905061042c84826107ed565b50600101610402565b6103c9838383604051806020016040528060008152506104e7565b6000818152600260205260408120546001600160a01b0316806102815760405162461bcd60e51b815260040161037e90611212565b60006001600160a01b0382166104ad5760405162461bcd60e51b815260040161037e90611268565b506001600160a01b031660009081526003602052604090205490565b6060600180546102969061106a565b6104e3338383610807565b5050565b6104f13383610666565b61050d5760405162461bcd60e51b815260040161037e9061119b565b610519848484846108a9565b50505050565b606061052a826105c1565b600061054160408051602081019091526000815290565b90506000815111610561576040518060200160405280600081525061058c565b8061056b846108dc565b60405160200161057c92919061129a565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6000818152600260205260409020546001600160a01b03166105f55760405162461bcd60e51b815260040161037e90611212565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061062d82610450565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061067283610450565b9050806001600160a01b0316846001600160a01b0316148061069957506106998185610593565b806106bd5750836001600160a01b03166106b284610319565b6001600160a01b0316145b949350505050565b826001600160a01b03166106d882610450565b6001600160a01b0316146106fe5760405162461bcd60e51b815260040161037e906112f4565b6001600160a01b0382166107245760405162461bcd60e51b815260040161037e90611345565b826001600160a01b031661073782610450565b6001600160a01b03161461075d5760405162461bcd60e51b815260040161037e906112f4565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6104e3828260405180602001604052806000815250610970565b816001600160a01b0316836001600160a01b0316036108385760405162461bcd60e51b815260040161037e90611389565b6001600160a01b0383811660008181526005602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061089c908590610cd8565b60405180910390a3505050565b6108b48484846106c5565b6108c0848484846109a3565b6105195760405162461bcd60e51b815260040161037e906113e8565b606060006108e983610aa4565b600101905060008167ffffffffffffffff81111561090957610909610eaf565b6040519080825280601f01601f191660200182016040528015610933576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461093d575b509392505050565b61097a8383610b7c565b61098760008484846109a3565b6103c95760405162461bcd60e51b815260040161037e906113e8565b60006001600160a01b0384163b15610a9957604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906109e79033908990889088906004016113f8565b6020604051808303816000875af1925050508015610a22575060408051601f3d908101601f19168201909252610a1f91810190611447565b60015b610a7f573d808015610a50576040519150601f19603f3d011682016040523d82523d6000602084013e610a55565b606091505b508051600003610a775760405162461bcd60e51b815260040161037e906113e8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506106bd565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610ae35772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610b0f576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610b2d57662386f26fc10000830492506010015b6305f5e1008310610b45576305f5e100830492506008015b6127108310610b5957612710830492506004015b60648310610b6b576064830492506002015b600a83106102815760010192915050565b6001600160a01b038216610ba25760405162461bcd60e51b815260040161037e9061149a565b6000818152600260205260409020546001600160a01b031615610bd75760405162461bcd60e51b815260040161037e906114de565b6000818152600260205260409020546001600160a01b031615610c0c5760405162461bcd60e51b815260040161037e906114de565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b805b82525050565b602081016102818284610c77565b6001600160e01b031981165b81146105f557600080fd5b803561028181610c8d565b600060208284031215610cc457610cc4600080fd5b60006106bd8484610ca4565b801515610c79565b602081016102818284610cd0565b60005b83811015610d01578181015183820152602001610ce9565b50506000910152565b6000610d14825190565b808452602084019350610d2b818560208601610ce6565b601f01601f19169290920192915050565b6020808252810161058c8184610d0a565b80610c99565b803561028181610d4d565b600060208284031215610d7357610d73600080fd5b60006106bd8484610d53565b60006001600160a01b038216610281565b610c7981610d7f565b602081016102818284610d90565b610c9981610d7f565b803561028181610da7565b60008060408385031215610dd157610dd1600080fd5b6000610ddd8585610db0565b9250506020610dee85828601610d53565b9150509250929050565b600080600060608486031215610e1057610e10600080fd5b6000610e1c8686610db0565b9350506020610e2d86828701610db0565b9250506040610e3e86828701610d53565b9150509250925092565b600060208284031215610e5d57610e5d600080fd5b60006106bd8484610db0565b801515610c99565b803561028181610e69565b60008060408385031215610e9257610e92600080fd5b6000610e9e8585610db0565b9250506020610dee85828601610e71565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715610eeb57610eeb610eaf565b6040525050565b6000610efd60405190565b9050610f098282610ec5565b919050565b600067ffffffffffffffff821115610f2857610f28610eaf565b601f19601f83011660200192915050565b82818337506000910152565b6000610f58610f5384610f0e565b610ef2565b905082815260208101848484011115610f7357610f73600080fd5b610968848285610f39565b600082601f830112610f9257610f92600080fd5b81356106bd848260208601610f45565b60008060008060808587031215610fbb57610fbb600080fd5b6000610fc78787610db0565b9450506020610fd887828801610db0565b9350506040610fe987828801610d53565b925050606085013567ffffffffffffffff81111561100957611009600080fd5b61101587828801610f7e565b91505092959194509250565b6000806040838503121561103757611037600080fd5b60006110438585610db0565b9250506020610dee85828601610db0565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061107e57607f821691505b60208210810361109057611090611054565b50919050565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291505b5060400190565b6020808252810161028181611096565b603d81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015291506110d0565b60208082528101610281816110e7565b602d81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526c1c881bdc88185c1c1c9bdd9959609a1b602082015291506110d0565b6020808252810161028181611151565b634e487b7160e01b600052601160045260246000fd5b600060001982036111d4576111d46111ab565b5060010190565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e2049440000000000000000815291505b5060200190565b60208082528101610281816111db565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b602082015291506110d0565b6020808252810161028181611222565b6000611282825190565b611290818560208601610ce6565b9290920192915050565b60006112a68285611278565b91506106bd8284611278565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b602082015291506110d0565b60208082528101610281816112b2565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b602082015291506110d0565b6020808252810161028181611304565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c6572000000000000008152915061120b565b6020808252810161028181611355565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b602082015291506110d0565b6020808252810161028181611399565b608081016114068287610d90565b6114136020830186610d90565b6114206040830185610c77565b81810360608301526114328184610d0a565b9695505050505050565b805161028181610c8d565b60006020828403121561145c5761145c600080fd5b60006106bd848461143c565b60208082527f4552433732313a206d696e7420746f20746865207a65726f20616464726573739101908152600061120b565b6020808252810161028181611468565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e746564000000008152915061120b565b60208082528101610281816114aa56fea264697066735822122079c696ffec37606f8cd97efd0387db7616f3214d2e80967c47f2ba135479385864736f6c63430008170033", } // ERC721ABI is the input ABI used to generate the binding from. diff --git a/contracts/src/tokens/ERC721.sol b/contracts/src/tokens/ERC721.sol index 2c8c07dd..8d34d7b2 100644 --- a/contracts/src/tokens/ERC721.sol +++ b/contracts/src/tokens/ERC721.sol @@ -7,7 +7,7 @@ contract ERC721 is OZ_ERC721 { uint256 public currentTokenId = 0; constructor() OZ_ERC721("MyNFT", "MNFT") { - mintBatch(msg.sender, 100); + mintBatch(msg.sender, 10); } function mintBatch(address to, uint256 amount) public {