diff --git a/.gitignore b/.gitignore index a0601ba..1ac22b7 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,5 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts -.spec/connect.toml \ No newline at end of file +.spec/connect.toml +src/.env diff --git a/src/utils/query.ts b/src/utils/query.ts index f967427..a9eab32 100644 --- a/src/utils/query.ts +++ b/src/utils/query.ts @@ -1,5 +1,4 @@ -import { request, gql } from "graphql-request"; -import { graphqlEndpoint } from "./utils"; +import { gql } from "graphql-request"; export const getPoolDataQuery = gql` { @@ -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 + } + } +`;