client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 5 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(c ViewClient, id view.Identity, approver view.Identity) *Client

func (*Client) AgreeToBuy

func (c *Client) AgreeToBuy(agreement *states.AgreementToBuy) (string, error)

func (*Client) AgreeToSell

func (c *Client) AgreeToSell(agreement *states.AgreementToSell) (string, error)

func (*Client) Identity

func (c *Client) Identity() view.Identity

func (*Client) IsTxFinal

func (c *Client) IsTxFinal(id string, opts ...api.ServiceOption) error

func (*Client) Issue

func (c *Client) Issue(asset *states.Asset) (string, error)

func (*Client) Transfer

func (c *Client) Transfer(assetID string, agreementID string, recipient view.Identity) error

type ViewClient

type ViewClient interface {
	CallView(fid string, in []byte) (interface{}, error)
	IsTxFinal(txid string, opts ...api.ServiceOption) error
}

Jump to

Keyboard shortcuts

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