bank

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: LGPL-3.0 Imports: 9 Imported by: 0

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: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"payable\",\"type\":\"function\"}]",
}

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 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) BalanceOf

func (_BankModule *BankModuleCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address , address ) 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) BalanceOf

func (_BankModule *BankModuleCallerSession) BalanceOf(arg0 common.Address, arg1 common.Address) (*big.Int, error)

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

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

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.

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) BalanceOf

func (_BankModule *BankModuleSession) BalanceOf(arg0 common.Address, arg1 common.Address) (*big.Int, error)

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

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

func (*BankModuleSession) Burn

func (_BankModule *BankModuleSession) Burn(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)

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

Solidity: function burn(address , uint256 ) payable returns(bool)

func (*BankModuleSession) Mint

func (_BankModule *BankModuleSession) Mint(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)

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

Solidity: function mint(address , uint256 ) payable returns(bool)

func (*BankModuleSession) Transfer

func (_BankModule *BankModuleSession) Transfer(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address , address , uint256 ) 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) Burn

func (_BankModule *BankModuleTransactor) Burn(opts *bind.TransactOpts, arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)

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

Solidity: function burn(address , uint256 ) payable returns(bool)

func (*BankModuleTransactor) Mint

func (_BankModule *BankModuleTransactor) Mint(opts *bind.TransactOpts, arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)

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

Solidity: function mint(address , uint256 ) payable returns(bool)

func (*BankModuleTransactor) Transfer

func (_BankModule *BankModuleTransactor) Transfer(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address , address , uint256 ) 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) Burn

func (_BankModule *BankModuleTransactorSession) Burn(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)

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

Solidity: function burn(address , uint256 ) payable returns(bool)

func (*BankModuleTransactorSession) Mint

func (_BankModule *BankModuleTransactorSession) Mint(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error)

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

Solidity: function mint(address , uint256 ) payable returns(bool)

func (*BankModuleTransactorSession) Transfer

func (_BankModule *BankModuleTransactorSession) Transfer(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error)

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

Solidity: function transfer(address , address , uint256 ) payable returns(bool)

Jump to

Keyboard shortcuts

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