Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug subgraph #33

Merged
merged 3 commits into from
Jan 26, 2023
Merged
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
Binary file not shown.
1 change: 0 additions & 1 deletion Implementations/Subgraph/daostar/build/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ type RegistrationInstance @entity {
id: ID!
registrationAddress: Bytes!
daoAddress: Bytes!
network: BigInt!
daoURI: String! # string
daoName: String
daoDescription: String
Expand Down
6 changes: 3 additions & 3 deletions Implementations/Subgraph/daostar/build/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ templates:
file: EIP4824Registration/abis/EIP4824Registration.json
eventHandlers:
- event: NewURI(string,address)
handler: handleNewURIMainnet
handler: handleNewURI
dataSources:
- kind: ethereum
name: EIP4824RegistrationSummoner
network: mainnet
source:
address: "0x37dF3fC47C1c3A2acaFd2Dad9c1C00090a8655Bc"
abi: EIP4824RegistrationSummoner
address: "0x37dF3fC47C1c3A2acaFd2Dad9c1C00090a8655Bc"
startBlock: 16084997
mapping:
kind: ethereum/events
Expand All @@ -42,5 +42,5 @@ dataSources:
file: EIP4824RegistrationSummoner/abis/EIP4824RegistrationSummoner.json
eventHandlers:
- event: NewRegistration(indexed address,string,address)
handler: handleNewRegistrationMainnet
handler: handleNewRegistration
file: EIP4824RegistrationSummoner/EIP4824RegistrationSummoner.wasm
10 changes: 0 additions & 10 deletions Implementations/Subgraph/daostar/generated/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export class RegistrationInstance extends Entity {

this.set("registrationAddress", Value.fromBytes(Bytes.empty()));
this.set("daoAddress", Value.fromBytes(Bytes.empty()));
this.set("network", Value.fromBigInt(BigInt.zero()));
this.set("daoURI", Value.fromString(""));
}

Expand Down Expand Up @@ -67,15 +66,6 @@ export class RegistrationInstance extends Entity {
this.set("daoAddress", Value.fromBytes(value));
}

get network(): BigInt {
let value = this.get("network");
return value!.toBigInt();
}

set network(value: BigInt) {
this.set("network", Value.fromBigInt(value));
}

get daoURI(): string {
let value = this.get("daoURI");
return value!.toString();
Expand Down
9 changes: 8 additions & 1 deletion Implementations/Subgraph/daostar/networks.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{
"goerli": {
"EIP4824RegistrationSummoner": {
"address": "0x5ef59b7cde41b744f36b6e07fef230884f800529"
"address": "0x5ef59b7cde41b744f36b6e07fef230884f800529",
"startBlock": 7958681
}
},
"mainnet": {
"EIP4824RegistrationSummoner": {
"address": "0x37dF3fC47C1c3A2acaFd2Dad9c1C00090a8655Bc",
"startBlock": 16084997
}
}
}
Loading