Skip to content

Commit b516ceb

Browse files
committed
chore: bootstrap
1 parent 0f8be6b commit b516ceb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+22408
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

indexer/.subgraph.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
specVersion: 0.0.1
2+
description: Decentraland's Manaboard
3+
repository: https://github.com/eordano/manaboard
4+
schema:
5+
file: ./schema.graphql
6+
dataSources:
7+
# ---------------------------------------------------------
8+
# MANA ----------------------------------------------------
9+
# ---------------------------------------------------------
10+
- kind: ethereum/contract
11+
name: MANAToken
12+
network: {{network}}
13+
source:
14+
address: '{{address:MANAToken}}'
15+
abi: MANAToken
16+
startBlock: {{startBlock:MANAToken}}
17+
mapping:
18+
kind: ethereum/events
19+
apiVersion: 0.0.3
20+
language: wasm/assemblyscript
21+
file: ./src/handlers/manaToken.ts
22+
entities:
23+
- TimeSummary
24+
abis:
25+
- name: MANAToken
26+
file: ./abis/MANAToken.json
27+
eventHandlers:
28+
- event: Mint(indexed address,uint256)
29+
handler: handleMint
30+
- event: Burn(indexed address,uint256)
31+
handler: handleBurn

indexer/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Burn indexer
2+
3+
It uses [thegraph](https://thegraph.com)
4+
5+
**Run**
6+
7+
```bash
8+
npm run build-data -- --network mainnet
9+
10+
npm run codegen
11+
npm run build
12+
13+
npm run deploy -- --network mainnet
14+
```
15+
16+
Checkout the docs https://thegraph.com/docs/quick-start

0 commit comments

Comments
 (0)