-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: add og subgraph queries #4044
feat: add og subgraph queries #4044
Conversation
@daywiss is attempting to deploy a commit to the snapshot Team on Vercel. A member of the Team first needs to authorize it. |
proposalHash: proposalHash, | ||
proposalTxHash: event.transactionHash, | ||
logIndex: event.logIndex | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was just re-formatted to use async await
); | ||
} | ||
) | ||
]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can remove all events now from the graph function call now that we have OG subgraphs
d1ab7bd
to
cd23095
Compare
we are making an update to the subgraphs, which will require some changes to this pr |
cd23095
to
4800d21
Compare
src/plugins/safeSnap/constants.ts
Outdated
}, | ||
{ | ||
network: '42161', | ||
name: 'OptimisticGovernor', | ||
subgraph: | ||
'https://api.thegraph.com/subgraphs/name/md0x/arbitrum-optimistic-governor' | ||
'https://api.thegraph.com/subgraphs/name/umaprotocol/arbitrum-optimistic-governor' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding production endpoints
return 'proposal-approved'; | ||
|
||
// Proposal is approved if it has been settled without a disputer and hasn't been executed. | ||
if (assertionEvent.isSettled && !proposalExecuted) return 'proposal-approved'; | ||
if (assertionEvent?.isSettled && !proposalExecuted) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ensuring this exists
Signed-off-by: david <[email protected]>
Signed-off-by: david <[email protected]>
78f8586
to
72be9f4
Compare
Signed-off-by: david <[email protected]>
c289e8e
to
f606942
Compare
Signed-off-by: david <[email protected]>
ea13d14
to
e0f1ff5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
Issues
we recently deployed an OG subgraph. We want to add queries to it to further optimize calls when requesting historical data.
Fixes #
Changes
(Briefly describe the changes made in this PR)
How to test
(Explain how the changes can be tested, including any required setup steps)
see that there is no warning in console Error querying module details from the graph. this means it used the subgraph function successfully. it shows that it has been executed.
To-Do
(List any outstanding tasks be addressed before or after this PR is merged)
Self-review checklist
Additional notes or considerations
(Include any other relevant information or context that may be helpful for the reviewer)