github.com/status-im/status-go@v1.1.0/contracts/community-tokens/assets/Assets.go (about) 1 // Code generated - DO NOT EDIT. 2 // This file is a generated binding and any manual changes will be lost. 3 4 package assets 5 6 import ( 7 "errors" 8 "math/big" 9 "strings" 10 11 ethereum "github.com/ethereum/go-ethereum" 12 "github.com/ethereum/go-ethereum/accounts/abi" 13 "github.com/ethereum/go-ethereum/accounts/abi/bind" 14 "github.com/ethereum/go-ethereum/common" 15 "github.com/ethereum/go-ethereum/core/types" 16 "github.com/ethereum/go-ethereum/event" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var ( 21 _ = errors.New 22 _ = big.NewInt 23 _ = strings.NewReader 24 _ = ethereum.NotFound 25 _ = bind.Bind 26 _ = common.Big1 27 _ = types.BloomLookup 28 _ = event.NewSubscription 29 _ = abi.ConvertType 30 ) 31 32 // AssetsMetaData contains all meta data concerning the Assets contract. 33 var AssetsMetaData = &bind.MetaData{ 34 ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"_decimals\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"_maxSupply\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_baseTokenURI\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_ownerToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_masterToken\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"CommunityERC20_MaxSupplyLowerThanTotalSupply\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CommunityERC20_MaxSupplyReached\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CommunityERC20_MismatchingAddressesAndAmountsLengths\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CommunityOwnable_InvalidTokenAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CommunityOwnable_NotAuthorized\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"StatusMint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"baseTokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"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[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"mintTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ownerToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newMaxSupply\",\"type\":\"uint256\"}],\"name\":\"setMaxSupply\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", 35 Bin: "0x60e06040523480156200001157600080fd5b5060405162001cdf38038062001cdf83398101604081905262000034916200020b565b818188886200004333620000d9565b600462000051838262000375565b50600562000060828262000375565b5050506001600160a01b03808316608081905290821660a05215801562000090575060a0516001600160a01b0316155b15620000af5760405163c9d8a9b360e01b815260040160405180910390fd5b5050600684905560ff851660c0526007620000cb848262000375565b505050505050505062000441565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200015157600080fd5b81516001600160401b03808211156200016e576200016e62000129565b604051601f8301601f19908116603f0116810190828211818310171562000199576200019962000129565b81604052838152602092508683858801011115620001b657600080fd5b600091505b83821015620001da5785820183015181830184015290820190620001bb565b600093810190920192909252949350505050565b80516001600160a01b03811681146200020657600080fd5b919050565b600080600080600080600060e0888a0312156200022757600080fd5b87516001600160401b03808211156200023f57600080fd5b6200024d8b838c016200013f565b985060208a01519150808211156200026457600080fd5b620002728b838c016200013f565b975060408a0151915060ff821682146200028b57600080fd5b60608a015160808b0151929750955080821115620002a857600080fd5b50620002b78a828b016200013f565b935050620002c860a08901620001ee565b9150620002d860c08901620001ee565b905092959891949750929550565b600181811c90821680620002fb57607f821691505b6020821081036200031c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200037057600081815260208120601f850160051c810160208610156200034b5750805b601f850160051c820191505b818110156200036c5782815560010162000357565b5050505b505050565b81516001600160401b0381111562000391576200039162000129565b620003a981620003a28454620002e6565b8462000322565b602080601f831160018114620003e15760008415620003c85750858301515b600019600386901b1c1916600185901b1785556200036c565b600085815260208120601f198616915b828110156200041257888601518255948401946001909101908401620003f1565b5085821015620004315787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c051611836620004a9600039600061022a0152600081816101dc015281816105bf0152818161062b0152818161094101526109ad01526000818161026c015281816104c8015281816105340152818161084a01526108b601526118366000f3fe608060405234801561001057600080fd5b506004361061016c5760003560e01c806370a08231116100cd578063a9059cbb11610081578063d5abeb0111610066578063d5abeb0114610348578063dd62ed3e14610351578063f2fde38b1461039757600080fd5b8063a9059cbb1461032d578063d547cfb71461034057600080fd5b80638da5cb5b116100b25780638da5cb5b146102f457806395d89b4114610312578063a457c2d71461031a57600080fd5b806370a08231146102b6578063715018a6146102ec57600080fd5b8063313ce567116101245780636537188311610109578063653718831461026757806369add11d1461028e5780636f8b44b0146102a357600080fd5b8063313ce56714610223578063395093511461025457600080fd5b806318160ddd1161015557806318160ddd146101b257806323b872dd146101c45780632bb5e31e146101d757600080fd5b806306fdde0314610171578063095ea7b31461018f575b600080fd5b6101796103aa565b60405161018691906113de565b60405180910390f35b6101a261019d366004611473565b61043c565b6040519015158152602001610186565b6003545b604051908152602001610186565b6101a26101d236600461149d565b610456565b6101fe7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610186565b60405160ff7f0000000000000000000000000000000000000000000000000000000000000000168152602001610186565b6101a2610262366004611473565b61047a565b6101fe7f000000000000000000000000000000000000000000000000000000000000000081565b6102a161029c3660046115e6565b6104c6565b005b6102a16102b13660046116a6565b610848565b6101b66102c43660046116bf565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b6102a1610aa7565b60005473ffffffffffffffffffffffffffffffffffffffff166101fe565b610179610abb565b6101a2610328366004611473565b610aca565b6101a261033b366004611473565b610ba0565b610179610bae565b6101b660065481565b6101b661035f3660046116e1565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b6102a16103a53660046116bf565b610c3c565b6060600480546103b990611714565b80601f01602080910402602001604051908101604052809291908181526020018280546103e590611714565b80156104325780601f1061040757610100808354040283529160200191610432565b820191906000526020600020905b81548152906001019060200180831161041557829003601f168201915b5050505050905090565b60003361044a818585610cf3565b60019150505b92915050565b600033610464858285610ea6565b61046f858585610f7d565b506001949350505050565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919061044a90829086906104c1908790611796565b610cf3565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16158015906105b657506040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610590573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b491906117a9565b155b80156106ad57507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16158015906106ad57506040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610687573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ab91906117a9565b155b156106e4576040517f7cea464e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805182511461071f576040517f825caa1d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b825181101561084357600082828151811061073f5761073f6117c2565b602002602001015190506006548161075660035490565b6107609190611796565b1115610798576040517fb9da758f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6107bb8483815181106107ad576107ad6117c2565b6020026020010151826111f3565b808483815181106107ce576107ce6117c2565b602002602001015173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f28c427b0611d99da5c4f7368abe57e86b045b483c4689ae93e90745802335b8760405160405180910390a4508061083b816117f1565b915050610722565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff161580159061093857506040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610912573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093691906117a9565b155b8015610a2f57507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1615801590610a2f57506040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa158015610a09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2d91906117a9565b155b15610a66576040517f7cea464e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600354811015610aa2576040517f5716872300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600655565b610aaf6112e8565b610ab96000611369565b565b6060600580546103b990611714565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919083811015610b93576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61046f8286868403610cf3565b60003361044a818585610f7d565b60078054610bbb90611714565b80601f0160208091040260200160405190810160405280929190818152602001828054610be790611714565b8015610c345780601f10610c0957610100808354040283529160200191610c34565b820191906000526020600020905b815481529060010190602001808311610c1757829003601f168201915b505050505081565b610c446112e8565b73ffffffffffffffffffffffffffffffffffffffff8116610ce7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b8a565b610cf081611369565b50565b73ffffffffffffffffffffffffffffffffffffffff8316610d95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b8a565b73ffffffffffffffffffffffffffffffffffffffff8216610e38576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610b8a565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600260209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610f775781811015610f6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610b8a565b610f778484848403610cf3565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8316611020576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b8a565b73ffffffffffffffffffffffffffffffffffffffff82166110c3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b8a565b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090205481811015611179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610b8a565b73ffffffffffffffffffffffffffffffffffffffff80851660008181526001602052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906111e69086815260200190565b60405180910390a3610f77565b73ffffffffffffffffffffffffffffffffffffffff8216611270576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b8a565b80600360008282546112829190611796565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000818152600160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610ab9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b8a565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208083528351808285015260005b8181101561140b578581018301518582016040015282016113ef565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461146e57600080fd5b919050565b6000806040838503121561148657600080fd5b61148f8361144a565b946020939093013593505050565b6000806000606084860312156114b257600080fd5b6114bb8461144a565b92506114c96020850161144a565b9150604084013590509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561154f5761154f6114d9565b604052919050565b600067ffffffffffffffff821115611571576115716114d9565b5060051b60200190565b600082601f83011261158c57600080fd5b813560206115a161159c83611557565b611508565b82815260059290921b840181019181810190868411156115c057600080fd5b8286015b848110156115db57803583529183019183016115c4565b509695505050505050565b600080604083850312156115f957600080fd5b823567ffffffffffffffff8082111561161157600080fd5b818501915085601f83011261162557600080fd5b8135602061163561159c83611557565b82815260059290921b8401810191818101908984111561165457600080fd5b948201945b838610156116795761166a8661144a565b82529482019490820190611659565b9650508601359250508082111561168f57600080fd5b5061169c8582860161157b565b9150509250929050565b6000602082840312156116b857600080fd5b5035919050565b6000602082840312156116d157600080fd5b6116da8261144a565b9392505050565b600080604083850312156116f457600080fd5b6116fd8361144a565b915061170b6020840161144a565b90509250929050565b600181811c9082168061172857607f821691505b602082108103611761577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8082018082111561045057610450611767565b6000602082840312156117bb57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361182257611822611767565b506001019056fea164736f6c6343000811000a", 36 } 37 38 // AssetsABI is the input ABI used to generate the binding from. 39 // Deprecated: Use AssetsMetaData.ABI instead. 40 var AssetsABI = AssetsMetaData.ABI 41 42 // AssetsBin is the compiled bytecode used for deploying new contracts. 43 // Deprecated: Use AssetsMetaData.Bin instead. 44 var AssetsBin = AssetsMetaData.Bin 45 46 // DeployAssets deploys a new Ethereum contract, binding an instance of Assets to it. 47 func DeployAssets(auth *bind.TransactOpts, backend bind.ContractBackend, _name string, _symbol string, _decimals uint8, _maxSupply *big.Int, _baseTokenURI string, _ownerToken common.Address, _masterToken common.Address) (common.Address, *types.Transaction, *Assets, error) { 48 parsed, err := AssetsMetaData.GetAbi() 49 if err != nil { 50 return common.Address{}, nil, nil, err 51 } 52 if parsed == nil { 53 return common.Address{}, nil, nil, errors.New("GetABI returned nil") 54 } 55 56 address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(AssetsBin), backend, _name, _symbol, _decimals, _maxSupply, _baseTokenURI, _ownerToken, _masterToken) 57 if err != nil { 58 return common.Address{}, nil, nil, err 59 } 60 return address, tx, &Assets{AssetsCaller: AssetsCaller{contract: contract}, AssetsTransactor: AssetsTransactor{contract: contract}, AssetsFilterer: AssetsFilterer{contract: contract}}, nil 61 } 62 63 // Assets is an auto generated Go binding around an Ethereum contract. 64 type Assets struct { 65 AssetsCaller // Read-only binding to the contract 66 AssetsTransactor // Write-only binding to the contract 67 AssetsFilterer // Log filterer for contract events 68 } 69 70 // AssetsCaller is an auto generated read-only Go binding around an Ethereum contract. 71 type AssetsCaller struct { 72 contract *bind.BoundContract // Generic contract wrapper for the low level calls 73 } 74 75 // AssetsTransactor is an auto generated write-only Go binding around an Ethereum contract. 76 type AssetsTransactor struct { 77 contract *bind.BoundContract // Generic contract wrapper for the low level calls 78 } 79 80 // AssetsFilterer is an auto generated log filtering Go binding around an Ethereum contract events. 81 type AssetsFilterer struct { 82 contract *bind.BoundContract // Generic contract wrapper for the low level calls 83 } 84 85 // AssetsSession is an auto generated Go binding around an Ethereum contract, 86 // with pre-set call and transact options. 87 type AssetsSession struct { 88 Contract *Assets // Generic contract binding to set the session for 89 CallOpts bind.CallOpts // Call options to use throughout this session 90 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 91 } 92 93 // AssetsCallerSession is an auto generated read-only Go binding around an Ethereum contract, 94 // with pre-set call options. 95 type AssetsCallerSession struct { 96 Contract *AssetsCaller // Generic contract caller binding to set the session for 97 CallOpts bind.CallOpts // Call options to use throughout this session 98 } 99 100 // AssetsTransactorSession is an auto generated write-only Go binding around an Ethereum contract, 101 // with pre-set transact options. 102 type AssetsTransactorSession struct { 103 Contract *AssetsTransactor // Generic contract transactor binding to set the session for 104 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 105 } 106 107 // AssetsRaw is an auto generated low-level Go binding around an Ethereum contract. 108 type AssetsRaw struct { 109 Contract *Assets // Generic contract binding to access the raw methods on 110 } 111 112 // AssetsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. 113 type AssetsCallerRaw struct { 114 Contract *AssetsCaller // Generic read-only contract binding to access the raw methods on 115 } 116 117 // AssetsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. 118 type AssetsTransactorRaw struct { 119 Contract *AssetsTransactor // Generic write-only contract binding to access the raw methods on 120 } 121 122 // NewAssets creates a new instance of Assets, bound to a specific deployed contract. 123 func NewAssets(address common.Address, backend bind.ContractBackend) (*Assets, error) { 124 contract, err := bindAssets(address, backend, backend, backend) 125 if err != nil { 126 return nil, err 127 } 128 return &Assets{AssetsCaller: AssetsCaller{contract: contract}, AssetsTransactor: AssetsTransactor{contract: contract}, AssetsFilterer: AssetsFilterer{contract: contract}}, nil 129 } 130 131 // NewAssetsCaller creates a new read-only instance of Assets, bound to a specific deployed contract. 132 func NewAssetsCaller(address common.Address, caller bind.ContractCaller) (*AssetsCaller, error) { 133 contract, err := bindAssets(address, caller, nil, nil) 134 if err != nil { 135 return nil, err 136 } 137 return &AssetsCaller{contract: contract}, nil 138 } 139 140 // NewAssetsTransactor creates a new write-only instance of Assets, bound to a specific deployed contract. 141 func NewAssetsTransactor(address common.Address, transactor bind.ContractTransactor) (*AssetsTransactor, error) { 142 contract, err := bindAssets(address, nil, transactor, nil) 143 if err != nil { 144 return nil, err 145 } 146 return &AssetsTransactor{contract: contract}, nil 147 } 148 149 // NewAssetsFilterer creates a new log filterer instance of Assets, bound to a specific deployed contract. 150 func NewAssetsFilterer(address common.Address, filterer bind.ContractFilterer) (*AssetsFilterer, error) { 151 contract, err := bindAssets(address, nil, nil, filterer) 152 if err != nil { 153 return nil, err 154 } 155 return &AssetsFilterer{contract: contract}, nil 156 } 157 158 // bindAssets binds a generic wrapper to an already deployed contract. 159 func bindAssets(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { 160 parsed, err := AssetsMetaData.GetAbi() 161 if err != nil { 162 return nil, err 163 } 164 return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil 165 } 166 167 // Call invokes the (constant) contract method with params as input values and 168 // sets the output to result. The result type might be a single field for simple 169 // returns, a slice of interfaces for anonymous returns and a struct for named 170 // returns. 171 func (_Assets *AssetsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 172 return _Assets.Contract.AssetsCaller.contract.Call(opts, result, method, params...) 173 } 174 175 // Transfer initiates a plain transaction to move funds to the contract, calling 176 // its default method if one is available. 177 func (_Assets *AssetsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 178 return _Assets.Contract.AssetsTransactor.contract.Transfer(opts) 179 } 180 181 // Transact invokes the (paid) contract method with params as input values. 182 func (_Assets *AssetsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 183 return _Assets.Contract.AssetsTransactor.contract.Transact(opts, method, params...) 184 } 185 186 // Call invokes the (constant) contract method with params as input values and 187 // sets the output to result. The result type might be a single field for simple 188 // returns, a slice of interfaces for anonymous returns and a struct for named 189 // returns. 190 func (_Assets *AssetsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 191 return _Assets.Contract.contract.Call(opts, result, method, params...) 192 } 193 194 // Transfer initiates a plain transaction to move funds to the contract, calling 195 // its default method if one is available. 196 func (_Assets *AssetsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 197 return _Assets.Contract.contract.Transfer(opts) 198 } 199 200 // Transact invokes the (paid) contract method with params as input values. 201 func (_Assets *AssetsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 202 return _Assets.Contract.contract.Transact(opts, method, params...) 203 } 204 205 // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. 206 // 207 // Solidity: function allowance(address owner, address spender) view returns(uint256) 208 func (_Assets *AssetsCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error) { 209 var out []interface{} 210 err := _Assets.contract.Call(opts, &out, "allowance", owner, spender) 211 212 if err != nil { 213 return *new(*big.Int), err 214 } 215 216 out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) 217 218 return out0, err 219 220 } 221 222 // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. 223 // 224 // Solidity: function allowance(address owner, address spender) view returns(uint256) 225 func (_Assets *AssetsSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { 226 return _Assets.Contract.Allowance(&_Assets.CallOpts, owner, spender) 227 } 228 229 // Allowance is a free data retrieval call binding the contract method 0xdd62ed3e. 230 // 231 // Solidity: function allowance(address owner, address spender) view returns(uint256) 232 func (_Assets *AssetsCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error) { 233 return _Assets.Contract.Allowance(&_Assets.CallOpts, owner, spender) 234 } 235 236 // BalanceOf is a free data retrieval call binding the contract method 0x70a08231. 237 // 238 // Solidity: function balanceOf(address account) view returns(uint256) 239 func (_Assets *AssetsCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error) { 240 var out []interface{} 241 err := _Assets.contract.Call(opts, &out, "balanceOf", account) 242 243 if err != nil { 244 return *new(*big.Int), err 245 } 246 247 out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) 248 249 return out0, err 250 251 } 252 253 // BalanceOf is a free data retrieval call binding the contract method 0x70a08231. 254 // 255 // Solidity: function balanceOf(address account) view returns(uint256) 256 func (_Assets *AssetsSession) BalanceOf(account common.Address) (*big.Int, error) { 257 return _Assets.Contract.BalanceOf(&_Assets.CallOpts, account) 258 } 259 260 // BalanceOf is a free data retrieval call binding the contract method 0x70a08231. 261 // 262 // Solidity: function balanceOf(address account) view returns(uint256) 263 func (_Assets *AssetsCallerSession) BalanceOf(account common.Address) (*big.Int, error) { 264 return _Assets.Contract.BalanceOf(&_Assets.CallOpts, account) 265 } 266 267 // BaseTokenURI is a free data retrieval call binding the contract method 0xd547cfb7. 268 // 269 // Solidity: function baseTokenURI() view returns(string) 270 func (_Assets *AssetsCaller) BaseTokenURI(opts *bind.CallOpts) (string, error) { 271 var out []interface{} 272 err := _Assets.contract.Call(opts, &out, "baseTokenURI") 273 274 if err != nil { 275 return *new(string), err 276 } 277 278 out0 := *abi.ConvertType(out[0], new(string)).(*string) 279 280 return out0, err 281 282 } 283 284 // BaseTokenURI is a free data retrieval call binding the contract method 0xd547cfb7. 285 // 286 // Solidity: function baseTokenURI() view returns(string) 287 func (_Assets *AssetsSession) BaseTokenURI() (string, error) { 288 return _Assets.Contract.BaseTokenURI(&_Assets.CallOpts) 289 } 290 291 // BaseTokenURI is a free data retrieval call binding the contract method 0xd547cfb7. 292 // 293 // Solidity: function baseTokenURI() view returns(string) 294 func (_Assets *AssetsCallerSession) BaseTokenURI() (string, error) { 295 return _Assets.Contract.BaseTokenURI(&_Assets.CallOpts) 296 } 297 298 // Decimals is a free data retrieval call binding the contract method 0x313ce567. 299 // 300 // Solidity: function decimals() view returns(uint8) 301 func (_Assets *AssetsCaller) Decimals(opts *bind.CallOpts) (uint8, error) { 302 var out []interface{} 303 err := _Assets.contract.Call(opts, &out, "decimals") 304 305 if err != nil { 306 return *new(uint8), err 307 } 308 309 out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8) 310 311 return out0, err 312 313 } 314 315 // Decimals is a free data retrieval call binding the contract method 0x313ce567. 316 // 317 // Solidity: function decimals() view returns(uint8) 318 func (_Assets *AssetsSession) Decimals() (uint8, error) { 319 return _Assets.Contract.Decimals(&_Assets.CallOpts) 320 } 321 322 // Decimals is a free data retrieval call binding the contract method 0x313ce567. 323 // 324 // Solidity: function decimals() view returns(uint8) 325 func (_Assets *AssetsCallerSession) Decimals() (uint8, error) { 326 return _Assets.Contract.Decimals(&_Assets.CallOpts) 327 } 328 329 // MasterToken is a free data retrieval call binding the contract method 0x2bb5e31e. 330 // 331 // Solidity: function masterToken() view returns(address) 332 func (_Assets *AssetsCaller) MasterToken(opts *bind.CallOpts) (common.Address, error) { 333 var out []interface{} 334 err := _Assets.contract.Call(opts, &out, "masterToken") 335 336 if err != nil { 337 return *new(common.Address), err 338 } 339 340 out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) 341 342 return out0, err 343 344 } 345 346 // MasterToken is a free data retrieval call binding the contract method 0x2bb5e31e. 347 // 348 // Solidity: function masterToken() view returns(address) 349 func (_Assets *AssetsSession) MasterToken() (common.Address, error) { 350 return _Assets.Contract.MasterToken(&_Assets.CallOpts) 351 } 352 353 // MasterToken is a free data retrieval call binding the contract method 0x2bb5e31e. 354 // 355 // Solidity: function masterToken() view returns(address) 356 func (_Assets *AssetsCallerSession) MasterToken() (common.Address, error) { 357 return _Assets.Contract.MasterToken(&_Assets.CallOpts) 358 } 359 360 // MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01. 361 // 362 // Solidity: function maxSupply() view returns(uint256) 363 func (_Assets *AssetsCaller) MaxSupply(opts *bind.CallOpts) (*big.Int, error) { 364 var out []interface{} 365 err := _Assets.contract.Call(opts, &out, "maxSupply") 366 367 if err != nil { 368 return *new(*big.Int), err 369 } 370 371 out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) 372 373 return out0, err 374 375 } 376 377 // MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01. 378 // 379 // Solidity: function maxSupply() view returns(uint256) 380 func (_Assets *AssetsSession) MaxSupply() (*big.Int, error) { 381 return _Assets.Contract.MaxSupply(&_Assets.CallOpts) 382 } 383 384 // MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01. 385 // 386 // Solidity: function maxSupply() view returns(uint256) 387 func (_Assets *AssetsCallerSession) MaxSupply() (*big.Int, error) { 388 return _Assets.Contract.MaxSupply(&_Assets.CallOpts) 389 } 390 391 // Name is a free data retrieval call binding the contract method 0x06fdde03. 392 // 393 // Solidity: function name() view returns(string) 394 func (_Assets *AssetsCaller) Name(opts *bind.CallOpts) (string, error) { 395 var out []interface{} 396 err := _Assets.contract.Call(opts, &out, "name") 397 398 if err != nil { 399 return *new(string), err 400 } 401 402 out0 := *abi.ConvertType(out[0], new(string)).(*string) 403 404 return out0, err 405 406 } 407 408 // Name is a free data retrieval call binding the contract method 0x06fdde03. 409 // 410 // Solidity: function name() view returns(string) 411 func (_Assets *AssetsSession) Name() (string, error) { 412 return _Assets.Contract.Name(&_Assets.CallOpts) 413 } 414 415 // Name is a free data retrieval call binding the contract method 0x06fdde03. 416 // 417 // Solidity: function name() view returns(string) 418 func (_Assets *AssetsCallerSession) Name() (string, error) { 419 return _Assets.Contract.Name(&_Assets.CallOpts) 420 } 421 422 // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. 423 // 424 // Solidity: function owner() view returns(address) 425 func (_Assets *AssetsCaller) Owner(opts *bind.CallOpts) (common.Address, error) { 426 var out []interface{} 427 err := _Assets.contract.Call(opts, &out, "owner") 428 429 if err != nil { 430 return *new(common.Address), err 431 } 432 433 out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) 434 435 return out0, err 436 437 } 438 439 // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. 440 // 441 // Solidity: function owner() view returns(address) 442 func (_Assets *AssetsSession) Owner() (common.Address, error) { 443 return _Assets.Contract.Owner(&_Assets.CallOpts) 444 } 445 446 // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. 447 // 448 // Solidity: function owner() view returns(address) 449 func (_Assets *AssetsCallerSession) Owner() (common.Address, error) { 450 return _Assets.Contract.Owner(&_Assets.CallOpts) 451 } 452 453 // OwnerToken is a free data retrieval call binding the contract method 0x65371883. 454 // 455 // Solidity: function ownerToken() view returns(address) 456 func (_Assets *AssetsCaller) OwnerToken(opts *bind.CallOpts) (common.Address, error) { 457 var out []interface{} 458 err := _Assets.contract.Call(opts, &out, "ownerToken") 459 460 if err != nil { 461 return *new(common.Address), err 462 } 463 464 out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) 465 466 return out0, err 467 468 } 469 470 // OwnerToken is a free data retrieval call binding the contract method 0x65371883. 471 // 472 // Solidity: function ownerToken() view returns(address) 473 func (_Assets *AssetsSession) OwnerToken() (common.Address, error) { 474 return _Assets.Contract.OwnerToken(&_Assets.CallOpts) 475 } 476 477 // OwnerToken is a free data retrieval call binding the contract method 0x65371883. 478 // 479 // Solidity: function ownerToken() view returns(address) 480 func (_Assets *AssetsCallerSession) OwnerToken() (common.Address, error) { 481 return _Assets.Contract.OwnerToken(&_Assets.CallOpts) 482 } 483 484 // Symbol is a free data retrieval call binding the contract method 0x95d89b41. 485 // 486 // Solidity: function symbol() view returns(string) 487 func (_Assets *AssetsCaller) Symbol(opts *bind.CallOpts) (string, error) { 488 var out []interface{} 489 err := _Assets.contract.Call(opts, &out, "symbol") 490 491 if err != nil { 492 return *new(string), err 493 } 494 495 out0 := *abi.ConvertType(out[0], new(string)).(*string) 496 497 return out0, err 498 499 } 500 501 // Symbol is a free data retrieval call binding the contract method 0x95d89b41. 502 // 503 // Solidity: function symbol() view returns(string) 504 func (_Assets *AssetsSession) Symbol() (string, error) { 505 return _Assets.Contract.Symbol(&_Assets.CallOpts) 506 } 507 508 // Symbol is a free data retrieval call binding the contract method 0x95d89b41. 509 // 510 // Solidity: function symbol() view returns(string) 511 func (_Assets *AssetsCallerSession) Symbol() (string, error) { 512 return _Assets.Contract.Symbol(&_Assets.CallOpts) 513 } 514 515 // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. 516 // 517 // Solidity: function totalSupply() view returns(uint256) 518 func (_Assets *AssetsCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { 519 var out []interface{} 520 err := _Assets.contract.Call(opts, &out, "totalSupply") 521 522 if err != nil { 523 return *new(*big.Int), err 524 } 525 526 out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) 527 528 return out0, err 529 530 } 531 532 // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. 533 // 534 // Solidity: function totalSupply() view returns(uint256) 535 func (_Assets *AssetsSession) TotalSupply() (*big.Int, error) { 536 return _Assets.Contract.TotalSupply(&_Assets.CallOpts) 537 } 538 539 // TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. 540 // 541 // Solidity: function totalSupply() view returns(uint256) 542 func (_Assets *AssetsCallerSession) TotalSupply() (*big.Int, error) { 543 return _Assets.Contract.TotalSupply(&_Assets.CallOpts) 544 } 545 546 // Approve is a paid mutator transaction binding the contract method 0x095ea7b3. 547 // 548 // Solidity: function approve(address spender, uint256 amount) returns(bool) 549 func (_Assets *AssetsTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error) { 550 return _Assets.contract.Transact(opts, "approve", spender, amount) 551 } 552 553 // Approve is a paid mutator transaction binding the contract method 0x095ea7b3. 554 // 555 // Solidity: function approve(address spender, uint256 amount) returns(bool) 556 func (_Assets *AssetsSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { 557 return _Assets.Contract.Approve(&_Assets.TransactOpts, spender, amount) 558 } 559 560 // Approve is a paid mutator transaction binding the contract method 0x095ea7b3. 561 // 562 // Solidity: function approve(address spender, uint256 amount) returns(bool) 563 func (_Assets *AssetsTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error) { 564 return _Assets.Contract.Approve(&_Assets.TransactOpts, spender, amount) 565 } 566 567 // DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. 568 // 569 // Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) 570 func (_Assets *AssetsTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { 571 return _Assets.contract.Transact(opts, "decreaseAllowance", spender, subtractedValue) 572 } 573 574 // DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. 575 // 576 // Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) 577 func (_Assets *AssetsSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { 578 return _Assets.Contract.DecreaseAllowance(&_Assets.TransactOpts, spender, subtractedValue) 579 } 580 581 // DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7. 582 // 583 // Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool) 584 func (_Assets *AssetsTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error) { 585 return _Assets.Contract.DecreaseAllowance(&_Assets.TransactOpts, spender, subtractedValue) 586 } 587 588 // IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. 589 // 590 // Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) 591 func (_Assets *AssetsTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error) { 592 return _Assets.contract.Transact(opts, "increaseAllowance", spender, addedValue) 593 } 594 595 // IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. 596 // 597 // Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) 598 func (_Assets *AssetsSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { 599 return _Assets.Contract.IncreaseAllowance(&_Assets.TransactOpts, spender, addedValue) 600 } 601 602 // IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351. 603 // 604 // Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool) 605 func (_Assets *AssetsTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error) { 606 return _Assets.Contract.IncreaseAllowance(&_Assets.TransactOpts, spender, addedValue) 607 } 608 609 // MintTo is a paid mutator transaction binding the contract method 0x69add11d. 610 // 611 // Solidity: function mintTo(address[] addresses, uint256[] amounts) returns() 612 func (_Assets *AssetsTransactor) MintTo(opts *bind.TransactOpts, addresses []common.Address, amounts []*big.Int) (*types.Transaction, error) { 613 return _Assets.contract.Transact(opts, "mintTo", addresses, amounts) 614 } 615 616 // MintTo is a paid mutator transaction binding the contract method 0x69add11d. 617 // 618 // Solidity: function mintTo(address[] addresses, uint256[] amounts) returns() 619 func (_Assets *AssetsSession) MintTo(addresses []common.Address, amounts []*big.Int) (*types.Transaction, error) { 620 return _Assets.Contract.MintTo(&_Assets.TransactOpts, addresses, amounts) 621 } 622 623 // MintTo is a paid mutator transaction binding the contract method 0x69add11d. 624 // 625 // Solidity: function mintTo(address[] addresses, uint256[] amounts) returns() 626 func (_Assets *AssetsTransactorSession) MintTo(addresses []common.Address, amounts []*big.Int) (*types.Transaction, error) { 627 return _Assets.Contract.MintTo(&_Assets.TransactOpts, addresses, amounts) 628 } 629 630 // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. 631 // 632 // Solidity: function renounceOwnership() returns() 633 func (_Assets *AssetsTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { 634 return _Assets.contract.Transact(opts, "renounceOwnership") 635 } 636 637 // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. 638 // 639 // Solidity: function renounceOwnership() returns() 640 func (_Assets *AssetsSession) RenounceOwnership() (*types.Transaction, error) { 641 return _Assets.Contract.RenounceOwnership(&_Assets.TransactOpts) 642 } 643 644 // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. 645 // 646 // Solidity: function renounceOwnership() returns() 647 func (_Assets *AssetsTransactorSession) RenounceOwnership() (*types.Transaction, error) { 648 return _Assets.Contract.RenounceOwnership(&_Assets.TransactOpts) 649 } 650 651 // SetMaxSupply is a paid mutator transaction binding the contract method 0x6f8b44b0. 652 // 653 // Solidity: function setMaxSupply(uint256 newMaxSupply) returns() 654 func (_Assets *AssetsTransactor) SetMaxSupply(opts *bind.TransactOpts, newMaxSupply *big.Int) (*types.Transaction, error) { 655 return _Assets.contract.Transact(opts, "setMaxSupply", newMaxSupply) 656 } 657 658 // SetMaxSupply is a paid mutator transaction binding the contract method 0x6f8b44b0. 659 // 660 // Solidity: function setMaxSupply(uint256 newMaxSupply) returns() 661 func (_Assets *AssetsSession) SetMaxSupply(newMaxSupply *big.Int) (*types.Transaction, error) { 662 return _Assets.Contract.SetMaxSupply(&_Assets.TransactOpts, newMaxSupply) 663 } 664 665 // SetMaxSupply is a paid mutator transaction binding the contract method 0x6f8b44b0. 666 // 667 // Solidity: function setMaxSupply(uint256 newMaxSupply) returns() 668 func (_Assets *AssetsTransactorSession) SetMaxSupply(newMaxSupply *big.Int) (*types.Transaction, error) { 669 return _Assets.Contract.SetMaxSupply(&_Assets.TransactOpts, newMaxSupply) 670 } 671 672 // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. 673 // 674 // Solidity: function transfer(address to, uint256 amount) returns(bool) 675 func (_Assets *AssetsTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) { 676 return _Assets.contract.Transact(opts, "transfer", to, amount) 677 } 678 679 // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. 680 // 681 // Solidity: function transfer(address to, uint256 amount) returns(bool) 682 func (_Assets *AssetsSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { 683 return _Assets.Contract.Transfer(&_Assets.TransactOpts, to, amount) 684 } 685 686 // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb. 687 // 688 // Solidity: function transfer(address to, uint256 amount) returns(bool) 689 func (_Assets *AssetsTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) { 690 return _Assets.Contract.Transfer(&_Assets.TransactOpts, to, amount) 691 } 692 693 // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. 694 // 695 // Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) 696 func (_Assets *AssetsTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { 697 return _Assets.contract.Transact(opts, "transferFrom", from, to, amount) 698 } 699 700 // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. 701 // 702 // Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) 703 func (_Assets *AssetsSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { 704 return _Assets.Contract.TransferFrom(&_Assets.TransactOpts, from, to, amount) 705 } 706 707 // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. 708 // 709 // Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool) 710 func (_Assets *AssetsTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error) { 711 return _Assets.Contract.TransferFrom(&_Assets.TransactOpts, from, to, amount) 712 } 713 714 // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. 715 // 716 // Solidity: function transferOwnership(address newOwner) returns() 717 func (_Assets *AssetsTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { 718 return _Assets.contract.Transact(opts, "transferOwnership", newOwner) 719 } 720 721 // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. 722 // 723 // Solidity: function transferOwnership(address newOwner) returns() 724 func (_Assets *AssetsSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { 725 return _Assets.Contract.TransferOwnership(&_Assets.TransactOpts, newOwner) 726 } 727 728 // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. 729 // 730 // Solidity: function transferOwnership(address newOwner) returns() 731 func (_Assets *AssetsTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { 732 return _Assets.Contract.TransferOwnership(&_Assets.TransactOpts, newOwner) 733 } 734 735 // AssetsApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Assets contract. 736 type AssetsApprovalIterator struct { 737 Event *AssetsApproval // Event containing the contract specifics and raw log 738 739 contract *bind.BoundContract // Generic contract to use for unpacking event data 740 event string // Event name to use for unpacking event data 741 742 logs chan types.Log // Log channel receiving the found contract events 743 sub ethereum.Subscription // Subscription for errors, completion and termination 744 done bool // Whether the subscription completed delivering logs 745 fail error // Occurred error to stop iteration 746 } 747 748 // Next advances the iterator to the subsequent event, returning whether there 749 // are any more events found. In case of a retrieval or parsing error, false is 750 // returned and Error() can be queried for the exact failure. 751 func (it *AssetsApprovalIterator) Next() bool { 752 // If the iterator failed, stop iterating 753 if it.fail != nil { 754 return false 755 } 756 // If the iterator completed, deliver directly whatever's available 757 if it.done { 758 select { 759 case log := <-it.logs: 760 it.Event = new(AssetsApproval) 761 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 762 it.fail = err 763 return false 764 } 765 it.Event.Raw = log 766 return true 767 768 default: 769 return false 770 } 771 } 772 // Iterator still in progress, wait for either a data or an error event 773 select { 774 case log := <-it.logs: 775 it.Event = new(AssetsApproval) 776 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 777 it.fail = err 778 return false 779 } 780 it.Event.Raw = log 781 return true 782 783 case err := <-it.sub.Err(): 784 it.done = true 785 it.fail = err 786 return it.Next() 787 } 788 } 789 790 // Error returns any retrieval or parsing error occurred during filtering. 791 func (it *AssetsApprovalIterator) Error() error { 792 return it.fail 793 } 794 795 // Close terminates the iteration process, releasing any pending underlying 796 // resources. 797 func (it *AssetsApprovalIterator) Close() error { 798 it.sub.Unsubscribe() 799 return nil 800 } 801 802 // AssetsApproval represents a Approval event raised by the Assets contract. 803 type AssetsApproval struct { 804 Owner common.Address 805 Spender common.Address 806 Value *big.Int 807 Raw types.Log // Blockchain specific contextual infos 808 } 809 810 // FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. 811 // 812 // Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) 813 func (_Assets *AssetsFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*AssetsApprovalIterator, error) { 814 815 var ownerRule []interface{} 816 for _, ownerItem := range owner { 817 ownerRule = append(ownerRule, ownerItem) 818 } 819 var spenderRule []interface{} 820 for _, spenderItem := range spender { 821 spenderRule = append(spenderRule, spenderItem) 822 } 823 824 logs, sub, err := _Assets.contract.FilterLogs(opts, "Approval", ownerRule, spenderRule) 825 if err != nil { 826 return nil, err 827 } 828 return &AssetsApprovalIterator{contract: _Assets.contract, event: "Approval", logs: logs, sub: sub}, nil 829 } 830 831 // WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. 832 // 833 // Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) 834 func (_Assets *AssetsFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *AssetsApproval, owner []common.Address, spender []common.Address) (event.Subscription, error) { 835 836 var ownerRule []interface{} 837 for _, ownerItem := range owner { 838 ownerRule = append(ownerRule, ownerItem) 839 } 840 var spenderRule []interface{} 841 for _, spenderItem := range spender { 842 spenderRule = append(spenderRule, spenderItem) 843 } 844 845 logs, sub, err := _Assets.contract.WatchLogs(opts, "Approval", ownerRule, spenderRule) 846 if err != nil { 847 return nil, err 848 } 849 return event.NewSubscription(func(quit <-chan struct{}) error { 850 defer sub.Unsubscribe() 851 for { 852 select { 853 case log := <-logs: 854 // New log arrived, parse the event and forward to the user 855 event := new(AssetsApproval) 856 if err := _Assets.contract.UnpackLog(event, "Approval", log); err != nil { 857 return err 858 } 859 event.Raw = log 860 861 select { 862 case sink <- event: 863 case err := <-sub.Err(): 864 return err 865 case <-quit: 866 return nil 867 } 868 case err := <-sub.Err(): 869 return err 870 case <-quit: 871 return nil 872 } 873 } 874 }), nil 875 } 876 877 // ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. 878 // 879 // Solidity: event Approval(address indexed owner, address indexed spender, uint256 value) 880 func (_Assets *AssetsFilterer) ParseApproval(log types.Log) (*AssetsApproval, error) { 881 event := new(AssetsApproval) 882 if err := _Assets.contract.UnpackLog(event, "Approval", log); err != nil { 883 return nil, err 884 } 885 event.Raw = log 886 return event, nil 887 } 888 889 // AssetsOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Assets contract. 890 type AssetsOwnershipTransferredIterator struct { 891 Event *AssetsOwnershipTransferred // Event containing the contract specifics and raw log 892 893 contract *bind.BoundContract // Generic contract to use for unpacking event data 894 event string // Event name to use for unpacking event data 895 896 logs chan types.Log // Log channel receiving the found contract events 897 sub ethereum.Subscription // Subscription for errors, completion and termination 898 done bool // Whether the subscription completed delivering logs 899 fail error // Occurred error to stop iteration 900 } 901 902 // Next advances the iterator to the subsequent event, returning whether there 903 // are any more events found. In case of a retrieval or parsing error, false is 904 // returned and Error() can be queried for the exact failure. 905 func (it *AssetsOwnershipTransferredIterator) Next() bool { 906 // If the iterator failed, stop iterating 907 if it.fail != nil { 908 return false 909 } 910 // If the iterator completed, deliver directly whatever's available 911 if it.done { 912 select { 913 case log := <-it.logs: 914 it.Event = new(AssetsOwnershipTransferred) 915 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 916 it.fail = err 917 return false 918 } 919 it.Event.Raw = log 920 return true 921 922 default: 923 return false 924 } 925 } 926 // Iterator still in progress, wait for either a data or an error event 927 select { 928 case log := <-it.logs: 929 it.Event = new(AssetsOwnershipTransferred) 930 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 931 it.fail = err 932 return false 933 } 934 it.Event.Raw = log 935 return true 936 937 case err := <-it.sub.Err(): 938 it.done = true 939 it.fail = err 940 return it.Next() 941 } 942 } 943 944 // Error returns any retrieval or parsing error occurred during filtering. 945 func (it *AssetsOwnershipTransferredIterator) Error() error { 946 return it.fail 947 } 948 949 // Close terminates the iteration process, releasing any pending underlying 950 // resources. 951 func (it *AssetsOwnershipTransferredIterator) Close() error { 952 it.sub.Unsubscribe() 953 return nil 954 } 955 956 // AssetsOwnershipTransferred represents a OwnershipTransferred event raised by the Assets contract. 957 type AssetsOwnershipTransferred struct { 958 PreviousOwner common.Address 959 NewOwner common.Address 960 Raw types.Log // Blockchain specific contextual infos 961 } 962 963 // FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. 964 // 965 // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) 966 func (_Assets *AssetsFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AssetsOwnershipTransferredIterator, error) { 967 968 var previousOwnerRule []interface{} 969 for _, previousOwnerItem := range previousOwner { 970 previousOwnerRule = append(previousOwnerRule, previousOwnerItem) 971 } 972 var newOwnerRule []interface{} 973 for _, newOwnerItem := range newOwner { 974 newOwnerRule = append(newOwnerRule, newOwnerItem) 975 } 976 977 logs, sub, err := _Assets.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) 978 if err != nil { 979 return nil, err 980 } 981 return &AssetsOwnershipTransferredIterator{contract: _Assets.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil 982 } 983 984 // WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. 985 // 986 // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) 987 func (_Assets *AssetsFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AssetsOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { 988 989 var previousOwnerRule []interface{} 990 for _, previousOwnerItem := range previousOwner { 991 previousOwnerRule = append(previousOwnerRule, previousOwnerItem) 992 } 993 var newOwnerRule []interface{} 994 for _, newOwnerItem := range newOwner { 995 newOwnerRule = append(newOwnerRule, newOwnerItem) 996 } 997 998 logs, sub, err := _Assets.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) 999 if err != nil { 1000 return nil, err 1001 } 1002 return event.NewSubscription(func(quit <-chan struct{}) error { 1003 defer sub.Unsubscribe() 1004 for { 1005 select { 1006 case log := <-logs: 1007 // New log arrived, parse the event and forward to the user 1008 event := new(AssetsOwnershipTransferred) 1009 if err := _Assets.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { 1010 return err 1011 } 1012 event.Raw = log 1013 1014 select { 1015 case sink <- event: 1016 case err := <-sub.Err(): 1017 return err 1018 case <-quit: 1019 return nil 1020 } 1021 case err := <-sub.Err(): 1022 return err 1023 case <-quit: 1024 return nil 1025 } 1026 } 1027 }), nil 1028 } 1029 1030 // ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. 1031 // 1032 // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) 1033 func (_Assets *AssetsFilterer) ParseOwnershipTransferred(log types.Log) (*AssetsOwnershipTransferred, error) { 1034 event := new(AssetsOwnershipTransferred) 1035 if err := _Assets.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { 1036 return nil, err 1037 } 1038 event.Raw = log 1039 return event, nil 1040 } 1041 1042 // AssetsStatusMintIterator is returned from FilterStatusMint and is used to iterate over the raw logs and unpacked data for StatusMint events raised by the Assets contract. 1043 type AssetsStatusMintIterator struct { 1044 Event *AssetsStatusMint // Event containing the contract specifics and raw log 1045 1046 contract *bind.BoundContract // Generic contract to use for unpacking event data 1047 event string // Event name to use for unpacking event data 1048 1049 logs chan types.Log // Log channel receiving the found contract events 1050 sub ethereum.Subscription // Subscription for errors, completion and termination 1051 done bool // Whether the subscription completed delivering logs 1052 fail error // Occurred error to stop iteration 1053 } 1054 1055 // Next advances the iterator to the subsequent event, returning whether there 1056 // are any more events found. In case of a retrieval or parsing error, false is 1057 // returned and Error() can be queried for the exact failure. 1058 func (it *AssetsStatusMintIterator) Next() bool { 1059 // If the iterator failed, stop iterating 1060 if it.fail != nil { 1061 return false 1062 } 1063 // If the iterator completed, deliver directly whatever's available 1064 if it.done { 1065 select { 1066 case log := <-it.logs: 1067 it.Event = new(AssetsStatusMint) 1068 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 1069 it.fail = err 1070 return false 1071 } 1072 it.Event.Raw = log 1073 return true 1074 1075 default: 1076 return false 1077 } 1078 } 1079 // Iterator still in progress, wait for either a data or an error event 1080 select { 1081 case log := <-it.logs: 1082 it.Event = new(AssetsStatusMint) 1083 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 1084 it.fail = err 1085 return false 1086 } 1087 it.Event.Raw = log 1088 return true 1089 1090 case err := <-it.sub.Err(): 1091 it.done = true 1092 it.fail = err 1093 return it.Next() 1094 } 1095 } 1096 1097 // Error returns any retrieval or parsing error occurred during filtering. 1098 func (it *AssetsStatusMintIterator) Error() error { 1099 return it.fail 1100 } 1101 1102 // Close terminates the iteration process, releasing any pending underlying 1103 // resources. 1104 func (it *AssetsStatusMintIterator) Close() error { 1105 it.sub.Unsubscribe() 1106 return nil 1107 } 1108 1109 // AssetsStatusMint represents a StatusMint event raised by the Assets contract. 1110 type AssetsStatusMint struct { 1111 From common.Address 1112 To common.Address 1113 Amount *big.Int 1114 Raw types.Log // Blockchain specific contextual infos 1115 } 1116 1117 // FilterStatusMint is a free log retrieval operation binding the contract event 0x28c427b0611d99da5c4f7368abe57e86b045b483c4689ae93e90745802335b87. 1118 // 1119 // Solidity: event StatusMint(address indexed from, address indexed to, uint256 indexed amount) 1120 func (_Assets *AssetsFilterer) FilterStatusMint(opts *bind.FilterOpts, from []common.Address, to []common.Address, amount []*big.Int) (*AssetsStatusMintIterator, error) { 1121 1122 var fromRule []interface{} 1123 for _, fromItem := range from { 1124 fromRule = append(fromRule, fromItem) 1125 } 1126 var toRule []interface{} 1127 for _, toItem := range to { 1128 toRule = append(toRule, toItem) 1129 } 1130 var amountRule []interface{} 1131 for _, amountItem := range amount { 1132 amountRule = append(amountRule, amountItem) 1133 } 1134 1135 logs, sub, err := _Assets.contract.FilterLogs(opts, "StatusMint", fromRule, toRule, amountRule) 1136 if err != nil { 1137 return nil, err 1138 } 1139 return &AssetsStatusMintIterator{contract: _Assets.contract, event: "StatusMint", logs: logs, sub: sub}, nil 1140 } 1141 1142 // WatchStatusMint is a free log subscription operation binding the contract event 0x28c427b0611d99da5c4f7368abe57e86b045b483c4689ae93e90745802335b87. 1143 // 1144 // Solidity: event StatusMint(address indexed from, address indexed to, uint256 indexed amount) 1145 func (_Assets *AssetsFilterer) WatchStatusMint(opts *bind.WatchOpts, sink chan<- *AssetsStatusMint, from []common.Address, to []common.Address, amount []*big.Int) (event.Subscription, error) { 1146 1147 var fromRule []interface{} 1148 for _, fromItem := range from { 1149 fromRule = append(fromRule, fromItem) 1150 } 1151 var toRule []interface{} 1152 for _, toItem := range to { 1153 toRule = append(toRule, toItem) 1154 } 1155 var amountRule []interface{} 1156 for _, amountItem := range amount { 1157 amountRule = append(amountRule, amountItem) 1158 } 1159 1160 logs, sub, err := _Assets.contract.WatchLogs(opts, "StatusMint", fromRule, toRule, amountRule) 1161 if err != nil { 1162 return nil, err 1163 } 1164 return event.NewSubscription(func(quit <-chan struct{}) error { 1165 defer sub.Unsubscribe() 1166 for { 1167 select { 1168 case log := <-logs: 1169 // New log arrived, parse the event and forward to the user 1170 event := new(AssetsStatusMint) 1171 if err := _Assets.contract.UnpackLog(event, "StatusMint", log); err != nil { 1172 return err 1173 } 1174 event.Raw = log 1175 1176 select { 1177 case sink <- event: 1178 case err := <-sub.Err(): 1179 return err 1180 case <-quit: 1181 return nil 1182 } 1183 case err := <-sub.Err(): 1184 return err 1185 case <-quit: 1186 return nil 1187 } 1188 } 1189 }), nil 1190 } 1191 1192 // ParseStatusMint is a log parse operation binding the contract event 0x28c427b0611d99da5c4f7368abe57e86b045b483c4689ae93e90745802335b87. 1193 // 1194 // Solidity: event StatusMint(address indexed from, address indexed to, uint256 indexed amount) 1195 func (_Assets *AssetsFilterer) ParseStatusMint(log types.Log) (*AssetsStatusMint, error) { 1196 event := new(AssetsStatusMint) 1197 if err := _Assets.contract.UnpackLog(event, "StatusMint", log); err != nil { 1198 return nil, err 1199 } 1200 event.Raw = log 1201 return event, nil 1202 } 1203 1204 // AssetsTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Assets contract. 1205 type AssetsTransferIterator struct { 1206 Event *AssetsTransfer // Event containing the contract specifics and raw log 1207 1208 contract *bind.BoundContract // Generic contract to use for unpacking event data 1209 event string // Event name to use for unpacking event data 1210 1211 logs chan types.Log // Log channel receiving the found contract events 1212 sub ethereum.Subscription // Subscription for errors, completion and termination 1213 done bool // Whether the subscription completed delivering logs 1214 fail error // Occurred error to stop iteration 1215 } 1216 1217 // Next advances the iterator to the subsequent event, returning whether there 1218 // are any more events found. In case of a retrieval or parsing error, false is 1219 // returned and Error() can be queried for the exact failure. 1220 func (it *AssetsTransferIterator) Next() bool { 1221 // If the iterator failed, stop iterating 1222 if it.fail != nil { 1223 return false 1224 } 1225 // If the iterator completed, deliver directly whatever's available 1226 if it.done { 1227 select { 1228 case log := <-it.logs: 1229 it.Event = new(AssetsTransfer) 1230 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 1231 it.fail = err 1232 return false 1233 } 1234 it.Event.Raw = log 1235 return true 1236 1237 default: 1238 return false 1239 } 1240 } 1241 // Iterator still in progress, wait for either a data or an error event 1242 select { 1243 case log := <-it.logs: 1244 it.Event = new(AssetsTransfer) 1245 if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { 1246 it.fail = err 1247 return false 1248 } 1249 it.Event.Raw = log 1250 return true 1251 1252 case err := <-it.sub.Err(): 1253 it.done = true 1254 it.fail = err 1255 return it.Next() 1256 } 1257 } 1258 1259 // Error returns any retrieval or parsing error occurred during filtering. 1260 func (it *AssetsTransferIterator) Error() error { 1261 return it.fail 1262 } 1263 1264 // Close terminates the iteration process, releasing any pending underlying 1265 // resources. 1266 func (it *AssetsTransferIterator) Close() error { 1267 it.sub.Unsubscribe() 1268 return nil 1269 } 1270 1271 // AssetsTransfer represents a Transfer event raised by the Assets contract. 1272 type AssetsTransfer struct { 1273 From common.Address 1274 To common.Address 1275 Value *big.Int 1276 Raw types.Log // Blockchain specific contextual infos 1277 } 1278 1279 // FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. 1280 // 1281 // Solidity: event Transfer(address indexed from, address indexed to, uint256 value) 1282 func (_Assets *AssetsFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*AssetsTransferIterator, error) { 1283 1284 var fromRule []interface{} 1285 for _, fromItem := range from { 1286 fromRule = append(fromRule, fromItem) 1287 } 1288 var toRule []interface{} 1289 for _, toItem := range to { 1290 toRule = append(toRule, toItem) 1291 } 1292 1293 logs, sub, err := _Assets.contract.FilterLogs(opts, "Transfer", fromRule, toRule) 1294 if err != nil { 1295 return nil, err 1296 } 1297 return &AssetsTransferIterator{contract: _Assets.contract, event: "Transfer", logs: logs, sub: sub}, nil 1298 } 1299 1300 // WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. 1301 // 1302 // Solidity: event Transfer(address indexed from, address indexed to, uint256 value) 1303 func (_Assets *AssetsFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *AssetsTransfer, from []common.Address, to []common.Address) (event.Subscription, error) { 1304 1305 var fromRule []interface{} 1306 for _, fromItem := range from { 1307 fromRule = append(fromRule, fromItem) 1308 } 1309 var toRule []interface{} 1310 for _, toItem := range to { 1311 toRule = append(toRule, toItem) 1312 } 1313 1314 logs, sub, err := _Assets.contract.WatchLogs(opts, "Transfer", fromRule, toRule) 1315 if err != nil { 1316 return nil, err 1317 } 1318 return event.NewSubscription(func(quit <-chan struct{}) error { 1319 defer sub.Unsubscribe() 1320 for { 1321 select { 1322 case log := <-logs: 1323 // New log arrived, parse the event and forward to the user 1324 event := new(AssetsTransfer) 1325 if err := _Assets.contract.UnpackLog(event, "Transfer", log); err != nil { 1326 return err 1327 } 1328 event.Raw = log 1329 1330 select { 1331 case sink <- event: 1332 case err := <-sub.Err(): 1333 return err 1334 case <-quit: 1335 return nil 1336 } 1337 case err := <-sub.Err(): 1338 return err 1339 case <-quit: 1340 return nil 1341 } 1342 } 1343 }), nil 1344 } 1345 1346 // ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. 1347 // 1348 // Solidity: event Transfer(address indexed from, address indexed to, uint256 value) 1349 func (_Assets *AssetsFilterer) ParseTransfer(log types.Log) (*AssetsTransfer, error) { 1350 event := new(AssetsTransfer) 1351 if err := _Assets.contract.UnpackLog(event, "Transfer", log); err != nil { 1352 return nil, err 1353 } 1354 event.Raw = log 1355 return event, nil 1356 }