ZeppelinOS JavaScript Library (zos-lib)
JavaScript library for the ZeppelinOS smart contract platform.
ZeppelinOS is a platform to develop, deploy and operate smart contract projects on Ethereum and every other EVM and eWASM-powered blockchain.
This is the repository for the ZeppelinOS JavaScript library. It is mainly used
by the
zos
command-line interface,
which is the recommended way to use ZeppelinOS; but this library can also be
used directly to operate ZeppelinOS projects when a programmatic interface is
preferred or more flexibility and lower-level access is required.
Install
First, install Node.js and npm. Then, install the ZeppelinOS JavaScript Library running:
npm install zos-lib
Usage
Suppose there is a contract called MyContract
in the file
contracts/MyContract.sol
, already compiled to
build/contracts/MyContract.json
, and that there is a development blockchain
network running locally in port 9545.
Open a Node.js console:
node
> // Connect web3 to the local provider.> var Web3 = > web3 = "http://localhost:9545"> // Load the contract.> const Contracts SimpleProject = > const MyContract = Contracts> // Instantiate a project.> myProject = 'MyProject' from: web3ethaccounts0 ;> // Create a proxy for the contract.> myProject> // Make a change on the contract, and compile it.> const MyContractV1 = Contracts> myProject ## Security If you find a security issue please contact us at security@zeppelinosorg Wegive rewards for reported issues according to impact and severity ## API TODO ## Maintainers * @facuspagnuolohttps://github.com/facuspagnuolo/)* @spalladinohttps://github.com/spalladino) ## Contribute To contribute join ourcommunity channel on Telegramhttps://t.me/zeppelinos) where you can talk toall the ZeppelinOS developers contributors partners and users You can also follow the recent developments of the project in ourbloghttps://blog.zeppelin.solutions/) andTwitter accounthttps://twitter.com/zeppelinorg). ## License MITLICENSEmd © Zeppelin