client

package
v0.0.0-...-b4b7c53 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: GPL-3.0 Imports: 14 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 {
	// contains filtered or unexported fields
}

func New

func New(keys keyring.Keyring, signer *user.Signer, client maelstrom.BlobClient) (*Client, error)

func (*Client) Balance

func (c *Client) Balance(ctx context.Context) (uint64, error)

func (*Client) Cancel

func (c *Client) Cancel(ctx context.Context, id uint64) error

func (*Client) Confirm

func (c *Client) Confirm(ctx context.Context, id uint64) ([]byte, error)

func (*Client) Deposit

func (c *Client) Deposit(ctx context.Context, coins uint64) error

func (*Client) Submit

func (c *Client) Submit(ctx context.Context, namespace []byte, blobs [][]byte, fee uint64) (uint64, error)

func (*Client) Withdraw

func (c *Client) Withdraw(ctx context.Context, amount uint64) error

func (*Client) WithdrawAll

func (c *Client) WithdrawAll(ctx context.Context) error

Jump to

Keyboard shortcuts

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