Trustack Procedure Builder CLI - https://trustack.io
This repo contains the a command line wrapper for the Procedure Builder Trustack Procedure that can be used to package your custom Procedures for execution on the Trustack network. The tool will build the package locally for you, but can also be used to publish to IPFS.
TBD
- Currently requires Nodejs be installed, with which it's used as follows:
node index.js [options]
Usage can be seen using the --help
option, which is posted here below:
Usage: procbldr.exe [options]
Options:
--version Show version number [boolean]
-c, --code Procedure code file path, should be index.js
-k, --key Encrypt key file (public key)
-p, --pin Pin via Pinata pinning service; must supply apikey and
secretkey via environment variables or commandline arguments.
Will attempt to read from env first, from: PIN_API_KEY and
PIN_SECRET_KEY.
-a, --apikey Pinata API key - apikey used to pin to Pinata.cloud service
-s, --secret Pinata secret key - secretkey used to pin to Pinata.cloud
service
-h, --help Show help [boolean]
Examples:
index.js -p ./index.js -k ./cert.pem -i Package Procedure code in index.js
false into a correct output file
See Procedure Examples in the trustack-sdk repo for how to write Procedures.
NOTE: This isn't working in the current release. Will update this once it's working again.
The NPM package pkg
is a prerequisite. This can be installed via: npm install --global pkg
.
To build, run: npm build
.
We'll work out contributions later, but feel free to file issues as needed.
This project is MIT licensed. For the full license, see LICENSE.
TBD
The primary contact for this project is [@fcbrandon].
Copyright (C) 2021 Brandon Caldwell - All Rights Reserved