{"_id":"@aragon/apm-contracts","_rev":"64-d3ef127296726a32b022afd1e356d8c1","name":"@aragon/apm-contracts","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"@aragon/apm-contracts","version":"1.0.0","author":{"name":"Aragon"},"license":"GPL-3.0","_id":"@aragon/apm-contracts@1.0.0","maintainers":[{"name":"izqui","email":"jorge@aragon.one"}],"dist":{"shasum":"b98af5ac2f3e793c4a62e7008c647bd9474c4c4b","tarball":"https://registry.npmjs.org/@aragon/apm-contracts/-/apm-contracts-1.0.0.tgz","integrity":"sha512-+qjMZkTo5DOwSQkG4Jl3jwaOBE/jv3QIhwJYgFhE/KIrcZV5EiTGZb90Nq/x1ajs+lYHqnpPuRspjl9pwY6pKw==","signatures":[{"sig":"MEQCIHvdZn4Z6XDFyZ63YbnzS3kCFZnnedg2rxkvJoca3kS6AiANiErmXDbucN/UqfjZrC+D7sCt2TnxPMC4bc3TUC9Mzg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"0373fc0ea7784aad1747142dfd561542c7a92fd8","scripts":{"test":"truffle test","prepublish":"truffle compile"},"_npmUser":{"name":"izqui","email":"jorge@aragon.one"},"deprecated":"Hey! 👋 apm-contracts is an outdated package and should not be used anymore\\!","_npmVersion":"5.5.1","description":"Contracts for Aragon Package Manager","directories":{},"_nodeVersion":"8.1.2","dependencies":{"keybase-eth":"^0.3.0","babel-polyfill":"^6.23.0","truffle-config":"^1.0.0","truffle-expect":"0.0.3","ethereumjs-util":"^5.1.1","eth-ens-namehash":"^2.0.0","truffle-hdwallet-provider":"0.0.3"},"publishConfig":{"access":"public"},"devDependencies":{"truffle":"^3.2.5","babel-register":"^6.23.0","ethereumjs-testrpc":"^4.0.1","babel-preset-es2015":"^6.18.0","babel-preset-stage-2":"^6.18.0","babel-preset-stage-3":"^6.17.0"},"_npmOperationalInternal":{"tmp":"tmp/apm-contracts-1.0.0.tgz_1507664618202_0.8341895614285022","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@aragon/apm-contracts","version":"1.0.1","author":{"name":"Aragon"},"license":"GPL-3.0","_id":"@aragon/apm-contracts@1.0.1","maintainers":[{"name":"bpierre","email":"bonjour@pierrebertet.net"},{"name":"luisivan","email":"me@luisivan.net"},{"name":"izqui","email":"jorge@aragon.one"},{"name":"harshjv","email":"harshjv@gmail.com"},{"name":"onbjerg","email":"nordbjerg.oliver@gmail.com"},{"name":"licuende","email":"luis@unpatent.co"}],"dist":{"shasum":"73aeea2478a74d99495f19b43dc77e5bcde0f5bf","tarball":"https://registry.npmjs.org/@aragon/apm-contracts/-/apm-contracts-1.0.1.tgz","integrity":"sha512-b2tR5MsElYbbefkoifdsow389E5xoLs+HC63bxs9nTIbBdBug936DwI3wPHr3JXQuV7WqPRQPECfdvBr5/awbg==","signatures":[{"sig":"MEYCIQDXtPFF4w5FvHAHZypy5Fk98/Njfp/Qbffpc+exgWbISgIhAI+QhQ+Li0y5ZFbj7GHRJZ9oy+Qc3OgvrUbD07pxZQAz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"e667e2d9178f54f523d6a247c3e6c86668aa20fe","scripts":{"test":"truffle test","prepublish":"truffle compile"},"_npmUser":{"name":"izqui","email":"jorge@aragon.one"},"deprecated":"Hey! 👋 apm-contracts is an outdated package and should not be used anymore\\!","_npmVersion":"5.5.1","description":"Contracts for Aragon Package Manager","directories":{},"_nodeVersion":"8.1.2","dependencies":{"keybase-eth":"^0.3.0","babel-polyfill":"^6.23.0","babel-register":"^6.23.0","truffle-config":"^1.0.0","truffle-expect":"0.0.3","ethereumjs-util":"^5.1.1","eth-ens-namehash":"^2.0.0","babel-preset-es2015":"^6.18.0","babel-preset-stage-2":"^6.18.0","babel-preset-stage-3":"^6.17.0","truffle-hdwallet-provider":"0.0.3"},"publishConfig":{"access":"public"},"devDependencies":{"truffle":"^3.2.5","ethereumjs-testrpc":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apm-contracts-1.0.1.tgz_1507664832822_0.9488763031549752","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@aragon/apm-contracts","version":"1.0.2","author":{"name":"Aragon"},"license":"GPL-3.0","_id":"@aragon/apm-contracts@1.0.2","maintainers":[{"name":"bpierre","email":"bonjour@pierrebertet.net"},{"name":"luisivan","email":"me@luisivan.net"},{"name":"izqui","email":"jorge@aragon.one"},{"name":"harshjv","email":"harshjv@gmail.com"},{"name":"onbjerg","email":"nordbjerg.oliver@gmail.com"},{"name":"licuende","email":"luis@unpatent.co"}],"dist":{"shasum":"61e52686790b2f788e4969faec69747fcfc89eae","tarball":"https://registry.npmjs.org/@aragon/apm-contracts/-/apm-contracts-1.0.2.tgz","integrity":"sha512-M/rpIVjslsXTC/oRd8zSb/Adb0gb2oZOXwgAGN3Doi/QdutB8fKds5vTs8rR++LxOKOFck/lHFEfO5romi4DNQ==","signatures":[{"sig":"MEUCIH4JqIAzX5EzTznCDCc1/95huRMOgsFkySdtY0EBR2DIAiEAypC4j/Y18OMZs3zHhTGQeoKbrNLIf3SwHFICyDl7LLA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"6dbee4667a64676e5b8ca1a871b6b5e8b82b7f5b","scripts":{"test":"truffle test","prepublish":"truffle compile"},"_npmUser":{"name":"izqui","email":"jorge@aragon.one"},"deprecated":"Hey! 👋 apm-contracts is an outdated package and should not be used anymore\\!","_npmVersion":"5.5.1","description":"Contracts for Aragon Package Manager","directories":{},"_nodeVersion":"8.1.2","dependencies":{"keybase-eth":"^0.3.0","babel-polyfill":"^6.23.0","babel-register":"^6.23.0","truffle-config":"^1.0.0","truffle-expect":"0.0.3","ethereumjs-util":"^5.1.1","babel-preset-env":"^1.6.0","eth-ens-namehash":"^2.0.0","babel-preset-es2015":"^6.18.0","babel-preset-stage-2":"^6.18.0","babel-preset-stage-3":"^6.17.0","truffle-hdwallet-provider":"0.0.3"},"publishConfig":{"access":"public"},"devDependencies":{"truffle":"^3.2.5","ethereumjs-testrpc":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apm-contracts-1.0.2.tgz_1507665288229_0.7633061537053436","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@aragon/apm-contracts","version":"1.0.3","author":{"name":"Aragon"},"license":"GPL-3.0","_id":"@aragon/apm-contracts@1.0.3","maintainers":[{"name":"bpierre","email":"bonjour@pierrebertet.net"},{"name":"luisivan","email":"me@luisivan.net"},{"name":"izqui","email":"jorge@aragon.one"},{"name":"harshjv","email":"harshjv@gmail.com"},{"name":"onbjerg","email":"nordbjerg.oliver@gmail.com"},{"name":"licuende","email":"luis@unpatent.co"}],"dist":{"shasum":"e660f0fe5c9b93f09105f825c49dba23cb6cc52e","tarball":"https://registry.npmjs.org/@aragon/apm-contracts/-/apm-contracts-1.0.3.tgz","integrity":"sha512-j1g460as9IezT+E46UJqMQKHJwKMdxi8T0Yi+k0oPuvi3j2o85j+n3DmhWMckSFM7Crf42MNl0O4vkFUP+b8kw==","signatures":[{"sig":"MEQCIByx59WEep7Legcgh93rxEtNObpfcx5QxZypebsu6ofEAiAskdeRtPcI2Er4N+51TWmvoxJ+FuxXIODnt6waWeZvHQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"dfadd7abe7220741adece8dab87c32e39350faf5","scripts":{"test":"truffle test","prepublish":"truffle compile"},"_npmUser":{"name":"izqui","email":"jorge@aragon.one"},"deprecated":"Hey! 👋 apm-contracts is an outdated package and should not be used anymore\\!","_npmVersion":"5.5.1","description":"Contracts for Aragon Package Manager","directories":{},"_nodeVersion":"8.1.2","dependencies":{"keybase-eth":"^0.3.0","babel-polyfill":"^6.23.0","babel-register":"^6.23.0","truffle-config":"^1.0.0","truffle-expect":"0.0.3","ethereumjs-util":"^5.1.1","babel-preset-env":"^1.6.0","eth-ens-namehash":"^2.0.0","babel-preset-es2015":"^6.18.0","babel-preset-stage-2":"^6.18.0","babel-preset-stage-3":"^6.17.0","truffle-hdwallet-provider":"0.0.3"},"publishConfig":{"access":"public"},"devDependencies":{"truffle":"^3.2.5","ethereumjs-testrpc":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apm-contracts-1.0.3.tgz_1507665622549_0.1832358033861965","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@aragon/apm-contracts","version":"1.0.4","author":{"name":"Aragon"},"license":"GPL-3.0","_id":"@aragon/apm-contracts@1.0.4","maintainers":[{"name":"bpierre","email":"bonjour@pierrebertet.net"},{"name":"luisivan","email":"me@luisivan.net"},{"name":"izqui","email":"jorge@aragon.one"},{"name":"harshjv","email":"harshjv@gmail.com"},{"name":"onbjerg","email":"nordbjerg.oliver@gmail.com"},{"name":"licuende","email":"luis@unpatent.co"}],"dist":{"shasum":"e20e4bfc26351c33e4a27b964cac796537a41e1c","tarball":"https://registry.npmjs.org/@aragon/apm-contracts/-/apm-contracts-1.0.4.tgz","integrity":"sha512-J2hTj7Iv8FoywUv88q3v1iAMz/OjhMMFrto1FT7/HxLLZ7etSaBVCD6K/kTYtQt4ow9y2Q/lsh1CZ6Zt9qAOzA==","signatures":[{"sig":"MEUCIQDkRfxQqks7sLHeWrLPyUh4+GS1LUouZECvjgAKru7/7wIgIc/Q3ybftpZmHKntYX36UFlymafevzf+OzwWmHOJR+w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"fb00aa2c0d441754f86c5c2616b2fd8fb01170dc","scripts":{"test":"truffle test","prepublish":"truffle compile"},"_npmUser":{"name":"izqui","email":"jorge@aragon.one"},"deprecated":"Hey! 👋 apm-contracts is an outdated package and should not be used anymore\\!","_npmVersion":"5.5.1","description":"Contracts for Aragon Package Manager","directories":{},"_nodeVersion":"8.1.2","dependencies":{"keybase-eth":"^0.3.0","babel-polyfill":"^6.23.0","babel-register":"^6.23.0","truffle-config":"^1.0.0","truffle-expect":"0.0.3","ethereumjs-util":"^5.1.1","babel-preset-env":"^1.6.0","eth-ens-namehash":"^2.0.0","babel-preset-es2015":"^6.18.0","babel-preset-stage-2":"^6.18.0","babel-preset-stage-3":"^6.17.0","truffle-hdwallet-provider":"0.0.3"},"publishConfig":{"access":"public"},"devDependencies":{"truffle":"^3.2.5","ethereumjs-testrpc":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apm-contracts-1.0.4.tgz_1507665935035_0.9227831929456443","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@aragon/apm-contracts","version":"1.0.5","author":{"name":"Aragon"},"license":"GPL-3.0","_id":"@aragon/apm-contracts@1.0.5","maintainers":[{"name":"bpierre","email":"bonjour@pierrebertet.net"},{"name":"luisivan","email":"me@luisivan.net"},{"name":"izqui","email":"jorge@aragon.one"},{"name":"harshjv","email":"harshjv@gmail.com"},{"name":"onbjerg","email":"nordbjerg.oliver@gmail.com"},{"name":"licuende","email":"luis@unpatent.co"}],"dist":{"shasum":"06b49a1fd25fec1463d6461487da62bbcd63d65c","tarball":"https://registry.npmjs.org/@aragon/apm-contracts/-/apm-contracts-1.0.5.tgz","integrity":"sha512-ULFka4gH4aZZ7sGHdOI+iroSvPzPVsow0VibFV5YjbQQ5RmMDpcvjsNxdEQRBfBbkuyPL7dS6t5BD1ErnsSsRQ==","signatures":[{"sig":"MEUCIHbrL7j1JJAtVby/U4gUnR/pvzK5AukaP4DBTfoIQKpCAiEAppI1Ihhl7qZQiM0442L31dsREekwHZKWB5R2F6uaXf8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzFtNCRA9TVsSAnZWagAANxIQAI5S3F66KVOJF4k6Ltim\nLq0zCdH1Cybhzj/kvE0UPs14TzF77RxbHcMSFQ/c/nox6z8Q5Yte8DWiVdQA\nSAFr4pD9Pw6ff8msa8QagE65jk7Dyne/u9L4lAI0iF75V2T76yPCnAgwMQlH\nFls6Co58mV/X5wuO6wjjkLr9Lpm6O0IGEJy9JS1mNO7GADjFrNChnSYSgboz\nfXNlaFnmFZrVI4qjAi2y93fF/QEZMSCmDe8OsmdEqAaBavdy6Th8F6Oj10xM\nsstd59JlxcB94K3HXmxc52x4g2pbF0Ivqe0CKbEXiRhJLqDQv92Dd36o8N9X\nvQWfL5A7YIeAl3ZZxEoRgDX2dlXykAzo4rYA2QsogScnxROX3oAQW4a0Wd1p\nagV5d7MhDvowNbzCU2iTh2zvvezqtpAtOFTZIqbHj7VqwTTYo7ikly/5Z3Va\nTKaosGZntk19a04QeenKJZBJy9fP2FC3aIEJKVuMZ55ksGATiflj0e0Yespr\nHSAeOHcRKd88vcAPM+jIngmNkf6jl2fBwykw5EbJxCxAZY2BZ/camIRX3V1S\n+v3wPgg/iwECTvhxc7yv3hbAmr1gHAD1Oz7+DgjW++6ehFaBSRlJlxk/lQAj\nUFNK2hgqQVWWuZ2BnbHZspI7eOoJ7vPWOXceElr3w0hF8jIBFXZEVk6SGZKV\nwfBH\r\n=CQtZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"7501a63e7852da7bf866fa02f2b982ea1dfc0d53","scripts":{"test":"truffle test","prepublish":"truffle compile"},"_npmUser":{"name":"izqui","email":"jorge@aragon.one"},"deprecated":"Hey! 👋 apm-contracts is an outdated package and should not be used anymore\\!","_npmVersion":"5.5.1","description":"Contracts for Aragon Package Manager","directories":{},"_nodeVersion":"8.1.2","dependencies":{"keybase-eth":"^0.3.0","babel-polyfill":"^6.23.0","babel-register":"^6.23.0","truffle-config":"^1.0.0","truffle-expect":"0.0.3","ethereumjs-util":"^5.1.1","babel-preset-env":"^1.6.0","eth-ens-namehash":"^2.0.0","babel-preset-es2015":"^6.18.0","babel-preset-stage-2":"^6.18.0","babel-preset-stage-3":"^6.17.0","truffle-hdwallet-provider":"0.0.3"},"publishConfig":{"access":"public"},"devDependencies":{"truffle":"^3.2.5","ethereumjs-testrpc":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/apm-contracts-1.0.5.tgz_1507666586635_0.884873116388917","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-10-10T19:43:39.197Z","modified":"2025-05-09T12:19:10.986Z","1.0.0":"2017-10-10T19:43:39.197Z","1.0.1":"2017-10-10T19:47:13.909Z","1.0.2":"2017-10-10T19:54:49.230Z","1.0.3":"2017-10-10T20:00:23.551Z","1.0.4":"2017-10-10T20:05:36.006Z","1.0.5":"2017-10-10T20:16:27.689Z"},"author":{"name":"Aragon"},"license":"GPL-3.0","description":"Contracts for Aragon Package Manager","maintainers":[{"email":"devops-master@aragon.org","name":"devops-master"},{"email":"jjavieralvarezrodriguez@gmail.com","name":"jjavieralv"},{"email":"devops@aragon.org","name":"arabot-1"}],"readme":"# Aragon Package Manager\n\nThe Aragon Package Manager allows for management and discoverability of applications to be run in the context of AragonOS organizations.\n\nIts main goals are:\n\n- Being able to find packages with human-readable names.\n- Update publishing in a secure way. Leveraging Ethereum accounts for authentication, allows to use complex governance mechanisms to push updates.\n- Finding the client-side counterparty to a smart contract. If a smart contract exposes a reference to the package (`appId` concept in AragonOS), the Package Manager can be used to look-up for the dApp frontend code for that version of the smart contract.\n\n### Repo Registry\n\nThe Repo registry is a contract that allows the creation of new repos. The repo registry gives every package a ENS subdomain for discoverability.\n\nIt is initialized with a ENS name root that the Repo Registry must be the owner of, so it can create and assign subdomains. The Repo Registry Aragon deploy will use the `aragonpm.eth` name root, so all packages registered will be in the form of `test.aragonpm.eth`.\n\nThe repo registry also implements the ENS resolver interface for address types for registered repos, so no further setup is required.\n\n### Repo\n\nRepos are the core concept of the package manager. A repo is versioned using [Semantic Versioning](http://semver.org).\n\nBefore creating a version, the repo contract checks:\n\n- The new version is being created by the repo owner. The repo owner is an Ethereum address, so it can be anything from a simple private key to a full DAO. The repo owner can transfer ownership to another address.\n\n- The version bump is valid. Only one element can be increased by one, more significant members are kept the same and less significant elements are set to 0. Example: from 0.1.0 the only valid version bumps are to: 0.1.1, 0.2.0, 1.0.0.\n\n- Updates to the smart contract code address are only permitted on major versions. Even if it doesn't introduce breaking changes to the API, updating smart contract code always requires user interaction as it must be done carefully.\n\nA repo version updates two values:\n\n- **Contract address**: Deployed instance of the smart contract component of the package. Can only be changed on major version releases. Changes are only allowed on major versions.\n\n- **Content URI**: Location of the full package to be loaded client-side. The content URI can point to different types of storage locations. Content addressable storage is preferred, so once a version has been saved in the Repo, the content behind it cannot change without creating a new version. For an initial implementation we will support:\n\n - **IPFS**: ipfs:QmPXME1oRtoT627YKaDPDQ3PwA8tdP9rWuAAweLzqSwAWT\n - (Adding more for v0.5?)\n\nA repo contract can be queried in multiple ways:\n\n- `repo.getLatest()`: will return the latest version created in the repo.\n- `repo.getLatestForContractAddress(address c)`: will return the last version of the package that used that particular contract address.\n- `repo.getBySemanticVersion(uint16[3] v)`: will return the package for that particular semantic version.\n- `repo.getByVersionId(uint256 n)`: will return the `n`th created version.\n\nThe return value for all queries is:\n\n- semanticVersion `uint16[3]`\n- contractAddress `address`\n- contentURI `bytes`\n","readmeFilename":"README.md"}