this propject was generated with goprops-template
In root directory of project run
make docker-imageNow bring up sawtooth network
cd examples/sample-networkd
docker-compose -f sample-network.yaml up --force-recreateRun command in root level of project
- Go
mkdir -p ./core/proto/pending_props_pb
protoc -I ./protos ./protos/earning.proto ./protos/payload.proto --go_out=./core/proto/pending_props_pb- JS (Node)
protoc -I ./protos ./protos/earning.proto ./protos/payload.proto --js_out=import_style=commonjs,binary:OUTPUTDIR- JS (Browser) using protobuf.js
pbjs -t static-module -w commonjs -o OUTPUTDIR ./protos/earning.proto ./protos/payload.protoInstall dependencies with these commands
cd dev-cli
yarnIssue an earning, a browser window should open to the transaction status
node index.js pending-props -a 100 -r 0x42EB768f2244C8811C63729A21A3569731535f06 If that transaction was successful, lets query for it using the state address
node index.js query-state -a e0a87c93dc0ccef35a577fd05ac533eb2f6e601917d26c3ba8be75f4ab14f9d39370a0