TokenBase

package
v0.74.10 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Base ERC20 Token

Base ERC20 Token used on Vega internal networks.

It is generated with Open Zeppelin Wizard. Apart from basic ERC20 functionality it offers:

  • Access Control based on Roles (by Open Zeppelin) - two roles: Owner and Minter,
  • Mintable feature (by Open Zeppelin) - can be called by anyone with Minter role,
  • Constructor parameters: token name, token symbol, decimals, total supply and default faucet amount,
  • faucet() function that can be called by anyone, that mints predefined amount of tokens to the caller,

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TokenBaseABI = TokenBaseMetaData.ABI

TokenBaseABI is the input ABI used to generate the binding from. Deprecated: Use TokenBaseMetaData.ABI instead.

View Source
var TokenBaseBin = TokenBaseMetaData.Bin

TokenBaseBin is the compiled bytecode used for deploying new contracts. Deprecated: Use TokenBaseMetaData.Bin instead.

View Source
var TokenBaseMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals_\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"totalSupply_\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"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\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINTER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"bridge_address\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"vega_public_keys\",\"type\":\"bytes32[]\"}],\"name\":\"admin_deposit_bulk\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"bridge_address\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"vega_public_key\",\"type\":\"bytes32\"}],\"name\":\"admin_deposit_single\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"staking_bridge_address\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"vega_public_keys\",\"type\":\"bytes32[]\"}],\"name\":\"admin_stake_bulk\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"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\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"burnEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burnFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\":[],\"name\":\"faucet\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"faucetAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"faucetCallLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasMinterRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"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\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"issue\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"burnEnabled_\",\"type\":\"bool\"}],\"name\":\"setBurnEnabled\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"faucetAmount_\",\"type\":\"uint256\"}],\"name\":\"setFaucetAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"faucetCallLimit_\",\"type\":\"uint256\"}],\"name\":\"setFaucetCallLimit\",\"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\":[],\"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\"}]",
	Bin: "0x60806040523480156200001157600080fd5b5060405162001fd838038062001fd8833981016040819052620000349162000345565b838360036200004483826200045e565b5060046200005382826200045e565b50506006805460ff191660ff8516908117909155620000759150600a6200063d565b600755620151806008556009805460ff19166001179055620000983382620000db565b620000a5600033620001c4565b620000d17f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620001c4565b505050506200066b565b6001600160a01b038216620001365760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200014a919062000655565b90915550506001600160a01b038216600090815260208190526040812080548392906200017990849062000655565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35b5050565b620001d0828262000253565b620001c05760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200020a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b505050565b60008281526005602090815260408083206001600160a01b038516845290915290205460ff165b92915050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002a857600080fd5b81516001600160401b0380821115620002c557620002c562000280565b604051601f8301601f19908116603f01168101908282118183101715620002f057620002f062000280565b816040528381526020925086838588010111156200030d57600080fd5b600091505b8382101562000331578582018301518183018401529082019062000312565b600093810190920192909252949350505050565b600080600080608085870312156200035c57600080fd5b84516001600160401b03808211156200037457600080fd5b620003828883890162000296565b955060208701519150808211156200039957600080fd5b50620003a88782880162000296565b935050604085015160ff81168114620003c057600080fd5b6060959095015193969295505050565b600181811c90821680620003e557607f821691505b6020821081036200040657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200024e57600081815260208120601f850160051c81016020861015620004355750805b601f850160051c820191505b81811015620004565782815560010162000441565b505050505050565b81516001600160401b038111156200047a576200047a62000280565b62000492816200048b8454620003d0565b846200040c565b602080601f831160018114620004ca5760008415620004b15750858301515b600019600386901b1c1916600185901b17855562000456565b600085815260208120601f198616915b82811015620004fb57888601518255948401946001909101908401620004da565b50858210156200051a5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620005815781600019048211156200056557620005656200052a565b808516156200057357918102915b93841c939080029062000545565b509250929050565b6000826200059a575060016200027a565b81620005a9575060006200027a565b8160018114620005c25760028114620005cd57620005ed565b60019150506200027a565b60ff841115620005e157620005e16200052a565b50506001821b6200027a565b5060208310610133831016604e8410600b841016171562000612575081810a6200027a565b6200061e838362000540565b80600019048211156200063557620006356200052a565b029392505050565b60006200064e60ff84168362000589565b9392505050565b808201808211156200027a576200027a6200052a565b61195d806200067b6000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c80637b2c835f11610125578063a9059cbb116100ad578063d547741f1161007c578063d547741f1461044e578063d779cae814610461578063dd62ed3e14610474578063de5f72fd146104ad578063ee496cf0146104b557600080fd5b8063a9059cbb14610400578063b777374c14610413578063bc36878e14610426578063d53913931461043957600080fd5b806391d14854116100f457806391d14854146103c157806395d89b41146103d45780639c281430146103dc578063a217fddf146103e5578063a457c2d7146103ed57600080fd5b80637b2c835f1461039357806381d2fd9c146103a6578063867904b4146103115780638f32d59b146103b957600080fd5b8063313ce567116101a857806342966c681161017757806342966c68146103245780635dc96d161461033757806361106b6b1461034457806370a082311461035757806379cc67901461038057600080fd5b8063313ce567146102d657806336568abe146102eb57806339509351146102fe57806340c10f191461031157600080fd5b806318160ddd116101e457806318160ddd1461027957806323b872dd1461028b578063248a9ca31461029e5780632f2ff15d146102c157600080fd5b806301ffc9a71461021657806306fdde031461023e578063095ea7b314610253578063099db01714610266575b600080fd5b6102296102243660046114ed565b6104be565b60405190151581526020015b60405180910390f35b6102466104f5565b604051610235919061153b565b61022961026136600461158a565b610587565b6102296102743660046115b4565b61059f565b6002545b604051908152602001610235565b6102296102993660046115cf565b6105b9565b61027d6102ac36600461160b565b60009081526005602052604090206001015490565b6102d46102cf366004611624565b6105dd565b005b60065460405160ff9091168152602001610235565b6102d46102f9366004611624565b610608565b61022961030c36600461158a565b61068b565b6102d461031f36600461158a565b6106ca565b6102d461033236600461160b565b6106ed565b6009546102299060ff1681565b6102d461035236600461160b565b61073f565b61027d6103653660046115b4565b6001600160a01b031660009081526020819052604090205490565b6102d461038e36600461158a565b61075e565b6102d46103a1366004611650565b610781565b6102d46103b436600461160b565b6107ae565b6102296107cd565b6102296103cf366004611624565b6107dd565b610246610808565b61027d60075481565b61027d600081565b6102296103fb36600461158a565b610817565b61022961040e36600461158a565b6108a9565b6102d4610421366004611672565b6108b7565b6102d46104343660046116ad565b610952565b61027d60008051602061190883398151915281565b6102d461045c366004611624565b610a52565b6102d461046f3660046116ad565b610a78565b61027d610482366004611787565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102d4610b5e565b61027d60085481565b60006001600160e01b03198216637965db0b60e01b14806104ef57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610504906117b1565b80601f0160208091040260200160405190810160405280929190818152602001828054610530906117b1565b801561057d5780601f106105525761010080835404028352916020019161057d565b820191906000526020600020905b81548152906001019060200180831161056057829003601f168201915b5050505050905090565b600033610595818585610c48565b5060019392505050565b60006104ef600080516020611908833981519152836107dd565b6000336105c7858285610d6c565b6105d2858585610dfe565b506001949350505050565b6000828152600560205260409020600101546105f98133610fcc565b6106038383611030565b505050565b6001600160a01b038116331461067d5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61068782826110b6565b5050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061059590829086906106c5908790611801565b610c48565b6000805160206119088339815191526106e38133610fcc565b610603838361111d565b60095460ff166107325760405162461bcd60e51b815260206004820152601060248201526f189d5c9b881a5cc8191a5cd8589b195960821b6044820152606401610674565b61073c33826111fc565b50565b6000805160206119088339815191526107588133610fcc565b50600855565b6000805160206119088339815191526107778133610fcc565b61060383836111fc565b60008051602061190883398151915261079a8133610fcc565b506009805460ff1916911515919091179055565b6000805160206119088339815191526107c78133610fcc565b50600755565b60006107d83361059f565b905090565b60009182526005602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060048054610504906117b1565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091908381101561089c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610674565b6105d28286868403610c48565b600033610595818585610dfe565b6000805160206119088339815191526108d08133610fcc565b6108da338561111d565b6108e4838561068b565b50604051637bb41c9960e11b815233600482015260248101859052604481018390526001600160a01b0384169063f768393290606401600060405180830381600087803b15801561093457600080fd5b505af1158015610948573d6000803e3d6000fd5b5050505050505050565b60008051602061190883398151915261096b8133610fcc565b600082518561097a9190611814565b9050610986338261111d565b610990848261068b565b5060005b83518160ff161015610a4a57846001600160a01b031663f76839323388878560ff16815181106109c6576109c6611833565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b03909316600484015260248301919091526044820152606401600060405180830381600087803b158015610a1f57600080fd5b505af1158015610a33573d6000803e3d6000fd5b505050508080610a4290611849565b915050610994565b505050505050565b600082815260056020526040902060010154610a6e8133610fcc565b61060383836110b6565b600080516020611908833981519152610a918133610fcc565b6000825185610aa09190611814565b9050610aac338261111d565b610ab6848261068b565b5060005b83518160ff161015610a4a57846001600160a01b03166383c592cf87868460ff1681518110610aeb57610aeb611833565b60200260200101516040518363ffffffff1660e01b8152600401610b19929190918252602082015260400190565b600060405180830381600087803b158015610b3357600080fd5b505af1158015610b47573d6000803e3d6000fd5b505050508080610b5690611849565b915050610aba565b600060075411610ba55760405162461bcd60e51b815260206004820152601260248201527119985d58d95d081a5cc8191a5cd8589b195960721b6044820152606401610674565b600854336000908152600a60205260409020544291610bc391611801565b1115610c285760405162461bcd60e51b815260206004820152602e60248201527f6d75737420776169742066617563657443616c6c4c696d69742062657477656560448201526d6e206661756365742063616c6c7360901b6064820152608401610674565b336000818152600a60205260409020429055610c469060075461111d565b565b6001600160a01b038316610caa5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610674565b6001600160a01b038216610d0b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610674565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610df85781811015610deb5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610674565b610df88484848403610c48565b50505050565b6001600160a01b038316610e625760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610674565b6001600160a01b038216610ec45760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610674565b6001600160a01b03831660009081526020819052604090205481811015610f3c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610674565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610f73908490611801565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610fbf91815260200190565b60405180910390a3610df8565b610fd682826107dd565b61068757610fee816001600160a01b0316601461134a565b610ff983602061134a565b60405160200161100a929190611868565b60408051601f198184030181529082905262461bcd60e51b82526106749160040161153b565b61103a82826107dd565b6106875760008281526005602090815260408083206001600160a01b03851684529091529020805460ff191660011790556110723390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6110c082826107dd565b156106875760008281526005602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b0382166111735760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610674565b80600260008282546111859190611801565b90915550506001600160a01b038216600090815260208190526040812080548392906111b2908490611801565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b03821661125c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610674565b6001600160a01b038216600090815260208190526040902054818110156112d05760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610674565b6001600160a01b03831660009081526020819052604081208383039055600280548492906112ff9084906118dd565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60606000611359836002611814565b611364906002611801565b67ffffffffffffffff81111561137c5761137c611697565b6040519080825280601f01601f1916602001820160405280156113a6576020820181803683370190505b509050600360fc1b816000815181106113c1576113c1611833565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106113f0576113f0611833565b60200101906001600160f81b031916908160001a9053506000611414846002611814565b61141f906001611801565b90505b6001811115611497576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061145357611453611833565b1a60f81b82828151811061146957611469611833565b60200101906001600160f81b031916908160001a90535060049490941c93611490816118f0565b9050611422565b5083156114e65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610674565b9392505050565b6000602082840312156114ff57600080fd5b81356001600160e01b0319811681146114e657600080fd5b60005b8381101561153257818101518382015260200161151a565b50506000910152565b602081526000825180602084015261155a816040850160208701611517565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461158557600080fd5b919050565b6000806040838503121561159d57600080fd5b6115a68361156e565b946020939093013593505050565b6000602082840312156115c657600080fd5b6114e68261156e565b6000806000606084860312156115e457600080fd5b6115ed8461156e565b92506115fb6020850161156e565b9150604084013590509250925092565b60006020828403121561161d57600080fd5b5035919050565b6000806040838503121561163757600080fd5b823591506116476020840161156e565b90509250929050565b60006020828403121561166257600080fd5b813580151581146114e657600080fd5b60008060006060848603121561168757600080fd5b833592506115fb6020850161156e565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156116c257600080fd5b8335925060206116d381860161156e565b9250604085013567ffffffffffffffff808211156116f057600080fd5b818701915087601f83011261170457600080fd5b81358181111561171657611716611697565b8060051b604051601f19603f8301168101818110858211171561173b5761173b611697565b60405291825284820192508381018501918a83111561175957600080fd5b938501935b828510156117775784358452938501939285019261175e565b8096505050505050509250925092565b6000806040838503121561179a57600080fd5b6117a38361156e565b91506116476020840161156e565b600181811c908216806117c557607f821691505b6020821081036117e557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156104ef576104ef6117eb565b600081600019048311821515161561182e5761182e6117eb565b500290565b634e487b7160e01b600052603260045260246000fd5b600060ff821660ff810361185f5761185f6117eb565b60010192915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516118a0816017850160208801611517565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516118d1816028840160208801611517565b01602801949350505050565b818103818111156104ef576104ef6117eb565b6000816118ff576118ff6117eb565b50600019019056fe9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220464c471f75d6b4dbc8345814976a24e12cb04d260142537e957635f696775fe364736f6c63430008100033",
}

TokenBaseMetaData contains all meta data concerning the TokenBase contract.

Functions

This section is empty.

Types

type TokenBase

type TokenBase struct {
	TokenBaseCaller     // Read-only binding to the contract
	TokenBaseTransactor // Write-only binding to the contract
	TokenBaseFilterer   // Log filterer for contract events
}

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

func DeployTokenBase

func DeployTokenBase(auth *bind.TransactOpts, backend bind.ContractBackend, name_ string, symbol_ string, decimals_ uint8, totalSupply_ *big.Int) (common.Address, *types.Transaction, *TokenBase, error)

DeployTokenBase deploys a new Ethereum contract, binding an instance of TokenBase to it.

func NewTokenBase

func NewTokenBase(address common.Address, backend bind.ContractBackend) (*TokenBase, error)

NewTokenBase creates a new instance of TokenBase, bound to a specific deployed contract.

type TokenBaseApproval

type TokenBaseApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

TokenBaseApproval represents a Approval event raised by the TokenBase contract.

type TokenBaseApprovalIterator

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

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

func (*TokenBaseApprovalIterator) Close

func (it *TokenBaseApprovalIterator) Close() error

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

func (*TokenBaseApprovalIterator) Error

func (it *TokenBaseApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenBaseApprovalIterator) Next

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

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

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

func NewTokenBaseCaller

func NewTokenBaseCaller(address common.Address, caller bind.ContractCaller) (*TokenBaseCaller, error)

NewTokenBaseCaller creates a new read-only instance of TokenBase, bound to a specific deployed contract.

func (*TokenBaseCaller) Allowance

func (_TokenBase *TokenBaseCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*TokenBaseCaller) BalanceOf

func (_TokenBase *TokenBaseCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

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

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

func (*TokenBaseCaller) BurnEnabled

func (_TokenBase *TokenBaseCaller) BurnEnabled(opts *bind.CallOpts) (bool, error)

BurnEnabled is a free data retrieval call binding the contract method 0x5dc96d16.

Solidity: function burnEnabled() view returns(bool)

func (*TokenBaseCaller) DEFAULTADMINROLE

func (_TokenBase *TokenBaseCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*TokenBaseCaller) Decimals

func (_TokenBase *TokenBaseCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*TokenBaseCaller) FaucetAmount

func (_TokenBase *TokenBaseCaller) FaucetAmount(opts *bind.CallOpts) (*big.Int, error)

FaucetAmount is a free data retrieval call binding the contract method 0x9c281430.

Solidity: function faucetAmount() view returns(uint256)

func (*TokenBaseCaller) FaucetCallLimit

func (_TokenBase *TokenBaseCaller) FaucetCallLimit(opts *bind.CallOpts) (*big.Int, error)

FaucetCallLimit is a free data retrieval call binding the contract method 0xee496cf0.

Solidity: function faucetCallLimit() view returns(uint256)

func (*TokenBaseCaller) GetRoleAdmin

func (_TokenBase *TokenBaseCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*TokenBaseCaller) HasMinterRole

func (_TokenBase *TokenBaseCaller) HasMinterRole(opts *bind.CallOpts, account common.Address) (bool, error)

HasMinterRole is a free data retrieval call binding the contract method 0x099db017.

Solidity: function hasMinterRole(address account) view returns(bool)

func (*TokenBaseCaller) HasRole

func (_TokenBase *TokenBaseCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*TokenBaseCaller) IsOwner

func (_TokenBase *TokenBaseCaller) IsOwner(opts *bind.CallOpts) (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*TokenBaseCaller) MINTERROLE

func (_TokenBase *TokenBaseCaller) MINTERROLE(opts *bind.CallOpts) ([32]byte, error)

MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.

Solidity: function MINTER_ROLE() view returns(bytes32)

func (*TokenBaseCaller) Name

func (_TokenBase *TokenBaseCaller) 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 (*TokenBaseCaller) SupportsInterface

func (_TokenBase *TokenBaseCaller) 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 (*TokenBaseCaller) Symbol

func (_TokenBase *TokenBaseCaller) 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 (*TokenBaseCaller) TotalSupply

func (_TokenBase *TokenBaseCaller) 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)

type TokenBaseCallerRaw

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

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

func (*TokenBaseCallerRaw) Call

func (_TokenBase *TokenBaseCallerRaw) 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 TokenBaseCallerSession

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

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

func (*TokenBaseCallerSession) Allowance

func (_TokenBase *TokenBaseCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*TokenBaseCallerSession) BalanceOf

func (_TokenBase *TokenBaseCallerSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*TokenBaseCallerSession) BurnEnabled

func (_TokenBase *TokenBaseCallerSession) BurnEnabled() (bool, error)

BurnEnabled is a free data retrieval call binding the contract method 0x5dc96d16.

Solidity: function burnEnabled() view returns(bool)

func (*TokenBaseCallerSession) DEFAULTADMINROLE

func (_TokenBase *TokenBaseCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*TokenBaseCallerSession) Decimals

func (_TokenBase *TokenBaseCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*TokenBaseCallerSession) FaucetAmount

func (_TokenBase *TokenBaseCallerSession) FaucetAmount() (*big.Int, error)

FaucetAmount is a free data retrieval call binding the contract method 0x9c281430.

Solidity: function faucetAmount() view returns(uint256)

func (*TokenBaseCallerSession) FaucetCallLimit

func (_TokenBase *TokenBaseCallerSession) FaucetCallLimit() (*big.Int, error)

FaucetCallLimit is a free data retrieval call binding the contract method 0xee496cf0.

Solidity: function faucetCallLimit() view returns(uint256)

func (*TokenBaseCallerSession) GetRoleAdmin

func (_TokenBase *TokenBaseCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*TokenBaseCallerSession) HasMinterRole

func (_TokenBase *TokenBaseCallerSession) HasMinterRole(account common.Address) (bool, error)

HasMinterRole is a free data retrieval call binding the contract method 0x099db017.

Solidity: function hasMinterRole(address account) view returns(bool)

func (*TokenBaseCallerSession) HasRole

func (_TokenBase *TokenBaseCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*TokenBaseCallerSession) IsOwner

func (_TokenBase *TokenBaseCallerSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*TokenBaseCallerSession) MINTERROLE

func (_TokenBase *TokenBaseCallerSession) MINTERROLE() ([32]byte, error)

MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.

Solidity: function MINTER_ROLE() view returns(bytes32)

func (*TokenBaseCallerSession) Name

func (_TokenBase *TokenBaseCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*TokenBaseCallerSession) SupportsInterface

func (_TokenBase *TokenBaseCallerSession) 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 (*TokenBaseCallerSession) Symbol

func (_TokenBase *TokenBaseCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*TokenBaseCallerSession) TotalSupply

func (_TokenBase *TokenBaseCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type TokenBaseFilterer

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

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

func NewTokenBaseFilterer

func NewTokenBaseFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenBaseFilterer, error)

NewTokenBaseFilterer creates a new log filterer instance of TokenBase, bound to a specific deployed contract.

func (*TokenBaseFilterer) FilterApproval

func (_TokenBase *TokenBaseFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*TokenBaseApprovalIterator, error)

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

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*TokenBaseFilterer) FilterRoleAdminChanged

func (_TokenBase *TokenBaseFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*TokenBaseRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*TokenBaseFilterer) FilterRoleGranted

func (_TokenBase *TokenBaseFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*TokenBaseRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*TokenBaseFilterer) FilterRoleRevoked

func (_TokenBase *TokenBaseFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*TokenBaseRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*TokenBaseFilterer) FilterTransfer

func (_TokenBase *TokenBaseFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*TokenBaseTransferIterator, error)

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

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

func (*TokenBaseFilterer) ParseApproval

func (_TokenBase *TokenBaseFilterer) ParseApproval(log types.Log) (*TokenBaseApproval, error)

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

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*TokenBaseFilterer) ParseRoleAdminChanged

func (_TokenBase *TokenBaseFilterer) ParseRoleAdminChanged(log types.Log) (*TokenBaseRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*TokenBaseFilterer) ParseRoleGranted

func (_TokenBase *TokenBaseFilterer) ParseRoleGranted(log types.Log) (*TokenBaseRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*TokenBaseFilterer) ParseRoleRevoked

func (_TokenBase *TokenBaseFilterer) ParseRoleRevoked(log types.Log) (*TokenBaseRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*TokenBaseFilterer) ParseTransfer

func (_TokenBase *TokenBaseFilterer) ParseTransfer(log types.Log) (*TokenBaseTransfer, error)

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

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

func (*TokenBaseFilterer) WatchApproval

func (_TokenBase *TokenBaseFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenBaseApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

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

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*TokenBaseFilterer) WatchRoleAdminChanged

func (_TokenBase *TokenBaseFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *TokenBaseRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*TokenBaseFilterer) WatchRoleGranted

func (_TokenBase *TokenBaseFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *TokenBaseRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*TokenBaseFilterer) WatchRoleRevoked

func (_TokenBase *TokenBaseFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *TokenBaseRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*TokenBaseFilterer) WatchTransfer

func (_TokenBase *TokenBaseFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenBaseTransfer, from []common.Address, to []common.Address) (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 value)

type TokenBaseRaw

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

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

func (*TokenBaseRaw) Call

func (_TokenBase *TokenBaseRaw) 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 (*TokenBaseRaw) Transact

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

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

func (*TokenBaseRaw) Transfer

func (_TokenBase *TokenBaseRaw) 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 TokenBaseRoleAdminChanged

type TokenBaseRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

TokenBaseRoleAdminChanged represents a RoleAdminChanged event raised by the TokenBase contract.

type TokenBaseRoleAdminChangedIterator

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

TokenBaseRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the TokenBase contract.

func (*TokenBaseRoleAdminChangedIterator) Close

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

func (*TokenBaseRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenBaseRoleAdminChangedIterator) 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 TokenBaseRoleGranted

type TokenBaseRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

TokenBaseRoleGranted represents a RoleGranted event raised by the TokenBase contract.

type TokenBaseRoleGrantedIterator

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

TokenBaseRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the TokenBase contract.

func (*TokenBaseRoleGrantedIterator) Close

func (it *TokenBaseRoleGrantedIterator) Close() error

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

func (*TokenBaseRoleGrantedIterator) Error

func (it *TokenBaseRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenBaseRoleGrantedIterator) 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 TokenBaseRoleRevoked

type TokenBaseRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

TokenBaseRoleRevoked represents a RoleRevoked event raised by the TokenBase contract.

type TokenBaseRoleRevokedIterator

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

TokenBaseRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the TokenBase contract.

func (*TokenBaseRoleRevokedIterator) Close

func (it *TokenBaseRoleRevokedIterator) Close() error

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

func (*TokenBaseRoleRevokedIterator) Error

func (it *TokenBaseRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenBaseRoleRevokedIterator) 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 TokenBaseSession

type TokenBaseSession struct {
	Contract     *TokenBase        // 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
}

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

func (*TokenBaseSession) AdminDepositBulk

func (_TokenBase *TokenBaseSession) AdminDepositBulk(amount *big.Int, bridge_address common.Address, vega_public_keys [][32]byte) (*types.Transaction, error)

AdminDepositBulk is a paid mutator transaction binding the contract method 0xbc36878e.

Solidity: function admin_deposit_bulk(uint256 amount, address bridge_address, bytes32[] vega_public_keys) returns()

func (*TokenBaseSession) AdminDepositSingle

func (_TokenBase *TokenBaseSession) AdminDepositSingle(amount *big.Int, bridge_address common.Address, vega_public_key [32]byte) (*types.Transaction, error)

AdminDepositSingle is a paid mutator transaction binding the contract method 0xb777374c.

Solidity: function admin_deposit_single(uint256 amount, address bridge_address, bytes32 vega_public_key) returns()

func (*TokenBaseSession) AdminStakeBulk

func (_TokenBase *TokenBaseSession) AdminStakeBulk(amount *big.Int, staking_bridge_address common.Address, vega_public_keys [][32]byte) (*types.Transaction, error)

AdminStakeBulk is a paid mutator transaction binding the contract method 0xd779cae8.

Solidity: function admin_stake_bulk(uint256 amount, address staking_bridge_address, bytes32[] vega_public_keys) returns()

func (*TokenBaseSession) Allowance

func (_TokenBase *TokenBaseSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*TokenBaseSession) Approve

func (_TokenBase *TokenBaseSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*TokenBaseSession) BalanceOf

func (_TokenBase *TokenBaseSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*TokenBaseSession) Burn

func (_TokenBase *TokenBaseSession) Burn(amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 amount) returns()

func (*TokenBaseSession) BurnEnabled

func (_TokenBase *TokenBaseSession) BurnEnabled() (bool, error)

BurnEnabled is a free data retrieval call binding the contract method 0x5dc96d16.

Solidity: function burnEnabled() view returns(bool)

func (*TokenBaseSession) BurnFrom

func (_TokenBase *TokenBaseSession) BurnFrom(account common.Address, amount *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.

Solidity: function burnFrom(address account, uint256 amount) returns()

func (*TokenBaseSession) DEFAULTADMINROLE

func (_TokenBase *TokenBaseSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*TokenBaseSession) Decimals

func (_TokenBase *TokenBaseSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*TokenBaseSession) DecreaseAllowance

func (_TokenBase *TokenBaseSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*TokenBaseSession) Faucet

func (_TokenBase *TokenBaseSession) Faucet() (*types.Transaction, error)

Faucet is a paid mutator transaction binding the contract method 0xde5f72fd.

Solidity: function faucet() returns()

func (*TokenBaseSession) FaucetAmount

func (_TokenBase *TokenBaseSession) FaucetAmount() (*big.Int, error)

FaucetAmount is a free data retrieval call binding the contract method 0x9c281430.

Solidity: function faucetAmount() view returns(uint256)

func (*TokenBaseSession) FaucetCallLimit

func (_TokenBase *TokenBaseSession) FaucetCallLimit() (*big.Int, error)

FaucetCallLimit is a free data retrieval call binding the contract method 0xee496cf0.

Solidity: function faucetCallLimit() view returns(uint256)

func (*TokenBaseSession) GetRoleAdmin

func (_TokenBase *TokenBaseSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*TokenBaseSession) GrantRole

func (_TokenBase *TokenBaseSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*TokenBaseSession) HasMinterRole

func (_TokenBase *TokenBaseSession) HasMinterRole(account common.Address) (bool, error)

HasMinterRole is a free data retrieval call binding the contract method 0x099db017.

Solidity: function hasMinterRole(address account) view returns(bool)

func (*TokenBaseSession) HasRole

func (_TokenBase *TokenBaseSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*TokenBaseSession) IncreaseAllowance

func (_TokenBase *TokenBaseSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*TokenBaseSession) IsOwner

func (_TokenBase *TokenBaseSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*TokenBaseSession) Issue

func (_TokenBase *TokenBaseSession) Issue(account common.Address, value *big.Int) (*types.Transaction, error)

Issue is a paid mutator transaction binding the contract method 0x867904b4.

Solidity: function issue(address account, uint256 value) returns()

func (*TokenBaseSession) MINTERROLE

func (_TokenBase *TokenBaseSession) MINTERROLE() ([32]byte, error)

MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.

Solidity: function MINTER_ROLE() view returns(bytes32)

func (*TokenBaseSession) Mint

func (_TokenBase *TokenBaseSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function mint(address to, uint256 amount) returns()

func (*TokenBaseSession) Name

func (_TokenBase *TokenBaseSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*TokenBaseSession) RenounceRole

func (_TokenBase *TokenBaseSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*TokenBaseSession) RevokeRole

func (_TokenBase *TokenBaseSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*TokenBaseSession) SetBurnEnabled

func (_TokenBase *TokenBaseSession) SetBurnEnabled(burnEnabled_ bool) (*types.Transaction, error)

SetBurnEnabled is a paid mutator transaction binding the contract method 0x7b2c835f.

Solidity: function setBurnEnabled(bool burnEnabled_) returns()

func (*TokenBaseSession) SetFaucetAmount

func (_TokenBase *TokenBaseSession) SetFaucetAmount(faucetAmount_ *big.Int) (*types.Transaction, error)

SetFaucetAmount is a paid mutator transaction binding the contract method 0x81d2fd9c.

Solidity: function setFaucetAmount(uint256 faucetAmount_) returns()

func (*TokenBaseSession) SetFaucetCallLimit

func (_TokenBase *TokenBaseSession) SetFaucetCallLimit(faucetCallLimit_ *big.Int) (*types.Transaction, error)

SetFaucetCallLimit is a paid mutator transaction binding the contract method 0x61106b6b.

Solidity: function setFaucetCallLimit(uint256 faucetCallLimit_) returns()

func (*TokenBaseSession) SupportsInterface

func (_TokenBase *TokenBaseSession) 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 (*TokenBaseSession) Symbol

func (_TokenBase *TokenBaseSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*TokenBaseSession) TotalSupply

func (_TokenBase *TokenBaseSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*TokenBaseSession) Transfer

func (_TokenBase *TokenBaseSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*TokenBaseSession) TransferFrom

func (_TokenBase *TokenBaseSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

type TokenBaseTransactor

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

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

func NewTokenBaseTransactor

func NewTokenBaseTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenBaseTransactor, error)

NewTokenBaseTransactor creates a new write-only instance of TokenBase, bound to a specific deployed contract.

func (*TokenBaseTransactor) AdminDepositBulk

func (_TokenBase *TokenBaseTransactor) AdminDepositBulk(opts *bind.TransactOpts, amount *big.Int, bridge_address common.Address, vega_public_keys [][32]byte) (*types.Transaction, error)

AdminDepositBulk is a paid mutator transaction binding the contract method 0xbc36878e.

Solidity: function admin_deposit_bulk(uint256 amount, address bridge_address, bytes32[] vega_public_keys) returns()

func (*TokenBaseTransactor) AdminDepositSingle

func (_TokenBase *TokenBaseTransactor) AdminDepositSingle(opts *bind.TransactOpts, amount *big.Int, bridge_address common.Address, vega_public_key [32]byte) (*types.Transaction, error)

AdminDepositSingle is a paid mutator transaction binding the contract method 0xb777374c.

Solidity: function admin_deposit_single(uint256 amount, address bridge_address, bytes32 vega_public_key) returns()

func (*TokenBaseTransactor) AdminStakeBulk

func (_TokenBase *TokenBaseTransactor) AdminStakeBulk(opts *bind.TransactOpts, amount *big.Int, staking_bridge_address common.Address, vega_public_keys [][32]byte) (*types.Transaction, error)

AdminStakeBulk is a paid mutator transaction binding the contract method 0xd779cae8.

Solidity: function admin_stake_bulk(uint256 amount, address staking_bridge_address, bytes32[] vega_public_keys) returns()

func (*TokenBaseTransactor) Approve

func (_TokenBase *TokenBaseTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*TokenBaseTransactor) Burn

func (_TokenBase *TokenBaseTransactor) Burn(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 amount) returns()

func (*TokenBaseTransactor) BurnFrom

func (_TokenBase *TokenBaseTransactor) BurnFrom(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.

Solidity: function burnFrom(address account, uint256 amount) returns()

func (*TokenBaseTransactor) DecreaseAllowance

func (_TokenBase *TokenBaseTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*TokenBaseTransactor) Faucet

func (_TokenBase *TokenBaseTransactor) Faucet(opts *bind.TransactOpts) (*types.Transaction, error)

Faucet is a paid mutator transaction binding the contract method 0xde5f72fd.

Solidity: function faucet() returns()

func (*TokenBaseTransactor) GrantRole

func (_TokenBase *TokenBaseTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*TokenBaseTransactor) IncreaseAllowance

func (_TokenBase *TokenBaseTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*TokenBaseTransactor) Issue

func (_TokenBase *TokenBaseTransactor) Issue(opts *bind.TransactOpts, account common.Address, value *big.Int) (*types.Transaction, error)

Issue is a paid mutator transaction binding the contract method 0x867904b4.

Solidity: function issue(address account, uint256 value) returns()

func (*TokenBaseTransactor) Mint

func (_TokenBase *TokenBaseTransactor) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function mint(address to, uint256 amount) returns()

func (*TokenBaseTransactor) RenounceRole

func (_TokenBase *TokenBaseTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*TokenBaseTransactor) RevokeRole

func (_TokenBase *TokenBaseTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*TokenBaseTransactor) SetBurnEnabled

func (_TokenBase *TokenBaseTransactor) SetBurnEnabled(opts *bind.TransactOpts, burnEnabled_ bool) (*types.Transaction, error)

SetBurnEnabled is a paid mutator transaction binding the contract method 0x7b2c835f.

Solidity: function setBurnEnabled(bool burnEnabled_) returns()

func (*TokenBaseTransactor) SetFaucetAmount

func (_TokenBase *TokenBaseTransactor) SetFaucetAmount(opts *bind.TransactOpts, faucetAmount_ *big.Int) (*types.Transaction, error)

SetFaucetAmount is a paid mutator transaction binding the contract method 0x81d2fd9c.

Solidity: function setFaucetAmount(uint256 faucetAmount_) returns()

func (*TokenBaseTransactor) SetFaucetCallLimit

func (_TokenBase *TokenBaseTransactor) SetFaucetCallLimit(opts *bind.TransactOpts, faucetCallLimit_ *big.Int) (*types.Transaction, error)

SetFaucetCallLimit is a paid mutator transaction binding the contract method 0x61106b6b.

Solidity: function setFaucetCallLimit(uint256 faucetCallLimit_) returns()

func (*TokenBaseTransactor) Transfer

func (_TokenBase *TokenBaseTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*TokenBaseTransactor) TransferFrom

func (_TokenBase *TokenBaseTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

type TokenBaseTransactorRaw

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

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

func (*TokenBaseTransactorRaw) Transact

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

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

func (*TokenBaseTransactorRaw) Transfer

func (_TokenBase *TokenBaseTransactorRaw) 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 TokenBaseTransactorSession

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

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

func (*TokenBaseTransactorSession) AdminDepositBulk

func (_TokenBase *TokenBaseTransactorSession) AdminDepositBulk(amount *big.Int, bridge_address common.Address, vega_public_keys [][32]byte) (*types.Transaction, error)

AdminDepositBulk is a paid mutator transaction binding the contract method 0xbc36878e.

Solidity: function admin_deposit_bulk(uint256 amount, address bridge_address, bytes32[] vega_public_keys) returns()

func (*TokenBaseTransactorSession) AdminDepositSingle

func (_TokenBase *TokenBaseTransactorSession) AdminDepositSingle(amount *big.Int, bridge_address common.Address, vega_public_key [32]byte) (*types.Transaction, error)

AdminDepositSingle is a paid mutator transaction binding the contract method 0xb777374c.

Solidity: function admin_deposit_single(uint256 amount, address bridge_address, bytes32 vega_public_key) returns()

func (*TokenBaseTransactorSession) AdminStakeBulk

func (_TokenBase *TokenBaseTransactorSession) AdminStakeBulk(amount *big.Int, staking_bridge_address common.Address, vega_public_keys [][32]byte) (*types.Transaction, error)

AdminStakeBulk is a paid mutator transaction binding the contract method 0xd779cae8.

Solidity: function admin_stake_bulk(uint256 amount, address staking_bridge_address, bytes32[] vega_public_keys) returns()

func (*TokenBaseTransactorSession) Approve

func (_TokenBase *TokenBaseTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*TokenBaseTransactorSession) Burn

func (_TokenBase *TokenBaseTransactorSession) Burn(amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 amount) returns()

func (*TokenBaseTransactorSession) BurnFrom

func (_TokenBase *TokenBaseTransactorSession) BurnFrom(account common.Address, amount *big.Int) (*types.Transaction, error)

BurnFrom is a paid mutator transaction binding the contract method 0x79cc6790.

Solidity: function burnFrom(address account, uint256 amount) returns()

func (*TokenBaseTransactorSession) DecreaseAllowance

func (_TokenBase *TokenBaseTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*TokenBaseTransactorSession) Faucet

func (_TokenBase *TokenBaseTransactorSession) Faucet() (*types.Transaction, error)

Faucet is a paid mutator transaction binding the contract method 0xde5f72fd.

Solidity: function faucet() returns()

func (*TokenBaseTransactorSession) GrantRole

func (_TokenBase *TokenBaseTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*TokenBaseTransactorSession) IncreaseAllowance

func (_TokenBase *TokenBaseTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*TokenBaseTransactorSession) Issue

func (_TokenBase *TokenBaseTransactorSession) Issue(account common.Address, value *big.Int) (*types.Transaction, error)

Issue is a paid mutator transaction binding the contract method 0x867904b4.

Solidity: function issue(address account, uint256 value) returns()

func (*TokenBaseTransactorSession) Mint

func (_TokenBase *TokenBaseTransactorSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function mint(address to, uint256 amount) returns()

func (*TokenBaseTransactorSession) RenounceRole

func (_TokenBase *TokenBaseTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*TokenBaseTransactorSession) RevokeRole

func (_TokenBase *TokenBaseTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*TokenBaseTransactorSession) SetBurnEnabled

func (_TokenBase *TokenBaseTransactorSession) SetBurnEnabled(burnEnabled_ bool) (*types.Transaction, error)

SetBurnEnabled is a paid mutator transaction binding the contract method 0x7b2c835f.

Solidity: function setBurnEnabled(bool burnEnabled_) returns()

func (*TokenBaseTransactorSession) SetFaucetAmount

func (_TokenBase *TokenBaseTransactorSession) SetFaucetAmount(faucetAmount_ *big.Int) (*types.Transaction, error)

SetFaucetAmount is a paid mutator transaction binding the contract method 0x81d2fd9c.

Solidity: function setFaucetAmount(uint256 faucetAmount_) returns()

func (*TokenBaseTransactorSession) SetFaucetCallLimit

func (_TokenBase *TokenBaseTransactorSession) SetFaucetCallLimit(faucetCallLimit_ *big.Int) (*types.Transaction, error)

SetFaucetCallLimit is a paid mutator transaction binding the contract method 0x61106b6b.

Solidity: function setFaucetCallLimit(uint256 faucetCallLimit_) returns()

func (*TokenBaseTransactorSession) Transfer

func (_TokenBase *TokenBaseTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*TokenBaseTransactorSession) TransferFrom

func (_TokenBase *TokenBaseTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

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

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

type TokenBaseTransfer

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

TokenBaseTransfer represents a Transfer event raised by the TokenBase contract.

type TokenBaseTransferIterator

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

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

func (*TokenBaseTransferIterator) Close

func (it *TokenBaseTransferIterator) Close() error

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

func (*TokenBaseTransferIterator) Error

func (it *TokenBaseTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenBaseTransferIterator) Next

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