Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ typings/

# next.js build output
.next

node_modules/
/generated
/build
409 changes: 408 additions & 1 deletion abis/FiatTokenV1.json

Large diffs are not rendered by default.

107 changes: 106 additions & 1 deletion abis/Gravity.json
Original file line number Diff line number Diff line change
@@ -1 +1,106 @@
[{"constant":false,"inputs":[{"name":"_imageUrl","type":"string"}],"name":"updateGravatarImage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"setMythicalGravatar","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"owner","type":"address"}],"name":"getGravatar","outputs":[{"name":"","type":"string"},{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"gravatarToOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"ownerToGravatar","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_displayName","type":"string"}],"name":"updateGravatarName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_displayName","type":"string"},{"name":"_imageUrl","type":"string"}],"name":"createGravatar","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"gravatars","outputs":[{"name":"owner","type":"address"},{"name":"displayName","type":"string"},{"name":"imageUrl","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"id","type":"uint256"},{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"displayName","type":"string"},{"indexed":false,"name":"imageUrl","type":"string"}],"name":"NewGravatar","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"id","type":"uint256"},{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"displayName","type":"string"},{"indexed":false,"name":"imageUrl","type":"string"}],"name":"UpdatedGravatar","type":"event"}]
[
{
"constant": false,
"inputs": [{ "name": "_imageUrl", "type": "string" }],
"name": "updateGravatarImage",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "setMythicalGravatar",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "owner", "type": "address" }],
"name": "getGravatar",
"outputs": [
{ "name": "", "type": "string" },
{ "name": "", "type": "string" }
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "", "type": "uint256" }],
"name": "gravatarToOwner",
"outputs": [{ "name": "", "type": "address" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "", "type": "address" }],
"name": "ownerToGravatar",
"outputs": [{ "name": "", "type": "uint256" }],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [{ "name": "_displayName", "type": "string" }],
"name": "updateGravatarName",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{ "name": "_displayName", "type": "string" },
{ "name": "_imageUrl", "type": "string" }
],
"name": "createGravatar",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [{ "name": "", "type": "uint256" }],
"name": "gravatars",
"outputs": [
{ "name": "owner", "type": "address" },
{ "name": "displayName", "type": "string" },
{ "name": "imageUrl", "type": "string" }
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "name": "id", "type": "uint256" },
{ "indexed": false, "name": "owner", "type": "address" },
{ "indexed": false, "name": "displayName", "type": "string" },
{ "indexed": false, "name": "imageUrl", "type": "string" }
],
"name": "NewGravatar",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": false, "name": "id", "type": "uint256" },
{ "indexed": false, "name": "owner", "type": "address" },
{ "indexed": false, "name": "displayName", "type": "string" },
{ "indexed": false, "name": "imageUrl", "type": "string" }
],
"name": "UpdatedGravatar",
"type": "event"
}
]
Binary file modified build/FiatTokenV1/FiatTokenV1.wasm
Binary file not shown.
15 changes: 8 additions & 7 deletions build/subgraph.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
specVersion: 0.0.1
specVersion: 0.0.2
description: USDC
repository: 'https://github.com/centrehq/usdc-subgraph'
repository: https://github.com/centrehq/usdc-subgraph
schema:
file: schema.graphql
dataSources:
- kind: ethereum/contract
name: FiatTokenV1
network: mainnet
source:
address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48'
address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
abi: FiatTokenV1
startBlock: 6082465
mapping:
kind: ethereum/events
apiVersion: 0.0.2
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- User
Expand All @@ -25,10 +26,10 @@ dataSources:
- name: FiatTokenV1
file: FiatTokenV1/abis/FiatTokenV1.json
eventHandlers:
- event: 'Burn(address,uint256)'
- event: Burn(indexed address,uint256)
handler: handleBurn
- event: 'Mint(address,address,uint256)'
- event: Mint(indexed address,indexed address,uint256)
handler: handleMint
- event: 'Transfer(address,address,uint256)'
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: FiatTokenV1/FiatTokenV1.wasm
164 changes: 0 additions & 164 deletions package-lock.json

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"deploy-local": "graph deploy centrehq/usdc --debug --ipfs http://localhost:5001 --node http://127.0.0.1:8020"
},
"devDependencies": {
"@graphprotocol/graph-cli": "^0.7.1",
"@graphprotocol/graph-ts": "^0.12.0"
"@graphprotocol/graph-cli": "^0.18.0",
"@graphprotocol/graph-ts": "^0.18.0"
},
"dependencies": {
"babel-polyfill": "^6.26.0",
Expand Down
Loading