Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 645 Bytes

File metadata and controls

25 lines (22 loc) · 645 Bytes

Loopring Staking Subgraph

A subgraph indexing the following events on UserStakingPool contract:

  • LRCStaked(address indexed user, uint amount)
  • LRCWithdrawn(address indexed user, uint amount)
  • LRCRewarded(address indexed user, uint amount)

Compilation and deployment

  1. Install the dependencies:
    npm install
  2. Generate the types:
    npm run codegen
  3. Authenticate yourself:
    graph auth https://api.thegraph.com/deploy/ <ACCESS_TOKEN>
  4. Deploy:
    npm run deploy