Versions in this module Expand all Collapse all v0 v0.2.0 Apr 27, 2024 Changes in this version + func GetAddressFromPrivateKey(privateKey *secp256k1.PrivateKey) string v0.1.0 Apr 27, 2024 Changes in this version + var Bep20ABI = Bep20MetaData.ABI + var Bep20MetaData = &bind.MetaData + type Account struct + func NewAccountFromMnemonic(mnemonic string, password string, index int64) (*Account, error) + func NewAccountFromSeed(seed []byte, index int64) (*Account, error) + func (Self *Account) Chain() common.Chain + func (Self *Account) GetAddress() (string, error) + func (Self *Account) GetPrivateKey() (*secp256k1.PrivateKey, error) + type Bep20 struct + func NewBep20(address common.Address, backend bind.ContractBackend) (*Bep20, error) + type Bep20Approval struct + Owner common.Address + Raw types.Log + Spender common.Address + Value *big.Int + type Bep20ApprovalIterator struct + Event *Bep20Approval + func (it *Bep20ApprovalIterator) Close() error + func (it *Bep20ApprovalIterator) Error() error + func (it *Bep20ApprovalIterator) Next() bool + type Bep20Caller struct + func NewBep20Caller(address common.Address, caller bind.ContractCaller) (*Bep20Caller, error) + func (_Bep20 *Bep20Caller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error) + func (_Bep20 *Bep20Caller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error) + func (_Bep20 *Bep20Caller) Decimals(opts *bind.CallOpts) (uint8, error) + func (_Bep20 *Bep20Caller) Name(opts *bind.CallOpts) (string, error) + func (_Bep20 *Bep20Caller) Symbol(opts *bind.CallOpts) (string, error) + func (_Bep20 *Bep20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) + type Bep20CallerRaw struct + Contract *Bep20Caller + func (_Bep20 *Bep20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + type Bep20CallerSession struct + CallOpts bind.CallOpts + Contract *Bep20Caller + func (_Bep20 *Bep20CallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error) + func (_Bep20 *Bep20CallerSession) BalanceOf(_owner common.Address) (*big.Int, error) + func (_Bep20 *Bep20CallerSession) Decimals() (uint8, error) + func (_Bep20 *Bep20CallerSession) Name() (string, error) + func (_Bep20 *Bep20CallerSession) Symbol() (string, error) + func (_Bep20 *Bep20CallerSession) TotalSupply() (*big.Int, error) + type Bep20Filterer struct + func NewBep20Filterer(address common.Address, filterer bind.ContractFilterer) (*Bep20Filterer, error) + func (_Bep20 *Bep20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Bep20ApprovalIterator, error) + func (_Bep20 *Bep20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Bep20TransferIterator, error) + func (_Bep20 *Bep20Filterer) ParseApproval(log types.Log) (*Bep20Approval, error) + func (_Bep20 *Bep20Filterer) ParseTransfer(log types.Log) (*Bep20Transfer, error) + func (_Bep20 *Bep20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Bep20Approval, owner []common.Address, ...) (event.Subscription, error) + func (_Bep20 *Bep20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Bep20Transfer, from []common.Address, ...) (event.Subscription, error) + type Bep20Raw struct + Contract *Bep20 + func (_Bep20 *Bep20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error + func (_Bep20 *Bep20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Bep20 *Bep20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type Bep20Session struct + CallOpts bind.CallOpts + Contract *Bep20 + TransactOpts bind.TransactOpts + func (_Bep20 *Bep20Session) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error) + func (_Bep20 *Bep20Session) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) + func (_Bep20 *Bep20Session) BalanceOf(_owner common.Address) (*big.Int, error) + func (_Bep20 *Bep20Session) Decimals() (uint8, error) + func (_Bep20 *Bep20Session) Fallback(calldata []byte) (*types.Transaction, error) + func (_Bep20 *Bep20Session) Name() (string, error) + func (_Bep20 *Bep20Session) Symbol() (string, error) + func (_Bep20 *Bep20Session) TotalSupply() (*big.Int, error) + func (_Bep20 *Bep20Session) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error) + func (_Bep20 *Bep20Session) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error) + type Bep20Transactor struct + func NewBep20Transactor(address common.Address, transactor bind.ContractTransactor) (*Bep20Transactor, error) + func (_Bep20 *Bep20Transactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error) + func (_Bep20 *Bep20Transactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error) + func (_Bep20 *Bep20Transactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error) + func (_Bep20 *Bep20Transactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error) + type Bep20TransactorRaw struct + Contract *Bep20Transactor + func (_Bep20 *Bep20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) + func (_Bep20 *Bep20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) + type Bep20TransactorSession struct + Contract *Bep20Transactor + TransactOpts bind.TransactOpts + func (_Bep20 *Bep20TransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error) + func (_Bep20 *Bep20TransactorSession) Fallback(calldata []byte) (*types.Transaction, error) + func (_Bep20 *Bep20TransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error) + func (_Bep20 *Bep20TransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error) + type Bep20Transfer struct + From common.Address + Raw types.Log + To common.Address + Value *big.Int + type Bep20TransferIterator struct + Event *Bep20Transfer + func (it *Bep20TransferIterator) Close() error + func (it *Bep20TransferIterator) Error() error + func (it *Bep20TransferIterator) Next() bool + type ChainClient struct + func NewChainClient(nodes map[string]int, currencies map[string]Currency) *ChainClient + func (Self *ChainClient) Chain() common.Chain + func (Self *ChainClient) GetBalance(address string, currency string, args any) (float64, error) + func (Self *ChainClient) GetCurrentHeight() (uint64, error) + func (Self *ChainClient) GetTransaction(txHash string) (*common.Transaction, error) + func (Self *ChainClient) Transfer(privateKey *ecdsa.PrivateKey, to string, currency string, value float64, ...) (string, error) + type Currency struct + Contract string + Decimals int + type GetBalanceParameter struct + type TransferParameter struct