oneleo / query-lon-claim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

query-lon-claim

  • This Subgraph stores information about the Claimed events of the MerkleRedeem (0x0000000006a0403952389B70d8EE4E45479023db) contract, including:
    • Claimed entity stores recipient and balance data per Claimed event, with 'periods' and 'balancePerPeriod' stored in arrays, using u64.MAX_VALUE if a period is unknown.
    • ClaimedPerPeriod entity stores recipient and balance data per period and recipient address.
    • TotalClaimed entity stores Claimed event occurrences, period count, and cumulative balance claimed.
    • TotalClaimedPerFrom entity stores claimed period count and total balance per 'from' address.
    • TotalClaimedPerRecipient entity stores claimed period count and total balance per 'recipient' address.

Preparation

% npm install --global npm yarn@1 @graphprotocol/graph-cli

Building

% yarn install
% yarn run codegen && yarn run build

Testing

% yarn run test

Deployment

% graph auth --studio <DEPLOY_KEY>
% graph deploy --studio <SUBGRAPH_SLUG>

About

License:MIT License


Languages

Language:TypeScript 100.0%