client

package
v0.0.0-...-7781947 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*client.Client // embed standard functionality
	// contains filtered or unexported fields
}

func New

func New(uri string) *Client

New creates a new client object.

func (*Client) Asset

func (cli *Client) Asset(
	ctx context.Context,
	asset ids.ID,
) (bool, []byte, uint64, string, bool, error)

func (*Client) Balance

func (cli *Client) Balance(ctx context.Context, addr string, asset ids.ID) (uint64, error)

func (*Client) GenerateTransaction

func (cli *Client) GenerateTransaction(
	ctx context.Context,
	wm *warp.Message,
	action chain.Action,
	factory chain.AuthFactory,
	modifiers ...client.Modifier,
) (func(context.Context) error, *chain.Transaction, uint64, error)

func (*Client) Genesis

func (cli *Client) Genesis(ctx context.Context) (*genesis.Genesis, error)

func (*Client) Loan

func (cli *Client) Loan(ctx context.Context, asset ids.ID, destination ids.ID) (uint64, error)

func (*Client) Orders

func (cli *Client) Orders(ctx context.Context, pair string) ([]*controller.Order, error)

func (*Client) Parser

func (cli *Client) Parser(ctx context.Context) (chain.Parser, error)

func (*Client) Tx

func (cli *Client) Tx(ctx context.Context, id ids.ID) (bool, bool, int64, error)

func (*Client) WaitForBalance

func (cli *Client) WaitForBalance(
	ctx context.Context,
	addr string,
	asset ids.ID,
	min uint64,
) error

func (*Client) WaitForTransaction

func (cli *Client) WaitForTransaction(ctx context.Context, txID ids.ID) (bool, error)

type Parser

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

func (*Parser) ChainID

func (p *Parser) ChainID() ids.ID

func (*Parser) Registry

func (*Parser) Registry() (chain.ActionRegistry, chain.AuthRegistry)

func (*Parser) Rules

func (p *Parser) Rules(t int64) chain.Rules

Jump to

Keyboard shortcuts

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