@poolzfinance/api4 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/components/API4Provider.d.ts +5 -0
- package/dist/endpoints/getCurrentTime.d.ts +5 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.modern.js +2 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/index.module.js +2 -0
- package/dist/index.module.js.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/types/graphql/fragment-masking.d.ts +15 -0
- package/dist/types/graphql/gql.d.ts +36 -0
- package/dist/types/graphql/graphql.d.ts +239 -0
- package/dist/types/graphql/index.d.ts +2 -0
- package/package.json +60 -0
package/README.md
ADDED
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=require("react"),i=require("@apollo/client");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a,r=/*#__PURE__*/n(e),t=null!=(a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"time"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}}]}}]})?a:{};exports.API4Provider=function(e){var n=e.children,a=new i.ApolloClient({uri:"https://api4.poolz.finance/graphql",cache:new i.InMemoryCache,headers:{"[Aa]uthorization":"0x0000000000000000000000000000000000000000"}});return r.default.createElement(i.ApolloProvider,{client:a},n)},exports.useGetCurrentTime=function(){var e=i.useQuery(t);return{loading:e.loading,error:e.error,data:e.data}};
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/types/graphql/gql.ts","../src/endpoints/getCurrentTime.ts","../src/types/graphql/graphql.ts","../src/components/API4Provider.tsx"],"sourcesContent":["/* eslint-disable */\nimport * as types from './graphql';\nimport { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n */\nconst documents = {\n \"\\n query MyQuery($time: String!) {\\n time\\n}\": types.MyQueryDocument,\n};\n\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n *\n *\n * @example\n * ```ts\n * const query = gql(`query GetUser($id: ID!) { user(id: $id) { name } }`);\n * ```\n *\n * The query argument is unknown!\n * Please regenerate the types.\n */\nexport function gql(source: string): unknown;\n\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function gql(source: \"\\n query MyQuery($time: String!) {\\n time\\n}\"): (typeof documents)[\"\\n query MyQuery($time: String!) {\\n time\\n}\"];\n\nexport function gql(source: string) {\n return (documents as any)[source] ?? {};\n}\n\nexport type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;","import { useQuery } from \"@apollo/client\"\nimport { gql } from \"types/graphql\"\n\nconst GET_CURRENT_TIME = gql(`\n query MyQuery($time: String!) {\n time\n}`)\n\nexport const useGetCurrentTime = () => {\n const { loading, error, data } = useQuery(GET_CURRENT_TIME)\n return { loading, error, data }\n}\n","/* eslint-disable */\nimport { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\nexport type Maybe<T> = T | null;\nexport type InputMaybe<T> = Maybe<T>;\nexport type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\nexport type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };\nexport type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };\nexport type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: { input: string; output: string; }\n String: { input: string; output: string; }\n Boolean: { input: boolean; output: boolean; }\n Int: { input: number; output: number; }\n Float: { input: number; output: number; }\n};\n\nexport type InvestedErc20 = {\n __typename?: 'InvestedErc20';\n AmountIn: Scalars['Float']['output'];\n TokenOut: Scalars['Float']['output'];\n Wallet: Scalars['String']['output'];\n};\n\nexport type LeaderBoard = {\n __typename?: 'LeaderBoard';\n Amount: Scalars['Float']['output'];\n Owner: Scalars['String']['output'];\n Rank: Scalars['Int']['output'];\n VaultAmount: Scalars['Float']['output'];\n};\n\nexport type Mutation = {\n __typename?: 'Mutation';\n generateTokenFromAddress: Scalars['String']['output'];\n generateTokenFromSignature: Scalars['String']['output'];\n sendToMonitor: Scalars['Int']['output'];\n};\n\n\nexport type MutationGenerateTokenFromAddressArgs = {\n address: Scalars['String']['input'];\n};\n\n\nexport type MutationGenerateTokenFromSignatureArgs = {\n eip4361message: Scalars['String']['input'];\n signature: Scalars['String']['input'];\n};\n\n\nexport type MutationSendToMonitorArgs = {\n input: Scalars['String']['input'];\n};\n\nexport type MySignUp = {\n __typename?: 'MySignUp';\n SignupId: Scalars['Int']['output'];\n};\n\nexport type Query = {\n __typename?: 'Query';\n circulatingSupply: Scalars['Float']['output'];\n investedErc20?: Maybe<Array<Maybe<InvestedErc20>>>;\n leaderBoard?: Maybe<Array<Maybe<LeaderBoard>>>;\n mySignUp?: Maybe<Array<Maybe<MySignUp>>>;\n signUp?: Maybe<Array<Maybe<SignUp>>>;\n signUpAllocation?: Maybe<Array<Maybe<SignUpAllocation>>>;\n signUpList?: Maybe<Array<Maybe<SignUpList>>>;\n signUpsTimes?: Maybe<Array<Maybe<SignUpsTimes>>>;\n status?: Maybe<Array<Maybe<Status>>>;\n statusSettings?: Maybe<StatusSettings>;\n time: Scalars['Int']['output'];\n tokenNetAmounts?: Maybe<Array<Maybe<TokenNetAmounts>>>;\n tokenRefunds?: Maybe<Array<Maybe<TokenRefunds>>>;\n totalPoolzLocked?: Maybe<TotalPoolzLocked>;\n totalSupply?: Maybe<TotalSupply>;\n unlocks?: Maybe<Array<Maybe<Unlocks>>>;\n vaultOut?: Maybe<Array<Maybe<VaultOut>>>;\n};\n\n\nexport type QueryInvestedErc20Args = {\n id: Scalars['Int']['input'];\n};\n\n\nexport type QueryLeaderBoardArgs = {\n address?: InputMaybe<Scalars['String']['input']>;\n timestamp?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\nexport type QueryMySignUpArgs = {\n address: Scalars['String']['input'];\n};\n\n\nexport type QuerySignUpArgs = {\n id: Scalars['Int']['input'];\n};\n\n\nexport type QuerySignUpAllocationArgs = {\n bot: Scalars['Float']['input'];\n minamount: Scalars['Int']['input'];\n signupid: Scalars['Int']['input'];\n take: Scalars['Int']['input'];\n top: Scalars['Float']['input'];\n totalallocation: Scalars['Int']['input'];\n winnersratio: Scalars['Float']['input'];\n};\n\n\nexport type QuerySignUpListArgs = {\n id: Scalars['Int']['input'];\n};\n\n\nexport type QueryTokenNetAmountsArgs = {\n contractAddress: Scalars['String']['input'];\n tokenAddress?: InputMaybe<Scalars['String']['input']>;\n};\n\n\nexport type QueryTokenRefundsArgs = {\n chainId: Scalars['Int']['input'];\n decimals?: InputMaybe<Scalars['Int']['input']>;\n fromBlock?: InputMaybe<Scalars['Int']['input']>;\n newOwner?: InputMaybe<Scalars['String']['input']>;\n toBlock?: InputMaybe<Scalars['Int']['input']>;\n tokenAddress: Scalars['String']['input'];\n};\n\n\nexport type QueryUnlocksArgs = {\n address: Scalars['String']['input'];\n};\n\n\nexport type QueryVaultOutArgs = {\n fromBlock?: InputMaybe<Scalars['Int']['input']>;\n toBlock?: InputMaybe<Scalars['Int']['input']>;\n};\n\nexport type SignUp = {\n __typename?: 'SignUp';\n Address: Scalars['String']['output'];\n Amount: Scalars['Float']['output'];\n};\n\nexport type SignUpAllocation = {\n __typename?: 'SignUpAllocation';\n Address: Scalars['String']['output'];\n Allocation: Scalars['Float']['output'];\n Poolx: Scalars['Float']['output'];\n Rank: Scalars['Int']['output'];\n};\n\nexport type SignUpList = {\n __typename?: 'SignUpList';\n Address: Scalars['String']['output'];\n};\n\nexport type SignUpsTimes = {\n __typename?: 'SignUpsTimes';\n Address: Scalars['String']['output'];\n EndBlock?: Maybe<Scalars['Int']['output']>;\n EndTime?: Maybe<Scalars['String']['output']>;\n PoolId: Scalars['Int']['output'];\n StartBlock: Scalars['Int']['output'];\n StartTime: Scalars['String']['output'];\n};\n\nexport type Status = {\n __typename?: 'Status';\n ChainId: Scalars['Int']['output'];\n CovalentLastBlock: Scalars['Int']['output'];\n Events?: Maybe<Array<Maybe<StatusEvents>>>;\n};\n\nexport type StatusEvents = {\n __typename?: 'StatusEvents';\n Active: Scalars['Boolean']['output'];\n EndingBlock: Scalars['Int']['output'];\n ResponseType: Scalars['String']['output'];\n StartingBlock: Scalars['Int']['output'];\n};\n\nexport type StatusSettings = {\n __typename?: 'StatusSettings';\n Chains: Array<Maybe<StatusSettingsChains>>;\n SecondsToError: Scalars['Int']['output'];\n SecondsToWarning: Scalars['Int']['output'];\n};\n\nexport type StatusSettingsChains = {\n __typename?: 'StatusSettingsChains';\n BlockPerSecond: Scalars['Float']['output'];\n ChainId: Scalars['Int']['output'];\n};\n\nexport type TokenNetAmounts = {\n __typename?: 'TokenNetAmounts';\n Address: Scalars['String']['output'];\n NetAmount: Scalars['Float']['output'];\n};\n\nexport type TokenRefunds = {\n __typename?: 'TokenRefunds';\n BlockHeight: Scalars['Int']['output'];\n BlockSignedAt: Scalars['String']['output'];\n ChainId: Scalars['Int']['output'];\n NewAmount: Scalars['Float']['output'];\n NewOwner: Scalars['String']['output'];\n NewPoolId: Scalars['Int']['output'];\n OldOwner: Scalars['String']['output'];\n OldPoolId: Scalars['Int']['output'];\n OriginalLeftAmount: Scalars['Float']['output'];\n TxHash: Scalars['String']['output'];\n};\n\nexport type TotalPoolzLocked = {\n __typename?: 'TotalPoolzLocked';\n Locked: Scalars['Float']['output'];\n TotalSupply: Scalars['Float']['output'];\n};\n\nexport type TotalSupply = {\n __typename?: 'TotalSupply';\n TotalSupply: Scalars['Float']['output'];\n};\n\nexport type Unlocks = {\n __typename?: 'Unlocks';\n Timespan: Scalars['Int']['output'];\n Total: Scalars['Float']['output'];\n};\n\nexport type VaultOut = {\n __typename?: 'VaultOut';\n Amount: Scalars['Float']['output'];\n LockUntil: Scalars['String']['output'];\n Owner: Scalars['String']['output'];\n};\n\nexport type MyQueryQueryVariables = Exact<{\n time: Scalars['String']['input'];\n}>;\n\n\nexport type MyQueryQuery = { __typename?: 'Query', time: number };\n\n\nexport const MyQueryDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"MyQuery\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"time\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"time\"}}]}}]} as unknown as DocumentNode<MyQueryQuery, MyQueryQueryVariables>;","import React from \"react\"\nimport { ApolloClient, InMemoryCache, ApolloProvider } from \"@apollo/client\"\n\nconst API4Provider = ({ children }: { children: React.ReactNode }) => {\n\n const client = new ApolloClient({\n uri: \"https://api4.poolz.finance/graphql\",\n cache: new InMemoryCache(),\n\n headers: {\n '[Aa]uthorization': '0x0000000000000000000000000000000000000000'\n }\n })\n\n return (\n <ApolloProvider client={client}>\n {children}\n </ApolloProvider>\n )\n}\n\nexport default API4Provider"],"names":["_documents$source","GET_CURRENT_TIME","kind","definitions","operation","name","value","variableDefinitions","variable","type","selectionSet","selections","_ref","children","client","ApolloClient","uri","cache","InMemoryCache","headers","React","createElement","ApolloProvider","_useQuery","useQuery","loading","error","data"],"mappings":"+HAqCkCA,sBClC5BC,SDmCJD,EEyN6B,CAACE,KAAO,WAAWC,YAAc,CAAC,CAACD,KAAO,sBAAsBE,UAAY,QAAQC,KAAO,CAACH,KAAO,OAAOI,MAAQ,WAAWC,oBAAsB,CAAC,CAACL,KAAO,qBAAqBM,SAAW,CAACN,KAAO,WAAWG,KAAO,CAACH,KAAO,OAAOI,MAAQ,SAASG,KAAO,CAACP,KAAO,cAAcO,KAAO,CAACP,KAAO,YAAYG,KAAO,CAACH,KAAO,OAAOI,MAAQ,cAAcI,aAAe,CAACR,KAAO,eAAeS,WAAa,CAAC,CAACT,KAAO,QAAQG,KAAO,CAACH,KAAO,OAAOI,MAAQ,eFzNxbN,EAAI,CACvC,uBGpCqB,SAAHY,GAAM,IAAAC,EAAQD,EAARC,SAEhBC,EAAS,IAAIC,EAAYA,aAAC,CAC9BC,IAAK,qCACLC,MAAO,IAAIC,EAAAA,cAEXC,QAAS,CACP,mBAAoB,gDAIxB,OACEC,UAACC,cAAAC,EAAAA,eAAe,CAAAR,OAAQA,GACrBD,EAGP,4BFXiC,WAC/B,IAAAU,EAAiCC,EAAQA,SAACvB,GAC1C,MAAO,CAAEwB,QADMF,EAAPE,QACUC,MADIH,EAALG,MACQC,KADGJ,EAAJI,KAE1B"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"react";import{ApolloClient as n,InMemoryCache as i,ApolloProvider as a,useQuery as t}from"@apollo/client";const r=({children:t})=>{const r=new n({uri:"https://api4.poolz.finance/graphql",cache:new i,headers:{"[Aa]uthorization":"0x0000000000000000000000000000000000000000"}});return e.createElement(a,{client:r},t)},o=null!=(l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"time"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}}]}}]})?l:{};var l;const d=()=>{const{loading:e,error:n,data:i}=t(o);return{loading:e,error:n,data:i}};export{r as API4Provider,d as useGetCurrentTime};
|
|
2
|
+
//# sourceMappingURL=index.modern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.modern.js","sources":["../src/components/API4Provider.tsx","../src/endpoints/getCurrentTime.ts","../src/types/graphql/gql.ts","../src/types/graphql/graphql.ts"],"sourcesContent":["import React from \"react\"\nimport { ApolloClient, InMemoryCache, ApolloProvider } from \"@apollo/client\"\n\nconst API4Provider = ({ children }: { children: React.ReactNode }) => {\n\n const client = new ApolloClient({\n uri: \"https://api4.poolz.finance/graphql\",\n cache: new InMemoryCache(),\n\n headers: {\n '[Aa]uthorization': '0x0000000000000000000000000000000000000000'\n }\n })\n\n return (\n <ApolloProvider client={client}>\n {children}\n </ApolloProvider>\n )\n}\n\nexport default API4Provider","import { useQuery } from \"@apollo/client\"\nimport { gql } from \"types/graphql\"\n\nconst GET_CURRENT_TIME = gql(`\n query MyQuery($time: String!) {\n time\n}`)\n\nexport const useGetCurrentTime = () => {\n const { loading, error, data } = useQuery(GET_CURRENT_TIME)\n return { loading, error, data }\n}\n","/* eslint-disable */\nimport * as types from './graphql';\nimport { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n */\nconst documents = {\n \"\\n query MyQuery($time: String!) {\\n time\\n}\": types.MyQueryDocument,\n};\n\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n *\n *\n * @example\n * ```ts\n * const query = gql(`query GetUser($id: ID!) { user(id: $id) { name } }`);\n * ```\n *\n * The query argument is unknown!\n * Please regenerate the types.\n */\nexport function gql(source: string): unknown;\n\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function gql(source: \"\\n query MyQuery($time: String!) {\\n time\\n}\"): (typeof documents)[\"\\n query MyQuery($time: String!) {\\n time\\n}\"];\n\nexport function gql(source: string) {\n return (documents as any)[source] ?? {};\n}\n\nexport type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;","/* eslint-disable */\nimport { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\nexport type Maybe<T> = T | null;\nexport type InputMaybe<T> = Maybe<T>;\nexport type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\nexport type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };\nexport type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };\nexport type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: { input: string; output: string; }\n String: { input: string; output: string; }\n Boolean: { input: boolean; output: boolean; }\n Int: { input: number; output: number; }\n Float: { input: number; output: number; }\n};\n\nexport type InvestedErc20 = {\n __typename?: 'InvestedErc20';\n AmountIn: Scalars['Float']['output'];\n TokenOut: Scalars['Float']['output'];\n Wallet: Scalars['String']['output'];\n};\n\nexport type LeaderBoard = {\n __typename?: 'LeaderBoard';\n Amount: Scalars['Float']['output'];\n Owner: Scalars['String']['output'];\n Rank: Scalars['Int']['output'];\n VaultAmount: Scalars['Float']['output'];\n};\n\nexport type Mutation = {\n __typename?: 'Mutation';\n generateTokenFromAddress: Scalars['String']['output'];\n generateTokenFromSignature: Scalars['String']['output'];\n sendToMonitor: Scalars['Int']['output'];\n};\n\n\nexport type MutationGenerateTokenFromAddressArgs = {\n address: Scalars['String']['input'];\n};\n\n\nexport type MutationGenerateTokenFromSignatureArgs = {\n eip4361message: Scalars['String']['input'];\n signature: Scalars['String']['input'];\n};\n\n\nexport type MutationSendToMonitorArgs = {\n input: Scalars['String']['input'];\n};\n\nexport type MySignUp = {\n __typename?: 'MySignUp';\n SignupId: Scalars['Int']['output'];\n};\n\nexport type Query = {\n __typename?: 'Query';\n circulatingSupply: Scalars['Float']['output'];\n investedErc20?: Maybe<Array<Maybe<InvestedErc20>>>;\n leaderBoard?: Maybe<Array<Maybe<LeaderBoard>>>;\n mySignUp?: Maybe<Array<Maybe<MySignUp>>>;\n signUp?: Maybe<Array<Maybe<SignUp>>>;\n signUpAllocation?: Maybe<Array<Maybe<SignUpAllocation>>>;\n signUpList?: Maybe<Array<Maybe<SignUpList>>>;\n signUpsTimes?: Maybe<Array<Maybe<SignUpsTimes>>>;\n status?: Maybe<Array<Maybe<Status>>>;\n statusSettings?: Maybe<StatusSettings>;\n time: Scalars['Int']['output'];\n tokenNetAmounts?: Maybe<Array<Maybe<TokenNetAmounts>>>;\n tokenRefunds?: Maybe<Array<Maybe<TokenRefunds>>>;\n totalPoolzLocked?: Maybe<TotalPoolzLocked>;\n totalSupply?: Maybe<TotalSupply>;\n unlocks?: Maybe<Array<Maybe<Unlocks>>>;\n vaultOut?: Maybe<Array<Maybe<VaultOut>>>;\n};\n\n\nexport type QueryInvestedErc20Args = {\n id: Scalars['Int']['input'];\n};\n\n\nexport type QueryLeaderBoardArgs = {\n address?: InputMaybe<Scalars['String']['input']>;\n timestamp?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\nexport type QueryMySignUpArgs = {\n address: Scalars['String']['input'];\n};\n\n\nexport type QuerySignUpArgs = {\n id: Scalars['Int']['input'];\n};\n\n\nexport type QuerySignUpAllocationArgs = {\n bot: Scalars['Float']['input'];\n minamount: Scalars['Int']['input'];\n signupid: Scalars['Int']['input'];\n take: Scalars['Int']['input'];\n top: Scalars['Float']['input'];\n totalallocation: Scalars['Int']['input'];\n winnersratio: Scalars['Float']['input'];\n};\n\n\nexport type QuerySignUpListArgs = {\n id: Scalars['Int']['input'];\n};\n\n\nexport type QueryTokenNetAmountsArgs = {\n contractAddress: Scalars['String']['input'];\n tokenAddress?: InputMaybe<Scalars['String']['input']>;\n};\n\n\nexport type QueryTokenRefundsArgs = {\n chainId: Scalars['Int']['input'];\n decimals?: InputMaybe<Scalars['Int']['input']>;\n fromBlock?: InputMaybe<Scalars['Int']['input']>;\n newOwner?: InputMaybe<Scalars['String']['input']>;\n toBlock?: InputMaybe<Scalars['Int']['input']>;\n tokenAddress: Scalars['String']['input'];\n};\n\n\nexport type QueryUnlocksArgs = {\n address: Scalars['String']['input'];\n};\n\n\nexport type QueryVaultOutArgs = {\n fromBlock?: InputMaybe<Scalars['Int']['input']>;\n toBlock?: InputMaybe<Scalars['Int']['input']>;\n};\n\nexport type SignUp = {\n __typename?: 'SignUp';\n Address: Scalars['String']['output'];\n Amount: Scalars['Float']['output'];\n};\n\nexport type SignUpAllocation = {\n __typename?: 'SignUpAllocation';\n Address: Scalars['String']['output'];\n Allocation: Scalars['Float']['output'];\n Poolx: Scalars['Float']['output'];\n Rank: Scalars['Int']['output'];\n};\n\nexport type SignUpList = {\n __typename?: 'SignUpList';\n Address: Scalars['String']['output'];\n};\n\nexport type SignUpsTimes = {\n __typename?: 'SignUpsTimes';\n Address: Scalars['String']['output'];\n EndBlock?: Maybe<Scalars['Int']['output']>;\n EndTime?: Maybe<Scalars['String']['output']>;\n PoolId: Scalars['Int']['output'];\n StartBlock: Scalars['Int']['output'];\n StartTime: Scalars['String']['output'];\n};\n\nexport type Status = {\n __typename?: 'Status';\n ChainId: Scalars['Int']['output'];\n CovalentLastBlock: Scalars['Int']['output'];\n Events?: Maybe<Array<Maybe<StatusEvents>>>;\n};\n\nexport type StatusEvents = {\n __typename?: 'StatusEvents';\n Active: Scalars['Boolean']['output'];\n EndingBlock: Scalars['Int']['output'];\n ResponseType: Scalars['String']['output'];\n StartingBlock: Scalars['Int']['output'];\n};\n\nexport type StatusSettings = {\n __typename?: 'StatusSettings';\n Chains: Array<Maybe<StatusSettingsChains>>;\n SecondsToError: Scalars['Int']['output'];\n SecondsToWarning: Scalars['Int']['output'];\n};\n\nexport type StatusSettingsChains = {\n __typename?: 'StatusSettingsChains';\n BlockPerSecond: Scalars['Float']['output'];\n ChainId: Scalars['Int']['output'];\n};\n\nexport type TokenNetAmounts = {\n __typename?: 'TokenNetAmounts';\n Address: Scalars['String']['output'];\n NetAmount: Scalars['Float']['output'];\n};\n\nexport type TokenRefunds = {\n __typename?: 'TokenRefunds';\n BlockHeight: Scalars['Int']['output'];\n BlockSignedAt: Scalars['String']['output'];\n ChainId: Scalars['Int']['output'];\n NewAmount: Scalars['Float']['output'];\n NewOwner: Scalars['String']['output'];\n NewPoolId: Scalars['Int']['output'];\n OldOwner: Scalars['String']['output'];\n OldPoolId: Scalars['Int']['output'];\n OriginalLeftAmount: Scalars['Float']['output'];\n TxHash: Scalars['String']['output'];\n};\n\nexport type TotalPoolzLocked = {\n __typename?: 'TotalPoolzLocked';\n Locked: Scalars['Float']['output'];\n TotalSupply: Scalars['Float']['output'];\n};\n\nexport type TotalSupply = {\n __typename?: 'TotalSupply';\n TotalSupply: Scalars['Float']['output'];\n};\n\nexport type Unlocks = {\n __typename?: 'Unlocks';\n Timespan: Scalars['Int']['output'];\n Total: Scalars['Float']['output'];\n};\n\nexport type VaultOut = {\n __typename?: 'VaultOut';\n Amount: Scalars['Float']['output'];\n LockUntil: Scalars['String']['output'];\n Owner: Scalars['String']['output'];\n};\n\nexport type MyQueryQueryVariables = Exact<{\n time: Scalars['String']['input'];\n}>;\n\n\nexport type MyQueryQuery = { __typename?: 'Query', time: number };\n\n\nexport const MyQueryDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"MyQuery\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"time\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"time\"}}]}}]} as unknown as DocumentNode<MyQueryQuery, MyQueryQueryVariables>;"],"names":["API4Provider","children","client","ApolloClient","uri","cache","InMemoryCache","headers","React","createElement","ApolloProvider","GET_CURRENT_TIME","_documents$source","kind","definitions","operation","name","value","variableDefinitions","variable","type","selectionSet","selections","useGetCurrentTime","loading","error","data","useQuery"],"mappings":"wHAGM,MAAAA,EAAeA,EAAGC,eAEtB,MAAMC,EAAS,IAAIC,EAAa,CAC9BC,IAAK,qCACLC,MAAO,IAAIC,EAEXC,QAAS,CACP,mBAAoB,gDAIxB,OACEC,EAACC,cAAAC,EAAe,CAAAR,OAAQA,GACrBD,EAAQ,ECbTU,SCmCJC,ECyN6B,CAACC,KAAO,WAAWC,YAAc,CAAC,CAACD,KAAO,sBAAsBE,UAAY,QAAQC,KAAO,CAACH,KAAO,OAAOI,MAAQ,WAAWC,oBAAsB,CAAC,CAACL,KAAO,qBAAqBM,SAAW,CAACN,KAAO,WAAWG,KAAO,CAACH,KAAO,OAAOI,MAAQ,SAASG,KAAO,CAACP,KAAO,cAAcO,KAAO,CAACP,KAAO,YAAYG,KAAO,CAACH,KAAO,OAAOI,MAAQ,cAAcI,aAAe,CAACR,KAAO,eAAeS,WAAa,CAAC,CAACT,KAAO,QAAQG,KAAO,CAACH,KAAO,OAAOI,MAAQ,eDzNxbL,EAAI,CACvC,EAFgB,IAAkBA,ED7BrB,MAAAW,EAAoBA,KAC/B,MAAMC,QAAEA,EAAOC,MAAEA,EAAKC,KAAEA,GAASC,EAAShB,GAC1C,MAAO,CAAEa,UAASC,QAAOC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"react";import{ApolloClient as i,InMemoryCache as n,ApolloProvider as a,useQuery as t}from"@apollo/client";var r,o=function(t){var r=t.children,o=new i({uri:"https://api4.poolz.finance/graphql",cache:new n,headers:{"[Aa]uthorization":"0x0000000000000000000000000000000000000000"}});return e.createElement(a,{client:o},r)},l=null!=(r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"time"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}}]}}]})?r:{},d=function(){var e=t(l);return{loading:e.loading,error:e.error,data:e.data}};export{o as API4Provider,d as useGetCurrentTime};
|
|
2
|
+
//# sourceMappingURL=index.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.module.js","sources":["../src/components/API4Provider.tsx","../src/types/graphql/gql.ts","../src/endpoints/getCurrentTime.ts","../src/types/graphql/graphql.ts"],"sourcesContent":["import React from \"react\"\nimport { ApolloClient, InMemoryCache, ApolloProvider } from \"@apollo/client\"\n\nconst API4Provider = ({ children }: { children: React.ReactNode }) => {\n\n const client = new ApolloClient({\n uri: \"https://api4.poolz.finance/graphql\",\n cache: new InMemoryCache(),\n\n headers: {\n '[Aa]uthorization': '0x0000000000000000000000000000000000000000'\n }\n })\n\n return (\n <ApolloProvider client={client}>\n {children}\n </ApolloProvider>\n )\n}\n\nexport default API4Provider","/* eslint-disable */\nimport * as types from './graphql';\nimport { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n */\nconst documents = {\n \"\\n query MyQuery($time: String!) {\\n time\\n}\": types.MyQueryDocument,\n};\n\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n *\n *\n * @example\n * ```ts\n * const query = gql(`query GetUser($id: ID!) { user(id: $id) { name } }`);\n * ```\n *\n * The query argument is unknown!\n * Please regenerate the types.\n */\nexport function gql(source: string): unknown;\n\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function gql(source: \"\\n query MyQuery($time: String!) {\\n time\\n}\"): (typeof documents)[\"\\n query MyQuery($time: String!) {\\n time\\n}\"];\n\nexport function gql(source: string) {\n return (documents as any)[source] ?? {};\n}\n\nexport type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;","import { useQuery } from \"@apollo/client\"\nimport { gql } from \"types/graphql\"\n\nconst GET_CURRENT_TIME = gql(`\n query MyQuery($time: String!) {\n time\n}`)\n\nexport const useGetCurrentTime = () => {\n const { loading, error, data } = useQuery(GET_CURRENT_TIME)\n return { loading, error, data }\n}\n","/* eslint-disable */\nimport { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\nexport type Maybe<T> = T | null;\nexport type InputMaybe<T> = Maybe<T>;\nexport type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\nexport type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };\nexport type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };\nexport type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: { input: string; output: string; }\n String: { input: string; output: string; }\n Boolean: { input: boolean; output: boolean; }\n Int: { input: number; output: number; }\n Float: { input: number; output: number; }\n};\n\nexport type InvestedErc20 = {\n __typename?: 'InvestedErc20';\n AmountIn: Scalars['Float']['output'];\n TokenOut: Scalars['Float']['output'];\n Wallet: Scalars['String']['output'];\n};\n\nexport type LeaderBoard = {\n __typename?: 'LeaderBoard';\n Amount: Scalars['Float']['output'];\n Owner: Scalars['String']['output'];\n Rank: Scalars['Int']['output'];\n VaultAmount: Scalars['Float']['output'];\n};\n\nexport type Mutation = {\n __typename?: 'Mutation';\n generateTokenFromAddress: Scalars['String']['output'];\n generateTokenFromSignature: Scalars['String']['output'];\n sendToMonitor: Scalars['Int']['output'];\n};\n\n\nexport type MutationGenerateTokenFromAddressArgs = {\n address: Scalars['String']['input'];\n};\n\n\nexport type MutationGenerateTokenFromSignatureArgs = {\n eip4361message: Scalars['String']['input'];\n signature: Scalars['String']['input'];\n};\n\n\nexport type MutationSendToMonitorArgs = {\n input: Scalars['String']['input'];\n};\n\nexport type MySignUp = {\n __typename?: 'MySignUp';\n SignupId: Scalars['Int']['output'];\n};\n\nexport type Query = {\n __typename?: 'Query';\n circulatingSupply: Scalars['Float']['output'];\n investedErc20?: Maybe<Array<Maybe<InvestedErc20>>>;\n leaderBoard?: Maybe<Array<Maybe<LeaderBoard>>>;\n mySignUp?: Maybe<Array<Maybe<MySignUp>>>;\n signUp?: Maybe<Array<Maybe<SignUp>>>;\n signUpAllocation?: Maybe<Array<Maybe<SignUpAllocation>>>;\n signUpList?: Maybe<Array<Maybe<SignUpList>>>;\n signUpsTimes?: Maybe<Array<Maybe<SignUpsTimes>>>;\n status?: Maybe<Array<Maybe<Status>>>;\n statusSettings?: Maybe<StatusSettings>;\n time: Scalars['Int']['output'];\n tokenNetAmounts?: Maybe<Array<Maybe<TokenNetAmounts>>>;\n tokenRefunds?: Maybe<Array<Maybe<TokenRefunds>>>;\n totalPoolzLocked?: Maybe<TotalPoolzLocked>;\n totalSupply?: Maybe<TotalSupply>;\n unlocks?: Maybe<Array<Maybe<Unlocks>>>;\n vaultOut?: Maybe<Array<Maybe<VaultOut>>>;\n};\n\n\nexport type QueryInvestedErc20Args = {\n id: Scalars['Int']['input'];\n};\n\n\nexport type QueryLeaderBoardArgs = {\n address?: InputMaybe<Scalars['String']['input']>;\n timestamp?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\nexport type QueryMySignUpArgs = {\n address: Scalars['String']['input'];\n};\n\n\nexport type QuerySignUpArgs = {\n id: Scalars['Int']['input'];\n};\n\n\nexport type QuerySignUpAllocationArgs = {\n bot: Scalars['Float']['input'];\n minamount: Scalars['Int']['input'];\n signupid: Scalars['Int']['input'];\n take: Scalars['Int']['input'];\n top: Scalars['Float']['input'];\n totalallocation: Scalars['Int']['input'];\n winnersratio: Scalars['Float']['input'];\n};\n\n\nexport type QuerySignUpListArgs = {\n id: Scalars['Int']['input'];\n};\n\n\nexport type QueryTokenNetAmountsArgs = {\n contractAddress: Scalars['String']['input'];\n tokenAddress?: InputMaybe<Scalars['String']['input']>;\n};\n\n\nexport type QueryTokenRefundsArgs = {\n chainId: Scalars['Int']['input'];\n decimals?: InputMaybe<Scalars['Int']['input']>;\n fromBlock?: InputMaybe<Scalars['Int']['input']>;\n newOwner?: InputMaybe<Scalars['String']['input']>;\n toBlock?: InputMaybe<Scalars['Int']['input']>;\n tokenAddress: Scalars['String']['input'];\n};\n\n\nexport type QueryUnlocksArgs = {\n address: Scalars['String']['input'];\n};\n\n\nexport type QueryVaultOutArgs = {\n fromBlock?: InputMaybe<Scalars['Int']['input']>;\n toBlock?: InputMaybe<Scalars['Int']['input']>;\n};\n\nexport type SignUp = {\n __typename?: 'SignUp';\n Address: Scalars['String']['output'];\n Amount: Scalars['Float']['output'];\n};\n\nexport type SignUpAllocation = {\n __typename?: 'SignUpAllocation';\n Address: Scalars['String']['output'];\n Allocation: Scalars['Float']['output'];\n Poolx: Scalars['Float']['output'];\n Rank: Scalars['Int']['output'];\n};\n\nexport type SignUpList = {\n __typename?: 'SignUpList';\n Address: Scalars['String']['output'];\n};\n\nexport type SignUpsTimes = {\n __typename?: 'SignUpsTimes';\n Address: Scalars['String']['output'];\n EndBlock?: Maybe<Scalars['Int']['output']>;\n EndTime?: Maybe<Scalars['String']['output']>;\n PoolId: Scalars['Int']['output'];\n StartBlock: Scalars['Int']['output'];\n StartTime: Scalars['String']['output'];\n};\n\nexport type Status = {\n __typename?: 'Status';\n ChainId: Scalars['Int']['output'];\n CovalentLastBlock: Scalars['Int']['output'];\n Events?: Maybe<Array<Maybe<StatusEvents>>>;\n};\n\nexport type StatusEvents = {\n __typename?: 'StatusEvents';\n Active: Scalars['Boolean']['output'];\n EndingBlock: Scalars['Int']['output'];\n ResponseType: Scalars['String']['output'];\n StartingBlock: Scalars['Int']['output'];\n};\n\nexport type StatusSettings = {\n __typename?: 'StatusSettings';\n Chains: Array<Maybe<StatusSettingsChains>>;\n SecondsToError: Scalars['Int']['output'];\n SecondsToWarning: Scalars['Int']['output'];\n};\n\nexport type StatusSettingsChains = {\n __typename?: 'StatusSettingsChains';\n BlockPerSecond: Scalars['Float']['output'];\n ChainId: Scalars['Int']['output'];\n};\n\nexport type TokenNetAmounts = {\n __typename?: 'TokenNetAmounts';\n Address: Scalars['String']['output'];\n NetAmount: Scalars['Float']['output'];\n};\n\nexport type TokenRefunds = {\n __typename?: 'TokenRefunds';\n BlockHeight: Scalars['Int']['output'];\n BlockSignedAt: Scalars['String']['output'];\n ChainId: Scalars['Int']['output'];\n NewAmount: Scalars['Float']['output'];\n NewOwner: Scalars['String']['output'];\n NewPoolId: Scalars['Int']['output'];\n OldOwner: Scalars['String']['output'];\n OldPoolId: Scalars['Int']['output'];\n OriginalLeftAmount: Scalars['Float']['output'];\n TxHash: Scalars['String']['output'];\n};\n\nexport type TotalPoolzLocked = {\n __typename?: 'TotalPoolzLocked';\n Locked: Scalars['Float']['output'];\n TotalSupply: Scalars['Float']['output'];\n};\n\nexport type TotalSupply = {\n __typename?: 'TotalSupply';\n TotalSupply: Scalars['Float']['output'];\n};\n\nexport type Unlocks = {\n __typename?: 'Unlocks';\n Timespan: Scalars['Int']['output'];\n Total: Scalars['Float']['output'];\n};\n\nexport type VaultOut = {\n __typename?: 'VaultOut';\n Amount: Scalars['Float']['output'];\n LockUntil: Scalars['String']['output'];\n Owner: Scalars['String']['output'];\n};\n\nexport type MyQueryQueryVariables = Exact<{\n time: Scalars['String']['input'];\n}>;\n\n\nexport type MyQueryQuery = { __typename?: 'Query', time: number };\n\n\nexport const MyQueryDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"MyQuery\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"time\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"time\"}}]}}]} as unknown as DocumentNode<MyQueryQuery, MyQueryQueryVariables>;"],"names":["_documents$source","API4Provider","_ref","children","client","ApolloClient","uri","cache","InMemoryCache","headers","React","createElement","ApolloProvider","GET_CURRENT_TIME","kind","definitions","operation","name","value","variableDefinitions","variable","type","selectionSet","selections","useGetCurrentTime","_useQuery","useQuery","loading","error","data"],"mappings":"wHAGM,ICkC4BA,EDlC5BC,EAAe,SAAHC,GAAM,IAAAC,EAAQD,EAARC,SAEhBC,EAAS,IAAIC,EAAa,CAC9BC,IAAK,qCACLC,MAAO,IAAIC,EAEXC,QAAS,CACP,mBAAoB,gDAIxB,OACEC,EAACC,cAAAC,EAAe,CAAAR,OAAQA,GACrBD,EAGP,EEhBMU,SDmCJb,EEyN6B,CAACc,KAAO,WAAWC,YAAc,CAAC,CAACD,KAAO,sBAAsBE,UAAY,QAAQC,KAAO,CAACH,KAAO,OAAOI,MAAQ,WAAWC,oBAAsB,CAAC,CAACL,KAAO,qBAAqBM,SAAW,CAACN,KAAO,WAAWG,KAAO,CAACH,KAAO,OAAOI,MAAQ,SAASG,KAAO,CAACP,KAAO,cAAcO,KAAO,CAACP,KAAO,YAAYG,KAAO,CAACH,KAAO,OAAOI,MAAQ,cAAcI,aAAe,CAACR,KAAO,eAAeS,WAAa,CAAC,CAACT,KAAO,QAAQG,KAAO,CAACH,KAAO,OAAOI,MAAQ,eFzNxblB,EAAI,CACvC,EC/BawB,EAAoB,WAC/B,IAAAC,EAAiCC,EAASb,GAC1C,MAAO,CAAEc,QADMF,EAAPE,QACUC,MADIH,EAALG,MACQC,KADGJ,EAAJI,KAE1B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react"),require("@apollo/client")):"function"==typeof define&&define.amd?define(["exports","react","@apollo/client"],n):n((e||self).api4={},e.react,e.client)}(this,function(e,n,i){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a,o=/*#__PURE__*/t(n),r=null!=(a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MyQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"time"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"time"}}]}}]})?a:{};e.API4Provider=function(e){var n=e.children,t=new i.ApolloClient({uri:"https://api4.poolz.finance/graphql",cache:new i.InMemoryCache,headers:{"[Aa]uthorization":"0x0000000000000000000000000000000000000000"}});return o.default.createElement(i.ApolloProvider,{client:t},n)},e.useGetCurrentTime=function(){var e=i.useQuery(r);return{loading:e.loading,error:e.error,data:e.data}}});
|
|
2
|
+
//# sourceMappingURL=index.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../src/types/graphql/gql.ts","../src/endpoints/getCurrentTime.ts","../src/types/graphql/graphql.ts","../src/components/API4Provider.tsx"],"sourcesContent":["/* eslint-disable */\nimport * as types from './graphql';\nimport { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\n\n/**\n * Map of all GraphQL operations in the project.\n *\n * This map has several performance disadvantages:\n * 1. It is not tree-shakeable, so it will include all operations in the project.\n * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.\n * 3. It does not support dead code elimination, so it will add unused operations.\n *\n * Therefore it is highly recommended to use the babel or swc plugin for production.\n */\nconst documents = {\n \"\\n query MyQuery($time: String!) {\\n time\\n}\": types.MyQueryDocument,\n};\n\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n *\n *\n * @example\n * ```ts\n * const query = gql(`query GetUser($id: ID!) { user(id: $id) { name } }`);\n * ```\n *\n * The query argument is unknown!\n * Please regenerate the types.\n */\nexport function gql(source: string): unknown;\n\n/**\n * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.\n */\nexport function gql(source: \"\\n query MyQuery($time: String!) {\\n time\\n}\"): (typeof documents)[\"\\n query MyQuery($time: String!) {\\n time\\n}\"];\n\nexport function gql(source: string) {\n return (documents as any)[source] ?? {};\n}\n\nexport type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode< infer TType, any> ? TType : never;","import { useQuery } from \"@apollo/client\"\nimport { gql } from \"types/graphql\"\n\nconst GET_CURRENT_TIME = gql(`\n query MyQuery($time: String!) {\n time\n}`)\n\nexport const useGetCurrentTime = () => {\n const { loading, error, data } = useQuery(GET_CURRENT_TIME)\n return { loading, error, data }\n}\n","/* eslint-disable */\nimport { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';\nexport type Maybe<T> = T | null;\nexport type InputMaybe<T> = Maybe<T>;\nexport type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };\nexport type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };\nexport type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };\nexport type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };\nexport type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };\n/** All built-in and custom scalars, mapped to their actual values */\nexport type Scalars = {\n ID: { input: string; output: string; }\n String: { input: string; output: string; }\n Boolean: { input: boolean; output: boolean; }\n Int: { input: number; output: number; }\n Float: { input: number; output: number; }\n};\n\nexport type InvestedErc20 = {\n __typename?: 'InvestedErc20';\n AmountIn: Scalars['Float']['output'];\n TokenOut: Scalars['Float']['output'];\n Wallet: Scalars['String']['output'];\n};\n\nexport type LeaderBoard = {\n __typename?: 'LeaderBoard';\n Amount: Scalars['Float']['output'];\n Owner: Scalars['String']['output'];\n Rank: Scalars['Int']['output'];\n VaultAmount: Scalars['Float']['output'];\n};\n\nexport type Mutation = {\n __typename?: 'Mutation';\n generateTokenFromAddress: Scalars['String']['output'];\n generateTokenFromSignature: Scalars['String']['output'];\n sendToMonitor: Scalars['Int']['output'];\n};\n\n\nexport type MutationGenerateTokenFromAddressArgs = {\n address: Scalars['String']['input'];\n};\n\n\nexport type MutationGenerateTokenFromSignatureArgs = {\n eip4361message: Scalars['String']['input'];\n signature: Scalars['String']['input'];\n};\n\n\nexport type MutationSendToMonitorArgs = {\n input: Scalars['String']['input'];\n};\n\nexport type MySignUp = {\n __typename?: 'MySignUp';\n SignupId: Scalars['Int']['output'];\n};\n\nexport type Query = {\n __typename?: 'Query';\n circulatingSupply: Scalars['Float']['output'];\n investedErc20?: Maybe<Array<Maybe<InvestedErc20>>>;\n leaderBoard?: Maybe<Array<Maybe<LeaderBoard>>>;\n mySignUp?: Maybe<Array<Maybe<MySignUp>>>;\n signUp?: Maybe<Array<Maybe<SignUp>>>;\n signUpAllocation?: Maybe<Array<Maybe<SignUpAllocation>>>;\n signUpList?: Maybe<Array<Maybe<SignUpList>>>;\n signUpsTimes?: Maybe<Array<Maybe<SignUpsTimes>>>;\n status?: Maybe<Array<Maybe<Status>>>;\n statusSettings?: Maybe<StatusSettings>;\n time: Scalars['Int']['output'];\n tokenNetAmounts?: Maybe<Array<Maybe<TokenNetAmounts>>>;\n tokenRefunds?: Maybe<Array<Maybe<TokenRefunds>>>;\n totalPoolzLocked?: Maybe<TotalPoolzLocked>;\n totalSupply?: Maybe<TotalSupply>;\n unlocks?: Maybe<Array<Maybe<Unlocks>>>;\n vaultOut?: Maybe<Array<Maybe<VaultOut>>>;\n};\n\n\nexport type QueryInvestedErc20Args = {\n id: Scalars['Int']['input'];\n};\n\n\nexport type QueryLeaderBoardArgs = {\n address?: InputMaybe<Scalars['String']['input']>;\n timestamp?: InputMaybe<Scalars['Int']['input']>;\n};\n\n\nexport type QueryMySignUpArgs = {\n address: Scalars['String']['input'];\n};\n\n\nexport type QuerySignUpArgs = {\n id: Scalars['Int']['input'];\n};\n\n\nexport type QuerySignUpAllocationArgs = {\n bot: Scalars['Float']['input'];\n minamount: Scalars['Int']['input'];\n signupid: Scalars['Int']['input'];\n take: Scalars['Int']['input'];\n top: Scalars['Float']['input'];\n totalallocation: Scalars['Int']['input'];\n winnersratio: Scalars['Float']['input'];\n};\n\n\nexport type QuerySignUpListArgs = {\n id: Scalars['Int']['input'];\n};\n\n\nexport type QueryTokenNetAmountsArgs = {\n contractAddress: Scalars['String']['input'];\n tokenAddress?: InputMaybe<Scalars['String']['input']>;\n};\n\n\nexport type QueryTokenRefundsArgs = {\n chainId: Scalars['Int']['input'];\n decimals?: InputMaybe<Scalars['Int']['input']>;\n fromBlock?: InputMaybe<Scalars['Int']['input']>;\n newOwner?: InputMaybe<Scalars['String']['input']>;\n toBlock?: InputMaybe<Scalars['Int']['input']>;\n tokenAddress: Scalars['String']['input'];\n};\n\n\nexport type QueryUnlocksArgs = {\n address: Scalars['String']['input'];\n};\n\n\nexport type QueryVaultOutArgs = {\n fromBlock?: InputMaybe<Scalars['Int']['input']>;\n toBlock?: InputMaybe<Scalars['Int']['input']>;\n};\n\nexport type SignUp = {\n __typename?: 'SignUp';\n Address: Scalars['String']['output'];\n Amount: Scalars['Float']['output'];\n};\n\nexport type SignUpAllocation = {\n __typename?: 'SignUpAllocation';\n Address: Scalars['String']['output'];\n Allocation: Scalars['Float']['output'];\n Poolx: Scalars['Float']['output'];\n Rank: Scalars['Int']['output'];\n};\n\nexport type SignUpList = {\n __typename?: 'SignUpList';\n Address: Scalars['String']['output'];\n};\n\nexport type SignUpsTimes = {\n __typename?: 'SignUpsTimes';\n Address: Scalars['String']['output'];\n EndBlock?: Maybe<Scalars['Int']['output']>;\n EndTime?: Maybe<Scalars['String']['output']>;\n PoolId: Scalars['Int']['output'];\n StartBlock: Scalars['Int']['output'];\n StartTime: Scalars['String']['output'];\n};\n\nexport type Status = {\n __typename?: 'Status';\n ChainId: Scalars['Int']['output'];\n CovalentLastBlock: Scalars['Int']['output'];\n Events?: Maybe<Array<Maybe<StatusEvents>>>;\n};\n\nexport type StatusEvents = {\n __typename?: 'StatusEvents';\n Active: Scalars['Boolean']['output'];\n EndingBlock: Scalars['Int']['output'];\n ResponseType: Scalars['String']['output'];\n StartingBlock: Scalars['Int']['output'];\n};\n\nexport type StatusSettings = {\n __typename?: 'StatusSettings';\n Chains: Array<Maybe<StatusSettingsChains>>;\n SecondsToError: Scalars['Int']['output'];\n SecondsToWarning: Scalars['Int']['output'];\n};\n\nexport type StatusSettingsChains = {\n __typename?: 'StatusSettingsChains';\n BlockPerSecond: Scalars['Float']['output'];\n ChainId: Scalars['Int']['output'];\n};\n\nexport type TokenNetAmounts = {\n __typename?: 'TokenNetAmounts';\n Address: Scalars['String']['output'];\n NetAmount: Scalars['Float']['output'];\n};\n\nexport type TokenRefunds = {\n __typename?: 'TokenRefunds';\n BlockHeight: Scalars['Int']['output'];\n BlockSignedAt: Scalars['String']['output'];\n ChainId: Scalars['Int']['output'];\n NewAmount: Scalars['Float']['output'];\n NewOwner: Scalars['String']['output'];\n NewPoolId: Scalars['Int']['output'];\n OldOwner: Scalars['String']['output'];\n OldPoolId: Scalars['Int']['output'];\n OriginalLeftAmount: Scalars['Float']['output'];\n TxHash: Scalars['String']['output'];\n};\n\nexport type TotalPoolzLocked = {\n __typename?: 'TotalPoolzLocked';\n Locked: Scalars['Float']['output'];\n TotalSupply: Scalars['Float']['output'];\n};\n\nexport type TotalSupply = {\n __typename?: 'TotalSupply';\n TotalSupply: Scalars['Float']['output'];\n};\n\nexport type Unlocks = {\n __typename?: 'Unlocks';\n Timespan: Scalars['Int']['output'];\n Total: Scalars['Float']['output'];\n};\n\nexport type VaultOut = {\n __typename?: 'VaultOut';\n Amount: Scalars['Float']['output'];\n LockUntil: Scalars['String']['output'];\n Owner: Scalars['String']['output'];\n};\n\nexport type MyQueryQueryVariables = Exact<{\n time: Scalars['String']['input'];\n}>;\n\n\nexport type MyQueryQuery = { __typename?: 'Query', time: number };\n\n\nexport const MyQueryDocument = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"MyQuery\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"time\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}}}],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"time\"}}]}}]} as unknown as DocumentNode<MyQueryQuery, MyQueryQueryVariables>;","import React from \"react\"\nimport { ApolloClient, InMemoryCache, ApolloProvider } from \"@apollo/client\"\n\nconst API4Provider = ({ children }: { children: React.ReactNode }) => {\n\n const client = new ApolloClient({\n uri: \"https://api4.poolz.finance/graphql\",\n cache: new InMemoryCache(),\n\n headers: {\n '[Aa]uthorization': '0x0000000000000000000000000000000000000000'\n }\n })\n\n return (\n <ApolloProvider client={client}>\n {children}\n </ApolloProvider>\n )\n}\n\nexport default API4Provider"],"names":["_documents$source","GET_CURRENT_TIME","kind","definitions","operation","name","value","variableDefinitions","variable","type","selectionSet","selections","_ref","children","client","ApolloClient","uri","cache","InMemoryCache","headers","React","createElement","ApolloProvider","_useQuery","useQuery","loading","error","data"],"mappings":"mYAqCkCA,sBClC5BC,SDmCJD,EEyN6B,CAACE,KAAO,WAAWC,YAAc,CAAC,CAACD,KAAO,sBAAsBE,UAAY,QAAQC,KAAO,CAACH,KAAO,OAAOI,MAAQ,WAAWC,oBAAsB,CAAC,CAACL,KAAO,qBAAqBM,SAAW,CAACN,KAAO,WAAWG,KAAO,CAACH,KAAO,OAAOI,MAAQ,SAASG,KAAO,CAACP,KAAO,cAAcO,KAAO,CAACP,KAAO,YAAYG,KAAO,CAACH,KAAO,OAAOI,MAAQ,cAAcI,aAAe,CAACR,KAAO,eAAeS,WAAa,CAAC,CAACT,KAAO,QAAQG,KAAO,CAACH,KAAO,OAAOI,MAAQ,eFzNxbN,EAAI,CACvC,iBGpCqB,SAAHY,GAAM,IAAAC,EAAQD,EAARC,SAEhBC,EAAS,IAAIC,EAAYA,aAAC,CAC9BC,IAAK,qCACLC,MAAO,IAAIC,EAAAA,cAEXC,QAAS,CACP,mBAAoB,gDAIxB,OACEC,UAACC,cAAAC,EAAAA,eAAe,CAAAR,OAAQA,GACrBD,EAGP,sBFXiC,WAC/B,IAAAU,EAAiCC,EAAQA,SAACvB,GAC1C,MAAO,CAAEwB,QADMF,EAAPE,QACUC,MADIH,EAALG,MACQC,KADGJ,EAAJI,KAE1B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ResultOf, DocumentTypeDecoration, TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
2
|
+
import { Incremental } from './graphql';
|
|
3
|
+
export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<infer TType, any> ? [TType] extends [{
|
|
4
|
+
' $fragmentName'?: infer TKey;
|
|
5
|
+
}] ? TKey extends string ? {
|
|
6
|
+
' $fragmentRefs'?: {
|
|
7
|
+
[key in TKey]: TType;
|
|
8
|
+
};
|
|
9
|
+
} : never : never : never;
|
|
10
|
+
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>): TType;
|
|
11
|
+
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined): TType | null | undefined;
|
|
12
|
+
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>): ReadonlyArray<TType>;
|
|
13
|
+
export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): ReadonlyArray<TType> | null | undefined;
|
|
14
|
+
export declare function makeFragmentData<F extends DocumentTypeDecoration<any, any>, FT extends ResultOf<F>>(data: FT, _fragment: F): FragmentType<F>;
|
|
15
|
+
export declare function isFragmentReady<TQuery, TFrag>(queryNode: DocumentTypeDecoration<TQuery, any>, fragmentNode: TypedDocumentNode<TFrag>, data: FragmentType<TypedDocumentNode<Incremental<TFrag>, any>> | null | undefined): data is FragmentType<typeof fragmentNode>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as types from './graphql';
|
|
2
|
+
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
3
|
+
/**
|
|
4
|
+
* Map of all GraphQL operations in the project.
|
|
5
|
+
*
|
|
6
|
+
* This map has several performance disadvantages:
|
|
7
|
+
* 1. It is not tree-shakeable, so it will include all operations in the project.
|
|
8
|
+
* 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
|
|
9
|
+
* 3. It does not support dead code elimination, so it will add unused operations.
|
|
10
|
+
*
|
|
11
|
+
* Therefore it is highly recommended to use the babel or swc plugin for production.
|
|
12
|
+
*/
|
|
13
|
+
declare const documents: {
|
|
14
|
+
"\n query MyQuery($time: String!) {\n time\n}": DocumentNode<types.MyQueryQuery, types.Exact<{
|
|
15
|
+
time: string;
|
|
16
|
+
}>>;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const query = gql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* The query argument is unknown!
|
|
28
|
+
* Please regenerate the types.
|
|
29
|
+
*/
|
|
30
|
+
export declare function gql(source: string): unknown;
|
|
31
|
+
/**
|
|
32
|
+
* The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
33
|
+
*/
|
|
34
|
+
export declare function gql(source: "\n query MyQuery($time: String!) {\n time\n}"): (typeof documents)["\n query MyQuery($time: String!) {\n time\n}"];
|
|
35
|
+
export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
2
|
+
export type Maybe<T> = T | null;
|
|
3
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
4
|
+
export type Exact<T extends {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}> = {
|
|
7
|
+
[K in keyof T]: T[K];
|
|
8
|
+
};
|
|
9
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
10
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
11
|
+
};
|
|
12
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
|
+
};
|
|
15
|
+
export type MakeEmpty<T extends {
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}, K extends keyof T> = {
|
|
18
|
+
[_ in K]?: never;
|
|
19
|
+
};
|
|
20
|
+
export type Incremental<T> = T | {
|
|
21
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
22
|
+
};
|
|
23
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
24
|
+
export type Scalars = {
|
|
25
|
+
ID: {
|
|
26
|
+
input: string;
|
|
27
|
+
output: string;
|
|
28
|
+
};
|
|
29
|
+
String: {
|
|
30
|
+
input: string;
|
|
31
|
+
output: string;
|
|
32
|
+
};
|
|
33
|
+
Boolean: {
|
|
34
|
+
input: boolean;
|
|
35
|
+
output: boolean;
|
|
36
|
+
};
|
|
37
|
+
Int: {
|
|
38
|
+
input: number;
|
|
39
|
+
output: number;
|
|
40
|
+
};
|
|
41
|
+
Float: {
|
|
42
|
+
input: number;
|
|
43
|
+
output: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export type InvestedErc20 = {
|
|
47
|
+
__typename?: 'InvestedErc20';
|
|
48
|
+
AmountIn: Scalars['Float']['output'];
|
|
49
|
+
TokenOut: Scalars['Float']['output'];
|
|
50
|
+
Wallet: Scalars['String']['output'];
|
|
51
|
+
};
|
|
52
|
+
export type LeaderBoard = {
|
|
53
|
+
__typename?: 'LeaderBoard';
|
|
54
|
+
Amount: Scalars['Float']['output'];
|
|
55
|
+
Owner: Scalars['String']['output'];
|
|
56
|
+
Rank: Scalars['Int']['output'];
|
|
57
|
+
VaultAmount: Scalars['Float']['output'];
|
|
58
|
+
};
|
|
59
|
+
export type Mutation = {
|
|
60
|
+
__typename?: 'Mutation';
|
|
61
|
+
generateTokenFromAddress: Scalars['String']['output'];
|
|
62
|
+
generateTokenFromSignature: Scalars['String']['output'];
|
|
63
|
+
sendToMonitor: Scalars['Int']['output'];
|
|
64
|
+
};
|
|
65
|
+
export type MutationGenerateTokenFromAddressArgs = {
|
|
66
|
+
address: Scalars['String']['input'];
|
|
67
|
+
};
|
|
68
|
+
export type MutationGenerateTokenFromSignatureArgs = {
|
|
69
|
+
eip4361message: Scalars['String']['input'];
|
|
70
|
+
signature: Scalars['String']['input'];
|
|
71
|
+
};
|
|
72
|
+
export type MutationSendToMonitorArgs = {
|
|
73
|
+
input: Scalars['String']['input'];
|
|
74
|
+
};
|
|
75
|
+
export type MySignUp = {
|
|
76
|
+
__typename?: 'MySignUp';
|
|
77
|
+
SignupId: Scalars['Int']['output'];
|
|
78
|
+
};
|
|
79
|
+
export type Query = {
|
|
80
|
+
__typename?: 'Query';
|
|
81
|
+
circulatingSupply: Scalars['Float']['output'];
|
|
82
|
+
investedErc20?: Maybe<Array<Maybe<InvestedErc20>>>;
|
|
83
|
+
leaderBoard?: Maybe<Array<Maybe<LeaderBoard>>>;
|
|
84
|
+
mySignUp?: Maybe<Array<Maybe<MySignUp>>>;
|
|
85
|
+
signUp?: Maybe<Array<Maybe<SignUp>>>;
|
|
86
|
+
signUpAllocation?: Maybe<Array<Maybe<SignUpAllocation>>>;
|
|
87
|
+
signUpList?: Maybe<Array<Maybe<SignUpList>>>;
|
|
88
|
+
signUpsTimes?: Maybe<Array<Maybe<SignUpsTimes>>>;
|
|
89
|
+
status?: Maybe<Array<Maybe<Status>>>;
|
|
90
|
+
statusSettings?: Maybe<StatusSettings>;
|
|
91
|
+
time: Scalars['Int']['output'];
|
|
92
|
+
tokenNetAmounts?: Maybe<Array<Maybe<TokenNetAmounts>>>;
|
|
93
|
+
tokenRefunds?: Maybe<Array<Maybe<TokenRefunds>>>;
|
|
94
|
+
totalPoolzLocked?: Maybe<TotalPoolzLocked>;
|
|
95
|
+
totalSupply?: Maybe<TotalSupply>;
|
|
96
|
+
unlocks?: Maybe<Array<Maybe<Unlocks>>>;
|
|
97
|
+
vaultOut?: Maybe<Array<Maybe<VaultOut>>>;
|
|
98
|
+
};
|
|
99
|
+
export type QueryInvestedErc20Args = {
|
|
100
|
+
id: Scalars['Int']['input'];
|
|
101
|
+
};
|
|
102
|
+
export type QueryLeaderBoardArgs = {
|
|
103
|
+
address?: InputMaybe<Scalars['String']['input']>;
|
|
104
|
+
timestamp?: InputMaybe<Scalars['Int']['input']>;
|
|
105
|
+
};
|
|
106
|
+
export type QueryMySignUpArgs = {
|
|
107
|
+
address: Scalars['String']['input'];
|
|
108
|
+
};
|
|
109
|
+
export type QuerySignUpArgs = {
|
|
110
|
+
id: Scalars['Int']['input'];
|
|
111
|
+
};
|
|
112
|
+
export type QuerySignUpAllocationArgs = {
|
|
113
|
+
bot: Scalars['Float']['input'];
|
|
114
|
+
minamount: Scalars['Int']['input'];
|
|
115
|
+
signupid: Scalars['Int']['input'];
|
|
116
|
+
take: Scalars['Int']['input'];
|
|
117
|
+
top: Scalars['Float']['input'];
|
|
118
|
+
totalallocation: Scalars['Int']['input'];
|
|
119
|
+
winnersratio: Scalars['Float']['input'];
|
|
120
|
+
};
|
|
121
|
+
export type QuerySignUpListArgs = {
|
|
122
|
+
id: Scalars['Int']['input'];
|
|
123
|
+
};
|
|
124
|
+
export type QueryTokenNetAmountsArgs = {
|
|
125
|
+
contractAddress: Scalars['String']['input'];
|
|
126
|
+
tokenAddress?: InputMaybe<Scalars['String']['input']>;
|
|
127
|
+
};
|
|
128
|
+
export type QueryTokenRefundsArgs = {
|
|
129
|
+
chainId: Scalars['Int']['input'];
|
|
130
|
+
decimals?: InputMaybe<Scalars['Int']['input']>;
|
|
131
|
+
fromBlock?: InputMaybe<Scalars['Int']['input']>;
|
|
132
|
+
newOwner?: InputMaybe<Scalars['String']['input']>;
|
|
133
|
+
toBlock?: InputMaybe<Scalars['Int']['input']>;
|
|
134
|
+
tokenAddress: Scalars['String']['input'];
|
|
135
|
+
};
|
|
136
|
+
export type QueryUnlocksArgs = {
|
|
137
|
+
address: Scalars['String']['input'];
|
|
138
|
+
};
|
|
139
|
+
export type QueryVaultOutArgs = {
|
|
140
|
+
fromBlock?: InputMaybe<Scalars['Int']['input']>;
|
|
141
|
+
toBlock?: InputMaybe<Scalars['Int']['input']>;
|
|
142
|
+
};
|
|
143
|
+
export type SignUp = {
|
|
144
|
+
__typename?: 'SignUp';
|
|
145
|
+
Address: Scalars['String']['output'];
|
|
146
|
+
Amount: Scalars['Float']['output'];
|
|
147
|
+
};
|
|
148
|
+
export type SignUpAllocation = {
|
|
149
|
+
__typename?: 'SignUpAllocation';
|
|
150
|
+
Address: Scalars['String']['output'];
|
|
151
|
+
Allocation: Scalars['Float']['output'];
|
|
152
|
+
Poolx: Scalars['Float']['output'];
|
|
153
|
+
Rank: Scalars['Int']['output'];
|
|
154
|
+
};
|
|
155
|
+
export type SignUpList = {
|
|
156
|
+
__typename?: 'SignUpList';
|
|
157
|
+
Address: Scalars['String']['output'];
|
|
158
|
+
};
|
|
159
|
+
export type SignUpsTimes = {
|
|
160
|
+
__typename?: 'SignUpsTimes';
|
|
161
|
+
Address: Scalars['String']['output'];
|
|
162
|
+
EndBlock?: Maybe<Scalars['Int']['output']>;
|
|
163
|
+
EndTime?: Maybe<Scalars['String']['output']>;
|
|
164
|
+
PoolId: Scalars['Int']['output'];
|
|
165
|
+
StartBlock: Scalars['Int']['output'];
|
|
166
|
+
StartTime: Scalars['String']['output'];
|
|
167
|
+
};
|
|
168
|
+
export type Status = {
|
|
169
|
+
__typename?: 'Status';
|
|
170
|
+
ChainId: Scalars['Int']['output'];
|
|
171
|
+
CovalentLastBlock: Scalars['Int']['output'];
|
|
172
|
+
Events?: Maybe<Array<Maybe<StatusEvents>>>;
|
|
173
|
+
};
|
|
174
|
+
export type StatusEvents = {
|
|
175
|
+
__typename?: 'StatusEvents';
|
|
176
|
+
Active: Scalars['Boolean']['output'];
|
|
177
|
+
EndingBlock: Scalars['Int']['output'];
|
|
178
|
+
ResponseType: Scalars['String']['output'];
|
|
179
|
+
StartingBlock: Scalars['Int']['output'];
|
|
180
|
+
};
|
|
181
|
+
export type StatusSettings = {
|
|
182
|
+
__typename?: 'StatusSettings';
|
|
183
|
+
Chains: Array<Maybe<StatusSettingsChains>>;
|
|
184
|
+
SecondsToError: Scalars['Int']['output'];
|
|
185
|
+
SecondsToWarning: Scalars['Int']['output'];
|
|
186
|
+
};
|
|
187
|
+
export type StatusSettingsChains = {
|
|
188
|
+
__typename?: 'StatusSettingsChains';
|
|
189
|
+
BlockPerSecond: Scalars['Float']['output'];
|
|
190
|
+
ChainId: Scalars['Int']['output'];
|
|
191
|
+
};
|
|
192
|
+
export type TokenNetAmounts = {
|
|
193
|
+
__typename?: 'TokenNetAmounts';
|
|
194
|
+
Address: Scalars['String']['output'];
|
|
195
|
+
NetAmount: Scalars['Float']['output'];
|
|
196
|
+
};
|
|
197
|
+
export type TokenRefunds = {
|
|
198
|
+
__typename?: 'TokenRefunds';
|
|
199
|
+
BlockHeight: Scalars['Int']['output'];
|
|
200
|
+
BlockSignedAt: Scalars['String']['output'];
|
|
201
|
+
ChainId: Scalars['Int']['output'];
|
|
202
|
+
NewAmount: Scalars['Float']['output'];
|
|
203
|
+
NewOwner: Scalars['String']['output'];
|
|
204
|
+
NewPoolId: Scalars['Int']['output'];
|
|
205
|
+
OldOwner: Scalars['String']['output'];
|
|
206
|
+
OldPoolId: Scalars['Int']['output'];
|
|
207
|
+
OriginalLeftAmount: Scalars['Float']['output'];
|
|
208
|
+
TxHash: Scalars['String']['output'];
|
|
209
|
+
};
|
|
210
|
+
export type TotalPoolzLocked = {
|
|
211
|
+
__typename?: 'TotalPoolzLocked';
|
|
212
|
+
Locked: Scalars['Float']['output'];
|
|
213
|
+
TotalSupply: Scalars['Float']['output'];
|
|
214
|
+
};
|
|
215
|
+
export type TotalSupply = {
|
|
216
|
+
__typename?: 'TotalSupply';
|
|
217
|
+
TotalSupply: Scalars['Float']['output'];
|
|
218
|
+
};
|
|
219
|
+
export type Unlocks = {
|
|
220
|
+
__typename?: 'Unlocks';
|
|
221
|
+
Timespan: Scalars['Int']['output'];
|
|
222
|
+
Total: Scalars['Float']['output'];
|
|
223
|
+
};
|
|
224
|
+
export type VaultOut = {
|
|
225
|
+
__typename?: 'VaultOut';
|
|
226
|
+
Amount: Scalars['Float']['output'];
|
|
227
|
+
LockUntil: Scalars['String']['output'];
|
|
228
|
+
Owner: Scalars['String']['output'];
|
|
229
|
+
};
|
|
230
|
+
export type MyQueryQueryVariables = Exact<{
|
|
231
|
+
time: Scalars['String']['input'];
|
|
232
|
+
}>;
|
|
233
|
+
export type MyQueryQuery = {
|
|
234
|
+
__typename?: 'Query';
|
|
235
|
+
time: number;
|
|
236
|
+
};
|
|
237
|
+
export declare const MyQueryDocument: DocumentNode<MyQueryQuery, Exact<{
|
|
238
|
+
time: Scalars['String']['input'];
|
|
239
|
+
}>>;
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@poolzfinance/api4",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Bridge between front and back",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"source": "src/index.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"require": "./dist/index.cjs",
|
|
10
|
+
"default": "./dist/index.modern.js"
|
|
11
|
+
},
|
|
12
|
+
"main": "./dist/index.cjs",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"module": "./dist/index.module.js",
|
|
15
|
+
"unpkg": "./dist/index.umd.js",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git+https://github.com/The-Poolz/InterfaceAPI4.git"
|
|
22
|
+
},
|
|
23
|
+
"author": "Poolz team",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"prettier": {
|
|
26
|
+
"printWidth": 140,
|
|
27
|
+
"semi": false,
|
|
28
|
+
"singleQuote": false,
|
|
29
|
+
"tabWidth": 2,
|
|
30
|
+
"useTabs": false,
|
|
31
|
+
"trailingComma": "none",
|
|
32
|
+
"bracketSpacing": true,
|
|
33
|
+
"bracketSameLine": true
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@graphql-codegen/cli": "^4.0.1",
|
|
37
|
+
"@graphql-codegen/client-preset": "^4.0.1",
|
|
38
|
+
"@graphql-typed-document-node/core": "^3.2.0",
|
|
39
|
+
"@types/jest": "^29.5.2",
|
|
40
|
+
"@types/node": "^20.3.1",
|
|
41
|
+
"@types/react": "^18.2.14",
|
|
42
|
+
"jest": "^29.5.0",
|
|
43
|
+
"microbundle": "^0.15.1",
|
|
44
|
+
"ts-jest": "^29.1.0",
|
|
45
|
+
"ts-node": "^10.9.1",
|
|
46
|
+
"typescript": "^5.1.3"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@apollo/client": "^3.7.16",
|
|
50
|
+
"graphql": "^16.7.1",
|
|
51
|
+
"react": "^18.2.0"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"prebuild": "pnpm clean",
|
|
55
|
+
"build": "pnpm prebuild && microbundle --jsx React.createElement",
|
|
56
|
+
"clean": "rm -rf dist",
|
|
57
|
+
"compile": "rm -rf src/types/graphql && graphql-codegen",
|
|
58
|
+
"test": "jest"
|
|
59
|
+
}
|
|
60
|
+
}
|