ZeppelinOS is a platform to develop, deploy and operate smart contract projects on Ethereum and every other EVM and eWASM-powered blockchain.
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.
npm install zos-lib
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:
> const ZWeb3 Contracts SimpleProject => // Initialize a web3 provider.> ZWeb3> // Load the contract.> const MyContract = Contracts> // Instantiate a project.> myProject = 'MyProject' from: await ZWeb3> // Create a proxy for the contract.> myProject> // Make a change on the contract, and compile it.> const MyContractUpgraded = Contracts> myProject
If you find a security issue, please contact us at firstname.lastname@example.org. We give rewards for reported issues, according to impact and severity.
To contribute, join our community channel on Telegram where you can talk to all the ZeppelinOS developers, contributors, partners and users.
MIT © Zeppelin