common

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 6 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       format.MSPID
	IssuerClient string

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

func (*TokenData) Apply

func (data *TokenData) Apply(request TokenTransferRequest, c golang.CommonChaincode, mspid format.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