nft

package
v0.0.0-...-5d22bd2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NFTABI = NFTMetaData.ABI

NFTABI is the input ABI used to generate the binding from. Deprecated: Use NFTMetaData.ABI instead.

View Source
var NFTBin = NFTMetaData.Bin

NFTBin is the compiled bytecode used for deploying new contracts. Deprecated: Use NFTMetaData.Bin instead.

View Source
var NFTMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"count\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_tokenURI\",\"type\":\"string\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b50604051613208380380613208833981810160405281019061003291906101d2565b81818160009081610043919061046b565b508060019081610053919061046b565b505050505061053d565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6100c48261007b565b810181811067ffffffffffffffff821117156100e3576100e261008c565b5b80604052505050565b60006100f661005d565b905061010282826100bb565b919050565b600067ffffffffffffffff8211156101225761012161008c565b5b61012b8261007b565b9050602081019050919050565b60005b8381101561015657808201518184015260208101905061013b565b60008484015250505050565b600061017561017084610107565b6100ec565b90508281526020810184848401111561019157610190610076565b5b61019c848285610138565b509392505050565b600082601f8301126101b9576101b8610071565b5b81516101c9848260208601610162565b91505092915050565b600080604083850312156101e9576101e8610067565b5b600083015167ffffffffffffffff8111156102075761020661006c565b5b610213858286016101a4565b925050602083015167ffffffffffffffff8111156102345761023361006c565b5b610240858286016101a4565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061029c57607f821691505b6020821081036102af576102ae610255565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026103177fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826102da565b61032186836102da565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600061036861036361035e84610339565b610343565b610339565b9050919050565b6000819050919050565b6103828361034d565b61039661038e8261036f565b8484546102e7565b825550505050565b600090565b6103ab61039e565b6103b6818484610379565b505050565b5b818110156103da576103cf6000826103a3565b6001810190506103bc565b5050565b601f82111561041f576103f0816102b5565b6103f9846102ca565b81016020851015610408578190505b61041c610414856102ca565b8301826103bb565b50505b505050565b600082821c905092915050565b600061044260001984600802610424565b1980831691505092915050565b600061045b8383610431565b9150826002028217905092915050565b6104748261024a565b67ffffffffffffffff81111561048d5761048c61008c565b5b6104978254610284565b6104a28282856103de565b600060209050601f8311600181146104d557600084156104c3578287015190505b6104cd858261044f565b865550610535565b601f1984166104e3866102b5565b60005b8281101561050b578489015182556001820191506020850194506020810190506104e6565b868310156105285784890151610524601f891682610431565b8355505b6001600288020188555050505b505050505050565b612cbc8061054c6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80636352211e11610097578063b88d4fde11610066578063b88d4fde14610284578063c87b56dd146102a0578063d85d3d27146102d0578063e985e9c514610300576100f5565b80636352211e146101ea57806370a082311461021a57806395d89b411461024a578063a22cb46514610268576100f5565b8063081812fc116100d3578063081812fc14610166578063095ea7b31461019657806323b872dd146101b257806342842e0e146101ce576100f5565b806301ffc9a7146100fa57806306661abd1461012a57806306fdde0314610148575b600080fd5b610114600480360381019061010f9190611adf565b610330565b6040516101219190611b27565b60405180910390f35b610132610412565b60405161013f9190611b5b565b60405180910390f35b610150610418565b60405161015d9190611c06565b60405180910390f35b610180600480360381019061017b9190611c54565b6104aa565b60405161018d9190611cc2565b60405180910390f35b6101b060048036038101906101ab9190611d09565b6104f0565b005b6101cc60048036038101906101c79190611d49565b610607565b005b6101e860048036038101906101e39190611d49565b610667565b005b61020460048036038101906101ff9190611c54565b610687565b6040516102119190611cc2565b60405180910390f35b610234600480360381019061022f9190611d9c565b61070d565b6040516102419190611b5b565b60405180910390f35b6102526107c4565b60405161025f9190611c06565b60405180910390f35b610282600480360381019061027d9190611df5565b610856565b005b61029e60048036038101906102999190611f6a565b61086c565b005b6102ba60048036038101906102b59190611c54565b6108ce565b6040516102c79190611c06565b60405180910390f35b6102ea60048036038101906102e5919061208e565b6109e0565b6040516102f79190611b5b565b60405180910390f35b61031a600480360381019061031591906120d7565b610a1c565b6040516103279190611b27565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806103fb57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061040b575061040a82610ab0565b5b9050919050565b60075481565b60606000805461042790612146565b80601f016020809104026020016040519081016040528092919081815260200182805461045390612146565b80156104a05780601f10610475576101008083540402835291602001916104a0565b820191906000526020600020905b81548152906001019060200180831161048357829003601f168201915b5050505050905090565b60006104b582610b1a565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006104fb82610687565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361056b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610562906121e9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661058a610b65565b73ffffffffffffffffffffffffffffffffffffffff1614806105b957506105b8816105b3610b65565b610a1c565b5b6105f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ef9061227b565b60405180910390fd5b6106028383610b6d565b505050565b610618610612610b65565b82610c26565b610657576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064e9061230d565b60405180910390fd5b610662838383610cbb565b505050565b6106828383836040518060200160405280600081525061086c565b505050565b60008061069383610fb4565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610704576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106fb90612379565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361077d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061240b565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060600180546107d390612146565b80601f01602080910402602001604051908101604052809291908181526020018280546107ff90612146565b801561084c5780601f106108215761010080835404028352916020019161084c565b820191906000526020600020905b81548152906001019060200180831161082f57829003601f168201915b5050505050905090565b610868610861610b65565b8383610ff1565b5050565b61087d610877610b65565b83610c26565b6108bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b39061230d565b60405180910390fd5b6108c88484848461115d565b50505050565b60606108d982610b1a565b60006006600084815260200190815260200160002080546108f990612146565b80601f016020809104026020016040519081016040528092919081815260200182805461092590612146565b80156109725780601f1061094757610100808354040283529160200191610972565b820191906000526020600020905b81548152906001019060200180831161095557829003601f168201915b5050505050905060006109836111b9565b905060008151036109985781925050506109db565b6000825111156109cd5780826040516020016109b5929190612467565b604051602081830303815290604052925050506109db565b6109d6846111d0565b925050505b919050565b6000600760008154809291906109f5906124ba565b9190505550610a0633600754611238565b610a1260075483611256565b6007549050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b610b23816112c3565b610b62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5990612379565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16610be083610687565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610c3283610687565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480610c745750610c738185610a1c565b5b80610cb257508373ffffffffffffffffffffffffffffffffffffffff16610c9a846104aa565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16610cdb82610687565b73ffffffffffffffffffffffffffffffffffffffff1614610d31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2890612574565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9790612606565b60405180910390fd5b610dad8383836001611304565b8273ffffffffffffffffffffffffffffffffffffffff16610dcd82610687565b73ffffffffffffffffffffffffffffffffffffffff1614610e23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e1a90612574565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610faf838383600161142a565b505050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361105f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105690612672565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516111509190611b27565b60405180910390a3505050565b611168848484610cbb565b61117484848484611430565b6111b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111aa90612704565b60405180910390fd5b50505050565b606060405180602001604052806000815250905090565b60606111db82610b1a565b60006111e56111b9565b905060008151116112055760405180602001604052806000815250611230565b8061120f846115b7565b604051602001611220929190612467565b6040516020818303038152906040525b915050919050565b611252828260405180602001604052806000815250611685565b5050565b61125f826112c3565b61129e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129590612796565b60405180910390fd5b806006600084815260200190815260200160002090816112be9190612962565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166112e583610fb4565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600181111561142457600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146113985780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113909190612a34565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146114235780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461141b9190612a68565b925050819055505b5b50505050565b50505050565b60006114518473ffffffffffffffffffffffffffffffffffffffff166116e0565b156115aa578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261147a610b65565b8786866040518563ffffffff1660e01b815260040161149c9493929190612af1565b6020604051808303816000875af19250505080156114d857506040513d601f19601f820116820180604052508101906114d59190612b52565b60015b61155a573d8060008114611508576040519150601f19603f3d011682016040523d82523d6000602084013e61150d565b606091505b506000815103611552576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154990612704565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506115af565b600190505b949350505050565b6060600060016115c684611703565b01905060008167ffffffffffffffff8111156115e5576115e4611e3f565b5b6040519080825280601f01601f1916602001820160405280156116175781602001600182028036833780820191505090505b509050600082602001820190505b60011561167a578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161166e5761166d612b7f565b5b04945060008503611625575b819350505050919050565b61168f8383611856565b61169c6000848484611430565b6116db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d290612704565b60405180910390fd5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611761577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161175757611756612b7f565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061179e576d04ee2d6d415b85acef8100000000838161179457611793612b7f565b5b0492506020810190505b662386f26fc1000083106117cd57662386f26fc1000083816117c3576117c2612b7f565b5b0492506010810190505b6305f5e10083106117f6576305f5e10083816117ec576117eb612b7f565b5b0492506008810190505b612710831061181b57612710838161181157611810612b7f565b5b0492506004810190505b6064831061183e576064838161183457611833612b7f565b5b0492506002810190505b600a831061184d576001810190505b80915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bc90612bfa565b60405180910390fd5b6118ce816112c3565b1561190e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190590612c66565b60405180910390fd5b61191c600083836001611304565b611925816112c3565b15611965576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195c90612c66565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611a6f60008383600161142a565b5050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611abc81611a87565b8114611ac757600080fd5b50565b600081359050611ad981611ab3565b92915050565b600060208284031215611af557611af4611a7d565b5b6000611b0384828501611aca565b91505092915050565b60008115159050919050565b611b2181611b0c565b82525050565b6000602082019050611b3c6000830184611b18565b92915050565b6000819050919050565b611b5581611b42565b82525050565b6000602082019050611b706000830184611b4c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611bb0578082015181840152602081019050611b95565b60008484015250505050565b6000601f19601f8301169050919050565b6000611bd882611b76565b611be28185611b81565b9350611bf2818560208601611b92565b611bfb81611bbc565b840191505092915050565b60006020820190508181036000830152611c208184611bcd565b905092915050565b611c3181611b42565b8114611c3c57600080fd5b50565b600081359050611c4e81611c28565b92915050565b600060208284031215611c6a57611c69611a7d565b5b6000611c7884828501611c3f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611cac82611c81565b9050919050565b611cbc81611ca1565b82525050565b6000602082019050611cd76000830184611cb3565b92915050565b611ce681611ca1565b8114611cf157600080fd5b50565b600081359050611d0381611cdd565b92915050565b60008060408385031215611d2057611d1f611a7d565b5b6000611d2e85828601611cf4565b9250506020611d3f85828601611c3f565b9150509250929050565b600080600060608486031215611d6257611d61611a7d565b5b6000611d7086828701611cf4565b9350506020611d8186828701611cf4565b9250506040611d9286828701611c3f565b9150509250925092565b600060208284031215611db257611db1611a7d565b5b6000611dc084828501611cf4565b91505092915050565b611dd281611b0c565b8114611ddd57600080fd5b50565b600081359050611def81611dc9565b92915050565b60008060408385031215611e0c57611e0b611a7d565b5b6000611e1a85828601611cf4565b9250506020611e2b85828601611de0565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611e7782611bbc565b810181811067ffffffffffffffff82111715611e9657611e95611e3f565b5b80604052505050565b6000611ea9611a73565b9050611eb58282611e6e565b919050565b600067ffffffffffffffff821115611ed557611ed4611e3f565b5b611ede82611bbc565b9050602081019050919050565b82818337600083830152505050565b6000611f0d611f0884611eba565b611e9f565b905082815260208101848484011115611f2957611f28611e3a565b5b611f34848285611eeb565b509392505050565b600082601f830112611f5157611f50611e35565b5b8135611f61848260208601611efa565b91505092915050565b60008060008060808587031215611f8457611f83611a7d565b5b6000611f9287828801611cf4565b9450506020611fa387828801611cf4565b9350506040611fb487828801611c3f565b925050606085013567ffffffffffffffff811115611fd557611fd4611a82565b5b611fe187828801611f3c565b91505092959194509250565b600067ffffffffffffffff82111561200857612007611e3f565b5b61201182611bbc565b9050602081019050919050565b600061203161202c84611fed565b611e9f565b90508281526020810184848401111561204d5761204c611e3a565b5b612058848285611eeb565b509392505050565b600082601f83011261207557612074611e35565b5b813561208584826020860161201e565b91505092915050565b6000602082840312156120a4576120a3611a7d565b5b600082013567ffffffffffffffff8111156120c2576120c1611a82565b5b6120ce84828501612060565b91505092915050565b600080604083850312156120ee576120ed611a7d565b5b60006120fc85828601611cf4565b925050602061210d85828601611cf4565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061215e57607f821691505b60208210810361217157612170612117565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006121d3602183611b81565b91506121de82612177565b604082019050919050565b60006020820190508181036000830152612202816121c6565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000612265603d83611b81565b915061227082612209565b604082019050919050565b6000602082019050818103600083015261229481612258565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b60006122f7602d83611b81565b91506123028261229b565b604082019050919050565b60006020820190508181036000830152612326816122ea565b9050919050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000612363601883611b81565b915061236e8261232d565b602082019050919050565b6000602082019050818103600083015261239281612356565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006123f5602983611b81565b915061240082612399565b604082019050919050565b60006020820190508181036000830152612424816123e8565b9050919050565b600081905092915050565b600061244182611b76565b61244b818561242b565b935061245b818560208601611b92565b80840191505092915050565b60006124738285612436565b915061247f8284612436565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006124c582611b42565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036124f7576124f661248b565b5b600182019050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061255e602583611b81565b915061256982612502565b604082019050919050565b6000602082019050818103600083015261258d81612551565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006125f0602483611b81565b91506125fb82612594565b604082019050919050565b6000602082019050818103600083015261261f816125e3565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061265c601983611b81565b915061266782612626565b602082019050919050565b6000602082019050818103600083015261268b8161264f565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006126ee603283611b81565b91506126f982612692565b604082019050919050565b6000602082019050818103600083015261271d816126e1565b9050919050565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b6000612780602e83611b81565b915061278b82612724565b604082019050919050565b600060208201905081810360008301526127af81612773565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026128187fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826127db565b61282286836127db565b95508019841693508086168417925050509392505050565b6000819050919050565b600061285f61285a61285584611b42565b61283a565b611b42565b9050919050565b6000819050919050565b61287983612844565b61288d61288582612866565b8484546127e8565b825550505050565b600090565b6128a2612895565b6128ad818484612870565b505050565b5b818110156128d1576128c660008261289a565b6001810190506128b3565b5050565b601f821115612916576128e7816127b6565b6128f0846127cb565b810160208510156128ff578190505b61291361290b856127cb565b8301826128b2565b50505b505050565b600082821c905092915050565b60006129396000198460080261291b565b1980831691505092915050565b60006129528383612928565b9150826002028217905092915050565b61296b82611b76565b67ffffffffffffffff81111561298457612983611e3f565b5b61298e8254612146565b6129998282856128d5565b600060209050601f8311600181146129cc57600084156129ba578287015190505b6129c48582612946565b865550612a2c565b601f1984166129da866127b6565b60005b82811015612a02578489015182556001820191506020850194506020810190506129dd565b86831015612a1f5784890151612a1b601f891682612928565b8355505b6001600288020188555050505b505050505050565b6000612a3f82611b42565b9150612a4a83611b42565b9250828203905081811115612a6257612a6161248b565b5b92915050565b6000612a7382611b42565b9150612a7e83611b42565b9250828201905080821115612a9657612a9561248b565b5b92915050565b600081519050919050565b600082825260208201905092915050565b6000612ac382612a9c565b612acd8185612aa7565b9350612add818560208601611b92565b612ae681611bbc565b840191505092915050565b6000608082019050612b066000830187611cb3565b612b136020830186611cb3565b612b206040830185611b4c565b8181036060830152612b328184612ab8565b905095945050505050565b600081519050612b4c81611ab3565b92915050565b600060208284031215612b6857612b67611a7d565b5b6000612b7684828501612b3d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000612be4602083611b81565b9150612bef82612bae565b602082019050919050565b60006020820190508181036000830152612c1381612bd7565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000612c50601c83611b81565b9150612c5b82612c1a565b602082019050919050565b60006020820190508181036000830152612c7f81612c43565b905091905056fea2646970667358221220ab32b9ab24ebe4e6acb6b940146cc1ac6e0c64de491662fd3746f55183b2f74464736f6c634300081c0033",
}

NFTMetaData contains all meta data concerning the NFT contract.

Functions

This section is empty.

Types

type NFT

type NFT struct {
	NFTCaller     // Read-only binding to the contract
	NFTTransactor // Write-only binding to the contract
	NFTFilterer   // Log filterer for contract events
}

NFT is an auto generated Go binding around an Ethereum contract.

func DeployNFT

func DeployNFT(auth *bind.TransactOpts, backend bind.ContractBackend, _name string, _symbol string) (common.Address, *types.Transaction, *NFT, error)

DeployNFT deploys a new Ethereum contract, binding an instance of NFT to it.

func NewNFT

func NewNFT(address common.Address, backend bind.ContractBackend) (*NFT, error)

NewNFT creates a new instance of NFT, bound to a specific deployed contract.

type NFTApproval

type NFTApproval struct {
	TokenId  *big.Int
	Raw      types.Log
	Owner    common.Address
	Approved common.Address
}

NFTApproval represents a Approval event raised by the NFT contract.

type NFTApprovalForAll

type NFTApprovalForAll struct {
	Raw      types.Log
	Owner    common.Address
	Operator common.Address
	Approved bool
}

NFTApprovalForAll represents a ApprovalForAll event raised by the NFT contract.

type NFTApprovalForAllIterator

type NFTApprovalForAllIterator struct {
	Event *NFTApprovalForAll
	// contains filtered or unexported fields
}

NFTApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the NFT contract.

func (*NFTApprovalForAllIterator) Close

func (it *NFTApprovalForAllIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*NFTApprovalForAllIterator) Error

func (it *NFTApprovalForAllIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTApprovalForAllIterator) Next

func (it *NFTApprovalForAllIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NFTApprovalIterator

type NFTApprovalIterator struct {
	Event *NFTApproval
	// contains filtered or unexported fields
}

NFTApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the NFT contract.

func (*NFTApprovalIterator) Close

func (it *NFTApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*NFTApprovalIterator) Error

func (it *NFTApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTApprovalIterator) Next

func (it *NFTApprovalIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type NFTCaller

type NFTCaller struct {
	// contains filtered or unexported fields
}

NFTCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewNFTCaller

func NewNFTCaller(address common.Address, caller bind.ContractCaller) (*NFTCaller, error)

NewNFTCaller creates a new read-only instance of NFT, bound to a specific deployed contract.

func (*NFTCaller) BalanceOf

func (_NFT *NFTCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address owner) view returns(uint256)

func (*NFTCaller) Count

func (_NFT *NFTCaller) Count(opts *bind.CallOpts) (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() view returns(uint256)

func (*NFTCaller) GetApproved

func (_NFT *NFTCaller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address)

func (*NFTCaller) IsApprovedForAll

func (_NFT *NFTCaller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*NFTCaller) Name

func (_NFT *NFTCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*NFTCaller) OwnerOf

func (_NFT *NFTCaller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address)

func (*NFTCaller) SupportsInterface

func (_NFT *NFTCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*NFTCaller) Symbol

func (_NFT *NFTCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*NFTCaller) TokenURI

func (_NFT *NFTCaller) TokenURI(opts *bind.CallOpts, tokenId *big.Int) (string, error)

TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.

Solidity: function tokenURI(uint256 tokenId) view returns(string)

type NFTCallerRaw

type NFTCallerRaw struct {
	Contract *NFTCaller // Generic read-only contract binding to access the raw methods on
}

NFTCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*NFTCallerRaw) Call

func (_NFT *NFTCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type NFTCallerSession

type NFTCallerSession struct {
	Contract *NFTCaller    // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

NFTCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*NFTCallerSession) BalanceOf

func (_NFT *NFTCallerSession) BalanceOf(owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address owner) view returns(uint256)

func (*NFTCallerSession) Count

func (_NFT *NFTCallerSession) Count() (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() view returns(uint256)

func (*NFTCallerSession) GetApproved

func (_NFT *NFTCallerSession) GetApproved(tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address)

func (*NFTCallerSession) IsApprovedForAll

func (_NFT *NFTCallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*NFTCallerSession) Name

func (_NFT *NFTCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*NFTCallerSession) OwnerOf

func (_NFT *NFTCallerSession) OwnerOf(tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address)

func (*NFTCallerSession) SupportsInterface

func (_NFT *NFTCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*NFTCallerSession) Symbol

func (_NFT *NFTCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*NFTCallerSession) TokenURI

func (_NFT *NFTCallerSession) TokenURI(tokenId *big.Int) (string, error)

TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.

Solidity: function tokenURI(uint256 tokenId) view returns(string)

type NFTFilterer

type NFTFilterer struct {
	// contains filtered or unexported fields
}

NFTFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewNFTFilterer

func NewNFTFilterer(address common.Address, filterer bind.ContractFilterer) (*NFTFilterer, error)

NewNFTFilterer creates a new log filterer instance of NFT, bound to a specific deployed contract.

func (*NFTFilterer) FilterApproval

func (_NFT *NFTFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*NFTApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*NFTFilterer) FilterApprovalForAll

func (_NFT *NFTFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*NFTApprovalForAllIterator, error)

FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*NFTFilterer) FilterTransfer

func (_NFT *NFTFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*NFTTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)

func (*NFTFilterer) ParseApproval

func (_NFT *NFTFilterer) ParseApproval(log types.Log) (*NFTApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*NFTFilterer) ParseApprovalForAll

func (_NFT *NFTFilterer) ParseApprovalForAll(log types.Log) (*NFTApprovalForAll, error)

ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*NFTFilterer) ParseTransfer

func (_NFT *NFTFilterer) ParseTransfer(log types.Log) (*NFTTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)

func (*NFTFilterer) WatchApproval

func (_NFT *NFTFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *NFTApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*NFTFilterer) WatchApprovalForAll

func (_NFT *NFTFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *NFTApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error)

WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*NFTFilterer) WatchTransfer

func (_NFT *NFTFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *NFTTransfer, from []common.Address, to []common.Address, tokenId []*big.Int) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)

type NFTRaw

type NFTRaw struct {
	Contract *NFT // Generic contract binding to access the raw methods on
}

NFTRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*NFTRaw) Call

func (_NFT *NFTRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*NFTRaw) Transact

func (_NFT *NFTRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*NFTRaw) Transfer

func (_NFT *NFTRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type NFTSession

type NFTSession struct {
	Contract     *NFT              // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

NFTSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*NFTSession) Approve

func (_NFT *NFTSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address to, uint256 tokenId) returns()

func (*NFTSession) BalanceOf

func (_NFT *NFTSession) BalanceOf(owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address owner) view returns(uint256)

func (*NFTSession) Count

func (_NFT *NFTSession) Count() (*big.Int, error)

Count is a free data retrieval call binding the contract method 0x06661abd.

Solidity: function count() view returns(uint256)

func (*NFTSession) GetApproved

func (_NFT *NFTSession) GetApproved(tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address)

func (*NFTSession) IsApprovedForAll

func (_NFT *NFTSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*NFTSession) Mint

func (_NFT *NFTSession) Mint(_tokenURI string) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xd85d3d27.

Solidity: function mint(string _tokenURI) returns(uint256)

func (*NFTSession) Name

func (_NFT *NFTSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*NFTSession) OwnerOf

func (_NFT *NFTSession) OwnerOf(tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address)

func (*NFTSession) SafeTransferFrom

func (_NFT *NFTSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*NFTSession) SafeTransferFrom0

func (_NFT *NFTSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()

func (*NFTSession) SetApprovalForAll

func (_NFT *NFTSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*NFTSession) SupportsInterface

func (_NFT *NFTSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*NFTSession) Symbol

func (_NFT *NFTSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*NFTSession) TokenURI

func (_NFT *NFTSession) TokenURI(tokenId *big.Int) (string, error)

TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.

Solidity: function tokenURI(uint256 tokenId) view returns(string)

func (*NFTSession) TransferFrom

func (_NFT *NFTSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()

type NFTTransactor

type NFTTransactor struct {
	// contains filtered or unexported fields
}

NFTTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewNFTTransactor

func NewNFTTransactor(address common.Address, transactor bind.ContractTransactor) (*NFTTransactor, error)

NewNFTTransactor creates a new write-only instance of NFT, bound to a specific deployed contract.

func (*NFTTransactor) Approve

func (_NFT *NFTTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address to, uint256 tokenId) returns()

func (*NFTTransactor) Mint

func (_NFT *NFTTransactor) Mint(opts *bind.TransactOpts, _tokenURI string) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xd85d3d27.

Solidity: function mint(string _tokenURI) returns(uint256)

func (*NFTTransactor) SafeTransferFrom

func (_NFT *NFTTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*NFTTransactor) SafeTransferFrom0

func (_NFT *NFTTransactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()

func (*NFTTransactor) SetApprovalForAll

func (_NFT *NFTTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*NFTTransactor) TransferFrom

func (_NFT *NFTTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()

type NFTTransactorRaw

type NFTTransactorRaw struct {
	Contract *NFTTransactor // Generic write-only contract binding to access the raw methods on
}

NFTTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*NFTTransactorRaw) Transact

func (_NFT *NFTTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*NFTTransactorRaw) Transfer

func (_NFT *NFTTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type NFTTransactorSession

type NFTTransactorSession struct {
	Contract     *NFTTransactor    // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

NFTTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*NFTTransactorSession) Approve

func (_NFT *NFTTransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address to, uint256 tokenId) returns()

func (*NFTTransactorSession) Mint

func (_NFT *NFTTransactorSession) Mint(_tokenURI string) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xd85d3d27.

Solidity: function mint(string _tokenURI) returns(uint256)

func (*NFTTransactorSession) SafeTransferFrom

func (_NFT *NFTTransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*NFTTransactorSession) SafeTransferFrom0

func (_NFT *NFTTransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()

func (*NFTTransactorSession) SetApprovalForAll

func (_NFT *NFTTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*NFTTransactorSession) TransferFrom

func (_NFT *NFTTransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()

type NFTTransfer

type NFTTransfer struct {
	TokenId *big.Int
	Raw     types.Log
	From    common.Address
	To      common.Address
}

NFTTransfer represents a Transfer event raised by the NFT contract.

type NFTTransferIterator

type NFTTransferIterator struct {
	Event *NFTTransfer
	// contains filtered or unexported fields
}

NFTTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the NFT contract.

func (*NFTTransferIterator) Close

func (it *NFTTransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*NFTTransferIterator) Error

func (it *NFTTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*NFTTransferIterator) Next

func (it *NFTTransferIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL