cpaper

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Commercial paper Hyperledger Fabric chaincode example with protobuf based state schema

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{})) // structure-result of list method

	// 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