Skip to content

Organization contracts manage application permissions

License

Notifications You must be signed in to change notification settings

OpenST/organization-contracts

Repository files navigation

🔐 Organization Contracts

Build master Build develop Discuss on Discourse Chat on Gitter

An organization administers other contracts. For an individual contract or a system of contracts, an organization enables limiting execution of certain functions to the organization or other accounts it authorizes (e.g., "workers").

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Project requires node and npm to be installed.

Cloning

git clone [email protected]:OpenST/organization-contracts.git

Installing

Install npm packages:

cd organization-contracts
npm install

Usage

The contracts and interfaces in this repository are primarily intended for use in other OpenST projects. Please see Related Work.

Compiling the contracts

The following npm script compiles updated contracts since the last compile using truffle:

npm run compile

To compile all contracts, including the ones that haven't changed:

npm run compile-all

Testing the contracts

We use the ganache blockchain for development. Before running the tests, start ganache:

npm run ganache-cli

Test the contracts using truffle:

npm test

Linting

ESLint is used to lint js files.

To lint all js files within the ./test and ./tool directories, run:

npm run lint

Related Work

OpenST uses organization contracts and interfaces in mosaic-contracts, brandedtoken-contracts, and openst-contracts to scale, create, and define blockchain token economies.

Contributing

There are multiple ways to contribute to this project. However, before contributing, please first review the Code of Conduct.

We track our issues on GitHub.

To contribute code, please review our Developer Guidelines and ensure that your submissions adhere to the Style Guide; please also be aware, this project is under active development and we have not yet established firm contribution guidelines or acceptance criteria.

Community

About

Organization contracts manage application permissions

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published