client

package
v0.0.0-...-72888ac Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGasPrice = int64(0) // 1 gwai
)
View Source
const IBankABI = "" /* 4070-byte string literal not displayed */

IBankABI is the input ABI used to generate the binding from.

View Source
const IERC20ABI = "" /* 2676-byte string literal not displayed */

IERC20ABI is the input ABI used to generate the binding from.

View Source
const IERC721ABI = "" /* 3963-byte string literal not displayed */

IERC721ABI is the input ABI used to generate the binding from.

Variables

View Source
var IBankFuncSigs = map[string]string{
	"f340fa01": "deposit(address)",
	"1cad5a40": "depositERC20(address,address,uint256)",
	"548bfbaa": "depositNFT(address,address,uint256)",
	"d9caed12": "withdraw(address,address,uint256)",
	"44004cc1": "withdrawERC20(address,address,uint256)",
	"bff863ec": "withdrawNFT(address,address,uint256)",
}

IBankFuncSigs maps the 4-byte function signature to its string representation.

View Source
var IERC20FuncSigs = map[string]string{
	"dd62ed3e": "allowance(address,address)",
	"095ea7b3": "approve(address,uint256)",
	"70a08231": "balanceOf(address)",
	"40c10f19": "mint(address,uint256)",
	"18160ddd": "totalSupply()",
	"a9059cbb": "transfer(address,uint256)",
	"23b872dd": "transferFrom(address,address,uint256)",
}

IERC20FuncSigs maps the 4-byte function signature to its string representation.

View Source
var IERC721FuncSigs = map[string]string{
	"095ea7b3": "approve(address,uint256)",
	"70a08231": "balanceOf(address)",
	"081812fc": "getApproved(uint256)",
	"e985e9c5": "isApprovedForAll(address,address)",
	"6352211e": "ownerOf(uint256)",
	"f626cf2c": "safeMint(uint256,address,string)",
	"42842e0e": "safeTransferFrom(address,address,uint256)",
	"b88d4fde": "safeTransferFrom(address,address,uint256,bytes)",
	"a22cb465": "setApprovalForAll(address,bool)",
	"23b872dd": "transferFrom(address,address,uint256)",
}

IERC721FuncSigs maps the 4-byte function signature to its string representation.

Functions

func GenerateAddr

func GenerateAddr() (addr common.Address, err error)

func ToWei

func ToWei(iamount interface{}, decimals int) *big.Int

ToWei decimals to wei

Types

type Client

type Client struct {
	GasPrice *big.Int

	Bank *IBank

	CustomComfirm func(h string, recept *types.Receipt) error
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, endpoint string, bankHex string, opts ...Option) (c Client, err error)

func (*Client) BuildERC20MintTx

func (c *Client) BuildERC20MintTx(ctx context.Context, priv *ecdsa.PrivateKey, nonce uint64, to, account common.Address, amount *big.Int) (*types.Transaction, error)

func (*Client) BuildNFTMintTx

func (c *Client) BuildNFTMintTx(ctx context.Context, priv *ecdsa.PrivateKey, nonce uint64, to, account common.Address, tokenid *big.Int) (*types.Transaction, error)

func (*Client) BuildTx

func (c *Client) BuildTx(priv *ecdsa.PrivateKey, nonce uint64, to common.Address, value *big.Int, gasLimit uint64, data []byte) (*types.Transaction, error)

func (*Client) ConfirmTx

func (c *Client) ConfirmTx(ctx context.Context, hash string, confirmationBlocks uint64) error

func (*Client) Deposit

func (c *Client) Deposit(ctx context.Context, priv *ecdsa.PrivateKey, nonce *big.Int, amount int64) (*types.Transaction, error)

func (*Client) DepositERC20

func (c *Client) DepositERC20(ctx context.Context, priv *ecdsa.PrivateKey, nonce *big.Int, token common.Address, amount int64) (*types.Transaction, error)

func (*Client) DepositNFT

func (c *Client) DepositNFT(ctx context.Context, priv *ecdsa.PrivateKey, nonce *big.Int, token common.Address, tokenid int64) (*types.Transaction, error)

func (*Client) LatestBlockNumber

func (c *Client) LatestBlockNumber(ctx context.Context) (uint64, error)

func (*Client) Nonce

func (c *Client) Nonce(ctx context.Context, privKey string) (nonce uint64, err error)

func (*Client) Receipt

func (c *Client) Receipt(ctx context.Context, hash string) (*types.Receipt, error)

func (*Client) SendTx

func (c *Client) SendTx(ctx context.Context, tx interface{}) (string, error)

type CustomComfirm

type CustomComfirm func(h string, recept *types.Receipt) error

func WithCustomComfirm

func WithCustomComfirm(f func(h string, recept *types.Receipt) error) CustomComfirm

func (CustomComfirm) Apply

func (f CustomComfirm) Apply(c *Client) error

type GasPriceOpt

type GasPriceOpt int64

func WithGasPrice

func WithGasPrice(gasPrice int64) GasPriceOpt

func (GasPriceOpt) Apply

func (o GasPriceOpt) Apply(c *Client) error

type IBank

type IBank struct {
	IBankCaller     // Read-only binding to the contract
	IBankTransactor // Write-only binding to the contract
	IBankFilterer   // Log filterer for contract events
}

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

func NewIBank

func NewIBank(address common.Address, backend bind.ContractBackend) (*IBank, error)

NewIBank creates a new instance of IBank, bound to a specific deployed contract.

type IBankCaller

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

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

func NewIBankCaller

func NewIBankCaller(address common.Address, caller bind.ContractCaller) (*IBankCaller, error)

NewIBankCaller creates a new read-only instance of IBank, bound to a specific deployed contract.

type IBankCallerRaw

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

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

func (*IBankCallerRaw) Call

func (_IBank *IBankCallerRaw) 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 IBankCallerSession

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

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

type IBankDeposited

type IBankDeposited struct {
	Id        *big.Int
	Payee     common.Address
	WeiAmount *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

IBankDeposited represents a Deposited event raised by the IBank contract.

type IBankDepositedIterator

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

IBankDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the IBank contract.

func (*IBankDepositedIterator) Close

func (it *IBankDepositedIterator) Close() error

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

func (*IBankDepositedIterator) Error

func (it *IBankDepositedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IBankDepositedIterator) Next

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

type IBankERC20Deposited struct {
	Id     *big.Int
	Token  common.Address
	Sender common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

IBankERC20Deposited represents a ERC20Deposited event raised by the IBank contract.

type IBankERC20DepositedIterator

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

IBankERC20DepositedIterator is returned from FilterERC20Deposited and is used to iterate over the raw logs and unpacked data for ERC20Deposited events raised by the IBank contract.

func (*IBankERC20DepositedIterator) Close

func (it *IBankERC20DepositedIterator) Close() error

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

func (*IBankERC20DepositedIterator) Error

func (it *IBankERC20DepositedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IBankERC20DepositedIterator) Next

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

type IBankERC20Withdrawn struct {
	Token  common.Address
	To     common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

IBankERC20Withdrawn represents a ERC20Withdrawn event raised by the IBank contract.

type IBankERC20WithdrawnIterator

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

IBankERC20WithdrawnIterator is returned from FilterERC20Withdrawn and is used to iterate over the raw logs and unpacked data for ERC20Withdrawn events raised by the IBank contract.

func (*IBankERC20WithdrawnIterator) Close

func (it *IBankERC20WithdrawnIterator) Close() error

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

func (*IBankERC20WithdrawnIterator) Error

func (it *IBankERC20WithdrawnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IBankERC20WithdrawnIterator) Next

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

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

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

func NewIBankFilterer

func NewIBankFilterer(address common.Address, filterer bind.ContractFilterer) (*IBankFilterer, error)

NewIBankFilterer creates a new log filterer instance of IBank, bound to a specific deployed contract.

func (*IBankFilterer) FilterDeposited

func (_IBank *IBankFilterer) FilterDeposited(opts *bind.FilterOpts, id []*big.Int) (*IBankDepositedIterator, error)

FilterDeposited is a free log retrieval operation binding the contract event 0x1599c0fcf897af5babc2bfcf707f5dc050f841b044d97c3251ecec35b9abf80b.

Solidity: event Deposited(uint256 indexed id, address payee, uint256 weiAmount)

func (*IBankFilterer) FilterERC20Deposited

func (_IBank *IBankFilterer) FilterERC20Deposited(opts *bind.FilterOpts, id []*big.Int, token []common.Address) (*IBankERC20DepositedIterator, error)

FilterERC20Deposited is a free log retrieval operation binding the contract event 0x54b55b0dca2281471c1e9b3db0a1397b951657e8c4c8551f4b26316d1408097d.

Solidity: event ERC20Deposited(uint256 indexed id, address indexed token, address sender, uint256 amount)

func (*IBankFilterer) FilterERC20Withdrawn

func (_IBank *IBankFilterer) FilterERC20Withdrawn(opts *bind.FilterOpts, token []common.Address) (*IBankERC20WithdrawnIterator, error)

FilterERC20Withdrawn is a free log retrieval operation binding the contract event 0xbfed55bdcd242e3dd0f60ddd7d1e87c67f61c34cd9527b3e6455d841b1025362.

Solidity: event ERC20Withdrawn(address indexed token, address to, uint256 amount)

func (*IBankFilterer) FilterNFTDeposited

func (_IBank *IBankFilterer) FilterNFTDeposited(opts *bind.FilterOpts, id []*big.Int, token []common.Address) (*IBankNFTDepositedIterator, error)

FilterNFTDeposited is a free log retrieval operation binding the contract event 0x327b4964b21908843dad3036ddb4742ba7dac55409b0f9a23772775f7fe99afd.

Solidity: event NFTDeposited(uint256 indexed id, address indexed token, address sender, uint256 tokenid)

func (*IBankFilterer) FilterNFTWithdrawn

func (_IBank *IBankFilterer) FilterNFTWithdrawn(opts *bind.FilterOpts, token []common.Address) (*IBankNFTWithdrawnIterator, error)

FilterNFTWithdrawn is a free log retrieval operation binding the contract event 0xbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb.

Solidity: event NFTWithdrawn(address indexed token, address to, uint256 tokenid)

func (*IBankFilterer) FilterWithdrawn

func (_IBank *IBankFilterer) FilterWithdrawn(opts *bind.FilterOpts, payee []common.Address) (*IBankWithdrawnIterator, error)

FilterWithdrawn is a free log retrieval operation binding the contract event 0xd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb.

Solidity: event Withdrawn(address indexed payee, address recipient, uint256 weiAmount)

func (*IBankFilterer) ParseDeposited

func (_IBank *IBankFilterer) ParseDeposited(log types.Log) (*IBankDeposited, error)

ParseDeposited is a log parse operation binding the contract event 0x1599c0fcf897af5babc2bfcf707f5dc050f841b044d97c3251ecec35b9abf80b.

Solidity: event Deposited(uint256 indexed id, address payee, uint256 weiAmount)

func (*IBankFilterer) ParseERC20Deposited

func (_IBank *IBankFilterer) ParseERC20Deposited(log types.Log) (*IBankERC20Deposited, error)

ParseERC20Deposited is a log parse operation binding the contract event 0x54b55b0dca2281471c1e9b3db0a1397b951657e8c4c8551f4b26316d1408097d.

Solidity: event ERC20Deposited(uint256 indexed id, address indexed token, address sender, uint256 amount)

func (*IBankFilterer) ParseERC20Withdrawn

func (_IBank *IBankFilterer) ParseERC20Withdrawn(log types.Log) (*IBankERC20Withdrawn, error)

ParseERC20Withdrawn is a log parse operation binding the contract event 0xbfed55bdcd242e3dd0f60ddd7d1e87c67f61c34cd9527b3e6455d841b1025362.

Solidity: event ERC20Withdrawn(address indexed token, address to, uint256 amount)

func (*IBankFilterer) ParseNFTDeposited

func (_IBank *IBankFilterer) ParseNFTDeposited(log types.Log) (*IBankNFTDeposited, error)

ParseNFTDeposited is a log parse operation binding the contract event 0x327b4964b21908843dad3036ddb4742ba7dac55409b0f9a23772775f7fe99afd.

Solidity: event NFTDeposited(uint256 indexed id, address indexed token, address sender, uint256 tokenid)

func (*IBankFilterer) ParseNFTWithdrawn

func (_IBank *IBankFilterer) ParseNFTWithdrawn(log types.Log) (*IBankNFTWithdrawn, error)

ParseNFTWithdrawn is a log parse operation binding the contract event 0xbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb.

Solidity: event NFTWithdrawn(address indexed token, address to, uint256 tokenid)

func (*IBankFilterer) ParseWithdrawn

func (_IBank *IBankFilterer) ParseWithdrawn(log types.Log) (*IBankWithdrawn, error)

ParseWithdrawn is a log parse operation binding the contract event 0xd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb.

Solidity: event Withdrawn(address indexed payee, address recipient, uint256 weiAmount)

func (*IBankFilterer) WatchDeposited

func (_IBank *IBankFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *IBankDeposited, id []*big.Int) (event.Subscription, error)

WatchDeposited is a free log subscription operation binding the contract event 0x1599c0fcf897af5babc2bfcf707f5dc050f841b044d97c3251ecec35b9abf80b.

Solidity: event Deposited(uint256 indexed id, address payee, uint256 weiAmount)

func (*IBankFilterer) WatchERC20Deposited

func (_IBank *IBankFilterer) WatchERC20Deposited(opts *bind.WatchOpts, sink chan<- *IBankERC20Deposited, id []*big.Int, token []common.Address) (event.Subscription, error)

WatchERC20Deposited is a free log subscription operation binding the contract event 0x54b55b0dca2281471c1e9b3db0a1397b951657e8c4c8551f4b26316d1408097d.

Solidity: event ERC20Deposited(uint256 indexed id, address indexed token, address sender, uint256 amount)

func (*IBankFilterer) WatchERC20Withdrawn

func (_IBank *IBankFilterer) WatchERC20Withdrawn(opts *bind.WatchOpts, sink chan<- *IBankERC20Withdrawn, token []common.Address) (event.Subscription, error)

WatchERC20Withdrawn is a free log subscription operation binding the contract event 0xbfed55bdcd242e3dd0f60ddd7d1e87c67f61c34cd9527b3e6455d841b1025362.

Solidity: event ERC20Withdrawn(address indexed token, address to, uint256 amount)

func (*IBankFilterer) WatchNFTDeposited

func (_IBank *IBankFilterer) WatchNFTDeposited(opts *bind.WatchOpts, sink chan<- *IBankNFTDeposited, id []*big.Int, token []common.Address) (event.Subscription, error)

WatchNFTDeposited is a free log subscription operation binding the contract event 0x327b4964b21908843dad3036ddb4742ba7dac55409b0f9a23772775f7fe99afd.

Solidity: event NFTDeposited(uint256 indexed id, address indexed token, address sender, uint256 tokenid)

func (*IBankFilterer) WatchNFTWithdrawn

func (_IBank *IBankFilterer) WatchNFTWithdrawn(opts *bind.WatchOpts, sink chan<- *IBankNFTWithdrawn, token []common.Address) (event.Subscription, error)

WatchNFTWithdrawn is a free log subscription operation binding the contract event 0xbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb.

Solidity: event NFTWithdrawn(address indexed token, address to, uint256 tokenid)

func (*IBankFilterer) WatchWithdrawn

func (_IBank *IBankFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *IBankWithdrawn, payee []common.Address) (event.Subscription, error)

WatchWithdrawn is a free log subscription operation binding the contract event 0xd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb.

Solidity: event Withdrawn(address indexed payee, address recipient, uint256 weiAmount)

type IBankNFTDeposited

type IBankNFTDeposited struct {
	Id      *big.Int
	Token   common.Address
	Sender  common.Address
	Tokenid *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

IBankNFTDeposited represents a NFTDeposited event raised by the IBank contract.

type IBankNFTDepositedIterator

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

IBankNFTDepositedIterator is returned from FilterNFTDeposited and is used to iterate over the raw logs and unpacked data for NFTDeposited events raised by the IBank contract.

func (*IBankNFTDepositedIterator) Close

func (it *IBankNFTDepositedIterator) Close() error

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

func (*IBankNFTDepositedIterator) Error

func (it *IBankNFTDepositedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IBankNFTDepositedIterator) Next

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

type IBankNFTWithdrawn struct {
	Token   common.Address
	To      common.Address
	Tokenid *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

IBankNFTWithdrawn represents a NFTWithdrawn event raised by the IBank contract.

type IBankNFTWithdrawnIterator

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

IBankNFTWithdrawnIterator is returned from FilterNFTWithdrawn and is used to iterate over the raw logs and unpacked data for NFTWithdrawn events raised by the IBank contract.

func (*IBankNFTWithdrawnIterator) Close

func (it *IBankNFTWithdrawnIterator) Close() error

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

func (*IBankNFTWithdrawnIterator) Error

func (it *IBankNFTWithdrawnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IBankNFTWithdrawnIterator) Next

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

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

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

func (*IBankRaw) Call

func (_IBank *IBankRaw) 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 (*IBankRaw) Transact

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

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

func (*IBankRaw) Transfer

func (_IBank *IBankRaw) 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 IBankSession

type IBankSession struct {
	Contract     *IBank            // 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
}

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

func (*IBankSession) Deposit

func (_IBank *IBankSession) Deposit(payee common.Address) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xf340fa01.

Solidity: function deposit(address payee) payable returns()

func (*IBankSession) DepositERC20

func (_IBank *IBankSession) DepositERC20(token common.Address, sender common.Address, amount *big.Int) (*types.Transaction, error)

DepositERC20 is a paid mutator transaction binding the contract method 0x1cad5a40.

Solidity: function depositERC20(address token, address sender, uint256 amount) returns()

func (*IBankSession) DepositNFT

func (_IBank *IBankSession) DepositNFT(token common.Address, sender common.Address, tokenid *big.Int) (*types.Transaction, error)

DepositNFT is a paid mutator transaction binding the contract method 0x548bfbaa.

Solidity: function depositNFT(address token, address sender, uint256 tokenid) returns()

func (*IBankSession) Withdraw

func (_IBank *IBankSession) Withdraw(payee common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xd9caed12.

Solidity: function withdraw(address payee, address recipient, uint256 amount) returns()

func (*IBankSession) WithdrawERC20

func (_IBank *IBankSession) WithdrawERC20(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

WithdrawERC20 is a paid mutator transaction binding the contract method 0x44004cc1.

Solidity: function withdrawERC20(address token, address to, uint256 amount) returns()

func (*IBankSession) WithdrawNFT

func (_IBank *IBankSession) WithdrawNFT(token common.Address, to common.Address, tokenid *big.Int) (*types.Transaction, error)

WithdrawNFT is a paid mutator transaction binding the contract method 0xbff863ec.

Solidity: function withdrawNFT(address token, address to, uint256 tokenid) returns()

type IBankTransactor

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

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

func NewIBankTransactor

func NewIBankTransactor(address common.Address, transactor bind.ContractTransactor) (*IBankTransactor, error)

NewIBankTransactor creates a new write-only instance of IBank, bound to a specific deployed contract.

func (*IBankTransactor) Deposit

func (_IBank *IBankTransactor) Deposit(opts *bind.TransactOpts, payee common.Address) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xf340fa01.

Solidity: function deposit(address payee) payable returns()

func (*IBankTransactor) DepositERC20

func (_IBank *IBankTransactor) DepositERC20(opts *bind.TransactOpts, token common.Address, sender common.Address, amount *big.Int) (*types.Transaction, error)

DepositERC20 is a paid mutator transaction binding the contract method 0x1cad5a40.

Solidity: function depositERC20(address token, address sender, uint256 amount) returns()

func (*IBankTransactor) DepositNFT

func (_IBank *IBankTransactor) DepositNFT(opts *bind.TransactOpts, token common.Address, sender common.Address, tokenid *big.Int) (*types.Transaction, error)

DepositNFT is a paid mutator transaction binding the contract method 0x548bfbaa.

Solidity: function depositNFT(address token, address sender, uint256 tokenid) returns()

func (*IBankTransactor) Withdraw

func (_IBank *IBankTransactor) Withdraw(opts *bind.TransactOpts, payee common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xd9caed12.

Solidity: function withdraw(address payee, address recipient, uint256 amount) returns()

func (*IBankTransactor) WithdrawERC20

func (_IBank *IBankTransactor) WithdrawERC20(opts *bind.TransactOpts, token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

WithdrawERC20 is a paid mutator transaction binding the contract method 0x44004cc1.

Solidity: function withdrawERC20(address token, address to, uint256 amount) returns()

func (*IBankTransactor) WithdrawNFT

func (_IBank *IBankTransactor) WithdrawNFT(opts *bind.TransactOpts, token common.Address, to common.Address, tokenid *big.Int) (*types.Transaction, error)

WithdrawNFT is a paid mutator transaction binding the contract method 0xbff863ec.

Solidity: function withdrawNFT(address token, address to, uint256 tokenid) returns()

type IBankTransactorRaw

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

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

func (*IBankTransactorRaw) Transact

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

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

func (*IBankTransactorRaw) Transfer

func (_IBank *IBankTransactorRaw) 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 IBankTransactorSession

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

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

func (*IBankTransactorSession) Deposit

func (_IBank *IBankTransactorSession) Deposit(payee common.Address) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xf340fa01.

Solidity: function deposit(address payee) payable returns()

func (*IBankTransactorSession) DepositERC20

func (_IBank *IBankTransactorSession) DepositERC20(token common.Address, sender common.Address, amount *big.Int) (*types.Transaction, error)

DepositERC20 is a paid mutator transaction binding the contract method 0x1cad5a40.

Solidity: function depositERC20(address token, address sender, uint256 amount) returns()

func (*IBankTransactorSession) DepositNFT

func (_IBank *IBankTransactorSession) DepositNFT(token common.Address, sender common.Address, tokenid *big.Int) (*types.Transaction, error)

DepositNFT is a paid mutator transaction binding the contract method 0x548bfbaa.

Solidity: function depositNFT(address token, address sender, uint256 tokenid) returns()

func (*IBankTransactorSession) Withdraw

func (_IBank *IBankTransactorSession) Withdraw(payee common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xd9caed12.

Solidity: function withdraw(address payee, address recipient, uint256 amount) returns()

func (*IBankTransactorSession) WithdrawERC20

func (_IBank *IBankTransactorSession) WithdrawERC20(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

WithdrawERC20 is a paid mutator transaction binding the contract method 0x44004cc1.

Solidity: function withdrawERC20(address token, address to, uint256 amount) returns()

func (*IBankTransactorSession) WithdrawNFT

func (_IBank *IBankTransactorSession) WithdrawNFT(token common.Address, to common.Address, tokenid *big.Int) (*types.Transaction, error)

WithdrawNFT is a paid mutator transaction binding the contract method 0xbff863ec.

Solidity: function withdrawNFT(address token, address to, uint256 tokenid) returns()

type IBankWithdrawn

type IBankWithdrawn struct {
	Payee     common.Address
	Recipient common.Address
	WeiAmount *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

IBankWithdrawn represents a Withdrawn event raised by the IBank contract.

type IBankWithdrawnIterator

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

IBankWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the IBank contract.

func (*IBankWithdrawnIterator) Close

func (it *IBankWithdrawnIterator) Close() error

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

func (*IBankWithdrawnIterator) Error

func (it *IBankWithdrawnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IBankWithdrawnIterator) Next

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

type IERC20 struct {
	IERC20Caller     // Read-only binding to the contract
	IERC20Transactor // Write-only binding to the contract
	IERC20Filterer   // Log filterer for contract events
}

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

func NewIERC20

func NewIERC20(address common.Address, backend bind.ContractBackend) (*IERC20, error)

NewIERC20 creates a new instance of IERC20, bound to a specific deployed contract.

type IERC20Approval

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

IERC20Approval represents a Approval event raised by the IERC20 contract.

type IERC20ApprovalIterator

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

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

func (*IERC20ApprovalIterator) Close

func (it *IERC20ApprovalIterator) Close() error

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

func (*IERC20ApprovalIterator) Error

func (it *IERC20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IERC20ApprovalIterator) Next

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

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

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

func NewIERC20Caller

func NewIERC20Caller(address common.Address, caller bind.ContractCaller) (*IERC20Caller, error)

NewIERC20Caller creates a new read-only instance of IERC20, bound to a specific deployed contract.

func (*IERC20Caller) Allowance

func (_IERC20 *IERC20Caller) 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 (*IERC20Caller) BalanceOf

func (_IERC20 *IERC20Caller) 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 (*IERC20Caller) TotalSupply

func (_IERC20 *IERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type IERC20CallerRaw

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

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

func (*IERC20CallerRaw) Call

func (_IERC20 *IERC20CallerRaw) 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 IERC20CallerSession

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

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

func (*IERC20CallerSession) Allowance

func (_IERC20 *IERC20CallerSession) 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 (*IERC20CallerSession) BalanceOf

func (_IERC20 *IERC20CallerSession) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*IERC20CallerSession) TotalSupply

func (_IERC20 *IERC20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type IERC20Filterer

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

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

func NewIERC20Filterer

func NewIERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*IERC20Filterer, error)

NewIERC20Filterer creates a new log filterer instance of IERC20, bound to a specific deployed contract.

func (*IERC20Filterer) FilterApproval

func (_IERC20 *IERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*IERC20ApprovalIterator, 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 (*IERC20Filterer) FilterTransfer

func (_IERC20 *IERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*IERC20TransferIterator, 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 (*IERC20Filterer) ParseApproval

func (_IERC20 *IERC20Filterer) ParseApproval(log types.Log) (*IERC20Approval, error)

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

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

func (*IERC20Filterer) ParseTransfer

func (_IERC20 *IERC20Filterer) ParseTransfer(log types.Log) (*IERC20Transfer, error)

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

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

func (*IERC20Filterer) WatchApproval

func (_IERC20 *IERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC20Approval, 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 (*IERC20Filterer) WatchTransfer

func (_IERC20 *IERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IERC20Transfer, 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 IERC20Raw

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

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

func (*IERC20Raw) Call

func (_IERC20 *IERC20Raw) 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 (*IERC20Raw) Transact

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

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

func (*IERC20Raw) Transfer

func (_IERC20 *IERC20Raw) 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 IERC20Session

type IERC20Session struct {
	Contract     *IERC20           // 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
}

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

func (*IERC20Session) Allowance

func (_IERC20 *IERC20Session) 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 (*IERC20Session) Approve

func (_IERC20 *IERC20Session) 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 (*IERC20Session) BalanceOf

func (_IERC20 *IERC20Session) BalanceOf(account common.Address) (*big.Int, error)

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

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

func (*IERC20Session) Mint

func (_IERC20 *IERC20Session) Mint(account common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*IERC20Session) TotalSupply

func (_IERC20 *IERC20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*IERC20Session) Transfer

func (_IERC20 *IERC20Session) 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 (*IERC20Session) TransferFrom

func (_IERC20 *IERC20Session) 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 IERC20Transactor

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

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

func NewIERC20Transactor

func NewIERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*IERC20Transactor, error)

NewIERC20Transactor creates a new write-only instance of IERC20, bound to a specific deployed contract.

func (*IERC20Transactor) Approve

func (_IERC20 *IERC20Transactor) 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 (*IERC20Transactor) Mint

func (_IERC20 *IERC20Transactor) Mint(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*IERC20Transactor) Transfer

func (_IERC20 *IERC20Transactor) 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 (*IERC20Transactor) TransferFrom

func (_IERC20 *IERC20Transactor) 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 IERC20TransactorRaw

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

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

func (*IERC20TransactorRaw) Transact

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

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

func (*IERC20TransactorRaw) Transfer

func (_IERC20 *IERC20TransactorRaw) 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 IERC20TransactorSession

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

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

func (*IERC20TransactorSession) Approve

func (_IERC20 *IERC20TransactorSession) 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 (*IERC20TransactorSession) Mint

func (_IERC20 *IERC20TransactorSession) Mint(account common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*IERC20TransactorSession) Transfer

func (_IERC20 *IERC20TransactorSession) 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 (*IERC20TransactorSession) TransferFrom

func (_IERC20 *IERC20TransactorSession) 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 IERC20Transfer

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

IERC20Transfer represents a Transfer event raised by the IERC20 contract.

type IERC20TransferIterator

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

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

func (*IERC20TransferIterator) Close

func (it *IERC20TransferIterator) Close() error

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

func (*IERC20TransferIterator) Error

func (it *IERC20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IERC20TransferIterator) Next

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

type IERC721 struct {
	IERC721Caller     // Read-only binding to the contract
	IERC721Transactor // Write-only binding to the contract
	IERC721Filterer   // Log filterer for contract events
}

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

func NewIERC721

func NewIERC721(address common.Address, backend bind.ContractBackend) (*IERC721, error)

NewIERC721 creates a new instance of IERC721, bound to a specific deployed contract.

type IERC721Approval

type IERC721Approval struct {
	Owner    common.Address
	Approved common.Address
	TokenId  *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

IERC721Approval represents a Approval event raised by the IERC721 contract.

type IERC721ApprovalForAll

type IERC721ApprovalForAll struct {
	Owner    common.Address
	Operator common.Address
	Approved bool
	Raw      types.Log // Blockchain specific contextual infos
}

IERC721ApprovalForAll represents a ApprovalForAll event raised by the IERC721 contract.

type IERC721ApprovalForAllIterator

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

IERC721ApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the IERC721 contract.

func (*IERC721ApprovalForAllIterator) Close

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

func (*IERC721ApprovalForAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IERC721ApprovalForAllIterator) 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 IERC721ApprovalIterator

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

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

func (*IERC721ApprovalIterator) Close

func (it *IERC721ApprovalIterator) Close() error

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

func (*IERC721ApprovalIterator) Error

func (it *IERC721ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IERC721ApprovalIterator) Next

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

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

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

func NewIERC721Caller

func NewIERC721Caller(address common.Address, caller bind.ContractCaller) (*IERC721Caller, error)

NewIERC721Caller creates a new read-only instance of IERC721, bound to a specific deployed contract.

func (*IERC721Caller) BalanceOf

func (_IERC721 *IERC721Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address owner) view returns(uint256 balance)

func (*IERC721Caller) GetApproved

func (_IERC721 *IERC721Caller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address operator)

func (*IERC721Caller) IsApprovedForAll

func (_IERC721 *IERC721Caller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*IERC721Caller) OwnerOf

func (_IERC721 *IERC721Caller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address owner)

type IERC721CallerRaw

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

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

func (*IERC721CallerRaw) Call

func (_IERC721 *IERC721CallerRaw) 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 IERC721CallerSession

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

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

func (*IERC721CallerSession) BalanceOf

func (_IERC721 *IERC721CallerSession) BalanceOf(owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address owner) view returns(uint256 balance)

func (*IERC721CallerSession) GetApproved

func (_IERC721 *IERC721CallerSession) GetApproved(tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address operator)

func (*IERC721CallerSession) IsApprovedForAll

func (_IERC721 *IERC721CallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*IERC721CallerSession) OwnerOf

func (_IERC721 *IERC721CallerSession) OwnerOf(tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address owner)

type IERC721Filterer

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

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

func NewIERC721Filterer

func NewIERC721Filterer(address common.Address, filterer bind.ContractFilterer) (*IERC721Filterer, error)

NewIERC721Filterer creates a new log filterer instance of IERC721, bound to a specific deployed contract.

func (*IERC721Filterer) FilterApproval

func (_IERC721 *IERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*IERC721ApprovalIterator, error)

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

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*IERC721Filterer) FilterApprovalForAll

func (_IERC721 *IERC721Filterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*IERC721ApprovalForAllIterator, error)

FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*IERC721Filterer) FilterTransfer

func (_IERC721 *IERC721Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*IERC721TransferIterator, error)

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

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

func (*IERC721Filterer) ParseApproval

func (_IERC721 *IERC721Filterer) ParseApproval(log types.Log) (*IERC721Approval, error)

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

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*IERC721Filterer) ParseApprovalForAll

func (_IERC721 *IERC721Filterer) ParseApprovalForAll(log types.Log) (*IERC721ApprovalForAll, error)

ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*IERC721Filterer) ParseTransfer

func (_IERC721 *IERC721Filterer) ParseTransfer(log types.Log) (*IERC721Transfer, error)

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

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

func (*IERC721Filterer) WatchApproval

func (_IERC721 *IERC721Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *IERC721Approval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error)

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

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*IERC721Filterer) WatchApprovalForAll

func (_IERC721 *IERC721Filterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *IERC721ApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error)

WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*IERC721Filterer) WatchTransfer

func (_IERC721 *IERC721Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *IERC721Transfer, from []common.Address, to []common.Address, tokenId []*big.Int) (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 indexed tokenId)

type IERC721Raw

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

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

func (*IERC721Raw) Call

func (_IERC721 *IERC721Raw) 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 (*IERC721Raw) Transact

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

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

func (*IERC721Raw) Transfer

func (_IERC721 *IERC721Raw) 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 IERC721Session

type IERC721Session struct {
	Contract     *IERC721          // 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
}

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

func (*IERC721Session) Approve

func (_IERC721 *IERC721Session) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address to, uint256 tokenId) returns()

func (*IERC721Session) BalanceOf

func (_IERC721 *IERC721Session) BalanceOf(owner common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address owner) view returns(uint256 balance)

func (*IERC721Session) GetApproved

func (_IERC721 *IERC721Session) GetApproved(tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address operator)

func (*IERC721Session) IsApprovedForAll

func (_IERC721 *IERC721Session) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*IERC721Session) OwnerOf

func (_IERC721 *IERC721Session) OwnerOf(tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address owner)

func (*IERC721Session) SafeMint

func (_IERC721 *IERC721Session) SafeMint(tokenId *big.Int, to common.Address, uri string) (*types.Transaction, error)

SafeMint is a paid mutator transaction binding the contract method 0xf626cf2c.

Solidity: function safeMint(uint256 tokenId, address to, string uri) returns()

func (*IERC721Session) SafeTransferFrom

func (_IERC721 *IERC721Session) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*IERC721Session) SafeTransferFrom0

func (_IERC721 *IERC721Session) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()

func (*IERC721Session) SetApprovalForAll

func (_IERC721 *IERC721Session) SetApprovalForAll(operator common.Address, _approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool _approved) returns()

func (*IERC721Session) TransferFrom

func (_IERC721 *IERC721Session) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

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

type IERC721Transactor

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

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

func NewIERC721Transactor

func NewIERC721Transactor(address common.Address, transactor bind.ContractTransactor) (*IERC721Transactor, error)

NewIERC721Transactor creates a new write-only instance of IERC721, bound to a specific deployed contract.

func (*IERC721Transactor) Approve

func (_IERC721 *IERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address to, uint256 tokenId) returns()

func (*IERC721Transactor) SafeMint

func (_IERC721 *IERC721Transactor) SafeMint(opts *bind.TransactOpts, tokenId *big.Int, to common.Address, uri string) (*types.Transaction, error)

SafeMint is a paid mutator transaction binding the contract method 0xf626cf2c.

Solidity: function safeMint(uint256 tokenId, address to, string uri) returns()

func (*IERC721Transactor) SafeTransferFrom

func (_IERC721 *IERC721Transactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*IERC721Transactor) SafeTransferFrom0

func (_IERC721 *IERC721Transactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()

func (*IERC721Transactor) SetApprovalForAll

func (_IERC721 *IERC721Transactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, _approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool _approved) returns()

func (*IERC721Transactor) TransferFrom

func (_IERC721 *IERC721Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

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

type IERC721TransactorRaw

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

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

func (*IERC721TransactorRaw) Transact

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

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

func (*IERC721TransactorRaw) Transfer

func (_IERC721 *IERC721TransactorRaw) 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 IERC721TransactorSession

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

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

func (*IERC721TransactorSession) Approve

func (_IERC721 *IERC721TransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address to, uint256 tokenId) returns()

func (*IERC721TransactorSession) SafeMint

func (_IERC721 *IERC721TransactorSession) SafeMint(tokenId *big.Int, to common.Address, uri string) (*types.Transaction, error)

SafeMint is a paid mutator transaction binding the contract method 0xf626cf2c.

Solidity: function safeMint(uint256 tokenId, address to, string uri) returns()

func (*IERC721TransactorSession) SafeTransferFrom

func (_IERC721 *IERC721TransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*IERC721TransactorSession) SafeTransferFrom0

func (_IERC721 *IERC721TransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()

func (*IERC721TransactorSession) SetApprovalForAll

func (_IERC721 *IERC721TransactorSession) SetApprovalForAll(operator common.Address, _approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool _approved) returns()

func (*IERC721TransactorSession) TransferFrom

func (_IERC721 *IERC721TransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

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

type IERC721Transfer

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

IERC721Transfer represents a Transfer event raised by the IERC721 contract.

type IERC721TransferIterator

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

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

func (*IERC721TransferIterator) Close

func (it *IERC721TransferIterator) Close() error

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

func (*IERC721TransferIterator) Error

func (it *IERC721TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IERC721TransferIterator) Next

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

type Option interface {
	Apply(*Client) error
}

type ReadClient

type ReadClient struct {
	Bank *IBank
	// contains filtered or unexported fields
}

func NewReadClient

func NewReadClient(ctx context.Context, endpoint string, bankHex string) (c ReadClient, err error)

func (*ReadClient) FilterERC20Deposited

func (c *ReadClient) FilterERC20Deposited(ctx context.Context, start uint64, end *uint64, handle func(e *IBankERC20Deposited) error) error

func (*ReadClient) FilterNFTDeposited

func (c *ReadClient) FilterNFTDeposited(ctx context.Context, start uint64, end *uint64, handle func(e *IBankNFTDeposited) error) error

func (*ReadClient) LatestBlockNumber

func (c *ReadClient) LatestBlockNumber(ctx context.Context) (uint64, error)

Jump to

Keyboard shortcuts

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