token

command
v0.0.0-...-b3cf803 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 6 Imported by: 0

README

Shows the use of shim functions

  • token.go V3 of token
  • proposal.go Shows extraction of info from SignedProposal

Part-1

Demonstrates the use of stub.GetTxID(), stub.GetChannelID() and stub.GetTxTimestamp()

1. Init the environment

dev-init.sh

source set-env.sh acme

2. Install & Instantiate the chaincode

set-chain-env.sh -n token -p token/v3

chain.sh install -p

chain.sh instantiate

3. Start following the log

cc-logs.sh -f

4. Open a new terminal

. set-env.sh acme

chain.sh invoke

5. Check out the output in Terminal #1

Part-2

1. Install the latest version of the chaincode

chain.sh install-auto

set-chain-env.sh -s 2

chain.sh instantiate

2. Follow the logs

cc-logs.sh -f

3. Invoke the chaincode in terminal #2

chain.sh invoke

3. Observe the output in terminal #1

GET THE Package otherwise you MAY get an error :)

go get github.com/golang/protobuf/proto

Note:

go get -u github.com/golang/protobuf/protoc-gen-go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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