svc

package
v0.0.0-...-d662bb3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeABI

func DecodeABI(parsedABI *abi.ABI) (*types.SwapFunction, error)

func ParseABI

func ParseABI(rawInput []byte) (*abi.ABI, error)

Types

type Client

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

func NewConnection

func NewConnection(url string) *Client

func (*Client) DownloadABI

func (client *Client) DownloadABI(address string) ([]byte, error)

Downloads ABI for the given smart contract address

func (*Client) SubscribeToPendingTxns

func (client *Client) SubscribeToPendingTxns(ctx context.Context, ch chan<- *types.Transaction) (*rpc.ClientSubscription, error)

func (*Client) Transaction

func (client *Client) Transaction(hash string) (*types.Transaction, bool, error)

Given a transaction hash, returns the transaction, is it pending & error

Jump to

Keyboard shortcuts

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