views

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Limit int64 = 50
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptCashView

type AcceptCashView struct{}

func (*AcceptCashView) Call

func (a *AcceptCashView) Call(context view.Context) (interface{}, error)

type AuditView

type AuditView struct{}

func (*AuditView) Call

func (a *AuditView) Call(context view.Context) (interface{}, error)

type Balance

type Balance struct {
	TMSID  token.TMSID
	Wallet string
	Type   string
}

type BalanceResult

type BalanceResult struct {
	Type     string
	Quantity string
	Locked   string
	Expired  string
}

type BalanceView

type BalanceView struct {
	*Balance
}

BalanceView is a view used to return: 1. The amount of unspent tokens; 2. The amount of htlc-locked tokens not yet expired; 3. The amount of expired htlc-locked tokens that have been not reclaimed for the given wallet.

func (*BalanceView) Call

func (b *BalanceView) Call(context view.Context) (interface{}, error)

type BalanceViewFactory

type BalanceViewFactory struct{}

func (*BalanceViewFactory) NewView

func (g *BalanceViewFactory) NewView(in []byte) (view.View, error)

type IssueCash

type IssueCash struct {
	// TMSID identifies the TMS to use to perform the token operation
	TMSID token.TMSID
	// IssuerWallet is the issuer's wallet to use
	IssuerWallet string
	// TokenType is the type of token to issue
	TokenType string
	// Quantity represents the number of units of a certain token type to issue
	Quantity uint64
	// Recipient is the identity of the recipient's FSC node
	Recipient view.Identity
}

IssueCash contains the input information to issue a token

type IssueCashView

type IssueCashView struct {
	*IssueCash
}

func (*IssueCashView) Call

func (p *IssueCashView) Call(context view.Context) (interface{}, error)

type IssueCashViewFactory

type IssueCashViewFactory struct{}

func (*IssueCashViewFactory) NewView

func (p *IssueCashViewFactory) NewView(in []byte) (view.View, error)

type RegisterAuditor

type RegisterAuditor struct {
	TMSID token.TMSID
}

type RegisterAuditorView

type RegisterAuditorView struct {
	*RegisterAuditor
}

func (*RegisterAuditorView) Call

func (r *RegisterAuditorView) Call(context view.Context) (interface{}, error)

type RegisterAuditorViewFactory

type RegisterAuditorViewFactory struct{}

func (*RegisterAuditorViewFactory) NewView

func (p *RegisterAuditorViewFactory) NewView(in []byte) (view.View, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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