Documentation ¶
Index ¶
- func WeiToEther(wei *big.Int) *big.Float
- func WeiToGwei(wei *big.Int) *big.Float
- type GasInfo
- type Node
- func (n *Node) Connect() error
- func (n *Node) ERC1155Supported(contractAddress common.Address) bool
- func (n *Node) GetCollectionMetadata(contractAddress common.Address) map[string]interface{}
- func (n *Node) GetCurrentGasInfo() (*GasInfo, error)
- func (n *Node) GetERC1155TokenID(data []byte) *big.Int
- func (n *Node) GetERC1155TokenName(contractAddress common.Address, tokenID *big.Int) (string, error)
- func (n *Node) GetERC721CollectionName(contractAddress common.Address) (string, error)
- func (n *Node) GetSupportedStandards(contractAddress common.Address) []standard.Standard
- func (n *Node) GetTokenImageURI(contractAddress common.Address, tokenID *big.Int) (string, error)
- func (n *Node) GetTokenMetadata(tokenURI string) (*models.MetadataERC721, error)
- func (n *Node) GetTokenURI(contractAddress common.Address, tokenID *big.Int) (string, error)
- func (n *Node) SubscribeToContract(queueLogs chan types.Log, contractAddress common.Address) (ethereum.Subscription, error)
- func (n *Node) SubscribeToOrderFulfilled(queueLogs chan types.Log) (ethereum.Subscription, error)
- func (n *Node) SubscribeToOrdersMatched(queueLogs chan types.Log) (ethereum.Subscription, error)
- func (n *Node) SubscribeToPendingTransactions(queueLogs chan<- common.Hash) (ethereum.Subscription, error)
- func (n *Node) SubscribeToSingleTransfers(queueLogs chan types.Log) (ethereum.Subscription, error)
- func (n *Node) SubscribeToSingleTransfersFor(queueLogs chan types.Log, contractAddresses []common.Address) (ethereum.Subscription, error)
- func (n *Node) SubscribeToTransfers(queueLogs chan types.Log) (ethereum.Subscription, error)
- func (n *Node) SubscribeToTransfersFor(queueLogs chan types.Log, contractAddresses []common.Address) (ethereum.Subscription, error)
- type Nodes
- func (nc *Nodes) ConnectAllNodes() *Nodes
- func (nc *Nodes) ERC1155Supported(contractAddress common.Address) bool
- func (nc *Nodes) GetCollectionMetadata(contractAddress common.Address) map[string]interface{}
- func (nc *Nodes) GetCurrentGasInfo() (*GasInfo, error)
- func (nc *Nodes) GetENSForAddress(address common.Address) (string, error)
- func (nc *Nodes) GetERC1155TokenID(data []byte) *big.Int
- func (nc *Nodes) GetERC1155TokenName(contractAddress common.Address, tokenID *big.Int) (string, error)
- func (nc *Nodes) GetERC721CollectionName(contractAddress common.Address) (string, error)
- func (nc *Nodes) GetLocalNodes() []*Node
- func (nc *Nodes) GetNodeByID(nodeID int) *Node
- func (nc *Nodes) GetRandomLocalNode() *Node
- func (nc *Nodes) GetSupportedStandards(contractAddress common.Address) []standard.Standard
- func (nc *Nodes) GetTokenImageURI(contractAddress common.Address, tokenID *big.Int) (string, error)
- func (nc *Nodes) GetTransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error)
- func (nc *Nodes) GetTransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- func (nc *Nodes) ReverseResolveAllENS(wallets *wallet.Wallets)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct { NodeID int `mapstructure:"id"` Name string `mapstructure:"name"` Color lipgloss.Color `mapstructure:"color"` Marker string `mapstructure:"marker"` WebsocketsEndpoint string `mapstructure:"endpoint"` LocalNode bool `mapstructure:"local"` Client *ethclient.Client ClientGeth *gethclient.Client NumLogsReceived uint64 LastLogReceived int64 }
Node represents a w3 provider configuration.
func (*Node) ERC1155Supported ¶
func (*Node) GetCollectionMetadata ¶
func (*Node) GetCurrentGasInfo ¶
GetCurrentGasInfo returns the current gas price and tip
func (*Node) GetERC1155TokenName ¶
func (*Node) GetERC721CollectionName ¶
func (*Node) GetSupportedStandards ¶
func (*Node) GetTokenImageURI ¶
func (*Node) GetTokenMetadata ¶
func (n *Node) GetTokenMetadata(tokenURI string) (*models.MetadataERC721, error)
func (*Node) GetTokenURI ¶
func (*Node) SubscribeToContract ¶
func (*Node) SubscribeToOrderFulfilled ¶
func (*Node) SubscribeToOrdersMatched ¶
func (*Node) SubscribeToPendingTransactions ¶
func (*Node) SubscribeToSingleTransfers ¶
func (*Node) SubscribeToSingleTransfersFor ¶
func (*Node) SubscribeToTransfers ¶
type Nodes ¶
type Nodes []*Node
func (*Nodes) ConnectAllNodes ¶
func (*Nodes) ERC1155Supported ¶
func (*Nodes) GetCollectionMetadata ¶
func (*Nodes) GetCurrentGasInfo ¶
func (*Nodes) GetENSForAddress ¶
func (*Nodes) GetERC1155TokenName ¶
func (*Nodes) GetERC721CollectionName ¶
func (*Nodes) GetLocalNodes ¶
func (*Nodes) GetRandomLocalNode ¶
func (*Nodes) GetSupportedStandards ¶
func (*Nodes) GetTokenImageURI ¶
func (*Nodes) GetTransactionByHash ¶
func (*Nodes) GetTransactionReceipt ¶
func (*Nodes) ReverseResolveAllENS ¶
Click to show internal directories.
Click to hide internal directories.