Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

OpenST.js Examples v0.9.4

Latest
Compare
Choose a tag to compare
@kedarchandrayan kedarchandrayan released this 04 Oct 17:28
5fb0153

openst-js-example helps developers familiarize themselves with the functionality and usage of the OpenST.js library.

OpenST.js simplifies deployment of the TokenHolder Contracts, TokenRules Contract, and token Rule Contracts, registration of Rule Contracts with the TokenRules contract and execution of the provided simple TransferRule to perform transfers between economy participants.

openst-js-example is an end-to-end guided experience through OpenST.js where the execution of each step produces a response, which then feeds into the subsequent steps.

This repository contains an example usage of OpenST.js where we walk you through registering rules, adding users, adding wallets to users, authorizing and revoking ephemeral keys and other functionality in the context of a token economy.

The economy setup includes deploying a Token, the rules associated with the transactions in the economy, and the TokenRules contract which enables the business rules defined in the Rule contracts.

An economy user needs to be able to hold tokens and sign transactions. A TokenHolder contract simplifies this for end-user. The TokenHolder contract is a multi-sig contract with multiple ownership keys (wallets) that control the value and also multiple ephemeral keys that sign transactions.