Skip to content

propsproject/props-transaction-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

props-transaction-processor

Props Token

this propject was generated with goprops-template

Building docker image

In root directory of project run

make docker-image

Now bring up sawtooth network

cd examples/sample-networkd
 docker-compose -f sample-network.yaml up --force-recreate

Generate Protobuffer bindings

Run 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
pbjs -t static-module -w commonjs -o OUTPUTDIR ./protos/earning.proto ./protos/payload.proto

Using dev-cli

Pre-reqs

Install dependencies with these commands

cd dev-cli
yarn

Usage

Issue 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

About

The transaction processor for the sidechain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published