bank

package
v0.1.5-alpha-telemetry Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BankModuleABI = BankModuleMetaData.ABI

BankModuleABI is the input ABI used to generate the binding from. Deprecated: Use BankModuleMetaData.ABI instead.

View Source
var BankModuleMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"getAllBalances\",\"inputs\":[{\"name\":\"accountAddress\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getAllSpendableBalances\",\"inputs\":[{\"name\":\"accountAddress\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getAllSupply\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getBalance\",\"inputs\":[{\"name\":\"accountAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getSpendableBalance\",\"inputs\":[{\"name\":\"accountAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getSupply\",\"inputs\":[{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"send\",\"inputs\":[{\"name\":\"toAddress\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"tuple[]\",\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"payable\"},{\"type\":\"event\",\"name\":\"Burn\",\"inputs\":[{\"name\":\"burner\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"tuple[]\",\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CoinReceived\",\"inputs\":[{\"name\":\"receiver\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"tuple[]\",\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CoinSpent\",\"inputs\":[{\"name\":\"spender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"tuple[]\",\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Coinbase\",\"inputs\":[{\"name\":\"minter\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"tuple[]\",\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Message\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Transfer\",\"inputs\":[{\"name\":\"recipient\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"tuple[]\",\"indexed\":false,\"internalType\":\"structCosmos.Coin[]\",\"components\":[{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"anonymous\":false}]",
}

BankModuleMetaData contains all meta data concerning the BankModule contract.

Functions

This section is empty.

Types

type BankModule

type BankModule struct {
	BankModuleCaller     // Read-only binding to the contract
	BankModuleTransactor // Write-only binding to the contract
	BankModuleFilterer   // Log filterer for contract events
}

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

func NewBankModule

func NewBankModule(address common.Address, backend bind.ContractBackend) (*BankModule, error)

NewBankModule creates a new instance of BankModule, bound to a specific deployed contract.

type BankModuleBurn

type BankModuleBurn struct {
	Burner common.Address
	Amount []CosmosCoin
	Raw    types.Log // Blockchain specific contextual infos
}

BankModuleBurn represents a Burn event raised by the BankModule contract.

type BankModuleBurnIterator

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

BankModuleBurnIterator is returned from FilterBurn and is used to iterate over the raw logs and unpacked data for Burn events raised by the BankModule contract.

func (*BankModuleBurnIterator) Close

func (it *BankModuleBurnIterator) Close() error

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

func (*BankModuleBurnIterator) Error

func (it *BankModuleBurnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BankModuleBurnIterator) Next

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

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

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

func NewBankModuleCaller

func NewBankModuleCaller(address common.Address, caller bind.ContractCaller) (*BankModuleCaller, error)

NewBankModuleCaller creates a new read-only instance of BankModule, bound to a specific deployed contract.

func (*BankModuleCaller) GetAllBalances

func (_BankModule *BankModuleCaller) GetAllBalances(opts *bind.CallOpts, accountAddress common.Address) ([]CosmosCoin, error)

GetAllBalances is a free data retrieval call binding the contract method 0xc53d6ce1.

Solidity: function getAllBalances(address accountAddress) view returns((uint256,string)[])

func (*BankModuleCaller) GetAllSpendableBalances

func (_BankModule *BankModuleCaller) GetAllSpendableBalances(opts *bind.CallOpts, accountAddress common.Address) ([]CosmosCoin, error)

GetAllSpendableBalances is a free data retrieval call binding the contract method 0x5c70e594.

Solidity: function getAllSpendableBalances(address accountAddress) view returns((uint256,string)[])

func (*BankModuleCaller) GetAllSupply

func (_BankModule *BankModuleCaller) GetAllSupply(opts *bind.CallOpts) ([]CosmosCoin, error)

GetAllSupply is a free data retrieval call binding the contract method 0xf01c9474.

Solidity: function getAllSupply() view returns((uint256,string)[])

func (*BankModuleCaller) GetBalance

func (_BankModule *BankModuleCaller) GetBalance(opts *bind.CallOpts, accountAddress common.Address, denom string) (*big.Int, error)

GetBalance is a free data retrieval call binding the contract method 0x1dd7cecf.

Solidity: function getBalance(address accountAddress, string denom) view returns(uint256)

func (*BankModuleCaller) GetSpendableBalance

func (_BankModule *BankModuleCaller) GetSpendableBalance(opts *bind.CallOpts, accountAddress common.Address, denom string) (*big.Int, error)

GetSpendableBalance is a free data retrieval call binding the contract method 0x34d1fdaf.

Solidity: function getSpendableBalance(address accountAddress, string denom) view returns(uint256)

func (*BankModuleCaller) GetSupply

func (_BankModule *BankModuleCaller) GetSupply(opts *bind.CallOpts, denom string) (*big.Int, error)

GetSupply is a free data retrieval call binding the contract method 0xfe3b2b88.

Solidity: function getSupply(string denom) view returns(uint256)

type BankModuleCallerRaw

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

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

func (*BankModuleCallerRaw) Call

func (_BankModule *BankModuleCallerRaw) 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 BankModuleCallerSession

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

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

func (*BankModuleCallerSession) GetAllBalances

func (_BankModule *BankModuleCallerSession) GetAllBalances(accountAddress common.Address) ([]CosmosCoin, error)

GetAllBalances is a free data retrieval call binding the contract method 0xc53d6ce1.

Solidity: function getAllBalances(address accountAddress) view returns((uint256,string)[])

func (*BankModuleCallerSession) GetAllSpendableBalances

func (_BankModule *BankModuleCallerSession) GetAllSpendableBalances(accountAddress common.Address) ([]CosmosCoin, error)

GetAllSpendableBalances is a free data retrieval call binding the contract method 0x5c70e594.

Solidity: function getAllSpendableBalances(address accountAddress) view returns((uint256,string)[])

func (*BankModuleCallerSession) GetAllSupply

func (_BankModule *BankModuleCallerSession) GetAllSupply() ([]CosmosCoin, error)

GetAllSupply is a free data retrieval call binding the contract method 0xf01c9474.

Solidity: function getAllSupply() view returns((uint256,string)[])

func (*BankModuleCallerSession) GetBalance

func (_BankModule *BankModuleCallerSession) GetBalance(accountAddress common.Address, denom string) (*big.Int, error)

GetBalance is a free data retrieval call binding the contract method 0x1dd7cecf.

Solidity: function getBalance(address accountAddress, string denom) view returns(uint256)

func (*BankModuleCallerSession) GetSpendableBalance

func (_BankModule *BankModuleCallerSession) GetSpendableBalance(accountAddress common.Address, denom string) (*big.Int, error)

GetSpendableBalance is a free data retrieval call binding the contract method 0x34d1fdaf.

Solidity: function getSpendableBalance(address accountAddress, string denom) view returns(uint256)

func (*BankModuleCallerSession) GetSupply

func (_BankModule *BankModuleCallerSession) GetSupply(denom string) (*big.Int, error)

GetSupply is a free data retrieval call binding the contract method 0xfe3b2b88.

Solidity: function getSupply(string denom) view returns(uint256)

type BankModuleCoinReceived

type BankModuleCoinReceived struct {
	Receiver common.Address
	Amount   []CosmosCoin
	Raw      types.Log // Blockchain specific contextual infos
}

BankModuleCoinReceived represents a CoinReceived event raised by the BankModule contract.

type BankModuleCoinReceivedIterator

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

BankModuleCoinReceivedIterator is returned from FilterCoinReceived and is used to iterate over the raw logs and unpacked data for CoinReceived events raised by the BankModule contract.

func (*BankModuleCoinReceivedIterator) Close

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

func (*BankModuleCoinReceivedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BankModuleCoinReceivedIterator) 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 BankModuleCoinSpent

type BankModuleCoinSpent struct {
	Spender common.Address
	Amount  []CosmosCoin
	Raw     types.Log // Blockchain specific contextual infos
}

BankModuleCoinSpent represents a CoinSpent event raised by the BankModule contract.

type BankModuleCoinSpentIterator

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

BankModuleCoinSpentIterator is returned from FilterCoinSpent and is used to iterate over the raw logs and unpacked data for CoinSpent events raised by the BankModule contract.

func (*BankModuleCoinSpentIterator) Close

func (it *BankModuleCoinSpentIterator) Close() error

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

func (*BankModuleCoinSpentIterator) Error

func (it *BankModuleCoinSpentIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BankModuleCoinSpentIterator) Next

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

type BankModuleCoinbase struct {
	Minter common.Address
	Amount []CosmosCoin
	Raw    types.Log // Blockchain specific contextual infos
}

BankModuleCoinbase represents a Coinbase event raised by the BankModule contract.

type BankModuleCoinbaseIterator

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

BankModuleCoinbaseIterator is returned from FilterCoinbase and is used to iterate over the raw logs and unpacked data for Coinbase events raised by the BankModule contract.

func (*BankModuleCoinbaseIterator) Close

func (it *BankModuleCoinbaseIterator) Close() error

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

func (*BankModuleCoinbaseIterator) Error

func (it *BankModuleCoinbaseIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BankModuleCoinbaseIterator) Next

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

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

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

func NewBankModuleFilterer

func NewBankModuleFilterer(address common.Address, filterer bind.ContractFilterer) (*BankModuleFilterer, error)

NewBankModuleFilterer creates a new log filterer instance of BankModule, bound to a specific deployed contract.

func (*BankModuleFilterer) FilterBurn

func (_BankModule *BankModuleFilterer) FilterBurn(opts *bind.FilterOpts, burner []common.Address) (*BankModuleBurnIterator, error)

FilterBurn is a free log retrieval operation binding the contract event 0x9fa0c2fb43a81906efbb089cd76002325d71b437612a2a987c707446629d6ab0.

Solidity: event Burn(address indexed burner, (uint256,string)[] amount)

func (*BankModuleFilterer) FilterCoinReceived

func (_BankModule *BankModuleFilterer) FilterCoinReceived(opts *bind.FilterOpts, receiver []common.Address) (*BankModuleCoinReceivedIterator, error)

FilterCoinReceived is a free log retrieval operation binding the contract event 0x13f9c352919df1623a08e6d6d9eac5f774573896f09916d8fbc5d083095fc3b4.

Solidity: event CoinReceived(address indexed receiver, (uint256,string)[] amount)

func (*BankModuleFilterer) FilterCoinSpent

func (_BankModule *BankModuleFilterer) FilterCoinSpent(opts *bind.FilterOpts, spender []common.Address) (*BankModuleCoinSpentIterator, error)

FilterCoinSpent is a free log retrieval operation binding the contract event 0x8b8b22fea5b121b174e6cfea34ddaf187b66b43dab67679fa291a0fae2427a99.

Solidity: event CoinSpent(address indexed spender, (uint256,string)[] amount)

func (*BankModuleFilterer) FilterCoinbase

func (_BankModule *BankModuleFilterer) FilterCoinbase(opts *bind.FilterOpts, minter []common.Address) (*BankModuleCoinbaseIterator, error)

FilterCoinbase is a free log retrieval operation binding the contract event 0xefb3f1f2a9af64b5fcc2da3c5a088d780585c674b8075fe2a1ba6b0d906cbe9f.

Solidity: event Coinbase(address indexed minter, (uint256,string)[] amount)

func (*BankModuleFilterer) FilterMessage

func (_BankModule *BankModuleFilterer) FilterMessage(opts *bind.FilterOpts, sender []common.Address) (*BankModuleMessageIterator, error)

FilterMessage is a free log retrieval operation binding the contract event 0x516772d06520d23d2705f0b46a1fa6deec0ae36a2c00db049bd5f4094a123b85.

Solidity: event Message(address indexed sender)

func (*BankModuleFilterer) FilterTransfer

func (_BankModule *BankModuleFilterer) FilterTransfer(opts *bind.FilterOpts, recipient []common.Address) (*BankModuleTransferIterator, error)

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

Solidity: event Transfer(address indexed recipient, (uint256,string)[] amount)

func (*BankModuleFilterer) ParseBurn

func (_BankModule *BankModuleFilterer) ParseBurn(log types.Log) (*BankModuleBurn, error)

ParseBurn is a log parse operation binding the contract event 0x9fa0c2fb43a81906efbb089cd76002325d71b437612a2a987c707446629d6ab0.

Solidity: event Burn(address indexed burner, (uint256,string)[] amount)

func (*BankModuleFilterer) ParseCoinReceived

func (_BankModule *BankModuleFilterer) ParseCoinReceived(log types.Log) (*BankModuleCoinReceived, error)

ParseCoinReceived is a log parse operation binding the contract event 0x13f9c352919df1623a08e6d6d9eac5f774573896f09916d8fbc5d083095fc3b4.

Solidity: event CoinReceived(address indexed receiver, (uint256,string)[] amount)

func (*BankModuleFilterer) ParseCoinSpent

func (_BankModule *BankModuleFilterer) ParseCoinSpent(log types.Log) (*BankModuleCoinSpent, error)

ParseCoinSpent is a log parse operation binding the contract event 0x8b8b22fea5b121b174e6cfea34ddaf187b66b43dab67679fa291a0fae2427a99.

Solidity: event CoinSpent(address indexed spender, (uint256,string)[] amount)

func (*BankModuleFilterer) ParseCoinbase

func (_BankModule *BankModuleFilterer) ParseCoinbase(log types.Log) (*BankModuleCoinbase, error)

ParseCoinbase is a log parse operation binding the contract event 0xefb3f1f2a9af64b5fcc2da3c5a088d780585c674b8075fe2a1ba6b0d906cbe9f.

Solidity: event Coinbase(address indexed minter, (uint256,string)[] amount)

func (*BankModuleFilterer) ParseMessage

func (_BankModule *BankModuleFilterer) ParseMessage(log types.Log) (*BankModuleMessage, error)

ParseMessage is a log parse operation binding the contract event 0x516772d06520d23d2705f0b46a1fa6deec0ae36a2c00db049bd5f4094a123b85.

Solidity: event Message(address indexed sender)

func (*BankModuleFilterer) ParseTransfer

func (_BankModule *BankModuleFilterer) ParseTransfer(log types.Log) (*BankModuleTransfer, error)

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

Solidity: event Transfer(address indexed recipient, (uint256,string)[] amount)

func (*BankModuleFilterer) WatchBurn

func (_BankModule *BankModuleFilterer) WatchBurn(opts *bind.WatchOpts, sink chan<- *BankModuleBurn, burner []common.Address) (event.Subscription, error)

WatchBurn is a free log subscription operation binding the contract event 0x9fa0c2fb43a81906efbb089cd76002325d71b437612a2a987c707446629d6ab0.

Solidity: event Burn(address indexed burner, (uint256,string)[] amount)

func (*BankModuleFilterer) WatchCoinReceived

func (_BankModule *BankModuleFilterer) WatchCoinReceived(opts *bind.WatchOpts, sink chan<- *BankModuleCoinReceived, receiver []common.Address) (event.Subscription, error)

WatchCoinReceived is a free log subscription operation binding the contract event 0x13f9c352919df1623a08e6d6d9eac5f774573896f09916d8fbc5d083095fc3b4.

Solidity: event CoinReceived(address indexed receiver, (uint256,string)[] amount)

func (*BankModuleFilterer) WatchCoinSpent

func (_BankModule *BankModuleFilterer) WatchCoinSpent(opts *bind.WatchOpts, sink chan<- *BankModuleCoinSpent, spender []common.Address) (event.Subscription, error)

WatchCoinSpent is a free log subscription operation binding the contract event 0x8b8b22fea5b121b174e6cfea34ddaf187b66b43dab67679fa291a0fae2427a99.

Solidity: event CoinSpent(address indexed spender, (uint256,string)[] amount)

func (*BankModuleFilterer) WatchCoinbase

func (_BankModule *BankModuleFilterer) WatchCoinbase(opts *bind.WatchOpts, sink chan<- *BankModuleCoinbase, minter []common.Address) (event.Subscription, error)

WatchCoinbase is a free log subscription operation binding the contract event 0xefb3f1f2a9af64b5fcc2da3c5a088d780585c674b8075fe2a1ba6b0d906cbe9f.

Solidity: event Coinbase(address indexed minter, (uint256,string)[] amount)

func (*BankModuleFilterer) WatchMessage

func (_BankModule *BankModuleFilterer) WatchMessage(opts *bind.WatchOpts, sink chan<- *BankModuleMessage, sender []common.Address) (event.Subscription, error)

WatchMessage is a free log subscription operation binding the contract event 0x516772d06520d23d2705f0b46a1fa6deec0ae36a2c00db049bd5f4094a123b85.

Solidity: event Message(address indexed sender)

func (*BankModuleFilterer) WatchTransfer

func (_BankModule *BankModuleFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *BankModuleTransfer, recipient []common.Address) (event.Subscription, error)

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

Solidity: event Transfer(address indexed recipient, (uint256,string)[] amount)

type BankModuleMessage

type BankModuleMessage struct {
	Sender common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

BankModuleMessage represents a Message event raised by the BankModule contract.

type BankModuleMessageIterator

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

BankModuleMessageIterator is returned from FilterMessage and is used to iterate over the raw logs and unpacked data for Message events raised by the BankModule contract.

func (*BankModuleMessageIterator) Close

func (it *BankModuleMessageIterator) Close() error

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

func (*BankModuleMessageIterator) Error

func (it *BankModuleMessageIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BankModuleMessageIterator) Next

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

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

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

func (*BankModuleRaw) Call

func (_BankModule *BankModuleRaw) 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 (*BankModuleRaw) Transact

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

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

func (*BankModuleRaw) Transfer

func (_BankModule *BankModuleRaw) 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 BankModuleSession

type BankModuleSession struct {
	Contract     *BankModule       // 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
}

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

func (*BankModuleSession) GetAllBalances

func (_BankModule *BankModuleSession) GetAllBalances(accountAddress common.Address) ([]CosmosCoin, error)

GetAllBalances is a free data retrieval call binding the contract method 0xc53d6ce1.

Solidity: function getAllBalances(address accountAddress) view returns((uint256,string)[])

func (*BankModuleSession) GetAllSpendableBalances

func (_BankModule *BankModuleSession) GetAllSpendableBalances(accountAddress common.Address) ([]CosmosCoin, error)

GetAllSpendableBalances is a free data retrieval call binding the contract method 0x5c70e594.

Solidity: function getAllSpendableBalances(address accountAddress) view returns((uint256,string)[])

func (*BankModuleSession) GetAllSupply

func (_BankModule *BankModuleSession) GetAllSupply() ([]CosmosCoin, error)

GetAllSupply is a free data retrieval call binding the contract method 0xf01c9474.

Solidity: function getAllSupply() view returns((uint256,string)[])

func (*BankModuleSession) GetBalance

func (_BankModule *BankModuleSession) GetBalance(accountAddress common.Address, denom string) (*big.Int, error)

GetBalance is a free data retrieval call binding the contract method 0x1dd7cecf.

Solidity: function getBalance(address accountAddress, string denom) view returns(uint256)

func (*BankModuleSession) GetSpendableBalance

func (_BankModule *BankModuleSession) GetSpendableBalance(accountAddress common.Address, denom string) (*big.Int, error)

GetSpendableBalance is a free data retrieval call binding the contract method 0x34d1fdaf.

Solidity: function getSpendableBalance(address accountAddress, string denom) view returns(uint256)

func (*BankModuleSession) GetSupply

func (_BankModule *BankModuleSession) GetSupply(denom string) (*big.Int, error)

GetSupply is a free data retrieval call binding the contract method 0xfe3b2b88.

Solidity: function getSupply(string denom) view returns(uint256)

func (*BankModuleSession) Send

func (_BankModule *BankModuleSession) Send(toAddress common.Address, amount []CosmosCoin) (*types.Transaction, error)

Send is a paid mutator transaction binding the contract method 0x7e075f07.

Solidity: function send(address toAddress, (uint256,string)[] amount) payable returns(bool)

type BankModuleTransactor

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

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

func NewBankModuleTransactor

func NewBankModuleTransactor(address common.Address, transactor bind.ContractTransactor) (*BankModuleTransactor, error)

NewBankModuleTransactor creates a new write-only instance of BankModule, bound to a specific deployed contract.

func (*BankModuleTransactor) Send

func (_BankModule *BankModuleTransactor) Send(opts *bind.TransactOpts, toAddress common.Address, amount []CosmosCoin) (*types.Transaction, error)

Send is a paid mutator transaction binding the contract method 0x7e075f07.

Solidity: function send(address toAddress, (uint256,string)[] amount) payable returns(bool)

type BankModuleTransactorRaw

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

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

func (*BankModuleTransactorRaw) Transact

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

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

func (*BankModuleTransactorRaw) Transfer

func (_BankModule *BankModuleTransactorRaw) 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 BankModuleTransactorSession

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

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

func (*BankModuleTransactorSession) Send

func (_BankModule *BankModuleTransactorSession) Send(toAddress common.Address, amount []CosmosCoin) (*types.Transaction, error)

Send is a paid mutator transaction binding the contract method 0x7e075f07.

Solidity: function send(address toAddress, (uint256,string)[] amount) payable returns(bool)

type BankModuleTransfer

type BankModuleTransfer struct {
	Recipient common.Address
	Amount    []CosmosCoin
	Raw       types.Log // Blockchain specific contextual infos
}

BankModuleTransfer represents a Transfer event raised by the BankModule contract.

type BankModuleTransferIterator

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

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

func (*BankModuleTransferIterator) Close

func (it *BankModuleTransferIterator) Close() error

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

func (*BankModuleTransferIterator) Error

func (it *BankModuleTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BankModuleTransferIterator) Next

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

type CosmosCoin struct {
	Amount *big.Int
	Denom  string
}

CosmosCoin is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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