@poolzfinance/api4 1.11.21 → 1.11.24

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.
@@ -112,7 +112,7 @@ declare const documents: {
112
112
  "\n query PoolxPrice {\n poolxPrice {\n Price\n Timestamp\n }\n }": DocumentNode<types.PoolxPriceQuery, types.Exact<{
113
113
  [key: string]: never;
114
114
  }>>;
115
- "\n query GetPoolxTokenomics {\n poolxTokenomics {\n CirculatingSupply\n Locked\n Data {\n TotalSupply\n BuyBack\n LockedDealV2\n DelayVault\n DelayVaultV2\n Reserved\n }\n Trade {\n Sum\n Huobi\n GateIO\n PancakeSwapV2\n PancakeSwapV3\n Mexc\n }\n }\n }\n": DocumentNode<types.GetPoolxTokenomicsQuery, types.Exact<{
115
+ "\n query GetPoolxTokenomics {\n poolxTokenomics {\n CirculatingSupply\n Locked\n Data {\n TotalSupply\n BuyBack\n LockedDealV2\n DelayVault\n DelayVaultV2\n Reserved\n }\n Trade {\n Sum\n Huobi\n GateIO\n PancakeSwapV3_01\n PancakeSwapV3\n Mexc\n }\n }\n }\n": DocumentNode<types.GetPoolxTokenomicsQuery, types.Exact<{
116
116
  [key: string]: never;
117
117
  }>>;
118
118
  "\n query Signup($signUpId: Int!) {\n signUp(id: $signUpId) {\n Address\n Amount\n }\n}": DocumentNode<types.SignupQuery, types.Exact<{
@@ -124,6 +124,9 @@ declare const documents: {
124
124
  "\nquery Status {\n status {\n ChainId\n ChainName\n RpcUrl\n CovalentLastBlock\n SecondsToWarning\n SecondsToError\n BlockPerSecond\n Events {\n Active\n StartingBlock\n EndingBlock\n ResponseType\n }\n }\n }": DocumentNode<types.StatusQuery, types.Exact<{
125
125
  [key: string]: never;
126
126
  }>>;
127
+ "\n query TokenInfo($hashKey: String!) {\n tokenInfo(hashKey: $hashKey) {\n Address\n ChainId\n Decimals\n Name\n Symbol\n TotalSupply\n }\n }\n": DocumentNode<types.TokenInfoQuery, types.Exact<{
128
+ hashKey: string;
129
+ }>>;
127
130
  "\n query Data($chainId: Int, $tokenAddress: String, $fetchBalance: Boolean) {\n vaults(chainId: $chainId, tokenAddress: $tokenAddress, fetchBalance: $fetchBalance) {\n Data {\n VaultId\n VaultAddress\n VaultCreationTx\n TokenAddress\n TokenName\n TokenSymbol\n TokenDecimals\n Balance {\n BalanceOfToken\n FetchTime\n }\n }\n ChainId\n }\n }\n": DocumentNode<types.DataQuery, types.Exact<{
128
131
  chainId?: types.InputMaybe<number> | undefined;
129
132
  tokenAddress?: types.InputMaybe<string> | undefined;
@@ -262,7 +265,7 @@ export declare function gql(source: "\n query PoolxPrice {\n poolxPrice {\n
262
265
  /**
263
266
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
264
267
  */
265
- export declare function gql(source: "\n query GetPoolxTokenomics {\n poolxTokenomics {\n CirculatingSupply\n Locked\n Data {\n TotalSupply\n BuyBack\n LockedDealV2\n DelayVault\n DelayVaultV2\n Reserved\n }\n Trade {\n Sum\n Huobi\n GateIO\n PancakeSwapV2\n PancakeSwapV3\n Mexc\n }\n }\n }\n"): (typeof documents)["\n query GetPoolxTokenomics {\n poolxTokenomics {\n CirculatingSupply\n Locked\n Data {\n TotalSupply\n BuyBack\n LockedDealV2\n DelayVault\n DelayVaultV2\n Reserved\n }\n Trade {\n Sum\n Huobi\n GateIO\n PancakeSwapV2\n PancakeSwapV3\n Mexc\n }\n }\n }\n"];
268
+ export declare function gql(source: "\n query GetPoolxTokenomics {\n poolxTokenomics {\n CirculatingSupply\n Locked\n Data {\n TotalSupply\n BuyBack\n LockedDealV2\n DelayVault\n DelayVaultV2\n Reserved\n }\n Trade {\n Sum\n Huobi\n GateIO\n PancakeSwapV3_01\n PancakeSwapV3\n Mexc\n }\n }\n }\n"): (typeof documents)["\n query GetPoolxTokenomics {\n poolxTokenomics {\n CirculatingSupply\n Locked\n Data {\n TotalSupply\n BuyBack\n LockedDealV2\n DelayVault\n DelayVaultV2\n Reserved\n }\n Trade {\n Sum\n Huobi\n GateIO\n PancakeSwapV3_01\n PancakeSwapV3\n Mexc\n }\n }\n }\n"];
266
269
  /**
267
270
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
268
271
  */
@@ -275,6 +278,10 @@ export declare function gql(source: "\n query MySignup {\n mySignup {\n
275
278
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
276
279
  */
277
280
  export declare function gql(source: "\nquery Status {\n status {\n ChainId\n ChainName\n RpcUrl\n CovalentLastBlock\n SecondsToWarning\n SecondsToError\n BlockPerSecond\n Events {\n Active\n StartingBlock\n EndingBlock\n ResponseType\n }\n }\n }"): (typeof documents)["\nquery Status {\n status {\n ChainId\n ChainName\n RpcUrl\n CovalentLastBlock\n SecondsToWarning\n SecondsToError\n BlockPerSecond\n Events {\n Active\n StartingBlock\n EndingBlock\n ResponseType\n }\n }\n }"];
281
+ /**
282
+ * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
283
+ */
284
+ export declare function gql(source: "\n query TokenInfo($hashKey: String!) {\n tokenInfo(hashKey: $hashKey) {\n Address\n ChainId\n Decimals\n Name\n Symbol\n TotalSupply\n }\n }\n"): (typeof documents)["\n query TokenInfo($hashKey: String!) {\n tokenInfo(hashKey: $hashKey) {\n Address\n ChainId\n Decimals\n Name\n Symbol\n TotalSupply\n }\n }\n"];
278
285
  /**
279
286
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
280
287
  */
@@ -454,6 +454,7 @@ export type Query = {
454
454
  splitDataEncoder: Scalars['String']['output'];
455
455
  status: Array<Status>;
456
456
  time: Scalars['Int']['output'];
457
+ tokenInfo?: Maybe<TokenInfo>;
457
458
  tokenRefunds: Array<TokenRefunds>;
458
459
  uniqueUsers: UniqueUsers;
459
460
  unlocks: Array<Unlocks>;
@@ -531,6 +532,9 @@ export type QuerySplitDataEncoderArgs = {
531
532
  address: Scalars['String']['input'];
532
533
  ratio: Scalars['Float']['input'];
533
534
  };
535
+ export type QueryTokenInfoArgs = {
536
+ hashKey: Scalars['String']['input'];
537
+ };
534
538
  export type QueryTokenRefundsArgs = {
535
539
  chainId: Scalars['Int']['input'];
536
540
  fromBlock?: InputMaybe<Scalars['Int']['input']>;
@@ -604,6 +608,15 @@ export type StatusEvents = {
604
608
  ResponseType: Scalars['String']['output'];
605
609
  StartingBlock: Scalars['Int']['output'];
606
610
  };
611
+ export type TokenInfo = {
612
+ __typename?: 'TokenInfo';
613
+ Address: Scalars['String']['output'];
614
+ ChainId: Scalars['Long']['output'];
615
+ Decimals: Scalars['Int']['output'];
616
+ Name: Scalars['String']['output'];
617
+ Symbol: Scalars['String']['output'];
618
+ TotalSupply: Scalars['Float']['output'];
619
+ };
607
620
  export type TokenRefunds = {
608
621
  __typename?: 'TokenRefunds';
609
622
  BlockHeight: Scalars['Int']['output'];
@@ -1071,7 +1084,7 @@ export type GetPoolxTokenomicsQuery = {
1071
1084
  Sum: number;
1072
1085
  Huobi: number;
1073
1086
  GateIO: number;
1074
- PancakeSwapV2: number;
1087
+ PancakeSwapV3_01?: number | null;
1075
1088
  PancakeSwapV3: number;
1076
1089
  Mexc: number;
1077
1090
  };
@@ -1121,6 +1134,21 @@ export type StatusQuery = {
1121
1134
  }>;
1122
1135
  }>;
1123
1136
  };
1137
+ export type TokenInfoQueryVariables = Exact<{
1138
+ hashKey: Scalars['String']['input'];
1139
+ }>;
1140
+ export type TokenInfoQuery = {
1141
+ __typename?: 'Query';
1142
+ tokenInfo?: {
1143
+ __typename?: 'TokenInfo';
1144
+ Address: string;
1145
+ ChainId: any;
1146
+ Decimals: number;
1147
+ Name: string;
1148
+ Symbol: string;
1149
+ TotalSupply: number;
1150
+ } | null;
1151
+ };
1124
1152
  export type DataQueryVariables = Exact<{
1125
1153
  chainId?: InputMaybe<Scalars['Int']['input']>;
1126
1154
  tokenAddress?: InputMaybe<Scalars['String']['input']>;
@@ -1261,6 +1289,9 @@ export declare const MySignupDocument: DocumentNode<MySignupQuery, Exact<{
1261
1289
  export declare const StatusDocument: DocumentNode<StatusQuery, Exact<{
1262
1290
  [key: string]: never;
1263
1291
  }>>;
1292
+ export declare const TokenInfoDocument: DocumentNode<TokenInfoQuery, Exact<{
1293
+ hashKey: Scalars['String']['input'];
1294
+ }>>;
1264
1295
  export declare const DataDocument: DocumentNode<DataQuery, Exact<{
1265
1296
  chainId?: InputMaybe<number> | undefined;
1266
1297
  tokenAddress?: InputMaybe<string> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolzfinance/api4",
3
- "version": "1.11.21",
3
+ "version": "1.11.24",
4
4
  "description": "Bridge between front and back",
5
5
  "type": "module",
6
6
  "source": "src/index.ts",
@@ -36,6 +36,7 @@
36
36
  "@graphql-codegen/cli": "^4.0.1",
37
37
  "@graphql-codegen/client-preset": "^4.0.1",
38
38
  "@graphql-typed-document-node/core": "^3.2.0",
39
+ "@types/crypto-js": "^4.2.2",
39
40
  "@types/jest": "^29.5.2",
40
41
  "@types/node": "^20.3.1",
41
42
  "@types/react": "^18.2.14",
@@ -48,6 +49,7 @@
48
49
  },
49
50
  "dependencies": {
50
51
  "@apollo/client": "^3.7.16",
52
+ "crypto-js": "^4.2.0",
51
53
  "graphql": "^16.7.1",
52
54
  "react": "^18.2.0"
53
55
  },