cpaper

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2019 License: MIT Imports: 9 Imported by: 0

README

Commercial paper example with protobuf chaincode state

https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/scenario.html

At the heart of a blockchain network is a smart contract. In PaperNet, the code in the commercial paper smart contract defines the valid states for commercial paper, and the transaction logic that transition a paper from one state to another.

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{}))

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

Functions

func NewCC

func NewCC() *router.Chaincode

func NewEncryptedCC

func NewEncryptedCC() *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