mastertoken

package
v0.171.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MasterTokenABI = MasterTokenMetaData.ABI

MasterTokenABI is the input ABI used to generate the binding from. Deprecated: Use MasterTokenMetaData.ABI instead.

View Source
var MasterTokenBin = MasterTokenMetaData.Bin

MasterTokenBin is the compiled bytecode used for deploying new contracts. Deprecated: Use MasterTokenMetaData.Bin instead.

View Source
var MasterTokenMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_baseTokenURI\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_ownerToken\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"BaseToken_InvalidTokenAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BaseToken_MaxSupplyLowerThanTotalSupply\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BaseToken_MaxSupplyReached\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BaseToken_NotAuthorized\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BaseToken_NotRemoteBurnable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BaseToken_NotTransferable\",\"type\":\"error\"},{\"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\":\"baseTokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"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\":[],\"name\":\"masterToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"addresses\",\"type\":\"address[]\"}],\"name\":\"mintTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"mintedCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"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\":[],\"name\":\"ownerToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"tokenIds\",\"type\":\"uint256[]\"}],\"name\":\"remoteBurn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"remoteBurnable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"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\":\"uint256\",\"name\":\"newMaxSupply\",\"type\":\"uint256\"}],\"name\":\"setMaxSupply\",\"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\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"transferable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x60806040523480156200001157600080fd5b5060405162002b5838038062002b588339810160408190526200003491620001d9565b8383600019600160008686828787826200004f83826200031b565b5060016200005e82826200031b565b505050600b869055600d805461ffff60a01b1916600160a01b8715150260ff60a81b191617600160a81b86151502179055600e6200009d84826200031b565b50600c80546001600160a01b038085166001600160a01b03199283168117909355600d805491851691909216179055158015620000e35750600d546001600160a01b0316155b15620001025760405163e42d451560e01b815260040160405180910390fd5b505050505050505050505050620003e7565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013c57600080fd5b81516001600160401b038082111562000159576200015962000114565b604051601f8301601f19908116603f0116810190828211818310171562000184576200018462000114565b81604052838152602092508683858801011115620001a157600080fd5b600091505b83821015620001c55785820183015181830184015290820190620001a6565b600093810190920192909252949350505050565b60008060008060808587031215620001f057600080fd5b84516001600160401b03808211156200020857600080fd5b62000216888389016200012a565b955060208701519150808211156200022d57600080fd5b6200023b888389016200012a565b945060408701519150808211156200025257600080fd5b5062000261878288016200012a565b606087015190935090506001600160a01b03811681146200028157600080fd5b939692955090935050565b600181811c90821680620002a157607f821691505b602082108103620002c257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200031657600081815260208120601f850160051c81016020861015620002f15750805b601f850160051c820191505b818110156200031257828155600101620002fd565b5050505b505050565b81516001600160401b0381111562000337576200033762000114565b6200034f816200034884546200028c565b84620002c8565b602080601f8311600181146200038757600084156200036e5750858301515b600019600386901b1c1916600185901b17855562000312565b600085815260208120601f198616915b82811015620003b85788860151825594840194600190910190840162000397565b5085821015620003d75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61276180620003f76000396000f3fe608060405234801561001057600080fd5b50600436106101ae5760003560e01c806365371883116100ee578063b88d4fde11610097578063cf721b1511610071578063cf721b151461039f578063d547cfb7146103a7578063d5abeb01146103af578063e985e9c5146103b857600080fd5b8063b88d4fde14610366578063c87b56dd14610379578063ce7c8b491461038c57600080fd5b806392ff0d31116100c857806392ff0d311461032557806395d89b411461034b578063a22cb4651461035357600080fd5b806365371883146102ec5780636f8b44b0146102ff57806370a082311461031257600080fd5b806323b872dd1161015b57806342842e0e1161013557806342842e0e146102a05780634f6ccce7146102b35780634fb95e02146102c65780636352211e146102d957600080fd5b806323b872dd146102675780632bb5e31e1461027a5780632f745c591461028d57600080fd5b8063095ea7b31161018c578063095ea7b31461021b578063101639f51461023057806318160ddd1461025557600080fd5b806301ffc9a7146101b357806306fdde03146101db578063081812fc146101f0575b600080fd5b6101c66101c136600461210f565b6103f4565b60405190151581526020015b60405180910390f35b6101e3610405565b6040516101d2919061219a565b6102036101fe3660046121ad565b610497565b6040516001600160a01b0390911681526020016101d2565b61022e6102293660046121e2565b6104be565b005b600d546101c69074010000000000000000000000000000000000000000900460ff1681565b6008545b6040519081526020016101d2565b61022e61027536600461220c565b6105f4565b600d54610203906001600160a01b031681565b61025961029b3660046121e2565b61067b565b61022e6102ae36600461220c565b610723565b6102596102c13660046121ad565b61073e565b61022e6102d43660046122ea565b6107e2565b6102036102e73660046121ad565b6109f0565b600c54610203906001600160a01b031681565b61022e61030d3660046121ad565b610a55565b610259610320366004612380565b610c0c565b600d546101c6907501000000000000000000000000000000000000000000900460ff1681565b6101e3610ca6565b61022e61036136600461239b565b610cb5565b61022e6103743660046123d7565b610cc0565b6101e36103873660046121ad565b610d4e565b61022e61039a3660046124b5565b610db5565b610259610f81565b6101e3610f91565b610259600b5481565b6101c66103c6366004612542565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006103ff8261101f565b92915050565b60606000805461041490612575565b80601f016020809104026020016040519081016040528092919081815260200182805461044090612575565b801561048d5780601f106104625761010080835404028352916020019161048d565b820191906000526020600020905b81548152906001019060200180831161047057829003601f168201915b5050505050905090565b60006104a282611075565b506000908152600460205260409020546001600160a01b031690565b60006104c9826109f0565b9050806001600160a01b0316836001600160a01b0316036105575760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b336001600160a01b0382161480610573575061057381336103c6565b6105e55760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161054e565b6105ef83836110d9565b505050565b6105fe338261115f565b6106705760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656400000000000000000000000000000000000000606482015260840161054e565b6105ef8383836111de565b600061068683610c0c565b82106106fa5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161054e565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6105ef83838360405180602001604052806000815250610cc0565b600061074960085490565b82106107bd5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161054e565b600882815481106107d0576107d06125c8565b90600052602060002001549050919050565b600c546001600160a01b03161580159061087e5750600c546040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610858573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087c91906125f7565b155b80156109215750600d546001600160a01b0316158015906109215750600d546040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156108fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091f91906125f7565b155b15610958576040517f548d2e3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600d5474010000000000000000000000000000000000000000900460ff166109ac576040517f98209e6c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81518110156109ec576109da8282815181106109cd576109cd6125c8565b602002602001015161144a565b806109e48161263f565b9150506109af565b5050565b6000818152600260205260408120546001600160a01b0316806103ff5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161054e565b600c546001600160a01b031615801590610af15750600c546040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610acb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aef91906125f7565b155b8015610b945750600d546001600160a01b031615801590610b945750600d546040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610b6e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9291906125f7565b155b15610bcb576040517f548d2e3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600854811015610c07576040517fad8783d500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b55565b60006001600160a01b038216610c8a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e65720000000000000000000000000000000000000000000000606482015260840161054e565b506001600160a01b031660009081526003602052604090205490565b60606001805461041490612575565b6109ec338383611523565b610cca338361115f565b610d3c5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656400000000000000000000000000000000000000606482015260840161054e565b610d488484848461160f565b50505050565b6060610d5982611075565b6000610d63611698565b90506000815111610d835760405180602001604052806000815250610dae565b80610d8d846116a7565b604051602001610d9e929190612677565b6040516020818303038152906040525b9392505050565b600c546001600160a01b031615801590610e515750600c546040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610e2b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4f91906125f7565b155b8015610ef45750600d546001600160a01b031615801590610ef45750600d546040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610ece573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef291906125f7565b155b15610f2b576040517f548d2e3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600b548151600a54610f3d91906126a6565b1115610f75576040517f23d6539900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f7e81611765565b50565b6000610f8c600a5490565b905090565b600e8054610f9e90612575565b80601f0160208091040260200160405190810160405280929190818152602001828054610fca90612575565b80156110175780601f10610fec57610100808354040283529160200191611017565b820191906000526020600020905b815481529060010190602001808311610ffa57829003601f168201915b505050505081565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d630000000000000000000000000000000000000000000000000000000014806103ff57506103ff826117cc565b6000818152600260205260409020546001600160a01b0316610f7e5760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161054e565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091558190611126826109f0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061116b836109f0565b9050806001600160a01b0316846001600160a01b031614806111b257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806111d65750836001600160a01b03166111cb84610497565b6001600160a01b0316145b949350505050565b826001600160a01b03166111f1826109f0565b6001600160a01b03161461126d5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161054e565b6001600160a01b0382166112e85760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161054e565b6112f583838360016118af565b826001600160a01b0316611308826109f0565b6001600160a01b0316146113845760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161054e565b600081815260046020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b038781168086526003855283862080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000611455826109f0565b90506114658160008460016118af565b61146e826109f0565b600083815260046020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000009081169091556001600160a01b0385168085526003845282852080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b816001600160a01b0316836001600160a01b0316036115845760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161054e565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61161a8484846111de565b6116268484848461193a565b610d485760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161054e565b6060600e805461041490612575565b606060006116b483611af9565b600101905060008167ffffffffffffffff8111156116d4576116d4612248565b6040519080825280601f01601f1916602001820160405280156116fe576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461170857509392505050565b60005b81518110156109ec576117ac828281518110611786576117866125c8565b6020026020010151611797600a5490565b60405180602001604052806000815250611bdb565b6117ba600a80546001019055565b806117c48161263f565b915050611768565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061185f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806103ff57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146103ff565b6001600160a01b038416158015906118cf57506001600160a01b03831615155b80156118f75750600d547501000000000000000000000000000000000000000000900460ff16155b1561192e576040517f6b2b9e5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610d4884848484611c64565b60006001600160a01b0384163b15611aee576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906119979033908990889088906004016126b9565b6020604051808303816000875af19250505080156119f0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526119ed918101906126f5565b60015b611aa3573d808015611a1e576040519150601f19603f3d011682016040523d82523d6000602084013e611a23565b606091505b508051600003611a9b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161054e565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506111d6565b506001949350505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611b42577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611b6e576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611b8c57662386f26fc10000830492506010015b6305f5e1008310611ba4576305f5e100830492506008015b6127108310611bb857612710830492506004015b60648310611bca576064830492506002015b600a83106103ff5760010192915050565b611be58383611da0565b611bf2600084848461193a565b6105ef5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161054e565b6001811115611cdb5760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f727465640000000000000000000000606482015260840161054e565b816001600160a01b038516611d3757611d3281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611d5a565b836001600160a01b0316856001600160a01b031614611d5a57611d5a8582611f51565b6001600160a01b038416611d7657611d7181611fee565b611d99565b846001600160a01b0316846001600160a01b031614611d9957611d99848261209d565b5050505050565b6001600160a01b038216611df65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161054e565b6000818152600260205260409020546001600160a01b031615611e5b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161054e565b611e696000838360016118af565b6000818152600260205260409020546001600160a01b031615611ece5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161054e565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001611f5e84610c0c565b611f689190612712565b600083815260076020526040902054909150808214611fbb576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061200090600190612712565b60008381526009602052604081205460088054939450909284908110612028576120286125c8565b906000526020600020015490508060088381548110612049576120496125c8565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061208157612081612725565b6001900381819060005260206000200160009055905550505050565b60006120a883610c0c565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610f7e57600080fd5b60006020828403121561212157600080fd5b8135610dae816120e1565b60005b8381101561214757818101518382015260200161212f565b50506000910152565b6000815180845261216881602086016020860161212c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610dae6020830184612150565b6000602082840312156121bf57600080fd5b5035919050565b80356001600160a01b03811681146121dd57600080fd5b919050565b600080604083850312156121f557600080fd5b6121fe836121c6565b946020939093013593505050565b60008060006060848603121561222157600080fd5b61222a846121c6565b9250612238602085016121c6565b9150604084013590509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156122be576122be612248565b604052919050565b600067ffffffffffffffff8211156122e0576122e0612248565b5060051b60200190565b600060208083850312156122fd57600080fd5b823567ffffffffffffffff81111561231457600080fd5b8301601f8101851361232557600080fd5b8035612338612333826122c6565b612277565b81815260059190911b8201830190838101908783111561235757600080fd5b928401925b828410156123755783358252928401929084019061235c565b979650505050505050565b60006020828403121561239257600080fd5b610dae826121c6565b600080604083850312156123ae57600080fd5b6123b7836121c6565b9150602083013580151581146123cc57600080fd5b809150509250929050565b600080600080608085870312156123ed57600080fd5b6123f6856121c6565b935060206124058187016121c6565b935060408601359250606086013567ffffffffffffffff8082111561242957600080fd5b818801915088601f83011261243d57600080fd5b81358181111561244f5761244f612248565b61247f847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601612277565b9150808252898482850101111561249557600080fd5b808484018584013760008482840101525080935050505092959194509250565b600060208083850312156124c857600080fd5b823567ffffffffffffffff8111156124df57600080fd5b8301601f810185136124f057600080fd5b80356124fe612333826122c6565b81815260059190911b8201830190838101908783111561251d57600080fd5b928401925b8284101561237557612533846121c6565b82529284019290840190612522565b6000806040838503121561255557600080fd5b61255e836121c6565b915061256c602084016121c6565b90509250929050565b600181811c9082168061258957607f821691505b6020821081036125c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561260957600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361267057612670612610565b5060010190565b6000835161268981846020880161212c565b83519083019061269d81836020880161212c565b01949350505050565b808201808211156103ff576103ff612610565b60006001600160a01b038087168352808616602084015250836040830152608060608301526126eb6080830184612150565b9695505050505050565b60006020828403121561270757600080fd5b8151610dae816120e1565b818103818111156103ff576103ff612610565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea164736f6c6343000811000a",
}

MasterTokenMetaData contains all meta data concerning the MasterToken contract.

Functions

This section is empty.

Types

type MasterToken

type MasterToken struct {
	MasterTokenCaller     // Read-only binding to the contract
	MasterTokenTransactor // Write-only binding to the contract
	MasterTokenFilterer   // Log filterer for contract events
}

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

func DeployMasterToken

func DeployMasterToken(auth *bind.TransactOpts, backend bind.ContractBackend, _name string, _symbol string, _baseTokenURI string, _ownerToken common.Address) (common.Address, *types.Transaction, *MasterToken, error)

DeployMasterToken deploys a new Ethereum contract, binding an instance of MasterToken to it.

func NewMasterToken

func NewMasterToken(address common.Address, backend bind.ContractBackend) (*MasterToken, error)

NewMasterToken creates a new instance of MasterToken, bound to a specific deployed contract.

type MasterTokenApproval

type MasterTokenApproval struct {
	Owner    common.Address
	Approved common.Address
	TokenId  *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

MasterTokenApproval represents a Approval event raised by the MasterToken contract.

type MasterTokenApprovalForAll

type MasterTokenApprovalForAll struct {
	Owner    common.Address
	Operator common.Address
	Approved bool
	Raw      types.Log // Blockchain specific contextual infos
}

MasterTokenApprovalForAll represents a ApprovalForAll event raised by the MasterToken contract.

type MasterTokenApprovalForAllIterator

type MasterTokenApprovalForAllIterator struct {
	Event *MasterTokenApprovalForAll // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

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

func (*MasterTokenApprovalForAllIterator) Close

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

func (*MasterTokenApprovalForAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MasterTokenApprovalForAllIterator) Next

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 MasterTokenApprovalIterator

type MasterTokenApprovalIterator struct {
	Event *MasterTokenApproval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

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

func (*MasterTokenApprovalIterator) Close

func (it *MasterTokenApprovalIterator) Close() error

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

func (*MasterTokenApprovalIterator) Error

func (it *MasterTokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MasterTokenApprovalIterator) Next

func (it *MasterTokenApprovalIterator) 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 MasterTokenCaller

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

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

func NewMasterTokenCaller

func NewMasterTokenCaller(address common.Address, caller bind.ContractCaller) (*MasterTokenCaller, error)

NewMasterTokenCaller creates a new read-only instance of MasterToken, bound to a specific deployed contract.

func (*MasterTokenCaller) BalanceOf

func (_MasterToken *MasterTokenCaller) 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 (*MasterTokenCaller) BaseTokenURI

func (_MasterToken *MasterTokenCaller) BaseTokenURI(opts *bind.CallOpts) (string, error)

BaseTokenURI is a free data retrieval call binding the contract method 0xd547cfb7.

Solidity: function baseTokenURI() view returns(string)

func (*MasterTokenCaller) GetApproved

func (_MasterToken *MasterTokenCaller) 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 (*MasterTokenCaller) IsApprovedForAll

func (_MasterToken *MasterTokenCaller) 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 (*MasterTokenCaller) MasterToken

func (_MasterToken *MasterTokenCaller) MasterToken(opts *bind.CallOpts) (common.Address, error)

MasterToken is a free data retrieval call binding the contract method 0x2bb5e31e.

Solidity: function masterToken() view returns(address)

func (*MasterTokenCaller) MaxSupply

func (_MasterToken *MasterTokenCaller) MaxSupply(opts *bind.CallOpts) (*big.Int, error)

MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01.

Solidity: function maxSupply() view returns(uint256)

func (*MasterTokenCaller) MintedCount

func (_MasterToken *MasterTokenCaller) MintedCount(opts *bind.CallOpts) (*big.Int, error)

MintedCount is a free data retrieval call binding the contract method 0xcf721b15.

Solidity: function mintedCount() view returns(uint256)

func (*MasterTokenCaller) Name

func (_MasterToken *MasterTokenCaller) 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 (*MasterTokenCaller) OwnerOf

func (_MasterToken *MasterTokenCaller) 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 (*MasterTokenCaller) OwnerToken

func (_MasterToken *MasterTokenCaller) OwnerToken(opts *bind.CallOpts) (common.Address, error)

OwnerToken is a free data retrieval call binding the contract method 0x65371883.

Solidity: function ownerToken() view returns(address)

func (*MasterTokenCaller) RemoteBurnable

func (_MasterToken *MasterTokenCaller) RemoteBurnable(opts *bind.CallOpts) (bool, error)

RemoteBurnable is a free data retrieval call binding the contract method 0x101639f5.

Solidity: function remoteBurnable() view returns(bool)

func (*MasterTokenCaller) SupportsInterface

func (_MasterToken *MasterTokenCaller) 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 (*MasterTokenCaller) Symbol

func (_MasterToken *MasterTokenCaller) 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 (*MasterTokenCaller) TokenByIndex

func (_MasterToken *MasterTokenCaller) TokenByIndex(opts *bind.CallOpts, index *big.Int) (*big.Int, error)

TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.

Solidity: function tokenByIndex(uint256 index) view returns(uint256)

func (*MasterTokenCaller) TokenOfOwnerByIndex

func (_MasterToken *MasterTokenCaller) TokenOfOwnerByIndex(opts *bind.CallOpts, owner common.Address, index *big.Int) (*big.Int, error)

TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.

Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)

func (*MasterTokenCaller) TokenURI

func (_MasterToken *MasterTokenCaller) 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)

func (*MasterTokenCaller) TotalSupply

func (_MasterToken *MasterTokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*MasterTokenCaller) Transferable

func (_MasterToken *MasterTokenCaller) Transferable(opts *bind.CallOpts) (bool, error)

Transferable is a free data retrieval call binding the contract method 0x92ff0d31.

Solidity: function transferable() view returns(bool)

type MasterTokenCallerRaw

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

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

func (*MasterTokenCallerRaw) Call

func (_MasterToken *MasterTokenCallerRaw) 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 MasterTokenCallerSession

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

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

func (*MasterTokenCallerSession) BalanceOf

func (_MasterToken *MasterTokenCallerSession) 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 (*MasterTokenCallerSession) BaseTokenURI

func (_MasterToken *MasterTokenCallerSession) BaseTokenURI() (string, error)

BaseTokenURI is a free data retrieval call binding the contract method 0xd547cfb7.

Solidity: function baseTokenURI() view returns(string)

func (*MasterTokenCallerSession) GetApproved

func (_MasterToken *MasterTokenCallerSession) 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 (*MasterTokenCallerSession) IsApprovedForAll

func (_MasterToken *MasterTokenCallerSession) 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 (*MasterTokenCallerSession) MasterToken

func (_MasterToken *MasterTokenCallerSession) MasterToken() (common.Address, error)

MasterToken is a free data retrieval call binding the contract method 0x2bb5e31e.

Solidity: function masterToken() view returns(address)

func (*MasterTokenCallerSession) MaxSupply

func (_MasterToken *MasterTokenCallerSession) MaxSupply() (*big.Int, error)

MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01.

Solidity: function maxSupply() view returns(uint256)

func (*MasterTokenCallerSession) MintedCount

func (_MasterToken *MasterTokenCallerSession) MintedCount() (*big.Int, error)

MintedCount is a free data retrieval call binding the contract method 0xcf721b15.

Solidity: function mintedCount() view returns(uint256)

func (*MasterTokenCallerSession) Name

func (_MasterToken *MasterTokenCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*MasterTokenCallerSession) OwnerOf

func (_MasterToken *MasterTokenCallerSession) 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 (*MasterTokenCallerSession) OwnerToken

func (_MasterToken *MasterTokenCallerSession) OwnerToken() (common.Address, error)

OwnerToken is a free data retrieval call binding the contract method 0x65371883.

Solidity: function ownerToken() view returns(address)

func (*MasterTokenCallerSession) RemoteBurnable

func (_MasterToken *MasterTokenCallerSession) RemoteBurnable() (bool, error)

RemoteBurnable is a free data retrieval call binding the contract method 0x101639f5.

Solidity: function remoteBurnable() view returns(bool)

func (*MasterTokenCallerSession) SupportsInterface

func (_MasterToken *MasterTokenCallerSession) 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 (*MasterTokenCallerSession) Symbol

func (_MasterToken *MasterTokenCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*MasterTokenCallerSession) TokenByIndex

func (_MasterToken *MasterTokenCallerSession) TokenByIndex(index *big.Int) (*big.Int, error)

TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.

Solidity: function tokenByIndex(uint256 index) view returns(uint256)

func (*MasterTokenCallerSession) TokenOfOwnerByIndex

func (_MasterToken *MasterTokenCallerSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error)

TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.

Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)

func (*MasterTokenCallerSession) TokenURI

func (_MasterToken *MasterTokenCallerSession) 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 (*MasterTokenCallerSession) TotalSupply

func (_MasterToken *MasterTokenCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*MasterTokenCallerSession) Transferable

func (_MasterToken *MasterTokenCallerSession) Transferable() (bool, error)

Transferable is a free data retrieval call binding the contract method 0x92ff0d31.

Solidity: function transferable() view returns(bool)

type MasterTokenFilterer

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

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

func NewMasterTokenFilterer

func NewMasterTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*MasterTokenFilterer, error)

NewMasterTokenFilterer creates a new log filterer instance of MasterToken, bound to a specific deployed contract.

func (*MasterTokenFilterer) FilterApproval

func (_MasterToken *MasterTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*MasterTokenApprovalIterator, 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 (*MasterTokenFilterer) FilterApprovalForAll

func (_MasterToken *MasterTokenFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*MasterTokenApprovalForAllIterator, 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 (*MasterTokenFilterer) FilterTransfer

func (_MasterToken *MasterTokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*MasterTokenTransferIterator, 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 (*MasterTokenFilterer) ParseApproval

func (_MasterToken *MasterTokenFilterer) ParseApproval(log types.Log) (*MasterTokenApproval, 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 (*MasterTokenFilterer) ParseApprovalForAll

func (_MasterToken *MasterTokenFilterer) ParseApprovalForAll(log types.Log) (*MasterTokenApprovalForAll, error)

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

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

func (*MasterTokenFilterer) ParseTransfer

func (_MasterToken *MasterTokenFilterer) ParseTransfer(log types.Log) (*MasterTokenTransfer, 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 (*MasterTokenFilterer) WatchApproval

func (_MasterToken *MasterTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MasterTokenApproval, 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 (*MasterTokenFilterer) WatchApprovalForAll

func (_MasterToken *MasterTokenFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *MasterTokenApprovalForAll, 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 (*MasterTokenFilterer) WatchTransfer

func (_MasterToken *MasterTokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *MasterTokenTransfer, 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 MasterTokenRaw

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

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

func (*MasterTokenRaw) Call

func (_MasterToken *MasterTokenRaw) 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 (*MasterTokenRaw) Transact

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

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

func (*MasterTokenRaw) Transfer

func (_MasterToken *MasterTokenRaw) 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 MasterTokenSession

type MasterTokenSession struct {
	Contract     *MasterToken      // 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
}

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

func (*MasterTokenSession) Approve

func (_MasterToken *MasterTokenSession) 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 (*MasterTokenSession) BalanceOf

func (_MasterToken *MasterTokenSession) 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 (*MasterTokenSession) BaseTokenURI

func (_MasterToken *MasterTokenSession) BaseTokenURI() (string, error)

BaseTokenURI is a free data retrieval call binding the contract method 0xd547cfb7.

Solidity: function baseTokenURI() view returns(string)

func (*MasterTokenSession) GetApproved

func (_MasterToken *MasterTokenSession) 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 (*MasterTokenSession) IsApprovedForAll

func (_MasterToken *MasterTokenSession) 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 (*MasterTokenSession) MasterToken

func (_MasterToken *MasterTokenSession) MasterToken() (common.Address, error)

MasterToken is a free data retrieval call binding the contract method 0x2bb5e31e.

Solidity: function masterToken() view returns(address)

func (*MasterTokenSession) MaxSupply

func (_MasterToken *MasterTokenSession) MaxSupply() (*big.Int, error)

MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01.

Solidity: function maxSupply() view returns(uint256)

func (*MasterTokenSession) MintTo

func (_MasterToken *MasterTokenSession) MintTo(addresses []common.Address) (*types.Transaction, error)

MintTo is a paid mutator transaction binding the contract method 0xce7c8b49.

Solidity: function mintTo(address[] addresses) returns()

func (*MasterTokenSession) MintedCount

func (_MasterToken *MasterTokenSession) MintedCount() (*big.Int, error)

MintedCount is a free data retrieval call binding the contract method 0xcf721b15.

Solidity: function mintedCount() view returns(uint256)

func (*MasterTokenSession) Name

func (_MasterToken *MasterTokenSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*MasterTokenSession) OwnerOf

func (_MasterToken *MasterTokenSession) 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 (*MasterTokenSession) OwnerToken

func (_MasterToken *MasterTokenSession) OwnerToken() (common.Address, error)

OwnerToken is a free data retrieval call binding the contract method 0x65371883.

Solidity: function ownerToken() view returns(address)

func (*MasterTokenSession) RemoteBurn

func (_MasterToken *MasterTokenSession) RemoteBurn(tokenIds []*big.Int) (*types.Transaction, error)

RemoteBurn is a paid mutator transaction binding the contract method 0x4fb95e02.

Solidity: function remoteBurn(uint256[] tokenIds) returns()

func (*MasterTokenSession) RemoteBurnable

func (_MasterToken *MasterTokenSession) RemoteBurnable() (bool, error)

RemoteBurnable is a free data retrieval call binding the contract method 0x101639f5.

Solidity: function remoteBurnable() view returns(bool)

func (*MasterTokenSession) SafeTransferFrom

func (_MasterToken *MasterTokenSession) 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 (*MasterTokenSession) SafeTransferFrom0

func (_MasterToken *MasterTokenSession) 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 (*MasterTokenSession) SetApprovalForAll

func (_MasterToken *MasterTokenSession) 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 (*MasterTokenSession) SetMaxSupply

func (_MasterToken *MasterTokenSession) SetMaxSupply(newMaxSupply *big.Int) (*types.Transaction, error)

SetMaxSupply is a paid mutator transaction binding the contract method 0x6f8b44b0.

Solidity: function setMaxSupply(uint256 newMaxSupply) returns()

func (*MasterTokenSession) SupportsInterface

func (_MasterToken *MasterTokenSession) 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 (*MasterTokenSession) Symbol

func (_MasterToken *MasterTokenSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*MasterTokenSession) TokenByIndex

func (_MasterToken *MasterTokenSession) TokenByIndex(index *big.Int) (*big.Int, error)

TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.

Solidity: function tokenByIndex(uint256 index) view returns(uint256)

func (*MasterTokenSession) TokenOfOwnerByIndex

func (_MasterToken *MasterTokenSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error)

TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.

Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)

func (*MasterTokenSession) TokenURI

func (_MasterToken *MasterTokenSession) 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 (*MasterTokenSession) TotalSupply

func (_MasterToken *MasterTokenSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*MasterTokenSession) TransferFrom

func (_MasterToken *MasterTokenSession) 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()

func (*MasterTokenSession) Transferable

func (_MasterToken *MasterTokenSession) Transferable() (bool, error)

Transferable is a free data retrieval call binding the contract method 0x92ff0d31.

Solidity: function transferable() view returns(bool)

type MasterTokenTransactor

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

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

func NewMasterTokenTransactor

func NewMasterTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*MasterTokenTransactor, error)

NewMasterTokenTransactor creates a new write-only instance of MasterToken, bound to a specific deployed contract.

func (*MasterTokenTransactor) Approve

func (_MasterToken *MasterTokenTransactor) 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 (*MasterTokenTransactor) MintTo

func (_MasterToken *MasterTokenTransactor) MintTo(opts *bind.TransactOpts, addresses []common.Address) (*types.Transaction, error)

MintTo is a paid mutator transaction binding the contract method 0xce7c8b49.

Solidity: function mintTo(address[] addresses) returns()

func (*MasterTokenTransactor) RemoteBurn

func (_MasterToken *MasterTokenTransactor) RemoteBurn(opts *bind.TransactOpts, tokenIds []*big.Int) (*types.Transaction, error)

RemoteBurn is a paid mutator transaction binding the contract method 0x4fb95e02.

Solidity: function remoteBurn(uint256[] tokenIds) returns()

func (*MasterTokenTransactor) SafeTransferFrom

func (_MasterToken *MasterTokenTransactor) 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 (*MasterTokenTransactor) SafeTransferFrom0

func (_MasterToken *MasterTokenTransactor) 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 (*MasterTokenTransactor) SetApprovalForAll

func (_MasterToken *MasterTokenTransactor) 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 (*MasterTokenTransactor) SetMaxSupply

func (_MasterToken *MasterTokenTransactor) SetMaxSupply(opts *bind.TransactOpts, newMaxSupply *big.Int) (*types.Transaction, error)

SetMaxSupply is a paid mutator transaction binding the contract method 0x6f8b44b0.

Solidity: function setMaxSupply(uint256 newMaxSupply) returns()

func (*MasterTokenTransactor) TransferFrom

func (_MasterToken *MasterTokenTransactor) 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 MasterTokenTransactorRaw

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

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

func (*MasterTokenTransactorRaw) Transact

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

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

func (*MasterTokenTransactorRaw) Transfer

func (_MasterToken *MasterTokenTransactorRaw) 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 MasterTokenTransactorSession

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

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

func (*MasterTokenTransactorSession) Approve

func (_MasterToken *MasterTokenTransactorSession) 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 (*MasterTokenTransactorSession) MintTo

func (_MasterToken *MasterTokenTransactorSession) MintTo(addresses []common.Address) (*types.Transaction, error)

MintTo is a paid mutator transaction binding the contract method 0xce7c8b49.

Solidity: function mintTo(address[] addresses) returns()

func (*MasterTokenTransactorSession) RemoteBurn

func (_MasterToken *MasterTokenTransactorSession) RemoteBurn(tokenIds []*big.Int) (*types.Transaction, error)

RemoteBurn is a paid mutator transaction binding the contract method 0x4fb95e02.

Solidity: function remoteBurn(uint256[] tokenIds) returns()

func (*MasterTokenTransactorSession) SafeTransferFrom

func (_MasterToken *MasterTokenTransactorSession) 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 (*MasterTokenTransactorSession) SafeTransferFrom0

func (_MasterToken *MasterTokenTransactorSession) 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 (*MasterTokenTransactorSession) SetApprovalForAll

func (_MasterToken *MasterTokenTransactorSession) 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 (*MasterTokenTransactorSession) SetMaxSupply

func (_MasterToken *MasterTokenTransactorSession) SetMaxSupply(newMaxSupply *big.Int) (*types.Transaction, error)

SetMaxSupply is a paid mutator transaction binding the contract method 0x6f8b44b0.

Solidity: function setMaxSupply(uint256 newMaxSupply) returns()

func (*MasterTokenTransactorSession) TransferFrom

func (_MasterToken *MasterTokenTransactorSession) 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 MasterTokenTransfer

type MasterTokenTransfer struct {
	From    common.Address
	To      common.Address
	TokenId *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

MasterTokenTransfer represents a Transfer event raised by the MasterToken contract.

type MasterTokenTransferIterator

type MasterTokenTransferIterator struct {
	Event *MasterTokenTransfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

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

func (*MasterTokenTransferIterator) Close

func (it *MasterTokenTransferIterator) Close() error

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

func (*MasterTokenTransferIterator) Error

func (it *MasterTokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MasterTokenTransferIterator) Next

func (it *MasterTokenTransferIterator) 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