-
Notifications
You must be signed in to change notification settings - Fork 19
Home
Welcome to the Gnosis JavaScript library wiki! gnosis.js is a JavaScript library designed to make developing dapps over the Gnosis contracts easier and more ergonomic. It is natively written in ES6, and the project is configured for writing dapps in both "server-side" Node.js and "client-side" browser JS.
In order to follow this guide, you will need to be comfortable working in your OS's shell, writing JavaScript, and working with npm. A working knowledge of Ethereum, Solidity, and Truffle would greatly ease the use of this library, but is not strictly necessary for getting started. The usage of a VCS such as Git is also encouraged, but is not explained here.
-
Create a project directory, open a terminal or command line, and change directory into the project directory.
-
Use
npm initto set up your project. -
Install
gnosis.jsinto your project as a dependency using:npm install --save @gnosis.pm/gnosisjsBe sure to issue this command with the exact spelling.
This command installs the Gnosis JavaScript library and its dependencies into the
node_modulesdirectory. The@gnosis.pm/gnosisjspackage contains the ES6 source of the library insrcwhich can also be found on the repository, compiled versions of the modules which can be run on Node.js as well as webpacked standalonegnosis[.min].jsfiles ready for use by web clients in thedistdirectory, and API documentation indocsdirectory.