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

feat(tally-fetch): Added fetch from subgraph #437

Merged
merged 1 commit into from
Nov 8, 2024
Merged

Conversation

crisgarner
Copy link
Contributor

@crisgarner crisgarner commented Nov 5, 2024

How to use:

import { api } from "~/utils/api";
...
const tally = api.maci.tally.useQuery({ id: "TallyContractAddress" });
// Use the results from the tally.

Copy link

vercel bot commented Nov 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
maci-platform ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 4:34am

Copy link
Collaborator

@0xmad 0xmad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@crisgarner thanks, just some code style suggestions

packages/interface/src/utils/fetchTally.ts Outdated Show resolved Hide resolved
packages/interface/src/utils/fetchTally.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@kittybest kittybest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, just a small question.

packages/interface/src/utils/fetchTally.ts Outdated Show resolved Hide resolved
@crisgarner
Copy link
Contributor Author

Thanks! just added the fixes

Copy link
Contributor

@kittybest kittybest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot, just a very little thing!

packages/interface/src/utils/fetchTally.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@kittybest kittybest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Collaborator

@0xmad 0xmad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@crisgarner thanks!

@kittybest kittybest merged commit b099120 into main Nov 8, 2024
17 checks passed
@kittybest kittybest deleted the feat/fetch-tally branch November 8, 2024 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants