cpaper_extended

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: MIT Imports: 9 Imported by: 0

README

Commercial paper extended example

This is an extended example of the official Commercial paper scenario

Features
  • Protobuf transaction payload and event definitions
  • Protobuf chaincode state schema
  • Event emitting
  • Unique key external reference usage

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// State mappings
	StateMappings = m.StateMappings{}.
					Add(&schema.CommercialPaper{},
			m.PKeySchema(&schema.CommercialPaperId{}),
			m.List(&schema.CommercialPaperList{}),
			m.UniqKey("ExternalId"),
		)

	// EventMappings
	EventMappings = m.EventMappings{}.
					Add(&schema.IssueCommercialPaper{}).
					Add(&schema.BuyCommercialPaper{}).
					Add(&schema.RedeemCommercialPaper{})
)

Functions

func NewCC

func NewCC() *router.Chaincode

Types

This section is empty.

Directories

Path Synopsis
Package schema is a generated protocol buffer package.
Package schema is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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