{"_id":"@avocadodefi/avocado-v2-subgraph","_rev":"1-991b6af3ae2c22a9c168330170807a03","name":"@avocadodefi/avocado-v2-subgraph","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@avocadodefi/avocado-v2-subgraph","version":"0.0.1","repository":{"type":"git","url":"git+https://github.com/avocadodefi/avocado-v2-subgraph.git"},"license":"GPL-3.0-or-later","scripts":{"codegen":"graph codegen --output-dir src/types/","build":"graph build","create-local":"graph create davekaj/pancakeswap --node http://127.0.0.1:8020","deploy-local":"graph deploy davekaj/pancakeswap --debug --ipfs http://localhost:5001 --node http://127.0.0.1:8020","deploy":"graph deploy ianlapham/pancakeswapv2 --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/ --debug","deploy-staging":"graph deploy $THE_GRAPH_GITHUB_USER/$THE_GRAPH_SUBGRAPH_NAME /PancakeSwap --ipfs https://api.staging.thegraph.com/ipfs/ --node https://api.staging.thegraph.com/deploy/","watch-local":"graph deploy graphprotocol/PancakeSwap2 --watch --debug --node http://127.0.0.1:8020/ --ipfs http://localhost:5001"},"devDependencies":{"@graphprotocol/graph-cli":"^0.19.0","@graphprotocol/graph-ts":"^0.19.0","@typescript-eslint/eslint-plugin":"^4.13.0","@typescript-eslint/parser":"^4.13.0","eslint":"^7.17.0","eslint-config-prettier":"^7.1.0","prettier":"^2.2.1","typescript":"^4.1.3"},"gitHead":"8b2e3d1c1055dbbc3e3690167764b3016fe55e30","description":"[PancakeSwap](https://pancakeswap.finance/) is a decentralized protocol for automated token exchange on Binance Smart Chain.","bugs":{"url":"https://github.com/avocadodefi/avocado-v2-subgraph/issues"},"homepage":"https://github.com/avocadodefi/avocado-v2-subgraph#readme","_id":"@avocadodefi/avocado-v2-subgraph@0.0.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-KSA9Zk08T+unb5pGl1JdfBLtQFiiVKzLm/lKk1d2SJL2Ft9U4uam2KtjzOBf0o2H9fvc8aQ+iXednSfEt4yuCg==","shasum":"94ef4d43c03cd30488a5553dbc8d380239c022ee","tarball":"https://registry.npmjs.org/@avocadodefi/avocado-v2-subgraph/-/avocado-v2-subgraph-0.0.1.tgz","fileCount":20,"unpackedSize":108849,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqPfVCRA9TVsSAnZWagAAUuIP/jPI8KseIZqA9E1nipQV\nnSsfN2dBFGPug0dTkruDbZh/qeodRZek4F4JQwK33cOV/pfNOyhL4FBGVklb\ncouHBsrPKNJCl7hCko2kxMw7Ecoy8KFs4bKvQC1ToOHlzd/lNik+9WEc/XVv\n4vqoe28kiRx4XChjPfqHe0ieD6yErNV/lrhAD9IVSXon0Y0lJZGmkxRB79Ql\nt9TJRAKs+1KRAfGNRCs/q5agG71yHpyeqFV/kuqjonI5ZYX1BV/eKiZtf3BT\nTsRbjzE/UahO1NKxnkGUNpuvtXuQV0+SmA+0OHvNLOG1nCkixjr/1+4RkWq0\nSlr9MTZ1EM4bdgvDftfVNqe4eUjo8l97/o7k+xrBR6rjydJ0Cv34AtQp82bf\nCfdAJoVDGm9rLJ/x3x2Cflx7131BunaDGiF7PrUu57O1g5+wnEOF8r5bo5LK\n+F1/A/jL4H6r5UCOdyH9fvMm1ImqK47CNjYOEtFgsIf8f6/v2zDQvyV2fSNn\nZVYJ2FUyDdVcTeN0+5uqo/PCdlZzVb/kEXDFFdcZkzGlM1YLynnfksxiXxZw\nBhXfvLMO9x5+woNUT4OEH4m+GGGgcCRzBNgoWNMJl9QPf6p8tn2DirbiaeWT\nk17kupI+DhETIa/LAafchQBKaPkx1FZj0psofq5KKmU/2gMq5DHVKD5QFTSn\nLikY\r\n=/+cP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBcTR+aBOcI9Ik+CrpPGvhKxeTRsxUV+TwYWT/u+zRuAAiEAu4NpKCEi4SN5fz0h+6HS77JGNgfgTkUTEmS6a7jWq0U="}]},"_npmUser":{"name":"avocadodefi","email":"encorecorps@gmail.com"},"directories":{},"maintainers":[{"name":"avocadodefi","email":"encorecorps@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/avocado-v2-subgraph_0.0.1_1621686229091_0.31233276599394655"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-22T12:23:49.046Z","0.0.1":"2021-05-22T12:23:49.266Z","modified":"2022-04-04T16:48:05.734Z"},"maintainers":[{"name":"avocadodefi","email":"encorecorps@gmail.com"}],"description":"[PancakeSwap](https://pancakeswap.finance/) is a decentralized protocol for automated token exchange on Binance Smart Chain.","homepage":"https://github.com/avocadodefi/avocado-v2-subgraph#readme","repository":{"type":"git","url":"git+https://github.com/avocadodefi/avocado-v2-subgraph.git"},"bugs":{"url":"https://github.com/avocadodefi/avocado-v2-subgraph/issues"},"license":"GPL-3.0-or-later","readme":"# PancakeSwap V2 Subgraph\r\n\r\n# This repository is archived, you can find all the PancakeSwawp subgraph at [pancakeswap/pancake-subgraph](https://github.com/pancakeswap/pancake-subgraph)\r\n\r\n[PancakeSwap](https://pancakeswap.finance/) is a decentralized protocol for automated token exchange on Binance Smart Chain.\r\n\r\nThis subgraph dynamically tracks any pair created by the uniswap factory. It tracks of the current state of PancakeSwap contracts, and contains derived stats for things like historical data and USD prices.\r\n\r\n- aggregated data across pairs and tokens,\r\n- data on individual pairs and tokens,\r\n- data on transactions\r\n- data on liquidity providers\r\n- historical data on PancakeSwap, pairs or tokens, aggregated by day\r\n\r\n## Running Locally\r\n\r\nMake sure to update package.json settings to point to your own graph account.\r\n\r\n## Queries\r\n\r\nBelow are a few ways to show how to query the uniswap-subgraph for data. The queries show most of the information that is queryable, but there are many other filtering options that can be used, just check out the [querying api](https://thegraph.com/docs/graphql-api). These queries can be used locally or in The Graph Explorer playground.\r\n\r\n## Key Entity Overviews\r\n\r\n#### UniswapFactory\r\n\r\nContains data across all of PancakeSwap v2. This entity tracks important things like total liquidity (in ETH and USD, see below), all time volume, transaction count, number of pairs and more.\r\n\r\n#### Token\r\n\r\nContains data on a specific token. This token specific data is aggregated across all pairs, and is updated whenever there is a transaction involving that token.\r\n\r\n#### Pair\r\n\r\nContains data on a specific pair.\r\n\r\n#### Transaction\r\n\r\nEvery transaction on PancakeSwap is stored. Each transaction contains an array of mints, burns, and swaps that occured within it.\r\n\r\n#### Mint, Burn, Swap\r\n\r\nThese contain specifc information about a transaction. Things like which pair triggered the transaction, amounts, sender, recipient, and more. Each is linked to a parent Transaction entity.\r\n\r\n## Example Queries\r\n\r\n### Querying Aggregated PancakeSwap Data\r\n\r\nThis query fetches aggregated data from all Pancakeswap pairs and tokens, to capture activity throughout the entire protocol.\r\n\r\n```graphql\r\n{\r\n  uniswapFactories(first: 1) {\r\n    pairCount\r\n    totalVolumeUSD\r\n    totalLiquidityUSD\r\n  }\r\n}\r\n```\r\n","readmeFilename":"README.md"}