{"_id":"@commonsswarm/connect-hatch","_rev":"5-74bfd2684d14d7eae5cb0ec23266acf4","name":"@commonsswarm/connect-hatch","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@commonsswarm/connect-hatch","version":"0.0.1","license":"GPL-3.0","description":"Connector to interact with the hatch contract and subgraph","author":{"name":"Commons Swarm"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/cjs/index.d.ts","sideEffects":false,"scripts":{"build":"yarn build:esm && yarn build:cjs","build:esm":"tsc --build","build:cjs":"tsc --build ./tsconfig.cjs.json","dev:esm":"yarn build:esm --watch","dev:cjs":"yarn build:cjs --watch","test":"is-ci \"test:coverage\" \"test:watch\"","test:coverage":"jest --coverage","test:watch":"jest --watch","test:debug":"node --inspect-brk ../../node_modules/jest/bin/jest.js --runInBand --watch","clean":"rm -rf ./dist ./tsconfig.tsbuildinfo","lint":"eslint --ext .ts ./src","publish:local":"yarn build && yalc push"},"devDependencies":{"@types/jest":"^26.0.0","@types/react":"^16.9.34","@typescript-eslint/eslint-plugin":"^2.29.0","@typescript-eslint/parser":"^2.29.0","eslint":"^6.8.0","eslint-config-prettier":"^6.14.0","eslint-plugin-prettier":"^3.1.4","jest":"^26.0.1","prettier":"^2.0.5","ts-jest":"^26.1.0","typedoc":"^0.20.31","typedoc-plugin-markdown":"^3.6.0","typescript":"^3.8.3"},"dependencies":{"@1hive/connect-core":"^0.8.5","@1hive/connect-thegraph":"^0.8.5","ethers":"^5.0.23","graphql-tag":"^2.10.3"},"keywords":["ethereum","javascript","web3","dapp","aragon"],"gitHead":"79382b5a1361a19f869fb8558e3edc3c49ba28c7","_id":"@commonsswarm/connect-hatch@0.0.1","_nodeVersion":"15.2.1","_npmVersion":"7.0.8","dist":{"integrity":"sha512-f+s3azGAC7mBbQiAGb1Wyb+YF96BkcEItmZJOSdOICzkNl/FnKt0PJ9fDPUrJz2Jq7csJUMBTTO2oUDK9vCw1w==","shasum":"f9e1b73641bcb5165ae116aec2ae50504761a575","tarball":"https://registry.npmjs.org/@commonsswarm/connect-hatch/-/connect-hatch-0.0.1.tgz","fileCount":237,"unpackedSize":850400,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfityCRA9TVsSAnZWagAAxkAP/jsXITuestNxOZqjdN5/\nuzVgkP1bzim4U50Y06Oqyv4nb2KptoNUM/aQYwVOeuEZK1VejPI6gd4sMMCx\nuS57U9cu9Xi7iF2Fa6W1GxljD1fXFPETa7EkU5CM4pVbfrfLOc1Y3Ca95cIX\nMX6qiHYFEqypWk1KTz7ENAlOXo8IAzo3+GcrXbsgEKVehpxZBKoC9otA7P5r\nrRHLHc45EFnJdbipBxFnjBG0FMqcIji76BRyYbcDgA/r63p8Zx2SC+7AAXAW\np0jKONqg282/CAmbMjozDBsCqr5kIQktyjeaKUHxSUuUBoNnPJi08E5/YOu2\ntIzvCOxYhD1swZMSnTX4uTsu8OHqnqkUzNleGPTbtq5T+/G7yvfIbXN3fg4Y\nOyp7MDjflfjOVrTC/6h7uU5d2Fq0ETmAPq+5sYD/GgMWhxkS67789MOk4ybM\nXbs2vi3mF8sq54yjGgkePDVEEWrMWmaHd1X+Cj+Irf8TYIPtXJ8Ib7HUOSmr\nRrYBR7mI47urOV7nNtROv38SKcV3+ya/QLBYNczU7s2I+qZvgGE3ul+nSG/h\ncvXbV2lc97RvFwQAXUY8jiOnz6WUA2Oc8+50ZDAiBU3GmDqdWeENpMfpF+TB\n5awNOWEsiTgGaYrFcemtcW09XeCFUFGKQkmcVLNXWHRdpNaaAQid9/bd2SkC\nRIYd\r\n=BaXd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhe6klFbkeD/oE75t7WT2ywhOzcE44UEpEtFQJ0JfryAiEAvbnMoHNS29YJOAFtorhu6wl6Lvhlod99Pd92YZ/ntAQ="}]},"_npmUser":{"name":"pcolombo","email":"paulo.colombo@pm.me"},"directories":{},"maintainers":[{"name":"pcolombo","email":"paulo.colombo@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect-hatch_0.0.1_1618881393534_0.10239663406130117"},"_hasShrinkwrap":false},"0.0.2":{"name":"@commonsswarm/connect-hatch","version":"0.0.2","license":"GPL-3.0","description":"Connector to interact with the hatch contract and subgraph","author":{"name":"Commons Swarm"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/cjs/index.d.ts","sideEffects":false,"scripts":{"build":"yarn build:esm && yarn build:cjs","build:esm":"tsc --build","build:cjs":"tsc --build ./tsconfig.cjs.json","dev:esm":"yarn build:esm --watch","dev:cjs":"yarn build:cjs --watch","test":"is-ci \"test:coverage\" \"test:watch\"","test:coverage":"jest --coverage","test:watch":"jest --watch","test:debug":"node --inspect-brk ../../node_modules/jest/bin/jest.js --runInBand --watch","clean":"rm -rf ./dist ./tsconfig.tsbuildinfo","lint":"eslint --ext .ts ./src","publish:local":"yarn build && yalc push"},"devDependencies":{"@types/jest":"^26.0.0","@types/react":"^16.9.34","@typescript-eslint/eslint-plugin":"^2.29.0","@typescript-eslint/parser":"^2.29.0","eslint":"^6.8.0","eslint-config-prettier":"^6.14.0","eslint-plugin-prettier":"^3.1.4","jest":"^26.0.1","prettier":"^2.0.5","ts-jest":"^26.1.0","typedoc":"^0.20.31","typedoc-plugin-markdown":"^3.6.0","typescript":"^3.8.3"},"dependencies":{"@1hive/connect-core":"^0.8.5","@1hive/connect-thegraph":"^0.8.5","ethers":"^5.0.23","graphql-tag":"^2.10.3"},"keywords":["ethereum","javascript","web3","dapp","aragon"],"gitHead":"2806eae521e5f5dca54b7f65f119bf99b398fc33","_id":"@commonsswarm/connect-hatch@0.0.2","_nodeVersion":"15.2.1","_npmVersion":"7.0.8","dist":{"integrity":"sha512-YbeBVi3MUHRi4opmvFy4Xz5PhFe7OusaIIzQbjiuv39BSXU/0deJKm0XT8XLV6jIyBGSh3c9bnrKO71owp0fGw==","shasum":"3509c42b619dc688e1936071dd8d8f9da32f7e0b","tarball":"https://registry.npmjs.org/@commonsswarm/connect-hatch/-/connect-hatch-0.0.2.tgz","fileCount":249,"unpackedSize":1027532,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgitPMCRA9TVsSAnZWagAAmBkQAI2aI/P6c0ip5zY4F7M/\nuvr9cJ8jT7heGPDTvCGLKI8D9ArNiED5tjX+BwQfQIAy++6T+sMj2rLMW0QF\nv7LuIoI+Dhx2qoZHNGPYrUisDUlg2a1LCKS0zkIp5ia8ihCk/LJ+v4b4NDJp\nS3aiTCAM+Gnx79YKlhaNUTLeC9cTTJGGY+O0xiLUOMdQlF/8a4B8VFR8hZ5w\njGP/wwEargrWuC1Wl/W9s3FN1Cc/eCwhTulIi00tBenK7U9XZ66wYzw6W/s0\nqucUXX6TS8/EXzdJbys03ymRUj+/ydxv6pqVb7F8/JWtgHZYc2Y0Gn0iUubq\ndfFkQHJdZZTkGGHH+JXssgAE9PZVHS4SMLLVBbV85klSVlQaHM3poCqgoiFE\nysgWIxtgMyyqqS+792T0CT4qVW6rbGIR2MiayRvyR19M+toeC0EXWmWsH8Gy\nUpZIXeMArZVMVcUxqhfhx2sz84Ntwm+A4kjdH7KyVrIlMOBkTv0Qs7r5Si9L\nyHf+1BnBG+AOoP6LijOr+Nf0wNh+RbxKP+LwxUgHAEpCm10fVRFNqm88cqFl\nqSCmbm4gWIhjwPHCM7N73WEF88kJM3uT8DiGqwBDqlvjiZCyZH11StZTUoYg\n3hW7hVlnmRdHY0xLu7se7U9CFMuDZKlYiiz67As9T8IC6kEPlteGWZ/eTqxM\nHA+b\r\n=/cWy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBN71grS6F5ML2zb6/idw/UIYdaLE8IuOEB0Iwn3moWEAiAw22bSCfVjilVQWtEWYz93HKsQGfqAkpgqtS6ZPYP44A=="}]},"_npmUser":{"name":"pcolombo","email":"paulo.colombo@pm.me"},"directories":{},"maintainers":[{"name":"famole","email":"famole@gmail.com"},{"name":"pcolombo","email":"paulo.colombo@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect-hatch_0.0.2_1619710923522_0.24905538088885204"},"_hasShrinkwrap":false},"0.0.3":{"name":"@commonsswarm/connect-hatch","version":"0.0.3","license":"GPL-3.0","description":"Connector to interact with the hatch contract and subgraph","author":{"name":"Commons Swarm"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/cjs/index.d.ts","sideEffects":false,"scripts":{"build":"yarn build:esm && yarn build:cjs","build:esm":"tsc --build","build:cjs":"tsc --build ./tsconfig.cjs.json","dev:esm":"yarn build:esm --watch","dev:cjs":"yarn build:cjs --watch","test":"is-ci \"test:coverage\" \"test:watch\"","test:coverage":"jest --coverage","test:watch":"jest --watch","test:debug":"node --inspect-brk ../../node_modules/jest/bin/jest.js --runInBand --watch","clean":"rm -rf ./dist ./tsconfig.tsbuildinfo","lint":"eslint --ext .ts ./src","publish:local":"yarn build && yalc push"},"devDependencies":{"@types/jest":"^26.0.0","@types/react":"^16.9.34","@typescript-eslint/eslint-plugin":"^2.29.0","@typescript-eslint/parser":"^2.29.0","eslint":"^6.8.0","eslint-config-prettier":"^6.14.0","eslint-plugin-prettier":"^3.1.4","jest":"^26.0.1","prettier":"^2.0.5","ts-jest":"^26.1.0","typedoc":"^0.20.31","typedoc-plugin-markdown":"^3.6.0","typescript":"^3.8.3"},"dependencies":{"@1hive/connect-core":"^0.9.1","@1hive/connect-thegraph":"^0.9.1","ethers":"^5.0.23","graphql-tag":"^2.10.3"},"keywords":["ethereum","javascript","web3","dapp","aragon"],"gitHead":"84017c024199b30388ea984704fa88a566ef0ec5","_id":"@commonsswarm/connect-hatch@0.0.3","_nodeVersion":"15.2.1","_npmVersion":"7.0.8","dist":{"integrity":"sha512-Hqs/j9usalE5O5hleMe3/UjUPOEkNqsYf7R5/WVngek2mUr92MQsNQy7zd58naPzZdXIhdaAE6QO9+QljMHLmg==","shasum":"9f0a3119076517ee4898d0fcf55517f3e5bd8fe5","tarball":"https://registry.npmjs.org/@commonsswarm/connect-hatch/-/connect-hatch-0.0.3.tgz","fileCount":249,"unpackedSize":1030570,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgjLKdCRA9TVsSAnZWagAAC5IP/1s/LzyiQfjpGom2+abc\nyaVQ9ggtBc7cfgfypGWB4p9sB+KLO93WeuXEG3aaMO35buT3fZTDfgLyi6um\noYKxbQTIMaLufkoPsTImyB70JDLsbwN14yUvT7rOnnMGH46AD3XUxXdUSb7i\nyypkN9Qxlk3M6SXRo/B4ujDArueWhFfiB+wrGnzFCRPp9+HnG9pIc1GlK1Pq\nFlTGy6KFFpD5FnPZy0cfQqkbGbQcqZJEkspwsSTijEQ8Tm9zqTSj15gMSo27\nVKEH3f8AVPYMjsuqOXNApxwNmB6PKbD35tL8TSqNYJipL5MFlMzheQiqiDTS\nsoSLgqMx7hLS8l9TKpCA0j9HwJuuYrhQmgoCQOYScSctB4NmbN8CejK+XBaO\nyItlNS4sO7QL/9s7TpQCt27Rn6EyKQ+tb4g+eJ00rBkbt65XJYSb82a1TvC1\nPa7szF2X30JcQjqQn5sQs9ITRPq29IwEuyyKSKhLpawbZZJZx4sZVpedAtTI\nqPiddLYU7wI/KeCB5+HU7/Q7FLtI59syAhqk0mnDHrAUtTNZBSuV29F3PAJK\nWawKKKVypT9ZwWGO8DwzcPy310TSeSP7sJ/x5kiOVyDeflfo/lLibBHfhK0Y\nQE7wGFzYlFZLvEMSQRmnzxpoJT54Pck0YTlRlvP7B2eUjRPF+bOW0ms7NJbG\nK+5c\r\n=bPPG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3Kss2t7eBVktMlXsqi0kLJArqp47WrUJqBX0IIRv0OAIhAMpzZbtRfAjNmBKQB4m4StqdtN2FV/qDzzit605o9bTP"}]},"_npmUser":{"name":"pcolombo","email":"paulo.colombo@pm.me"},"directories":{},"maintainers":[{"name":"famole","email":"famole@gmail.com"},{"name":"pcolombo","email":"paulo.colombo@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect-hatch_0.0.3_1619833500769_0.27968956125587785"},"_hasShrinkwrap":false},"0.0.4":{"name":"@commonsswarm/connect-hatch","version":"0.0.4","license":"GPL-3.0","description":"Connector to interact with the hatch contract and subgraph","author":{"name":"Commons Swarm"},"main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/cjs/index.d.ts","sideEffects":false,"scripts":{"build":"yarn build:esm && yarn build:cjs","build:esm":"tsc --build","build:cjs":"tsc --build ./tsconfig.cjs.json","dev:esm":"yarn build:esm --watch","dev:cjs":"yarn build:cjs --watch","test":"is-ci \"test:coverage\" \"test:watch\"","test:coverage":"jest --coverage","test:watch":"jest --watch","test:debug":"node --inspect-brk ../../node_modules/jest/bin/jest.js --runInBand --watch","clean":"rm -rf ./dist ./tsconfig.tsbuildinfo","lint":"eslint --ext .ts ./src","publish:local":"yarn build && yalc push"},"devDependencies":{"@types/jest":"^26.0.0","@types/react":"^16.9.34","@typescript-eslint/eslint-plugin":"^2.29.0","@typescript-eslint/parser":"^2.29.0","eslint":"^6.8.0","eslint-config-prettier":"^6.14.0","eslint-plugin-prettier":"^3.1.4","jest":"^26.0.1","prettier":"^2.0.5","ts-jest":"^26.1.0","typedoc":"^0.20.31","typedoc-plugin-markdown":"^3.6.0","typescript":"^3.8.3"},"dependencies":{"@1hive/connect-core":"^0.9.1","@1hive/connect-thegraph":"^0.9.1","ethers":"^5.0.23","graphql-tag":"^2.10.3"},"keywords":["ethereum","javascript","web3","dapp","aragon"],"gitHead":"cb44ff7768693c4cf6ad313503a740dc67974d73","_id":"@commonsswarm/connect-hatch@0.0.4","_nodeVersion":"15.2.1","_npmVersion":"7.0.8","dist":{"integrity":"sha512-0UTDcbGCcvgANKxeliJgUvnZMtfmzbTzhrdrAbJKXpvQTuIcLgqzci0ejS4hNE3UkMUWmHhWTZ0M+3Q9nfAYOQ==","shasum":"fd1ad773950ef5492552566ef593d553f14b3a13","tarball":"https://registry.npmjs.org/@commonsswarm/connect-hatch/-/connect-hatch-0.0.4.tgz","fileCount":305,"unpackedSize":1069212,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkJyQCRA9TVsSAnZWagAA0hsP/1hFHmYUadSDNGQGZ7T9\nQ18ABW6qVnBvxrvI7ls8Ru+72VmxGFBJIxpNU4IcmKs8F0yl+E0B2Irjny9s\ne9M3pk4SUHHcm7MMpgk/5tstoUNI0nwdRfI89iiLNwHw7On0B+YdxAmme/le\n/FZQ0O2MXYGPuJRbfCzgGR22bqmqpAmCW2G1jRvJ/6V9lHvDTEZILOJeNrsb\nrBaGDdtBAWQPxfGOPTm6RhUnAKG+2YkNriL4PhYZQrQ9ZfFfLcqy4fPKgo8N\nx0kFk12gzgYtXDY+qgtb3nqGOoXiT0rb/mwNKH3ttKDokvmHNfNK7Mpg8YXh\nyPrDn/8egdH/3l0l0dibexMYdCs2rRsDnpL5PcIfNLHjIJfIfrtVcejlLOfA\n9CeUKmEFf9MHIMWNadw5OCW0Hqbt3NKsp9rblY4JE0btOc8uWtqgO4pM5ycm\nWZLvciKo6gdHbtcp3eDDSwUsW/Tnz3+aFFuErlIV8ZvOgvIAIINERjUu35tY\nvK5JtsF9UnJi9/Kjrpijqew4yXw500v4uQTVmnomSUEK/FYySyKQbHpFrfKW\nSMIKshjvpZoggRNhjPHEyox/fq4eqxCqQpAwLtufogOn4wKofnM3MuNTgopf\nBIO//leziuojiMbL97t+VdZYyrjf7x1rBDmQq9fj8p88OR0ARVny9Y3GC+0A\nT73Y\r\n=R43b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTWNN3h7+na2AOAYYxkGBlIBDy6WQab3XVeT+9amdRxQIhAOXKafuUIyQToLs2Nx4SK3X7E8VZXiJmA7zyv0lj1izM"}]},"_npmUser":{"name":"pcolombo","email":"paulo.colombo@pm.me"},"directories":{},"maintainers":[{"name":"famole","email":"famole@gmail.com"},{"name":"pcolombo","email":"paulo.colombo@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/connect-hatch_0.0.4_1620090000079_0.3358494094388935"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-20T01:16:33.276Z","0.0.1":"2021-04-20T01:16:33.711Z","modified":"2022-04-05T00:32:10.731Z","0.0.2":"2021-04-29T15:42:03.691Z","0.0.3":"2021-05-01T01:45:00.914Z","0.0.4":"2021-05-04T01:00:00.314Z"},"maintainers":[{"name":"famole","email":"famole@gmail.com"},{"name":"pcolombo","email":"paulo.colombo@pm.me"}],"description":"Connector to interact with the hatch contract and subgraph","keywords":["ethereum","javascript","web3","dapp","aragon"],"author":{"name":"Commons Swarm"},"license":"GPL-3.0","readme":"# Hatch Connector\n\nConnector for the Hatch frontend implemented using [Aragon Connect](https://aragon.org/connect). It connects to a [hatch subgraph](https://github.com/CommonsSwarm/hatch-connector/tree/main/subgraph) created using [The Graph](https://thegraph.com/) indexing protocol.\n\nThe hatch subgraph collects, stores and indexes hatch-related data from the blockchain and serves it through a [GraphQL](https://graphql.org/) endpoint. The connector is an abstraction over this subgraph which offers an API that can be use by any client to fetch data.\n\n## API Reference\n\nSee [API.md](./API.md)\n\n## Usage\n\n### Set up\n\n1.  Add the following dependencies to your project:\n\n    ```sh\n    yarn add @1hive/connect\n    yarn add @commonsswarm/connect-hatch\n    ```\n\n2.  Import them:\n\n    ```js\n    import connect from '@1hive/connect'\n    import connectHatch from '@commonsswarm/connect-hatch'\n    ```\n\n3.  Set up the connector:\n\n    ```js\n    const org = await connect(DAO_ADDRESS_OR_ENS, 'thegraph', { network: CHAIN_ID })\n    \n    const hatchApp = await org.app('marketplace-hatch')\n\n    const hatchConnector = await connectHatch(hatchApp)\n    ```\n\n\n### Set up in a React App\n\n1.  Add the following dependencies to your project:\n\n    ```sh\n    yarn add @1hive/connect-react\n    yarn add @commonsswarm/connect-hatch\n    ```\n\n2.  Wrap your main `<App/>` component in the `<Connect/>` component provided by the `@1hive/connect-react` library.\n\n    ```jsx\n    import { Connect } from '@1hive/connect-react'\n\n    <Connect\n        location={DAO_ADDRESS_OR_ENS}\n        connector=\"thegraph\"\n        options={{\n        network: CHAIN_ID,\n        }}\n    >\n        <App />\n    </Connect>\n    ```\n\n3.  Set up the connector:\n\n    ```js\n    import {\n        useApp,\n    } from '@1hive/connect-react'\n\n    function App() {\n        const [hatchConnector, setHatchConnector] = useState(null)\n        const [hatchApp] = useApp('marketplace-hatch')\n\n        useEffect(() => {\n            if (!hatchApp) {\n                return\n            }\n\n            let cancelled = false\n\n            const fetchHatchConnector = async () => {\n                try {\n                    const hatchConnector = await connectHatch(hatchApp)\n\n                    if (!cancelled) {\n                        setHatchConnector(hatchConnector)\n                    }\n                } catch (err) {\n                    console.error(`Error fetching hatch connector: ${err}`)\n                }\n            }\n\n            fetchHatchConnector()\n\n            return () => {\n                cancelled = true\n            }\n        }, [hatchApp])\n    }\n    ```\n\n### Data fetch example\n\nBelow there is an example of how to fetch 100 contributors, sorted in ascending order by their total contribution amount and skipping the first 50.\n\n```js\nconst contributors = await hatchConnector.contributors({\n    first: 100,\n    skip: 50,\n    orderBy: 'totalValue',\n    orderDirection: 'asc',\n})\n```\n\n### Data updates subscription example\n\nThis is an example of how to set a contributors data subscription of the first 20 contributors, sorted in descending order by their total hatch token amount and skipping the first 5.\n\n```js\nconst handler = hatchConnector.onContributors(\n    {\n        first: 20,\n        skip: 5,\n        orderBy: 'totalAmount',\n        orderDirection: 'desc',\n    },\n    contributors => {\n        console.log('Updated contributors: ', contirbutors)\n    }\n)\n\n// ...\n\nhandler.unsubscribe()\n```\n\n### Contract call example\n\nBelow there is an example of how to call the contract using the connector to open the hatch.\n\n```js\nconst signer = ethers.getSigner()\n\nconst intent = await hatchConnector.open()\nconst openTxs = intent.transactions\n\nfor(let i = 0; i < openTxs.length; i++) {\n    const txResponse = await signer.sendTransaction(openTxs[i])\n    const txReceipt = await txResponse.wait()\n}\n\n\n```\nFor more information check out the Aragon Connect [docs](https://connect.aragon.org/).\n\n## Contributing\n\nWe welcome community contributions!\n\nPlease check out our open [Issues](https://github.com/CommonsSwarm/hatch-connector/issues) to get started.\n\n\n","readmeFilename":"README.md"}