base

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Repo repository.Repo
}

func NewBase

func NewBase() *Base

func (*Base) AddBalance

func (b *Base) AddBalance(ctx contractapi.TransactionContextInterface, walletId string, amount string) error

func (*Base) GetActiveWallet

func (b *Base) GetActiveWallet(ctx contractapi.TransactionContextInterface, walletId string) (*entity.Wallet, error)

func (*Base) GetEnrollment

func (b *Base) GetEnrollment(ctx contractapi.TransactionContextInterface, tokenId string) (*entity.Enrollment, error)

func (*Base) GetExchangeTxByBlockchainId

func (b *Base) GetExchangeTxByBlockchainId(ctx contractapi.TransactionContextInterface, blockchainId string) ([]*entity.Transaction, error)

func (*Base) GetNFT

func (b *Base) GetNFT(ctx contractapi.TransactionContextInterface, nftTokenId string) (*entity.NFT, error)

func (*Base) GetTokenType

func (b *Base) GetTokenType(ctx contractapi.TransactionContextInterface, tokenId string) (*entity.Token, error)

func (*Base) GetTransaction

func (b *Base) GetTransaction(ctx contractapi.TransactionContextInterface, txId string) (*entity.Transaction, error)

func (*Base) GetWallet

func (b *Base) GetWallet(ctx contractapi.TransactionContextInterface, walletId string) (*entity.Wallet, error)

func (*Base) SubBalance

func (b *Base) SubBalance(ctx contractapi.TransactionContextInterface, walletId string, amount string) error

Jump to

Keyboard shortcuts

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