common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OwnerTypeMember    = OwnerType("member")
	OwnerTypeClinic    = OwnerType("clinic")
	OwnerTypeNetwork   = OwnerType("network")
	OwnerTypeInsurance = OwnerType("insurance")
)

Variables

This section is empty.

Functions

func Hash

func Hash(data []byte) string

Types

type OwnerType

type OwnerType string

type TokenCreateRequest

type TokenCreateRequest struct {
	Owner string
}

func (TokenCreateRequest) Build

type TokenData

type TokenData struct {
	MintTime     time.Time
	Issuer       cid.MSPID
	IssuerClient string

	TransferTime time.Time // latest operation time
	Owner        string    // latest owner, any format
	OwnerType    OwnerType // latest ownerType
	Manager      cid.MSPID // latest manager
	Client       string    // latest Operator
}

func (*TokenData) Apply

func (data *TokenData) Apply(request TokenTransferRequest, c golang.CommonChaincode, mspid cid.MSPID) *TokenData

type TokenHistory

type TokenHistory struct {
	TxId string
	TokenData
	IsDelete bool
}

type TokenTransferRequest

type TokenTransferRequest struct {
	Owner     string
	OwnerType OwnerType
}

Jump to

Keyboard shortcuts

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