Giter VIP home page Giter VIP logo

paraswap-rfq-subgraph's Introduction

ParaswapRFQ Subgraph

ParaSwap aggregates decentralized exchanges and other DeFi services in one comprehensive interface to streamline and facilitate users' interactions with decentralized finance.

To read more about Paraswap, visit the official documentaion page here.

About the Subgraph

This subgraph dynamically tracks all the limit order transactions (swaps) made via Paraswap on the Ethereum (mainnet) chain. AugustusRFQ & AugustusRFQ-NFT swaps.

You can query the subgraph via GraphQL from the legacy explorer here.

Instructions to run locally

Setup Graph Node

  1. Have a local graph-node setup. Please visit https://github.com/graphprotocol/graph-node for more instructions.

  2. Start the local graph-node using the instructions. Replace the [url] segment of the cargo command with your RPC provider's url with the network prefix. Example (for mainnet):

    cargo run -p graph-node --release -- \
    --postgres-url postgresql://USERNAME[:PASSWORD]@localhost:5432/graph-node \
    --ethereum-rpc mainnet:<URL> \
    --ipfs 127.0.0.1:5001
    

Build the Subgraph

  1. Clone the subgraph, and run yarn codegen to generate the required schema and TS files.
  2. Run yarn build to generate the build files to be deployed.
  3. Run yarn create-local followed by yarn deploy-local to deploy the subgraph to the local graph-node.
  4. If you wish to remove the local deployed graph, run yarn remove-local.
  5. To redploy, follow steps 2 and 3 again.

Checkout package.json to check the corresponding yarn commands.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.