{"_id":"@alice-finance/oz-upgrades","_rev":"1-237422b5140b6f51c036031bd45ff515","name":"@alice-finance/oz-upgrades","dist-tags":{"latest":"2.5.3"},"versions":{"2.5.3":{"name":"@alice-finance/oz-upgrades","version":"2.5.3","description":"JavaScript library for the OpenZeppelin smart contract platform","main":"./lib/index.js","private":false,"license":"MIT","scripts":{"test":"./scripts/test.sh","prepublishOnly":"echo 'Removing mock contracts...' && grep -hoP '^\\s*contract \\K(\\w+)' contracts/mocks/*.sol | sort | uniq | xargs -t -I% rm build/contracts/%.json","compile-contracts":"rm -rf build/contracts && truffle compile","compile-ts":"rm -rf lib && tsc","prepare":"npm run compile-contracts && npm run compile-ts","watch":"tsc -w","lint":"tsc --noEmit && eslint '*/**/*.{js,ts}' --quiet --fix","precommit":"tsc --noEmit && lint-staged"},"lint-staged":{"gitDir":"../../","linters":{"packages/lib/*/**/*.{js,ts}":["npm run lint --","git add"]}},"keywords":["openzeppelin","openzeppelin-sdk","zeppelinos","zeppelin","ethereum","smart-contracts","solidity","upgradeability","security","proxy","evm"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/alice-finance/openzeppelin-sdk.git"},"bugs":{"url":"https://github.com/alice-finance/openzeppelin-sdk/issues"},"homepage":"https://github.com/alice-finance/openzeppelin-sdk/tree/master/packages/lib#readme","dependencies":{"@types/cbor":"^2.0.0","@types/web3":"^1.0.14","axios":"^0.18.0","bignumber.js":"^7.2.0","cbor":"^4.1.5","chalk":"^2.4.1","ethers":"^4.0.20","glob":"^7.1.3","lodash.concat":"^4.5.0","lodash.difference":"^4.5.0","lodash.every":"^4.6.0","lodash.findlast":"^4.6.0","lodash.flatten":"^4.4.0","lodash.includes":"^4.3.0","lodash.invertby":"^4.7.0","lodash.isempty":"^4.4.0","lodash.isequal":"^4.5.0","lodash.isstring":"^4.0.1","lodash.keys":"^4.2.0","lodash.map":"^4.6.0","lodash.omit":"^4.5.0","lodash.pick":"^4.4.0","lodash.pickby":"^4.6.0","lodash.random":"^3.2.0","lodash.reverse":"^4.0.1","lodash.some":"^4.6.0","lodash.uniq":"^4.5.0","lodash.values":"^4.3.0","lodash.without":"^4.4.0","semver":"^5.5.1","spinnies":"^0.4.2","truffle-flattener":"^1.4.0","web3":"1.2.1","web3-utils":"1.2.0"},"devDependencies":{"@types/mocha":"^5.2.5","@types/node":"^10.12.12","@typescript-eslint/eslint-plugin":"^1.9.0","@typescript-eslint/parser":"^1.9.0","chai":"^4.1.2","chai-as-promised":"^7.1.1","chai-bignumber":"^2.0.2","chai-string":"^1.5.0","coveralls":"^3.0.0","eslint":"^5.16.0","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","ganache-cli":"^6.4.3","ganache-core":"^2.5.1","lint-staged":"4.3.0","lodash.foreach":"^4.5.0","lodash.noop":"^3.0.1","lodash.times":"^4.3.2","lodash.zipwith":"^4.2.0","mock-dependency":"file:test/mocks/mock-dependency","prettier":"^1.17.1","sinon":"^6.1.4","sinon-chai":"^3.3.0","tmp":"^0.0.33","truffle":"^5.0.5","ts-node":"^7.0.1","typescript":"^3.2.2"},"contributors":[{"name":"ajsantander","email":"alejandro@zeppelin.solutions"},{"name":"elopio","email":"leo@zeppelin.solutions"},{"name":"facuspagnuolo","email":"facu@zeppelin.solutions"},{"name":"fiiiu","email":"alejo@zeppelin.solutions"},{"name":"frangio","email":"fran@zeppelin.solutions"},{"name":"maraoz","email":"manu@zeppelin.solutions"},{"name":"martriay","email":"marto@zeppelin.solutions"},{"name":"spalladino","email":"palla@zeppelin.solutions"}],"licenseText":"The MIT License (MIT)\n\nCopyright (c) zOS Global Limited 2018-2019.\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@alice-finance/oz-upgrades@2.5.3","dist":{"shasum":"e702e475e9b8f31a5378acf961cd608f0fd6b4da","integrity":"sha512-+3WJ3ajC77l/ofDSW7jlG9ODx1Jm94pILAQY/XcKZrKplNqTUt8kQkkdTlelNAlXVXheiCnfoB4/c1cPWPtq9Q==","tarball":"https://registry.npmjs.org/@alice-finance/oz-upgrades/-/oz-upgrades-2.5.3.tgz","fileCount":351,"unpackedSize":50731319,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlBF2CRA9TVsSAnZWagAAVE4QAIwcUKoMT9YMnBihCIGs\nnrhtAfRZmGiYmpZ5Zh8vBS5+x3rnlfUg2k0wrwnZBAuNUAluhtjYsxQa/Qzd\nQoiL+a1OTTnSOXnZls8JG1/PZT6YZgrTyMs8eSzWVfM/PQhfkUgrmBzkIsjO\nSSY6qm/f7wWTeP44YeR0BT0qMwS/hlq/JMnzkRJ8R0jOo7/6lKeUb46yrjxF\nP4hxtPzvoU5sviHWtX11eK/D9sMgI/9Cv0F9vSzJSXn9gjijiRiZfjYoLKfM\nfVCAwt33JaWNosIkcvfceGCMY3HB/4hgemWWwkRLyw8SpLM8y6QtyVgfhCNd\nGTfAk+4PUuUz7O1dd8efFXdBULR5coiUjjxYg6KQL4W2h8zuWq7lJU8USr4P\n8iLZ9iCIMsHf1eSTjP2gTqPlV1CVrSNdtWBqbPaRGkQ5omAsZ261nc4iiK6H\nfQjsLxhJ0Y1Rt2eW92eIJlqOHi5DF4uqZ228i1JjyH6pXjDidvQbTGHUErPJ\nX0qEy1mxAXGK6va0xCxNbB4LwSiLHuTpfzLXyYTViI00GbfZYhFsrdUV3j+d\nXU8HzuvXofiPxvKWtV77ffqQ8mg+BJxsrO+qr/EPVmqakLi1/aQMMaDQZD/+\nYsDyzJnk7K9v6wClzvdNwgqaLSeMYOnwDg9RI5F4VPMMFx9dEQBmJ6pXLO+F\nrD8I\r\n=RVaf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEQat0lZZt//arnPzT9ApMnTWwJv21bzJXugtVElpumZAiEAu9Hac3v9VaTFWtk0YHWxvdrmwQd4fuUDSSDQ6nYfsRs="}]},"maintainers":[{"name":"changhwan","email":"changhwan@dnext.co"},{"name":"yoonjae","email":"yoonjae@dnext.co"}],"_npmUser":{"name":"changhwan","email":"changhwan@dnext.co"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/oz-upgrades_2.5.3_1569984885721_0.692414106369097"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-02T02:54:45.518Z","2.5.3":"2019-10-02T02:54:46.056Z","modified":"2022-04-04T12:54:12.760Z"},"maintainers":[{"name":"changhwan","email":"changhwan@dnext.co"},{"name":"yoonjae","email":"yoonjae@dnext.co"}],"description":"JavaScript library for the OpenZeppelin smart contract platform","homepage":"https://github.com/alice-finance/openzeppelin-sdk/tree/master/packages/lib#readme","keywords":["openzeppelin","openzeppelin-sdk","zeppelinos","zeppelin","ethereum","smart-contracts","solidity","upgradeability","security","proxy","evm"],"repository":{"type":"git","url":"git+https://github.com/alice-finance/openzeppelin-sdk.git"},"contributors":[{"name":"ajsantander","email":"alejandro@zeppelin.solutions"},{"name":"elopio","email":"leo@zeppelin.solutions"},{"name":"facuspagnuolo","email":"facu@zeppelin.solutions"},{"name":"fiiiu","email":"alejo@zeppelin.solutions"},{"name":"frangio","email":"fran@zeppelin.solutions"},{"name":"maraoz","email":"manu@zeppelin.solutions"},{"name":"martriay","email":"marto@zeppelin.solutions"},{"name":"spalladino","email":"palla@zeppelin.solutions"}],"bugs":{"url":"https://github.com/alice-finance/openzeppelin-sdk/issues"},"license":"MIT","readme":"# OpenZeppelin SDK JavaScript Library _(@openzeppelin/upgrades)_\n\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg)](https://github.com/RichardLitt/standard-readme)\n[![NPM Package](https://img.shields.io/npm/v/@openzeppelin/upgrades.svg?style=flat-square)](https://www.npmjs.org/package/@openzeppelin/upgrades)\n[![CircleCI](https://circleci.com/gh/OpenZeppelin/openzeppelin-sdk/tree/master.svg?style=shield)](https://circleci.com/gh/OpenZeppelin/openzeppelin-sdk/tree/master)\n[![Coverage Status](https://coveralls.io/repos/github/zeppelinos/zos-lib/badge.svg?branch=master)](https://coveralls.io/github/zeppelinos/zos-lib?branch=master)\n\n> JavaScript library for the OpenZeppelin smart contract platform.\n\nOpenZeppelin SDK is a platform to develop, deploy and operate smart contract\nprojects on Ethereum and every other EVM and eWASM-powered blockchain.\n\nThis is the repository for the OpenZeppelin SDK JavaScript library. It is mainly used\nby the\n[`openzeppelin-sdk` command-line interface](https://github.com/OpenZeppelin/openzeppelin-sdk/tree/master/packages/cli#openzeppelin-sdk-command-line-interface-openzeppelincli),\nwhich is the recommended way to use the OpenZeppelin SDK; but this library can also be\nused directly to operate projects when a programmatic interface is\npreferred or more flexibility and lower-level access is required.\n\n## Install\n\nFirst, install [Node.js](http://nodejs.org/) and [npm](https://npmjs.com/).\nThen, install the OpenZeppelin SDK JavaScript Library running:\n\n```sh\nnpm install @openzeppelin/upgrades\n```\n\n## Usage\n\nSuppose there is a contract called `MyContract` in the file\n`contracts/MyContract.sol`, already compiled to\n`build/contracts/MyContract.json`, and that there is a development blockchain\nnetwork running locally in port 9545.\n\nOpen a Node.js console:\n\n```sh\nnode\n```\n\n```js\n> const { ZWeb3, Contracts, SimpleProject } = require('@openzeppelin/upgrades')\n> // Initialize a web3 provider.\n> ZWeb3.initialize(\"http://localhost:9545\")\n> // Load the contract.\n> const MyContract = Contracts.getFromLocal('MyContract')\n> // Instantiate a project.\n> myProject = new SimpleProject('MyProject', { from: await ZWeb3.defaultAccount() })\n> // Create a proxy for the contract.\n> myProject.createProxy(MyContract).then(proxy => myProxy = proxy)\n> // Make a change on the contract, and compile it.\n> const MyContractUpgraded = Contracts.getFromLocal('MyContract')\n> myProject.upgradeProxy(proxy, MyContractUpgraded)\n```\n\n## Security\n\nIf you find a security issue, please contact us at security@openzeppelin.com. We\ngive rewards for reported issues, according to impact and severity.\n\n## API\n\nTODO.\n\n## Maintainers\n\n* [@spalladino](https://github.com/spalladino)\n* [@jcarpanelli](https://github.com/jcarpanelli)\n* [@ylv-io](https://github.com/ylv-io)\n\n## Contribute\n\nTo contribute, join our\n[community channel on Telegram](https://t.me/zeppelinos) where you can talk to\nall the OpenZeppelin developers, contributors, partners and users.\n\nYou can also follow the recent developments of the project in our\n[blog](https://blog.openzeppelin.com/) and\n[Twitter account](https://twitter.com/openzeppelin).\n\n## License\n\n[MIT](LICENSE.md) © OpenZeppelin\n","readmeFilename":"README.md"}