Documentation ¶
Index ¶
- type Base
- func (b *Base) AddBalance(ctx contractapi.TransactionContextInterface, walletId string, amount string) error
- func (b *Base) GetActiveWallet(ctx contractapi.TransactionContextInterface, walletId string) (*entity.Wallet, error)
- func (b *Base) GetEnrollment(ctx contractapi.TransactionContextInterface, tokenId string) (*entity.Enrollment, error)
- func (b *Base) GetExchangeTxByBlockchainId(ctx contractapi.TransactionContextInterface, blockchainId string) ([]*entity.Transaction, error)
- func (b *Base) GetNFT(ctx contractapi.TransactionContextInterface, nftTokenId string) (*entity.NFT, error)
- func (b *Base) GetTokenType(ctx contractapi.TransactionContextInterface, tokenId string) (*entity.Token, error)
- func (b *Base) GetTransaction(ctx contractapi.TransactionContextInterface, txId string) (*entity.Transaction, error)
- func (b *Base) GetWallet(ctx contractapi.TransactionContextInterface, walletId string) (*entity.Wallet, error)
- func (b *Base) SubBalance(ctx contractapi.TransactionContextInterface, walletId string, amount string) error
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 (*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
Click to show internal directories.
Click to hide internal directories.