Documentation ¶
Index ¶
- Constants
- Variables
- func Auth(client *ethclient.Client, cfg *MattsuCoinClientConfig) (*bind.TransactOpts, error)
- func Buy(address string, api MattsuCoinAPI) (*big.Int, error)
- type MattsuCoin
- func ClientAndInstance(cfg *MattsuCoinClientConfig) (*ethclient.Client, *MattsuCoin, error)
- func DeployMattsuCoin(auth *bind.TransactOpts, backend bind.ContractBackend, initialSupply *big.Int, ...) (common.Address, *types.Transaction, *MattsuCoin, error)
- func NewMattsuCoin(address common.Address, backend bind.ContractBackend) (*MattsuCoin, error)
- type MattsuCoinAPI
- type MattsuCoinAPIImpl
- func (api *MattsuCoinAPIImpl) Burn(to common.Address, amount *big.Int) (Transaction, error)
- func (api *MattsuCoinAPIImpl) BuyLatestEthUsd() (Transaction, error)
- func (api *MattsuCoinAPIImpl) Mint(to common.Address, amount *big.Int) (Transaction, error)
- func (api *MattsuCoinAPIImpl) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- type MattsuCoinApproval
- type MattsuCoinApprovalIterator
- type MattsuCoinBuyEthUsd
- type MattsuCoinBuyEthUsdIterator
- type MattsuCoinCaller
- func (_MattsuCoin *MattsuCoinCaller) ADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_MattsuCoin *MattsuCoinCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
- func (_MattsuCoin *MattsuCoinCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)
- func (_MattsuCoin *MattsuCoinCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_MattsuCoin *MattsuCoinCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_MattsuCoin *MattsuCoinCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (_MattsuCoin *MattsuCoinCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
- func (_MattsuCoin *MattsuCoinCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
- func (_MattsuCoin *MattsuCoinCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (_MattsuCoin *MattsuCoinCaller) Name(opts *bind.CallOpts) (string, error)
- func (_MattsuCoin *MattsuCoinCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_MattsuCoin *MattsuCoinCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- type MattsuCoinCallerRaw
- type MattsuCoinCallerSession
- func (_MattsuCoin *MattsuCoinCallerSession) ADMINROLE() ([32]byte, error)
- func (_MattsuCoin *MattsuCoinCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_MattsuCoin *MattsuCoinCallerSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_MattsuCoin *MattsuCoinCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_MattsuCoin *MattsuCoinCallerSession) Decimals() (uint8, error)
- func (_MattsuCoin *MattsuCoinCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_MattsuCoin *MattsuCoinCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_MattsuCoin *MattsuCoinCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_MattsuCoin *MattsuCoinCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_MattsuCoin *MattsuCoinCallerSession) Name() (string, error)
- func (_MattsuCoin *MattsuCoinCallerSession) Symbol() (string, error)
- func (_MattsuCoin *MattsuCoinCallerSession) TotalSupply() (*big.Int, error)
- type MattsuCoinClientConfig
- type MattsuCoinFilterer
- func (_MattsuCoin *MattsuCoinFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*MattsuCoinApprovalIterator, error)
- func (_MattsuCoin *MattsuCoinFilterer) FilterBuyEthUsd(opts *bind.FilterOpts, buyer []common.Address) (*MattsuCoinBuyEthUsdIterator, error)
- func (_MattsuCoin *MattsuCoinFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*MattsuCoinRoleAdminChangedIterator, error)
- func (_MattsuCoin *MattsuCoinFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*MattsuCoinRoleGrantedIterator, error)
- func (_MattsuCoin *MattsuCoinFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*MattsuCoinRoleRevokedIterator, error)
- func (_MattsuCoin *MattsuCoinFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*MattsuCoinTransferIterator, error)
- func (_MattsuCoin *MattsuCoinFilterer) ParseApproval(log types.Log) (*MattsuCoinApproval, error)
- func (_MattsuCoin *MattsuCoinFilterer) ParseBuyEthUsd(log types.Log) (*MattsuCoinBuyEthUsd, error)
- func (_MattsuCoin *MattsuCoinFilterer) ParseRoleAdminChanged(log types.Log) (*MattsuCoinRoleAdminChanged, error)
- func (_MattsuCoin *MattsuCoinFilterer) ParseRoleGranted(log types.Log) (*MattsuCoinRoleGranted, error)
- func (_MattsuCoin *MattsuCoinFilterer) ParseRoleRevoked(log types.Log) (*MattsuCoinRoleRevoked, error)
- func (_MattsuCoin *MattsuCoinFilterer) ParseTransfer(log types.Log) (*MattsuCoinTransfer, error)
- func (_MattsuCoin *MattsuCoinFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MattsuCoinApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_MattsuCoin *MattsuCoinFilterer) WatchBuyEthUsd(opts *bind.WatchOpts, sink chan<- *MattsuCoinBuyEthUsd, buyer []common.Address) (event.Subscription, error)
- func (_MattsuCoin *MattsuCoinFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *MattsuCoinRoleAdminChanged, role [][32]byte, ...) (event.Subscription, error)
- func (_MattsuCoin *MattsuCoinFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *MattsuCoinRoleGranted, role [][32]byte, ...) (event.Subscription, error)
- func (_MattsuCoin *MattsuCoinFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *MattsuCoinRoleRevoked, role [][32]byte, ...) (event.Subscription, error)
- func (_MattsuCoin *MattsuCoinFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *MattsuCoinTransfer, from []common.Address, ...) (event.Subscription, error)
- type MattsuCoinRaw
- func (_MattsuCoin *MattsuCoinRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_MattsuCoin *MattsuCoinRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type MattsuCoinRoleAdminChanged
- type MattsuCoinRoleAdminChangedIterator
- type MattsuCoinRoleGranted
- type MattsuCoinRoleGrantedIterator
- type MattsuCoinRoleRevoked
- type MattsuCoinRoleRevokedIterator
- type MattsuCoinSession
- func (_MattsuCoin *MattsuCoinSession) ADMINROLE() ([32]byte, error)
- func (_MattsuCoin *MattsuCoinSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_MattsuCoin *MattsuCoinSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinSession) BalanceOf(account common.Address) (*big.Int, error)
- func (_MattsuCoin *MattsuCoinSession) Burn(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinSession) BuyLatestEthUsd() (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_MattsuCoin *MattsuCoinSession) Decimals() (uint8, error)
- func (_MattsuCoin *MattsuCoinSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_MattsuCoin *MattsuCoinSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_MattsuCoin *MattsuCoinSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_MattsuCoin *MattsuCoinSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_MattsuCoin *MattsuCoinSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinSession) Name() (string, error)
- func (_MattsuCoin *MattsuCoinSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinSession) Symbol() (string, error)
- func (_MattsuCoin *MattsuCoinSession) TotalSupply() (*big.Int, error)
- func (_MattsuCoin *MattsuCoinSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
- type MattsuCoinTransactor
- func (_MattsuCoin *MattsuCoinTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactor) Burn(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactor) BuyLatestEthUsd(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactor) Mint(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, ...) (*types.Transaction, error)
- type MattsuCoinTransactorRaw
- type MattsuCoinTransactorSession
- func (_MattsuCoin *MattsuCoinTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactorSession) Burn(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactorSession) BuyLatestEthUsd() (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactorSession) Mint(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
- func (_MattsuCoin *MattsuCoinTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
- type MattsuCoinTransfer
- type MattsuCoinTransferIterator
- type Transaction
- type TransactionImpl
Constants ¶
const MattsuCoinABI = "" /* 8154-byte string literal not displayed */
MattsuCoinABI is the input ABI used to generate the binding from.
Variables ¶
var MattsuCoinBin = "" /* 20840-byte string literal not displayed */
MattsuCoinBin is the compiled bytecode used for deploying new contracts.
Functions ¶
func Auth ¶
func Auth(client *ethclient.Client, cfg *MattsuCoinClientConfig) (*bind.TransactOpts, error)
Types ¶
type MattsuCoin ¶
type MattsuCoin struct { MattsuCoinCaller // Read-only binding to the contract MattsuCoinTransactor // Write-only binding to the contract MattsuCoinFilterer // Log filterer for contract events }
MattsuCoin is an auto generated Go binding around an Ethereum contract.
func ClientAndInstance ¶
func ClientAndInstance(cfg *MattsuCoinClientConfig) (*ethclient.Client, *MattsuCoin, error)
func DeployMattsuCoin ¶
func DeployMattsuCoin(auth *bind.TransactOpts, backend bind.ContractBackend, initialSupply *big.Int, admin common.Address) (common.Address, *types.Transaction, *MattsuCoin, error)
DeployMattsuCoin deploys a new Ethereum contract, binding an instance of MattsuCoin to it.
func NewMattsuCoin ¶
func NewMattsuCoin(address common.Address, backend bind.ContractBackend) (*MattsuCoin, error)
NewMattsuCoin creates a new instance of MattsuCoin, bound to a specific deployed contract.
type MattsuCoinAPI ¶
type MattsuCoinAPI interface { Burn(to common.Address, amount *big.Int) (Transaction, error) Mint(to common.Address, amount *big.Int) (Transaction, error) BuyLatestEthUsd() (Transaction, error) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error) }
type MattsuCoinAPIImpl ¶
type MattsuCoinAPIImpl struct {
// contains filtered or unexported fields
}
func NewMattsuCoinAPI ¶
func NewMattsuCoinAPI(cfg *MattsuCoinClientConfig) *MattsuCoinAPIImpl
func (*MattsuCoinAPIImpl) Burn ¶
func (api *MattsuCoinAPIImpl) Burn(to common.Address, amount *big.Int) (Transaction, error)
func (*MattsuCoinAPIImpl) BuyLatestEthUsd ¶
func (api *MattsuCoinAPIImpl) BuyLatestEthUsd() (Transaction, error)
func (*MattsuCoinAPIImpl) Mint ¶
func (api *MattsuCoinAPIImpl) Mint(to common.Address, amount *big.Int) (Transaction, error)
func (*MattsuCoinAPIImpl) SubscribeFilterLogs ¶
type MattsuCoinApproval ¶
type MattsuCoinApproval struct { Owner common.Address Spender common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
MattsuCoinApproval represents a Approval event raised by the MattsuCoin contract.
type MattsuCoinApprovalIterator ¶
type MattsuCoinApprovalIterator struct { Event *MattsuCoinApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MattsuCoinApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the MattsuCoin contract.
func (*MattsuCoinApprovalIterator) Close ¶
func (it *MattsuCoinApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MattsuCoinApprovalIterator) Error ¶
func (it *MattsuCoinApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MattsuCoinApprovalIterator) Next ¶
func (it *MattsuCoinApprovalIterator) 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 MattsuCoinBuyEthUsd ¶
type MattsuCoinBuyEthUsd struct { Buyer common.Address EthUsd *big.Int Raw types.Log // Blockchain specific contextual infos }
MattsuCoinBuyEthUsd represents a BuyEthUsd event raised by the MattsuCoin contract.
type MattsuCoinBuyEthUsdIterator ¶
type MattsuCoinBuyEthUsdIterator struct { Event *MattsuCoinBuyEthUsd // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MattsuCoinBuyEthUsdIterator is returned from FilterBuyEthUsd and is used to iterate over the raw logs and unpacked data for BuyEthUsd events raised by the MattsuCoin contract.
func (*MattsuCoinBuyEthUsdIterator) Close ¶
func (it *MattsuCoinBuyEthUsdIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MattsuCoinBuyEthUsdIterator) Error ¶
func (it *MattsuCoinBuyEthUsdIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MattsuCoinBuyEthUsdIterator) Next ¶
func (it *MattsuCoinBuyEthUsdIterator) 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 MattsuCoinCaller ¶
type MattsuCoinCaller struct {
// contains filtered or unexported fields
}
MattsuCoinCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewMattsuCoinCaller ¶
func NewMattsuCoinCaller(address common.Address, caller bind.ContractCaller) (*MattsuCoinCaller, error)
NewMattsuCoinCaller creates a new read-only instance of MattsuCoin, bound to a specific deployed contract.
func (*MattsuCoinCaller) ADMINROLE ¶
func (_MattsuCoin *MattsuCoinCaller) ADMINROLE(opts *bind.CallOpts) ([32]byte, error)
ADMINROLE is a free data retrieval call binding the contract method 0x75b238fc.
Solidity: function ADMIN_ROLE() view returns(bytes32)
func (*MattsuCoinCaller) Allowance ¶
func (_MattsuCoin *MattsuCoinCaller) 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 (*MattsuCoinCaller) BalanceOf ¶
func (_MattsuCoin *MattsuCoinCaller) 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 (*MattsuCoinCaller) DEFAULTADMINROLE ¶
func (_MattsuCoin *MattsuCoinCaller) 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 (*MattsuCoinCaller) Decimals ¶
func (_MattsuCoin *MattsuCoinCaller) 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 (*MattsuCoinCaller) GetRoleAdmin ¶
func (_MattsuCoin *MattsuCoinCaller) 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 (*MattsuCoinCaller) GetRoleMember ¶
func (_MattsuCoin *MattsuCoinCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*MattsuCoinCaller) GetRoleMemberCount ¶
func (_MattsuCoin *MattsuCoinCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*MattsuCoinCaller) HasRole ¶
func (_MattsuCoin *MattsuCoinCaller) 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 (*MattsuCoinCaller) Name ¶
func (_MattsuCoin *MattsuCoinCaller) 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 (*MattsuCoinCaller) Symbol ¶
func (_MattsuCoin *MattsuCoinCaller) 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 (*MattsuCoinCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type MattsuCoinCallerRaw ¶
type MattsuCoinCallerRaw struct {
Contract *MattsuCoinCaller // Generic read-only contract binding to access the raw methods on
}
MattsuCoinCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*MattsuCoinCallerRaw) Call ¶
func (_MattsuCoin *MattsuCoinCallerRaw) 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 MattsuCoinCallerSession ¶
type MattsuCoinCallerSession struct { Contract *MattsuCoinCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
MattsuCoinCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*MattsuCoinCallerSession) ADMINROLE ¶
func (_MattsuCoin *MattsuCoinCallerSession) ADMINROLE() ([32]byte, error)
ADMINROLE is a free data retrieval call binding the contract method 0x75b238fc.
Solidity: function ADMIN_ROLE() view returns(bytes32)
func (*MattsuCoinCallerSession) Allowance ¶
func (_MattsuCoin *MattsuCoinCallerSession) 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 (*MattsuCoinCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*MattsuCoinCallerSession) DEFAULTADMINROLE ¶
func (_MattsuCoin *MattsuCoinCallerSession) 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 (*MattsuCoinCallerSession) Decimals ¶
func (_MattsuCoin *MattsuCoinCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*MattsuCoinCallerSession) GetRoleAdmin ¶
func (_MattsuCoin *MattsuCoinCallerSession) 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 (*MattsuCoinCallerSession) GetRoleMember ¶
func (_MattsuCoin *MattsuCoinCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*MattsuCoinCallerSession) GetRoleMemberCount ¶
func (_MattsuCoin *MattsuCoinCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*MattsuCoinCallerSession) HasRole ¶
func (_MattsuCoin *MattsuCoinCallerSession) 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 (*MattsuCoinCallerSession) Name ¶
func (_MattsuCoin *MattsuCoinCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*MattsuCoinCallerSession) Symbol ¶
func (_MattsuCoin *MattsuCoinCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*MattsuCoinCallerSession) TotalSupply ¶
func (_MattsuCoin *MattsuCoinCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
type MattsuCoinClientConfig ¶
type MattsuCoinClientConfig struct { PrivateKey string `yaml:"privateKey"` KovanProjectId string `yaml:"kovanProjectId"` MattsuCoinAddress string `yaml:"mattsuCoinAddress"` Gas int `yaml:"gas"` GasLimit uint64 `yaml:"gasLimit"` }
func NewMattsuCoinClientConfig ¶
func NewMattsuCoinClientConfig(filePath string) *MattsuCoinClientConfig
type MattsuCoinFilterer ¶
type MattsuCoinFilterer struct {
// contains filtered or unexported fields
}
MattsuCoinFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewMattsuCoinFilterer ¶
func NewMattsuCoinFilterer(address common.Address, filterer bind.ContractFilterer) (*MattsuCoinFilterer, error)
NewMattsuCoinFilterer creates a new log filterer instance of MattsuCoin, bound to a specific deployed contract.
func (*MattsuCoinFilterer) FilterApproval ¶
func (_MattsuCoin *MattsuCoinFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*MattsuCoinApprovalIterator, 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 (*MattsuCoinFilterer) FilterBuyEthUsd ¶
func (_MattsuCoin *MattsuCoinFilterer) FilterBuyEthUsd(opts *bind.FilterOpts, buyer []common.Address) (*MattsuCoinBuyEthUsdIterator, error)
FilterBuyEthUsd is a free log retrieval operation binding the contract event 0xb0f4fec3f80714b4385839888dd1c5bc0b9f7892fb7d895bebda9fd03c75db5d.
Solidity: event BuyEthUsd(address indexed buyer, int256 ethUsd)
func (*MattsuCoinFilterer) FilterRoleAdminChanged ¶
func (_MattsuCoin *MattsuCoinFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*MattsuCoinRoleAdminChangedIterator, 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 (*MattsuCoinFilterer) FilterRoleGranted ¶
func (_MattsuCoin *MattsuCoinFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*MattsuCoinRoleGrantedIterator, 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 (*MattsuCoinFilterer) FilterRoleRevoked ¶
func (_MattsuCoin *MattsuCoinFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*MattsuCoinRoleRevokedIterator, 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 (*MattsuCoinFilterer) FilterTransfer ¶
func (_MattsuCoin *MattsuCoinFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*MattsuCoinTransferIterator, 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 (*MattsuCoinFilterer) ParseApproval ¶
func (_MattsuCoin *MattsuCoinFilterer) ParseApproval(log types.Log) (*MattsuCoinApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)
func (*MattsuCoinFilterer) ParseBuyEthUsd ¶
func (_MattsuCoin *MattsuCoinFilterer) ParseBuyEthUsd(log types.Log) (*MattsuCoinBuyEthUsd, error)
ParseBuyEthUsd is a log parse operation binding the contract event 0xb0f4fec3f80714b4385839888dd1c5bc0b9f7892fb7d895bebda9fd03c75db5d.
Solidity: event BuyEthUsd(address indexed buyer, int256 ethUsd)
func (*MattsuCoinFilterer) ParseRoleAdminChanged ¶
func (_MattsuCoin *MattsuCoinFilterer) ParseRoleAdminChanged(log types.Log) (*MattsuCoinRoleAdminChanged, 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 (*MattsuCoinFilterer) ParseRoleGranted ¶
func (_MattsuCoin *MattsuCoinFilterer) ParseRoleGranted(log types.Log) (*MattsuCoinRoleGranted, 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 (*MattsuCoinFilterer) ParseRoleRevoked ¶
func (_MattsuCoin *MattsuCoinFilterer) ParseRoleRevoked(log types.Log) (*MattsuCoinRoleRevoked, 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 (*MattsuCoinFilterer) ParseTransfer ¶
func (_MattsuCoin *MattsuCoinFilterer) ParseTransfer(log types.Log) (*MattsuCoinTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 value)
func (*MattsuCoinFilterer) WatchApproval ¶
func (_MattsuCoin *MattsuCoinFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MattsuCoinApproval, 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 (*MattsuCoinFilterer) WatchBuyEthUsd ¶
func (_MattsuCoin *MattsuCoinFilterer) WatchBuyEthUsd(opts *bind.WatchOpts, sink chan<- *MattsuCoinBuyEthUsd, buyer []common.Address) (event.Subscription, error)
WatchBuyEthUsd is a free log subscription operation binding the contract event 0xb0f4fec3f80714b4385839888dd1c5bc0b9f7892fb7d895bebda9fd03c75db5d.
Solidity: event BuyEthUsd(address indexed buyer, int256 ethUsd)
func (*MattsuCoinFilterer) WatchRoleAdminChanged ¶
func (_MattsuCoin *MattsuCoinFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *MattsuCoinRoleAdminChanged, 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 (*MattsuCoinFilterer) WatchRoleGranted ¶
func (_MattsuCoin *MattsuCoinFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *MattsuCoinRoleGranted, 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 (*MattsuCoinFilterer) WatchRoleRevoked ¶
func (_MattsuCoin *MattsuCoinFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *MattsuCoinRoleRevoked, 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 (*MattsuCoinFilterer) WatchTransfer ¶
func (_MattsuCoin *MattsuCoinFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *MattsuCoinTransfer, 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 MattsuCoinRaw ¶
type MattsuCoinRaw struct {
Contract *MattsuCoin // Generic contract binding to access the raw methods on
}
MattsuCoinRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*MattsuCoinRaw) Call ¶
func (_MattsuCoin *MattsuCoinRaw) 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 (*MattsuCoinRaw) Transact ¶
func (_MattsuCoin *MattsuCoinRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MattsuCoinRaw) Transfer ¶
func (_MattsuCoin *MattsuCoinRaw) 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 MattsuCoinRoleAdminChanged ¶
type MattsuCoinRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw types.Log // Blockchain specific contextual infos }
MattsuCoinRoleAdminChanged represents a RoleAdminChanged event raised by the MattsuCoin contract.
type MattsuCoinRoleAdminChangedIterator ¶
type MattsuCoinRoleAdminChangedIterator struct { Event *MattsuCoinRoleAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MattsuCoinRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the MattsuCoin contract.
func (*MattsuCoinRoleAdminChangedIterator) Close ¶
func (it *MattsuCoinRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MattsuCoinRoleAdminChangedIterator) Error ¶
func (it *MattsuCoinRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MattsuCoinRoleAdminChangedIterator) Next ¶
func (it *MattsuCoinRoleAdminChangedIterator) 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 MattsuCoinRoleGranted ¶
type MattsuCoinRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
MattsuCoinRoleGranted represents a RoleGranted event raised by the MattsuCoin contract.
type MattsuCoinRoleGrantedIterator ¶
type MattsuCoinRoleGrantedIterator struct { Event *MattsuCoinRoleGranted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MattsuCoinRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the MattsuCoin contract.
func (*MattsuCoinRoleGrantedIterator) Close ¶
func (it *MattsuCoinRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MattsuCoinRoleGrantedIterator) Error ¶
func (it *MattsuCoinRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MattsuCoinRoleGrantedIterator) Next ¶
func (it *MattsuCoinRoleGrantedIterator) 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 MattsuCoinRoleRevoked ¶
type MattsuCoinRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
MattsuCoinRoleRevoked represents a RoleRevoked event raised by the MattsuCoin contract.
type MattsuCoinRoleRevokedIterator ¶
type MattsuCoinRoleRevokedIterator struct { Event *MattsuCoinRoleRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MattsuCoinRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the MattsuCoin contract.
func (*MattsuCoinRoleRevokedIterator) Close ¶
func (it *MattsuCoinRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MattsuCoinRoleRevokedIterator) Error ¶
func (it *MattsuCoinRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MattsuCoinRoleRevokedIterator) Next ¶
func (it *MattsuCoinRoleRevokedIterator) 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 MattsuCoinSession ¶
type MattsuCoinSession struct { Contract *MattsuCoin // 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 }
MattsuCoinSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*MattsuCoinSession) ADMINROLE ¶
func (_MattsuCoin *MattsuCoinSession) ADMINROLE() ([32]byte, error)
ADMINROLE is a free data retrieval call binding the contract method 0x75b238fc.
Solidity: function ADMIN_ROLE() view returns(bytes32)
func (*MattsuCoinSession) Allowance ¶
func (_MattsuCoin *MattsuCoinSession) 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 (*MattsuCoinSession) Approve ¶
func (_MattsuCoin *MattsuCoinSession) 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 (*MattsuCoinSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address account) view returns(uint256)
func (*MattsuCoinSession) Burn ¶
func (_MattsuCoin *MattsuCoinSession) Burn(to common.Address, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x9dc29fac.
Solidity: function burn(address to, uint256 amount) returns()
func (*MattsuCoinSession) BuyLatestEthUsd ¶
func (_MattsuCoin *MattsuCoinSession) BuyLatestEthUsd() (*types.Transaction, error)
BuyLatestEthUsd is a paid mutator transaction binding the contract method 0xfc3feb53.
Solidity: function buyLatestEthUsd() returns()
func (*MattsuCoinSession) DEFAULTADMINROLE ¶
func (_MattsuCoin *MattsuCoinSession) 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 (*MattsuCoinSession) Decimals ¶
func (_MattsuCoin *MattsuCoinSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*MattsuCoinSession) DecreaseAllowance ¶
func (_MattsuCoin *MattsuCoinSession) 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 (*MattsuCoinSession) GetRoleAdmin ¶
func (_MattsuCoin *MattsuCoinSession) 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 (*MattsuCoinSession) GetRoleMember ¶
func (_MattsuCoin *MattsuCoinSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*MattsuCoinSession) GetRoleMemberCount ¶
func (_MattsuCoin *MattsuCoinSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*MattsuCoinSession) GrantRole ¶
func (_MattsuCoin *MattsuCoinSession) 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 (*MattsuCoinSession) HasRole ¶
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*MattsuCoinSession) IncreaseAllowance ¶
func (_MattsuCoin *MattsuCoinSession) 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 (*MattsuCoinSession) Mint ¶
func (_MattsuCoin *MattsuCoinSession) 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 (*MattsuCoinSession) Name ¶
func (_MattsuCoin *MattsuCoinSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*MattsuCoinSession) RenounceRole ¶
func (_MattsuCoin *MattsuCoinSession) 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 (*MattsuCoinSession) RevokeRole ¶
func (_MattsuCoin *MattsuCoinSession) 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 (*MattsuCoinSession) Symbol ¶
func (_MattsuCoin *MattsuCoinSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*MattsuCoinSession) TotalSupply ¶
func (_MattsuCoin *MattsuCoinSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*MattsuCoinSession) Transfer ¶
func (_MattsuCoin *MattsuCoinSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address recipient, uint256 amount) returns(bool)
func (*MattsuCoinSession) TransferFrom ¶
func (_MattsuCoin *MattsuCoinSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
type MattsuCoinTransactor ¶
type MattsuCoinTransactor struct {
// contains filtered or unexported fields
}
MattsuCoinTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewMattsuCoinTransactor ¶
func NewMattsuCoinTransactor(address common.Address, transactor bind.ContractTransactor) (*MattsuCoinTransactor, error)
NewMattsuCoinTransactor creates a new write-only instance of MattsuCoin, bound to a specific deployed contract.
func (*MattsuCoinTransactor) Approve ¶
func (_MattsuCoin *MattsuCoinTransactor) 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 (*MattsuCoinTransactor) Burn ¶
func (_MattsuCoin *MattsuCoinTransactor) Burn(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x9dc29fac.
Solidity: function burn(address to, uint256 amount) returns()
func (*MattsuCoinTransactor) BuyLatestEthUsd ¶
func (_MattsuCoin *MattsuCoinTransactor) BuyLatestEthUsd(opts *bind.TransactOpts) (*types.Transaction, error)
BuyLatestEthUsd is a paid mutator transaction binding the contract method 0xfc3feb53.
Solidity: function buyLatestEthUsd() returns()
func (*MattsuCoinTransactor) DecreaseAllowance ¶
func (_MattsuCoin *MattsuCoinTransactor) 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 (*MattsuCoinTransactor) GrantRole ¶
func (_MattsuCoin *MattsuCoinTransactor) 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 (*MattsuCoinTransactor) IncreaseAllowance ¶
func (_MattsuCoin *MattsuCoinTransactor) 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 (*MattsuCoinTransactor) Mint ¶
func (_MattsuCoin *MattsuCoinTransactor) 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 (*MattsuCoinTransactor) RenounceRole ¶
func (_MattsuCoin *MattsuCoinTransactor) 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 (*MattsuCoinTransactor) RevokeRole ¶
func (_MattsuCoin *MattsuCoinTransactor) 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 (*MattsuCoinTransactor) Transfer ¶
func (_MattsuCoin *MattsuCoinTransactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address recipient, uint256 amount) returns(bool)
func (*MattsuCoinTransactor) TransferFrom ¶
func (_MattsuCoin *MattsuCoinTransactor) TransferFrom(opts *bind.TransactOpts, sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
type MattsuCoinTransactorRaw ¶
type MattsuCoinTransactorRaw struct {
Contract *MattsuCoinTransactor // Generic write-only contract binding to access the raw methods on
}
MattsuCoinTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*MattsuCoinTransactorRaw) Transact ¶
func (_MattsuCoin *MattsuCoinTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MattsuCoinTransactorRaw) Transfer ¶
func (_MattsuCoin *MattsuCoinTransactorRaw) 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 MattsuCoinTransactorSession ¶
type MattsuCoinTransactorSession struct { Contract *MattsuCoinTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MattsuCoinTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*MattsuCoinTransactorSession) Approve ¶
func (_MattsuCoin *MattsuCoinTransactorSession) 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 (*MattsuCoinTransactorSession) Burn ¶
func (_MattsuCoin *MattsuCoinTransactorSession) Burn(to common.Address, amount *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x9dc29fac.
Solidity: function burn(address to, uint256 amount) returns()
func (*MattsuCoinTransactorSession) BuyLatestEthUsd ¶
func (_MattsuCoin *MattsuCoinTransactorSession) BuyLatestEthUsd() (*types.Transaction, error)
BuyLatestEthUsd is a paid mutator transaction binding the contract method 0xfc3feb53.
Solidity: function buyLatestEthUsd() returns()
func (*MattsuCoinTransactorSession) DecreaseAllowance ¶
func (_MattsuCoin *MattsuCoinTransactorSession) 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 (*MattsuCoinTransactorSession) GrantRole ¶
func (_MattsuCoin *MattsuCoinTransactorSession) 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 (*MattsuCoinTransactorSession) IncreaseAllowance ¶
func (_MattsuCoin *MattsuCoinTransactorSession) 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 (*MattsuCoinTransactorSession) Mint ¶
func (_MattsuCoin *MattsuCoinTransactorSession) 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 (*MattsuCoinTransactorSession) RenounceRole ¶
func (_MattsuCoin *MattsuCoinTransactorSession) 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 (*MattsuCoinTransactorSession) RevokeRole ¶
func (_MattsuCoin *MattsuCoinTransactorSession) 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 (*MattsuCoinTransactorSession) Transfer ¶
func (_MattsuCoin *MattsuCoinTransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
Solidity: function transfer(address recipient, uint256 amount) returns(bool)
func (*MattsuCoinTransactorSession) TransferFrom ¶
func (_MattsuCoin *MattsuCoinTransactorSession) TransferFrom(sender common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address sender, address recipient, uint256 amount) returns(bool)
type MattsuCoinTransfer ¶
type MattsuCoinTransfer struct { From common.Address To common.Address Value *big.Int Raw types.Log // Blockchain specific contextual infos }
MattsuCoinTransfer represents a Transfer event raised by the MattsuCoin contract.
type MattsuCoinTransferIterator ¶
type MattsuCoinTransferIterator struct { Event *MattsuCoinTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MattsuCoinTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the MattsuCoin contract.
func (*MattsuCoinTransferIterator) Close ¶
func (it *MattsuCoinTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MattsuCoinTransferIterator) Error ¶
func (it *MattsuCoinTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MattsuCoinTransferIterator) Next ¶
func (it *MattsuCoinTransferIterator) 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 Transaction ¶
func Burn ¶
func Burn(to string, amount int64, api MattsuCoinAPI) (Transaction, error)
func Mint ¶
func Mint(to string, amount int64, api MattsuCoinAPI) (Transaction, error)
type TransactionImpl ¶
type TransactionImpl struct {
// contains filtered or unexported fields
}
func (*TransactionImpl) Gas ¶
func (tx *TransactionImpl) Gas() uint64
func (*TransactionImpl) GasPrice ¶
func (tx *TransactionImpl) GasPrice() *big.Int
func (*TransactionImpl) Nonce ¶
func (tx *TransactionImpl) Nonce() uint64
func (*TransactionImpl) To ¶
func (tx *TransactionImpl) To() *common.Address