Documentation ¶
Index ¶
- Constants
- Variables
- type Asset
- type Blockchain
- type Call
- type Client
- type ContractClient
- type ContractInfoToken
- type ContractInfoTokenCaller
- type ContractInfoTokenCallerRaw
- type ContractInfoTokenCallerSession
- type ContractInfoTokenFilterer
- type ContractInfoTokenRaw
- func (_ContractInfoToken *ContractInfoTokenRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ContractInfoToken *ContractInfoTokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ContractInfoToken *ContractInfoTokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ContractInfoTokenSession
- type ContractInfoTokenTransactor
- type ContractInfoTokenTransactorRaw
- type ContractInfoTokenTransactorSession
- type EthClient
- type FlatCall
- type TxAccountMap
- type TxNonceMap
- type TxPoolContent
- type TxPoolStatus
Constants ¶
const ( UnknownERC20Symbol = "ERC20_UNKNOWN" UnknownERC721Symbol = "ERC721_UNKNOWN" )
Variables ¶
var ContractInfoTokenABI = ContractInfoTokenMetaData.ABI
ContractInfoTokenABI is the input ABI used to generate the binding from. Deprecated: Use ContractInfoTokenMetaData.ABI instead.
var ContractInfoTokenMetaData = &bind.MetaData{
ABI: "[{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"uint8\",\"name\":\"\",\"internalType\":\"uint8\"}],\"name\":\"decimals\",\"inputs\":[]},{\"type\":\"function\",\"stateMutability\":\"view\",\"outputs\":[{\"type\":\"string\",\"name\":\"\",\"internalType\":\"string\"}],\"name\":\"symbol\",\"inputs\":[]}]",
}
ContractInfoTokenMetaData contains all meta data concerning the ContractInfoToken contract.
Functions ¶
This section is empty.
Types ¶
type Blockchain ¶
type Client ¶
type Client interface { IsBootstrapped(context.Context, string, ...rpc.Option) (bool, error) ChainID(context.Context) (*big.Int, error) BlockByHash(context.Context, ethcommon.Hash) (*ethtypes.Block, error) BlockByNumber(context.Context, *big.Int) (*ethtypes.Block, error) HeaderByHash(context.Context, ethcommon.Hash) (*ethtypes.Header, error) HeaderByNumber(context.Context, *big.Int) (*ethtypes.Header, error) TransactionByHash(context.Context, ethcommon.Hash) (*ethtypes.Transaction, bool, error) TransactionReceipt(context.Context, ethcommon.Hash) (*ethtypes.Receipt, error) TraceTransaction(context.Context, string) (*Call, []*FlatCall, error) TraceBlockByHash(context.Context, string) ([]*Call, [][]*FlatCall, error) SendTransaction(context.Context, *ethtypes.Transaction) error BalanceAt(context.Context, ethcommon.Address, *big.Int) (*big.Int, error) NonceAt(context.Context, ethcommon.Address, *big.Int) (uint64, error) SuggestGasPrice(context.Context) (*big.Int, error) EstimateGas(context.Context, interfaces.CallMsg) (uint64, error) TxPoolContent(context.Context) (*TxPoolContent, error) GetNetworkName(context.Context, ...rpc.Option) (string, error) Peers(context.Context, ...rpc.Option) ([]info.Peer, error) GetContractInfo(ethcommon.Address, bool) (string, uint8, error) CallContract(context.Context, interfaces.CallMsg, *big.Int) ([]byte, error) }
type ContractClient ¶ added in v0.0.26
type ContractClient struct {
// contains filtered or unexported fields
}
ContractClient is a client for the calling contract information
func NewContractClient ¶ added in v0.0.26
func NewContractClient(c ethclient.Client) *ContractClient
NewContractClient returns a new ContractInfo client
func (*ContractClient) GetContractInfo ¶ added in v0.1.5
GetContractInfo returns the symbol and decimals for [addr].
type ContractInfoToken ¶ added in v0.0.26
type ContractInfoToken struct { ContractInfoTokenCaller // Read-only binding to the contract ContractInfoTokenTransactor // Write-only binding to the contract ContractInfoTokenFilterer // Log filterer for contract events }
ContractInfoToken is an auto generated Go binding around an Ethereum contract.
func NewContractInfoToken ¶ added in v0.0.26
func NewContractInfoToken(address common.Address, backend bind.ContractBackend) (*ContractInfoToken, error)
NewContractInfoToken creates a new instance of ContractInfoToken, bound to a specific deployed contract.
type ContractInfoTokenCaller ¶ added in v0.0.26
type ContractInfoTokenCaller struct {
// contains filtered or unexported fields
}
ContractInfoTokenCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewContractInfoTokenCaller ¶ added in v0.0.26
func NewContractInfoTokenCaller(address common.Address, caller bind.ContractCaller) (*ContractInfoTokenCaller, error)
NewContractInfoTokenCaller creates a new read-only instance of ContractInfoToken, bound to a specific deployed contract.
type ContractInfoTokenCallerRaw ¶ added in v0.0.26
type ContractInfoTokenCallerRaw struct {
Contract *ContractInfoTokenCaller // Generic read-only contract binding to access the raw methods on
}
ContractInfoTokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ContractInfoTokenCallerRaw) Call ¶ added in v0.0.26
func (_ContractInfoToken *ContractInfoTokenCallerRaw) 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 ContractInfoTokenCallerSession ¶ added in v0.0.26
type ContractInfoTokenCallerSession struct { Contract *ContractInfoTokenCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ContractInfoTokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ContractInfoTokenCallerSession) Decimals ¶ added in v0.0.26
func (_ContractInfoToken *ContractInfoTokenCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*ContractInfoTokenCallerSession) Symbol ¶ added in v0.0.26
func (_ContractInfoToken *ContractInfoTokenCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
type ContractInfoTokenFilterer ¶ added in v0.0.26
type ContractInfoTokenFilterer struct {
// contains filtered or unexported fields
}
ContractInfoTokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewContractInfoTokenFilterer ¶ added in v0.0.26
func NewContractInfoTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractInfoTokenFilterer, error)
NewContractInfoTokenFilterer creates a new log filterer instance of ContractInfoToken, bound to a specific deployed contract.
type ContractInfoTokenRaw ¶ added in v0.0.26
type ContractInfoTokenRaw struct {
Contract *ContractInfoToken // Generic contract binding to access the raw methods on
}
ContractInfoTokenRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ContractInfoTokenRaw) Call ¶ added in v0.0.26
func (_ContractInfoToken *ContractInfoTokenRaw) 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 (*ContractInfoTokenRaw) Transact ¶ added in v0.0.26
func (_ContractInfoToken *ContractInfoTokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContractInfoTokenRaw) Transfer ¶ added in v0.0.26
func (_ContractInfoToken *ContractInfoTokenRaw) 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 ContractInfoTokenSession ¶ added in v0.0.26
type ContractInfoTokenSession struct { Contract *ContractInfoToken // 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 }
ContractInfoTokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ContractInfoTokenSession) Decimals ¶ added in v0.0.26
func (_ContractInfoToken *ContractInfoTokenSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*ContractInfoTokenSession) Symbol ¶ added in v0.0.26
func (_ContractInfoToken *ContractInfoTokenSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
type ContractInfoTokenTransactor ¶ added in v0.0.26
type ContractInfoTokenTransactor struct {
// contains filtered or unexported fields
}
ContractInfoTokenTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewContractInfoTokenTransactor ¶ added in v0.0.26
func NewContractInfoTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractInfoTokenTransactor, error)
NewContractInfoTokenTransactor creates a new write-only instance of ContractInfoToken, bound to a specific deployed contract.
type ContractInfoTokenTransactorRaw ¶ added in v0.0.26
type ContractInfoTokenTransactorRaw struct {
Contract *ContractInfoTokenTransactor // Generic write-only contract binding to access the raw methods on
}
ContractInfoTokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ContractInfoTokenTransactorRaw) Transact ¶ added in v0.0.26
func (_ContractInfoToken *ContractInfoTokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContractInfoTokenTransactorRaw) Transfer ¶ added in v0.0.26
func (_ContractInfoToken *ContractInfoTokenTransactorRaw) 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 ContractInfoTokenTransactorSession ¶ added in v0.0.26
type ContractInfoTokenTransactorSession struct { Contract *ContractInfoTokenTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ContractInfoTokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type EthClient ¶
EthClient provides access to Coreth API
func NewEthClient ¶
NewEthClient returns a new EVM client
func (*EthClient) TraceBlockByHash ¶ added in v0.1.1
func (c *EthClient) TraceBlockByHash(ctx context.Context, hash string) ([]*Call, [][]*FlatCall, error)
TraceBlockByHash returns the transaction traces of all transactions in the block
func (*EthClient) TraceTransaction ¶
TraceTransaction returns a transaction trace
func (*EthClient) TxPoolContent ¶
func (c *EthClient) TxPoolContent(ctx context.Context) (*TxPoolContent, error)
TxPoolContent returns the tx pool content
type TxAccountMap ¶
type TxAccountMap map[string]TxNonceMap
type TxNonceMap ¶
type TxPoolContent ¶
type TxPoolContent struct { Pending TxAccountMap `json:"pending"` Queued TxAccountMap `json:"queued"` }