Skip to content

Commit

Permalink
chore: add queries to file
Browse files Browse the repository at this point in the history
  • Loading branch information
codenamejason committed Sep 20, 2023
1 parent 22a11da commit 903632d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
.spec/connect.toml
.spec/connect.toml
src/.env
51 changes: 40 additions & 11 deletions src/utils/query.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { request, gql } from "graphql-request";
import { graphqlEndpoint } from "./utils";
import { gql } from "graphql-request";

export const getPoolDataQuery = gql`
{
Expand All @@ -19,13 +18,43 @@ export const getPoolDataQuery = gql`
`;

export const getProfileDataQuery = gql`
{
profiles {
profileId
anchor
name
chainId
creator
}
{
profiles {
profileId
anchor
name
chainId
creator
}
}
`;

export const getAlloStatsQuery = gql`
AlloStats ($chainId: String!) {
allo(chainId: $chainId) {
registry
feePercentage
baseFee
treasury
cloneableStrategies
updatedAt
}
`;
}
`;

export const getAlloTransactions = gql`
{
alloTransactions {
hash
fromAddress
toAddress
functionName
functionArgs
status
blockHash
blockNumber
blockTimestamp
chainId
}
}
`;

0 comments on commit 903632d

Please sign in to comment.