remote

package
v1.0.48 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountSeqno added in v1.0.48

func AccountSeqno(ctx context.Context, g *libkb.GlobalContext, accountID stellar1.AccountID) (uint64, error)

func Balances added in v1.0.48

func Balances(ctx context.Context, g *libkb.GlobalContext, accountID stellar1.AccountID) ([]stellar1.Balance, error)

func ExchangeRate added in v1.0.48

func ExchangeRate(ctx context.Context, g *libkb.GlobalContext, currency string) (stellar1.OutsideExchangeRate, error)

func Fetch

Fetch and unbox the latest bundle from the server.

func GetAccountDisplayCurrency added in v1.0.48

func GetAccountDisplayCurrency(ctx context.Context, g *libkb.GlobalContext, accountID stellar1.AccountID) (string, error)

func PaymentDetail added in v1.0.48

func PaymentDetail(ctx context.Context, g *libkb.GlobalContext,
	txID string) (res stellar1.PaymentSummary, err error)

func Post

func Post(ctx context.Context, g *libkb.GlobalContext, clearBundle stellar1.Bundle) (err error)

Post a bundle to the server.

func PostWithChainlink(ctx context.Context, g *libkb.GlobalContext, clearBundle stellar1.Bundle) (err error)

Post a bundle to the server with a chainlink.

func RecentPayments added in v1.0.48

func RecentPayments(ctx context.Context, g *libkb.GlobalContext,
	accountID stellar1.AccountID, limit int) (res []stellar1.PaymentSummary, err error)

func SetAccountDefaultCurrency added in v1.0.48

func SetAccountDefaultCurrency(ctx context.Context, g *libkb.GlobalContext, accountID stellar1.AccountID,
	currency string) error

func ShouldCreate

func ShouldCreate(ctx context.Context, g *libkb.GlobalContext) (should bool, err error)

ShouldCreate asks the server whether to create this user's initial wallet.

func SubmitPayment added in v1.0.48

func SubmitRelayPayment added in v1.0.48

Types

type RemoteNet added in v1.0.48

type RemoteNet struct {
	libkb.Contextified
}

func NewRemoteNet added in v1.0.48

func NewRemoteNet(g *libkb.GlobalContext) *RemoteNet

func (*RemoteNet) AccountSeqno added in v1.0.48

func (r *RemoteNet) AccountSeqno(ctx context.Context, accountID stellar1.AccountID) (uint64, error)

func (*RemoteNet) Balances added in v1.0.48

func (r *RemoteNet) Balances(ctx context.Context, accountID stellar1.AccountID) ([]stellar1.Balance, error)

func (*RemoteNet) PaymentDetail added in v1.0.48

func (r *RemoteNet) PaymentDetail(ctx context.Context, txID string) (res stellar1.PaymentSummary, err error)

func (*RemoteNet) RecentPayments added in v1.0.48

func (r *RemoteNet) RecentPayments(ctx context.Context, accountID stellar1.AccountID, limit int) (res []stellar1.PaymentSummary, err error)

func (*RemoteNet) SubmitPayment added in v1.0.48

func (*RemoteNet) SubmitRelayPayment added in v1.0.48

func (r *RemoteNet) SubmitRelayPayment(ctx context.Context, post stellar1.PaymentRelayPost) (stellar1.PaymentResult, error)

type Remoter added in v1.0.48

type Remoter interface {
	AccountSeqno(ctx context.Context, accountID stellar1.AccountID) (uint64, error)
	Balances(ctx context.Context, accountID stellar1.AccountID) ([]stellar1.Balance, error)
	SubmitPayment(ctx context.Context, post stellar1.PaymentDirectPost) (stellar1.PaymentResult, error)
	SubmitRelayPayment(ctx context.Context, post stellar1.PaymentRelayPost) (stellar1.PaymentResult, error)
	RecentPayments(ctx context.Context, accountID stellar1.AccountID, limit int) (res []stellar1.PaymentSummary, err error)
	PaymentDetail(ctx context.Context, txID string) (res stellar1.PaymentSummary, err error)
}

Jump to

Keyboard shortcuts

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