{"_id":"@aragon/court-backend-shared","_rev":"37-30bed3bead313c64bdab16b4c6eb151c","name":"@aragon/court-backend-shared","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@aragon/court-backend-shared","version":"0.0.1","author":{"name":"Aragon One"},"license":"(GPL-3.0-or-later OR AGPL-3.0-or-later)","_id":"@aragon/court-backend-shared@0.0.1","maintainers":[{"name":"ajsantander","email":"palebluedot@gmail.com"},{"name":"evalir","email":"hi@enriqueortiz.dev"},{"name":"gabrielg","email":"gabrielpk.18@gmail.com"},{"name":"facuspagnuolo","email":"facundo_spagnuolo@icloud.com"},{"name":"aragon-ci","email":"jorge+npmci@aragon.one"},{"name":"bingen","email":"bingen@aragon.one"},{"name":"izqui","email":"jorge@aragon.one"},{"name":"luisivan","email":"me@luisivan.net"},{"name":"bpierre","email":"hello@pierre.world"},{"name":"sohkai","email":"qisheng.brett.sun@gmail.com"}],"dist":{"shasum":"694a6c7fb5f0f2e3233fbdae4c34707ec4c2e95d","tarball":"https://registry.npmjs.org/@aragon/court-backend-shared/-/court-backend-shared-0.0.1.tgz","fileCount":14,"integrity":"sha512-W4mdvcJOjG1FZO4+HL2skM4MFBNryXWRy00sYNqLi08W+8w9QB/brUt9oU7Vu133ZYtdFDsaRVGOEFzLlCvY6A==","signatures":[{"sig":"MEUCIQCaFu5yPrheR0kJts+r7oe9MAXXYf+3ldSNNkYDL5E1ZQIgath1hKPwc1DZkahtPRImPy+Adh9J1dPzlv8aMA63mbQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29016,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh111UCRA9TVsSAnZWagAASaAP+wbxE2n/1XP4DD7UeXU/\naltoy8gsXkiTcq18nENlch9Qxm7WRw8cAEb6kGm4BPov9irA189rRFMvoycB\nwxtckE6Cfr3jIVRQzYXynuGQpJEGiwGslOdMmZNFKO0UGcUDwEea1z6MYkNM\nqVZcsYKRqE0ZHsEX8/oGEpvgBhjxQMgoCJvDcU0Etllf2JVs4p0YLvj/pg9s\nSIato4z/SyN9xHKpI2PeFfWclOS50MdFDEhCy4mo6sKi53C0KNcKNRI8DFGu\nmzy8aEFor2ynmW1gNZqSvqWF8GOOLmmj3wTMXfUWvvrmgyPpJsAH7knaqcGF\niZFD2ve/i5Kyki5yAya6ivTWb82bxLox1cw8jg6dmnoYi4wdwhM2NfmvNylC\nZu5Ui5AKvXX68d1o3FfEY6vi2hseIrR6e3ieOPPP6CrzTKswc00g5ZL1dtq7\nzWBCZfAZqHmyWYtQwHfG1DDBz53Ndo3280QPDjMw6VpMAhwqGNMR28gAAyls\nsVFRbcaCcLS3/OvLVVFMXSzm0uhpRAU0CwzY5fkfOre0Va7COd4fKpTP0sJI\n+OVguyXuS1HyTiMu/m0UmrDlCf6LiYbbuLminrAF5WDRRLU6OdICQeQ0dpck\nwcaSdsKrI1QipTU3JbI9b4KxJWVsblEXKNe7PpHkVcdeSREDbi807Vw6swUD\njBWy\r\n=ftFN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bingen","email":"bingen@aragon.one"},"_npmVersion":"6.13.4","description":"This repo provides a set of JavaScript components shared by all of the repos contained in this mono-repo.","directories":{},"_nodeVersion":"10.15.0","dependencies":{"web3":"^1.2.4","chalk":"^2.4.2","dotenv":"^8.2.0","node-fetch":"^2.6.0","web3-utils":"^1.2.4","web3-eth-abi":"1.0.0","@aragon/court":"1.1.0","@aragon/minime":"1.0.0","@truffle/config":"1.2.7","@truffle/contract":"^4.1.1","@aragon/test-helpers":"^2.1.0","@aragonone/erc20-faucet":"^1.0.0","@aragon/truffle-config-v5":"^1.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/court-backend-shared_0.0.1_1581066393575_0.572152806559675","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-02-07T09:06:33.510Z","modified":"2025-05-09T12:19:39.429Z","0.0.1":"2020-02-07T09:06:33.692Z"},"author":{"name":"Aragon One"},"license":"(GPL-3.0-or-later OR AGPL-3.0-or-later)","description":"This repo provides a set of JavaScript components shared by all of the repos contained in this mono-repo.","maintainers":[{"email":"devops-master@aragon.org","name":"devops-master"},{"email":"jjavieralvarezrodriguez@gmail.com","name":"jjavieralv"},{"email":"devops@aragon.org","name":"arabot-1"}],"readme":"# Court Backend shared\n\nThis repo provides a set of JavaScript components shared by all of the repos contained in this mono-repo.\n\n## Models\n\nIt provides a set of JS classes to encapsulate certain web3 behavior shared among all the repos:\n\n### Artifacts\n\nThis JS class is in charge of providing JS wrappers for smart contracts (a.k.a. contract artifacts). \nIt provides two flavors of artifacts, one [`dynamic`](./models/artifacts/DynamicArtifacts.js) and another one [`static`](./models/artifacts/StaticArtifacts.js), following the same interface. \nThe difference is that the dynamic one will load the contract schemas lazily, while the static one will load all of them before hand.     \n\n### Court\n\nThis JS class is intended to be a JS wrapper exposing all the functionality required to interact with an Aragon Court instance. It basically encapsulates all the complexity behind its different smart contracts, exposing a single interface.\nThis class is used by all the projects of the Aragon Court back-office to interact with a court instance.  \n\n### Environments\n\nThis JS class is in charge of providing all the web3 commonly used components in a web3 application like: a web3 instance, a web3 provider, an artifacts object, the default sender, and some other particular entities like a court instance, a court subgraph, among others.\nIt also provides two different flavors of environments, one for [`browser`](./models/evironments/BrowserEnvironment.js) and another one based on [`Truffle configs`](./models/evironments/TruffleEnvironment.js). \nThe first one is only used by the back-office frontend app where all the components mentioned above are built based on a browser web3 provider like `Metamask`, while the second one is used by all the other back-office projects (`cli`, `server`, and `services`) where all these components are derived from a Truffle config file. \n\n## Helpers\n\nIt provides the following helper functions:\n- [`logger`](./helpers/logger.js): Logger object that provides a friendly interface for fancy logging \n- [`numbers`](./helpers/numbers.js): BigNumber-related helper functions\n- [`sleep`](./helpers/sleep.js): Sleep function to wait a number of seconds \n","readmeFilename":"README.md"}