@ensofinance/checkout-widget 0.0.16 → 0.0.17

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.
Files changed (28) hide show
  1. package/dist/checkout-widget.es.js +4158 -4166
  2. package/dist/checkout-widget.es.js.map +1 -1
  3. package/dist/checkout-widget.umd.js +32 -32
  4. package/dist/checkout-widget.umd.js.map +1 -1
  5. package/orval.config.ts +14 -9
  6. package/package.json +1 -1
  7. package/src/components/steps/ExchangeFlow.tsx +0 -2
  8. package/src/enso-api/api.ts +19 -42
  9. package/src/enso-api/index.ts +491 -722
  10. package/src/enso-api/model/actionAction.ts +2 -0
  11. package/src/enso-api/model/actionToBundleAction.ts +2 -0
  12. package/src/enso-api/model/bridgeLatencyEstimate.ts +33 -0
  13. package/src/enso-api/model/bundleControllerBundleShortcutTransactionRoutingStrategy.ts +1 -1
  14. package/src/enso-api/model/bundleShortcutTransaction.ts +12 -3
  15. package/src/enso-api/model/bundleShortcutTransactionMinAmountsOut.ts +15 -0
  16. package/src/enso-api/model/index.ts +55 -53
  17. package/src/enso-api/model/nonTokenizedControllerTokensParams.ts +5 -1
  18. package/src/enso-api/model/nontokenizedControllerRouteNontokenizedShorcutTransactionParams.ts +1 -1
  19. package/src/enso-api/model/nontokenizedRouteShortcutTransaction.ts +3 -0
  20. package/src/enso-api/model/routeShortcutTransaction.ts +6 -3
  21. package/src/enso-api/model/routeShortcutVariableInputs.ts +1 -1
  22. package/src/enso-api/model/routeShortcutVariableInputsRoutingStrategy.ts +1 -1
  23. package/src/enso-api/model/routerControllerRouteShortcutTransactionRoutingStrategy.ts +1 -1
  24. package/src/enso-api/model/standardActionAction.ts +2 -0
  25. package/src/enso-api/model/userOperation.ts +6 -6
  26. package/src/enso-api/model/walletBalance.ts +20 -8
  27. package/src/enso-api/model/walletControllerCreateApproveTransactionRoutingStrategy.ts +1 -1
  28. package/src/enso-api/model/walletControllerWalletBalancesParams.ts +3 -3
@@ -752,237 +752,6 @@ export function usePricesControllerGetPrices<
752
752
  return query;
753
753
  }
754
754
 
755
- /**
756
- * @summary Returns aggregators supported by the API (can be controled via disableAggregators param)
757
- */
758
- export const useAggregatorsControllerAggregatorsHook = () => {
759
- const aggregatorsControllerAggregators = useCustomClient<string[]>();
760
-
761
- return useCallback(
762
- (signal?: AbortSignal) => {
763
- return aggregatorsControllerAggregators({
764
- url: `https://api.enso.finance/api/v1/aggregators`,
765
- method: "GET",
766
- signal,
767
- });
768
- },
769
- [aggregatorsControllerAggregators],
770
- );
771
- };
772
-
773
- export const getAggregatorsControllerAggregatorsQueryKey = () => {
774
- return [`https://api.enso.finance/api/v1/aggregators`] as const;
775
- };
776
-
777
- export const useAggregatorsControllerAggregatorsQueryOptions = <
778
- TData = Awaited<
779
- ReturnType<ReturnType<typeof useAggregatorsControllerAggregatorsHook>>
780
- >,
781
- TError = ErrorType<unknown>,
782
- >(options?: {
783
- query?: Partial<
784
- UseQueryOptions<
785
- Awaited<
786
- ReturnType<
787
- ReturnType<typeof useAggregatorsControllerAggregatorsHook>
788
- >
789
- >,
790
- TError,
791
- TData
792
- >
793
- >;
794
- }) => {
795
- const { query: queryOptions } = options ?? {};
796
-
797
- const queryKey =
798
- queryOptions?.queryKey ?? getAggregatorsControllerAggregatorsQueryKey();
799
-
800
- const aggregatorsControllerAggregators =
801
- useAggregatorsControllerAggregatorsHook();
802
-
803
- const queryFn: QueryFunction<
804
- Awaited<
805
- ReturnType<
806
- ReturnType<typeof useAggregatorsControllerAggregatorsHook>
807
- >
808
- >
809
- > = ({ signal }) => aggregatorsControllerAggregators(signal);
810
-
811
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
812
- Awaited<
813
- ReturnType<
814
- ReturnType<typeof useAggregatorsControllerAggregatorsHook>
815
- >
816
- >,
817
- TError,
818
- TData
819
- > & { queryKey: DataTag<QueryKey, TData, TError> };
820
- };
821
-
822
- export type AggregatorsControllerAggregatorsQueryResult = NonNullable<
823
- Awaited<
824
- ReturnType<ReturnType<typeof useAggregatorsControllerAggregatorsHook>>
825
- >
826
- >;
827
- export type AggregatorsControllerAggregatorsQueryError = ErrorType<unknown>;
828
-
829
- export function useAggregatorsControllerAggregators<
830
- TData = Awaited<
831
- ReturnType<ReturnType<typeof useAggregatorsControllerAggregatorsHook>>
832
- >,
833
- TError = ErrorType<unknown>,
834
- >(
835
- options: {
836
- query: Partial<
837
- UseQueryOptions<
838
- Awaited<
839
- ReturnType<
840
- ReturnType<
841
- typeof useAggregatorsControllerAggregatorsHook
842
- >
843
- >
844
- >,
845
- TError,
846
- TData
847
- >
848
- > &
849
- Pick<
850
- DefinedInitialDataOptions<
851
- Awaited<
852
- ReturnType<
853
- ReturnType<
854
- typeof useAggregatorsControllerAggregatorsHook
855
- >
856
- >
857
- >,
858
- TError,
859
- Awaited<
860
- ReturnType<
861
- ReturnType<
862
- typeof useAggregatorsControllerAggregatorsHook
863
- >
864
- >
865
- >
866
- >,
867
- "initialData"
868
- >;
869
- },
870
- queryClient?: QueryClient,
871
- ): DefinedUseQueryResult<TData, TError> & {
872
- queryKey: DataTag<QueryKey, TData, TError>;
873
- };
874
- export function useAggregatorsControllerAggregators<
875
- TData = Awaited<
876
- ReturnType<ReturnType<typeof useAggregatorsControllerAggregatorsHook>>
877
- >,
878
- TError = ErrorType<unknown>,
879
- >(
880
- options?: {
881
- query?: Partial<
882
- UseQueryOptions<
883
- Awaited<
884
- ReturnType<
885
- ReturnType<
886
- typeof useAggregatorsControllerAggregatorsHook
887
- >
888
- >
889
- >,
890
- TError,
891
- TData
892
- >
893
- > &
894
- Pick<
895
- UndefinedInitialDataOptions<
896
- Awaited<
897
- ReturnType<
898
- ReturnType<
899
- typeof useAggregatorsControllerAggregatorsHook
900
- >
901
- >
902
- >,
903
- TError,
904
- Awaited<
905
- ReturnType<
906
- ReturnType<
907
- typeof useAggregatorsControllerAggregatorsHook
908
- >
909
- >
910
- >
911
- >,
912
- "initialData"
913
- >;
914
- },
915
- queryClient?: QueryClient,
916
- ): UseQueryResult<TData, TError> & {
917
- queryKey: DataTag<QueryKey, TData, TError>;
918
- };
919
- export function useAggregatorsControllerAggregators<
920
- TData = Awaited<
921
- ReturnType<ReturnType<typeof useAggregatorsControllerAggregatorsHook>>
922
- >,
923
- TError = ErrorType<unknown>,
924
- >(
925
- options?: {
926
- query?: Partial<
927
- UseQueryOptions<
928
- Awaited<
929
- ReturnType<
930
- ReturnType<
931
- typeof useAggregatorsControllerAggregatorsHook
932
- >
933
- >
934
- >,
935
- TError,
936
- TData
937
- >
938
- >;
939
- },
940
- queryClient?: QueryClient,
941
- ): UseQueryResult<TData, TError> & {
942
- queryKey: DataTag<QueryKey, TData, TError>;
943
- };
944
- /**
945
- * @summary Returns aggregators supported by the API (can be controled via disableAggregators param)
946
- */
947
-
948
- export function useAggregatorsControllerAggregators<
949
- TData = Awaited<
950
- ReturnType<ReturnType<typeof useAggregatorsControllerAggregatorsHook>>
951
- >,
952
- TError = ErrorType<unknown>,
953
- >(
954
- options?: {
955
- query?: Partial<
956
- UseQueryOptions<
957
- Awaited<
958
- ReturnType<
959
- ReturnType<
960
- typeof useAggregatorsControllerAggregatorsHook
961
- >
962
- >
963
- >,
964
- TError,
965
- TData
966
- >
967
- >;
968
- },
969
- queryClient?: QueryClient,
970
- ): UseQueryResult<TData, TError> & {
971
- queryKey: DataTag<QueryKey, TData, TError>;
972
- } {
973
- const queryOptions =
974
- useAggregatorsControllerAggregatorsQueryOptions(options);
975
-
976
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
977
- TData,
978
- TError
979
- > & { queryKey: DataTag<QueryKey, TData, TError> };
980
-
981
- query.queryKey = queryOptions.queryKey;
982
-
983
- return query;
984
- }
985
-
986
755
  /**
987
756
  * @summary Returns accountId connected to your api key used in the on-chain event.
988
757
  */
@@ -1043,233 +812,24 @@ export const useAccountControllerAccountIdQueryOptions = <
1043
812
  > & { queryKey: DataTag<QueryKey, TData, TError> };
1044
813
  };
1045
814
 
1046
- export type AccountControllerAccountIdQueryResult = NonNullable<
1047
- Awaited<ReturnType<ReturnType<typeof useAccountControllerAccountIdHook>>>
1048
- >;
1049
- export type AccountControllerAccountIdQueryError = ErrorType<unknown>;
1050
-
1051
- export function useAccountControllerAccountId<
1052
- TData = Awaited<
1053
- ReturnType<ReturnType<typeof useAccountControllerAccountIdHook>>
1054
- >,
1055
- TError = ErrorType<unknown>,
1056
- >(
1057
- options: {
1058
- query: Partial<
1059
- UseQueryOptions<
1060
- Awaited<
1061
- ReturnType<
1062
- ReturnType<typeof useAccountControllerAccountIdHook>
1063
- >
1064
- >,
1065
- TError,
1066
- TData
1067
- >
1068
- > &
1069
- Pick<
1070
- DefinedInitialDataOptions<
1071
- Awaited<
1072
- ReturnType<
1073
- ReturnType<typeof useAccountControllerAccountIdHook>
1074
- >
1075
- >,
1076
- TError,
1077
- Awaited<
1078
- ReturnType<
1079
- ReturnType<typeof useAccountControllerAccountIdHook>
1080
- >
1081
- >
1082
- >,
1083
- "initialData"
1084
- >;
1085
- },
1086
- queryClient?: QueryClient,
1087
- ): DefinedUseQueryResult<TData, TError> & {
1088
- queryKey: DataTag<QueryKey, TData, TError>;
1089
- };
1090
- export function useAccountControllerAccountId<
1091
- TData = Awaited<
1092
- ReturnType<ReturnType<typeof useAccountControllerAccountIdHook>>
1093
- >,
1094
- TError = ErrorType<unknown>,
1095
- >(
1096
- options?: {
1097
- query?: Partial<
1098
- UseQueryOptions<
1099
- Awaited<
1100
- ReturnType<
1101
- ReturnType<typeof useAccountControllerAccountIdHook>
1102
- >
1103
- >,
1104
- TError,
1105
- TData
1106
- >
1107
- > &
1108
- Pick<
1109
- UndefinedInitialDataOptions<
1110
- Awaited<
1111
- ReturnType<
1112
- ReturnType<typeof useAccountControllerAccountIdHook>
1113
- >
1114
- >,
1115
- TError,
1116
- Awaited<
1117
- ReturnType<
1118
- ReturnType<typeof useAccountControllerAccountIdHook>
1119
- >
1120
- >
1121
- >,
1122
- "initialData"
1123
- >;
1124
- },
1125
- queryClient?: QueryClient,
1126
- ): UseQueryResult<TData, TError> & {
1127
- queryKey: DataTag<QueryKey, TData, TError>;
1128
- };
1129
- export function useAccountControllerAccountId<
1130
- TData = Awaited<
1131
- ReturnType<ReturnType<typeof useAccountControllerAccountIdHook>>
1132
- >,
1133
- TError = ErrorType<unknown>,
1134
- >(
1135
- options?: {
1136
- query?: Partial<
1137
- UseQueryOptions<
1138
- Awaited<
1139
- ReturnType<
1140
- ReturnType<typeof useAccountControllerAccountIdHook>
1141
- >
1142
- >,
1143
- TError,
1144
- TData
1145
- >
1146
- >;
1147
- },
1148
- queryClient?: QueryClient,
1149
- ): UseQueryResult<TData, TError> & {
1150
- queryKey: DataTag<QueryKey, TData, TError>;
1151
- };
1152
- /**
1153
- * @summary Returns accountId connected to your api key used in the on-chain event.
1154
- */
1155
-
1156
- export function useAccountControllerAccountId<
1157
- TData = Awaited<
1158
- ReturnType<ReturnType<typeof useAccountControllerAccountIdHook>>
1159
- >,
1160
- TError = ErrorType<unknown>,
1161
- >(
1162
- options?: {
1163
- query?: Partial<
1164
- UseQueryOptions<
1165
- Awaited<
1166
- ReturnType<
1167
- ReturnType<typeof useAccountControllerAccountIdHook>
1168
- >
1169
- >,
1170
- TError,
1171
- TData
1172
- >
1173
- >;
1174
- },
1175
- queryClient?: QueryClient,
1176
- ): UseQueryResult<TData, TError> & {
1177
- queryKey: DataTag<QueryKey, TData, TError>;
1178
- } {
1179
- const queryOptions = useAccountControllerAccountIdQueryOptions(options);
1180
-
1181
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
1182
- TData,
1183
- TError
1184
- > & { queryKey: DataTag<QueryKey, TData, TError> };
1185
-
1186
- query.queryKey = queryOptions.queryKey;
1187
-
1188
- return query;
1189
- }
1190
-
1191
- /**
1192
- * @summary Returns tokens and their details
1193
- */
1194
- export const useTokensControllerTokensHook = () => {
1195
- const tokensControllerTokens = useCustomClient<TokensControllerTokens200>();
1196
-
1197
- return useCallback(
1198
- (params?: TokensControllerTokensParams, signal?: AbortSignal) => {
1199
- return tokensControllerTokens({
1200
- url: `https://api.enso.finance/api/v1/tokens`,
1201
- method: "GET",
1202
- params,
1203
- signal,
1204
- });
1205
- },
1206
- [tokensControllerTokens],
1207
- );
1208
- };
1209
-
1210
- export const getTokensControllerTokensQueryKey = (
1211
- params?: TokensControllerTokensParams,
1212
- ) => {
1213
- return [
1214
- `https://api.enso.finance/api/v1/tokens`,
1215
- ...(params ? [params] : []),
1216
- ] as const;
1217
- };
1218
-
1219
- export const useTokensControllerTokensQueryOptions = <
1220
- TData = Awaited<
1221
- ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
1222
- >,
1223
- TError = ErrorType<unknown>,
1224
- >(
1225
- params?: TokensControllerTokensParams,
1226
- options?: {
1227
- query?: Partial<
1228
- UseQueryOptions<
1229
- Awaited<
1230
- ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
1231
- >,
1232
- TError,
1233
- TData
1234
- >
1235
- >;
1236
- },
1237
- ) => {
1238
- const { query: queryOptions } = options ?? {};
1239
-
1240
- const queryKey =
1241
- queryOptions?.queryKey ?? getTokensControllerTokensQueryKey(params);
1242
-
1243
- const tokensControllerTokens = useTokensControllerTokensHook();
1244
-
1245
- const queryFn: QueryFunction<
1246
- Awaited<ReturnType<ReturnType<typeof useTokensControllerTokensHook>>>
1247
- > = ({ signal }) => tokensControllerTokens(params, signal);
1248
-
1249
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
1250
- Awaited<ReturnType<ReturnType<typeof useTokensControllerTokensHook>>>,
1251
- TError,
1252
- TData
1253
- > & { queryKey: DataTag<QueryKey, TData, TError> };
1254
- };
1255
-
1256
- export type TokensControllerTokensQueryResult = NonNullable<
1257
- Awaited<ReturnType<ReturnType<typeof useTokensControllerTokensHook>>>
815
+ export type AccountControllerAccountIdQueryResult = NonNullable<
816
+ Awaited<ReturnType<ReturnType<typeof useAccountControllerAccountIdHook>>>
1258
817
  >;
1259
- export type TokensControllerTokensQueryError = ErrorType<unknown>;
818
+ export type AccountControllerAccountIdQueryError = ErrorType<unknown>;
1260
819
 
1261
- export function useTokensControllerTokens<
820
+ export function useAccountControllerAccountId<
1262
821
  TData = Awaited<
1263
- ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
822
+ ReturnType<ReturnType<typeof useAccountControllerAccountIdHook>>
1264
823
  >,
1265
824
  TError = ErrorType<unknown>,
1266
825
  >(
1267
- params: undefined | TokensControllerTokensParams,
1268
826
  options: {
1269
827
  query: Partial<
1270
828
  UseQueryOptions<
1271
829
  Awaited<
1272
- ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
830
+ ReturnType<
831
+ ReturnType<typeof useAccountControllerAccountIdHook>
832
+ >
1273
833
  >,
1274
834
  TError,
1275
835
  TData
@@ -1279,13 +839,13 @@ export function useTokensControllerTokens<
1279
839
  DefinedInitialDataOptions<
1280
840
  Awaited<
1281
841
  ReturnType<
1282
- ReturnType<typeof useTokensControllerTokensHook>
842
+ ReturnType<typeof useAccountControllerAccountIdHook>
1283
843
  >
1284
844
  >,
1285
845
  TError,
1286
846
  Awaited<
1287
847
  ReturnType<
1288
- ReturnType<typeof useTokensControllerTokensHook>
848
+ ReturnType<typeof useAccountControllerAccountIdHook>
1289
849
  >
1290
850
  >
1291
851
  >,
@@ -1296,18 +856,19 @@ export function useTokensControllerTokens<
1296
856
  ): DefinedUseQueryResult<TData, TError> & {
1297
857
  queryKey: DataTag<QueryKey, TData, TError>;
1298
858
  };
1299
- export function useTokensControllerTokens<
859
+ export function useAccountControllerAccountId<
1300
860
  TData = Awaited<
1301
- ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
861
+ ReturnType<ReturnType<typeof useAccountControllerAccountIdHook>>
1302
862
  >,
1303
863
  TError = ErrorType<unknown>,
1304
864
  >(
1305
- params?: TokensControllerTokensParams,
1306
865
  options?: {
1307
866
  query?: Partial<
1308
867
  UseQueryOptions<
1309
868
  Awaited<
1310
- ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
869
+ ReturnType<
870
+ ReturnType<typeof useAccountControllerAccountIdHook>
871
+ >
1311
872
  >,
1312
873
  TError,
1313
874
  TData
@@ -1317,13 +878,13 @@ export function useTokensControllerTokens<
1317
878
  UndefinedInitialDataOptions<
1318
879
  Awaited<
1319
880
  ReturnType<
1320
- ReturnType<typeof useTokensControllerTokensHook>
881
+ ReturnType<typeof useAccountControllerAccountIdHook>
1321
882
  >
1322
883
  >,
1323
884
  TError,
1324
885
  Awaited<
1325
886
  ReturnType<
1326
- ReturnType<typeof useTokensControllerTokensHook>
887
+ ReturnType<typeof useAccountControllerAccountIdHook>
1327
888
  >
1328
889
  >
1329
890
  >,
@@ -1334,18 +895,19 @@ export function useTokensControllerTokens<
1334
895
  ): UseQueryResult<TData, TError> & {
1335
896
  queryKey: DataTag<QueryKey, TData, TError>;
1336
897
  };
1337
- export function useTokensControllerTokens<
898
+ export function useAccountControllerAccountId<
1338
899
  TData = Awaited<
1339
- ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
900
+ ReturnType<ReturnType<typeof useAccountControllerAccountIdHook>>
1340
901
  >,
1341
902
  TError = ErrorType<unknown>,
1342
903
  >(
1343
- params?: TokensControllerTokensParams,
1344
904
  options?: {
1345
905
  query?: Partial<
1346
906
  UseQueryOptions<
1347
907
  Awaited<
1348
- ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
908
+ ReturnType<
909
+ ReturnType<typeof useAccountControllerAccountIdHook>
910
+ >
1349
911
  >,
1350
912
  TError,
1351
913
  TData
@@ -1357,21 +919,22 @@ export function useTokensControllerTokens<
1357
919
  queryKey: DataTag<QueryKey, TData, TError>;
1358
920
  };
1359
921
  /**
1360
- * @summary Returns tokens and their details
922
+ * @summary Returns accountId connected to your api key used in the on-chain event.
1361
923
  */
1362
924
 
1363
- export function useTokensControllerTokens<
925
+ export function useAccountControllerAccountId<
1364
926
  TData = Awaited<
1365
- ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
927
+ ReturnType<ReturnType<typeof useAccountControllerAccountIdHook>>
1366
928
  >,
1367
929
  TError = ErrorType<unknown>,
1368
930
  >(
1369
- params?: TokensControllerTokensParams,
1370
931
  options?: {
1371
932
  query?: Partial<
1372
933
  UseQueryOptions<
1373
934
  Awaited<
1374
- ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
935
+ ReturnType<
936
+ ReturnType<typeof useAccountControllerAccountIdHook>
937
+ >
1375
938
  >,
1376
939
  TError,
1377
940
  TData
@@ -1382,7 +945,7 @@ export function useTokensControllerTokens<
1382
945
  ): UseQueryResult<TData, TError> & {
1383
946
  queryKey: DataTag<QueryKey, TData, TError>;
1384
947
  } {
1385
- const queryOptions = useTokensControllerTokensQueryOptions(params, options);
948
+ const queryOptions = useAccountControllerAccountIdQueryOptions(options);
1386
949
 
1387
950
  const query = useQuery(queryOptions, queryClient) as UseQueryResult<
1388
951
  TData,
@@ -2099,7 +1662,7 @@ export function useNontokenizedControllerRouteNontokenizedShorcutTransaction<
2099
1662
  }
2100
1663
 
2101
1664
  /**
2102
- * @summary Returns transaction that approves your EnsoWallet to spend tokens
1665
+ * @summary Returns transaction that approves your EnsoWallet-v2 to spend tokens
2103
1666
  */
2104
1667
  export const useWalletControllerCreateApproveTransactionHook = () => {
2105
1668
  const walletControllerCreateApproveTransaction =
@@ -2323,7 +1886,7 @@ export function useWalletControllerCreateApproveTransaction<
2323
1886
  queryKey: DataTag<QueryKey, TData, TError>;
2324
1887
  };
2325
1888
  /**
2326
- * @summary Returns transaction that approves your EnsoWallet to spend tokens
1889
+ * @summary Returns transaction that approves your EnsoWallet-v2 to spend tokens
2327
1890
  */
2328
1891
 
2329
1892
  export function useWalletControllerCreateApproveTransaction<
@@ -2608,6 +2171,212 @@ export function useWalletControllerWalletBalances<
2608
2171
  return query;
2609
2172
  }
2610
2173
 
2174
+ /**
2175
+ * @summary Returns tokens and their details
2176
+ */
2177
+ export const useTokensControllerTokensHook = () => {
2178
+ const tokensControllerTokens = useCustomClient<TokensControllerTokens200>();
2179
+
2180
+ return useCallback(
2181
+ (params?: TokensControllerTokensParams, signal?: AbortSignal) => {
2182
+ return tokensControllerTokens({
2183
+ url: `https://api.enso.finance/api/v1/tokens`,
2184
+ method: "GET",
2185
+ params,
2186
+ signal,
2187
+ });
2188
+ },
2189
+ [tokensControllerTokens],
2190
+ );
2191
+ };
2192
+
2193
+ export const getTokensControllerTokensQueryKey = (
2194
+ params?: TokensControllerTokensParams,
2195
+ ) => {
2196
+ return [
2197
+ `https://api.enso.finance/api/v1/tokens`,
2198
+ ...(params ? [params] : []),
2199
+ ] as const;
2200
+ };
2201
+
2202
+ export const useTokensControllerTokensQueryOptions = <
2203
+ TData = Awaited<
2204
+ ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
2205
+ >,
2206
+ TError = ErrorType<unknown>,
2207
+ >(
2208
+ params?: TokensControllerTokensParams,
2209
+ options?: {
2210
+ query?: Partial<
2211
+ UseQueryOptions<
2212
+ Awaited<
2213
+ ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
2214
+ >,
2215
+ TError,
2216
+ TData
2217
+ >
2218
+ >;
2219
+ },
2220
+ ) => {
2221
+ const { query: queryOptions } = options ?? {};
2222
+
2223
+ const queryKey =
2224
+ queryOptions?.queryKey ?? getTokensControllerTokensQueryKey(params);
2225
+
2226
+ const tokensControllerTokens = useTokensControllerTokensHook();
2227
+
2228
+ const queryFn: QueryFunction<
2229
+ Awaited<ReturnType<ReturnType<typeof useTokensControllerTokensHook>>>
2230
+ > = ({ signal }) => tokensControllerTokens(params, signal);
2231
+
2232
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
2233
+ Awaited<ReturnType<ReturnType<typeof useTokensControllerTokensHook>>>,
2234
+ TError,
2235
+ TData
2236
+ > & { queryKey: DataTag<QueryKey, TData, TError> };
2237
+ };
2238
+
2239
+ export type TokensControllerTokensQueryResult = NonNullable<
2240
+ Awaited<ReturnType<ReturnType<typeof useTokensControllerTokensHook>>>
2241
+ >;
2242
+ export type TokensControllerTokensQueryError = ErrorType<unknown>;
2243
+
2244
+ export function useTokensControllerTokens<
2245
+ TData = Awaited<
2246
+ ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
2247
+ >,
2248
+ TError = ErrorType<unknown>,
2249
+ >(
2250
+ params: undefined | TokensControllerTokensParams,
2251
+ options: {
2252
+ query: Partial<
2253
+ UseQueryOptions<
2254
+ Awaited<
2255
+ ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
2256
+ >,
2257
+ TError,
2258
+ TData
2259
+ >
2260
+ > &
2261
+ Pick<
2262
+ DefinedInitialDataOptions<
2263
+ Awaited<
2264
+ ReturnType<
2265
+ ReturnType<typeof useTokensControllerTokensHook>
2266
+ >
2267
+ >,
2268
+ TError,
2269
+ Awaited<
2270
+ ReturnType<
2271
+ ReturnType<typeof useTokensControllerTokensHook>
2272
+ >
2273
+ >
2274
+ >,
2275
+ "initialData"
2276
+ >;
2277
+ },
2278
+ queryClient?: QueryClient,
2279
+ ): DefinedUseQueryResult<TData, TError> & {
2280
+ queryKey: DataTag<QueryKey, TData, TError>;
2281
+ };
2282
+ export function useTokensControllerTokens<
2283
+ TData = Awaited<
2284
+ ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
2285
+ >,
2286
+ TError = ErrorType<unknown>,
2287
+ >(
2288
+ params?: TokensControllerTokensParams,
2289
+ options?: {
2290
+ query?: Partial<
2291
+ UseQueryOptions<
2292
+ Awaited<
2293
+ ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
2294
+ >,
2295
+ TError,
2296
+ TData
2297
+ >
2298
+ > &
2299
+ Pick<
2300
+ UndefinedInitialDataOptions<
2301
+ Awaited<
2302
+ ReturnType<
2303
+ ReturnType<typeof useTokensControllerTokensHook>
2304
+ >
2305
+ >,
2306
+ TError,
2307
+ Awaited<
2308
+ ReturnType<
2309
+ ReturnType<typeof useTokensControllerTokensHook>
2310
+ >
2311
+ >
2312
+ >,
2313
+ "initialData"
2314
+ >;
2315
+ },
2316
+ queryClient?: QueryClient,
2317
+ ): UseQueryResult<TData, TError> & {
2318
+ queryKey: DataTag<QueryKey, TData, TError>;
2319
+ };
2320
+ export function useTokensControllerTokens<
2321
+ TData = Awaited<
2322
+ ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
2323
+ >,
2324
+ TError = ErrorType<unknown>,
2325
+ >(
2326
+ params?: TokensControllerTokensParams,
2327
+ options?: {
2328
+ query?: Partial<
2329
+ UseQueryOptions<
2330
+ Awaited<
2331
+ ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
2332
+ >,
2333
+ TError,
2334
+ TData
2335
+ >
2336
+ >;
2337
+ },
2338
+ queryClient?: QueryClient,
2339
+ ): UseQueryResult<TData, TError> & {
2340
+ queryKey: DataTag<QueryKey, TData, TError>;
2341
+ };
2342
+ /**
2343
+ * @summary Returns tokens and their details
2344
+ */
2345
+
2346
+ export function useTokensControllerTokens<
2347
+ TData = Awaited<
2348
+ ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
2349
+ >,
2350
+ TError = ErrorType<unknown>,
2351
+ >(
2352
+ params?: TokensControllerTokensParams,
2353
+ options?: {
2354
+ query?: Partial<
2355
+ UseQueryOptions<
2356
+ Awaited<
2357
+ ReturnType<ReturnType<typeof useTokensControllerTokensHook>>
2358
+ >,
2359
+ TError,
2360
+ TData
2361
+ >
2362
+ >;
2363
+ },
2364
+ queryClient?: QueryClient,
2365
+ ): UseQueryResult<TData, TError> & {
2366
+ queryKey: DataTag<QueryKey, TData, TError>;
2367
+ } {
2368
+ const queryOptions = useTokensControllerTokensQueryOptions(params, options);
2369
+
2370
+ const query = useQuery(queryOptions, queryClient) as UseQueryResult<
2371
+ TData,
2372
+ TError
2373
+ > & { queryKey: DataTag<QueryKey, TData, TError> };
2374
+
2375
+ query.queryKey = queryOptions.queryKey;
2376
+
2377
+ return query;
2378
+ }
2379
+
2611
2380
  /**
2612
2381
  * @summary Returns actions available to use in bundle shortcuts
2613
2382
  */
@@ -3057,6 +2826,260 @@ export function useActionsControllerGetActionsBySlug<
3057
2826
  return query;
3058
2827
  }
3059
2828
 
2829
+ /**
2830
+ * Returns the LayerZero Stargate pool address for a given token address and chain ID. Returns null if no pool exists for the token on that chain.
2831
+ * @summary Get LayerZero pool address for a token on a specific chain
2832
+ */
2833
+ export const useLayerZeroControllerGetPoolAddressHook = () => {
2834
+ const layerZeroControllerGetPoolAddress =
2835
+ useCustomClient<LZPoolLookupResponse[]>();
2836
+
2837
+ return useCallback(
2838
+ (
2839
+ params: LayerZeroControllerGetPoolAddressParams,
2840
+ signal?: AbortSignal,
2841
+ ) => {
2842
+ return layerZeroControllerGetPoolAddress({
2843
+ url: `https://api.enso.finance/api/v1/layerzero/pool`,
2844
+ method: "GET",
2845
+ params,
2846
+ signal,
2847
+ });
2848
+ },
2849
+ [layerZeroControllerGetPoolAddress],
2850
+ );
2851
+ };
2852
+
2853
+ export const getLayerZeroControllerGetPoolAddressQueryKey = (
2854
+ params?: LayerZeroControllerGetPoolAddressParams,
2855
+ ) => {
2856
+ return [
2857
+ `https://api.enso.finance/api/v1/layerzero/pool`,
2858
+ ...(params ? [params] : []),
2859
+ ] as const;
2860
+ };
2861
+
2862
+ export const useLayerZeroControllerGetPoolAddressQueryOptions = <
2863
+ TData = Awaited<
2864
+ ReturnType<ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>>
2865
+ >,
2866
+ TError = ErrorType<unknown>,
2867
+ >(
2868
+ params: LayerZeroControllerGetPoolAddressParams,
2869
+ options?: {
2870
+ query?: Partial<
2871
+ UseQueryOptions<
2872
+ Awaited<
2873
+ ReturnType<
2874
+ ReturnType<
2875
+ typeof useLayerZeroControllerGetPoolAddressHook
2876
+ >
2877
+ >
2878
+ >,
2879
+ TError,
2880
+ TData
2881
+ >
2882
+ >;
2883
+ },
2884
+ ) => {
2885
+ const { query: queryOptions } = options ?? {};
2886
+
2887
+ const queryKey =
2888
+ queryOptions?.queryKey ??
2889
+ getLayerZeroControllerGetPoolAddressQueryKey(params);
2890
+
2891
+ const layerZeroControllerGetPoolAddress =
2892
+ useLayerZeroControllerGetPoolAddressHook();
2893
+
2894
+ const queryFn: QueryFunction<
2895
+ Awaited<
2896
+ ReturnType<
2897
+ ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>
2898
+ >
2899
+ >
2900
+ > = ({ signal }) => layerZeroControllerGetPoolAddress(params, signal);
2901
+
2902
+ return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
2903
+ Awaited<
2904
+ ReturnType<
2905
+ ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>
2906
+ >
2907
+ >,
2908
+ TError,
2909
+ TData
2910
+ > & { queryKey: DataTag<QueryKey, TData, TError> };
2911
+ };
2912
+
2913
+ export type LayerZeroControllerGetPoolAddressQueryResult = NonNullable<
2914
+ Awaited<
2915
+ ReturnType<ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>>
2916
+ >
2917
+ >;
2918
+ export type LayerZeroControllerGetPoolAddressQueryError = ErrorType<unknown>;
2919
+
2920
+ export function useLayerZeroControllerGetPoolAddress<
2921
+ TData = Awaited<
2922
+ ReturnType<ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>>
2923
+ >,
2924
+ TError = ErrorType<unknown>,
2925
+ >(
2926
+ params: LayerZeroControllerGetPoolAddressParams,
2927
+ options: {
2928
+ query: Partial<
2929
+ UseQueryOptions<
2930
+ Awaited<
2931
+ ReturnType<
2932
+ ReturnType<
2933
+ typeof useLayerZeroControllerGetPoolAddressHook
2934
+ >
2935
+ >
2936
+ >,
2937
+ TError,
2938
+ TData
2939
+ >
2940
+ > &
2941
+ Pick<
2942
+ DefinedInitialDataOptions<
2943
+ Awaited<
2944
+ ReturnType<
2945
+ ReturnType<
2946
+ typeof useLayerZeroControllerGetPoolAddressHook
2947
+ >
2948
+ >
2949
+ >,
2950
+ TError,
2951
+ Awaited<
2952
+ ReturnType<
2953
+ ReturnType<
2954
+ typeof useLayerZeroControllerGetPoolAddressHook
2955
+ >
2956
+ >
2957
+ >
2958
+ >,
2959
+ "initialData"
2960
+ >;
2961
+ },
2962
+ queryClient?: QueryClient,
2963
+ ): DefinedUseQueryResult<TData, TError> & {
2964
+ queryKey: DataTag<QueryKey, TData, TError>;
2965
+ };
2966
+ export function useLayerZeroControllerGetPoolAddress<
2967
+ TData = Awaited<
2968
+ ReturnType<ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>>
2969
+ >,
2970
+ TError = ErrorType<unknown>,
2971
+ >(
2972
+ params: LayerZeroControllerGetPoolAddressParams,
2973
+ options?: {
2974
+ query?: Partial<
2975
+ UseQueryOptions<
2976
+ Awaited<
2977
+ ReturnType<
2978
+ ReturnType<
2979
+ typeof useLayerZeroControllerGetPoolAddressHook
2980
+ >
2981
+ >
2982
+ >,
2983
+ TError,
2984
+ TData
2985
+ >
2986
+ > &
2987
+ Pick<
2988
+ UndefinedInitialDataOptions<
2989
+ Awaited<
2990
+ ReturnType<
2991
+ ReturnType<
2992
+ typeof useLayerZeroControllerGetPoolAddressHook
2993
+ >
2994
+ >
2995
+ >,
2996
+ TError,
2997
+ Awaited<
2998
+ ReturnType<
2999
+ ReturnType<
3000
+ typeof useLayerZeroControllerGetPoolAddressHook
3001
+ >
3002
+ >
3003
+ >
3004
+ >,
3005
+ "initialData"
3006
+ >;
3007
+ },
3008
+ queryClient?: QueryClient,
3009
+ ): UseQueryResult<TData, TError> & {
3010
+ queryKey: DataTag<QueryKey, TData, TError>;
3011
+ };
3012
+ export function useLayerZeroControllerGetPoolAddress<
3013
+ TData = Awaited<
3014
+ ReturnType<ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>>
3015
+ >,
3016
+ TError = ErrorType<unknown>,
3017
+ >(
3018
+ params: LayerZeroControllerGetPoolAddressParams,
3019
+ options?: {
3020
+ query?: Partial<
3021
+ UseQueryOptions<
3022
+ Awaited<
3023
+ ReturnType<
3024
+ ReturnType<
3025
+ typeof useLayerZeroControllerGetPoolAddressHook
3026
+ >
3027
+ >
3028
+ >,
3029
+ TError,
3030
+ TData
3031
+ >
3032
+ >;
3033
+ },
3034
+ queryClient?: QueryClient,
3035
+ ): UseQueryResult<TData, TError> & {
3036
+ queryKey: DataTag<QueryKey, TData, TError>;
3037
+ };
3038
+ /**
3039
+ * @summary Get LayerZero pool address for a token on a specific chain
3040
+ */
3041
+
3042
+ export function useLayerZeroControllerGetPoolAddress<
3043
+ TData = Awaited<
3044
+ ReturnType<ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>>
3045
+ >,
3046
+ TError = ErrorType<unknown>,
3047
+ >(
3048
+ params: LayerZeroControllerGetPoolAddressParams,
3049
+ options?: {
3050
+ query?: Partial<
3051
+ UseQueryOptions<
3052
+ Awaited<
3053
+ ReturnType<
3054
+ ReturnType<
3055
+ typeof useLayerZeroControllerGetPoolAddressHook
3056
+ >
3057
+ >
3058
+ >,
3059
+ TError,
3060
+ TData
3061
+ >
3062
+ >;
3063
+ },
3064
+ queryClient?: QueryClient,
3065
+ ): UseQueryResult<TData, TError> & {
3066
+ queryKey: DataTag<QueryKey, TData, TError>;
3067
+ } {
3068
+ const queryOptions = useLayerZeroControllerGetPoolAddressQueryOptions(
3069
+ params,
3070
+ options,
3071
+ );
3072
+
3073
+ const query = useQuery(queryOptions, queryClient) as UseQueryResult<
3074
+ TData,
3075
+ TError
3076
+ > & { queryKey: DataTag<QueryKey, TData, TError> };
3077
+
3078
+ query.queryKey = queryOptions.queryKey;
3079
+
3080
+ return query;
3081
+ }
3082
+
3060
3083
  /**
3061
3084
  * @summary Returns standards and methods available to use in bundle shortcuts
3062
3085
  */
@@ -4774,257 +4797,3 @@ export function useProtocolsControllerFindAll<
4774
4797
 
4775
4798
  return query;
4776
4799
  }
4777
-
4778
- /**
4779
- * Returns the LayerZero Stargate pool address for a given token address and chain ID. Returns null if no pool exists for the token on that chain.
4780
- * @summary Get LayerZero pool address for a token on a specific chain
4781
- */
4782
- export const useLayerZeroControllerGetPoolAddressHook = () => {
4783
- const layerZeroControllerGetPoolAddress =
4784
- useCustomClient<LZPoolLookupResponse[]>();
4785
-
4786
- return useCallback(
4787
- (
4788
- params: LayerZeroControllerGetPoolAddressParams,
4789
- signal?: AbortSignal,
4790
- ) => {
4791
- return layerZeroControllerGetPoolAddress({
4792
- url: `https://api.enso.finance/api/v1/layerzero/pool`,
4793
- method: "GET",
4794
- params,
4795
- signal,
4796
- });
4797
- },
4798
- [layerZeroControllerGetPoolAddress],
4799
- );
4800
- };
4801
-
4802
- export const getLayerZeroControllerGetPoolAddressQueryKey = (
4803
- params?: LayerZeroControllerGetPoolAddressParams,
4804
- ) => {
4805
- return [
4806
- `https://api.enso.finance/api/v1/layerzero/pool`,
4807
- ...(params ? [params] : []),
4808
- ] as const;
4809
- };
4810
-
4811
- export const useLayerZeroControllerGetPoolAddressQueryOptions = <
4812
- TData = Awaited<
4813
- ReturnType<ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>>
4814
- >,
4815
- TError = ErrorType<unknown>,
4816
- >(
4817
- params: LayerZeroControllerGetPoolAddressParams,
4818
- options?: {
4819
- query?: Partial<
4820
- UseQueryOptions<
4821
- Awaited<
4822
- ReturnType<
4823
- ReturnType<
4824
- typeof useLayerZeroControllerGetPoolAddressHook
4825
- >
4826
- >
4827
- >,
4828
- TError,
4829
- TData
4830
- >
4831
- >;
4832
- },
4833
- ) => {
4834
- const { query: queryOptions } = options ?? {};
4835
-
4836
- const queryKey =
4837
- queryOptions?.queryKey ??
4838
- getLayerZeroControllerGetPoolAddressQueryKey(params);
4839
-
4840
- const layerZeroControllerGetPoolAddress =
4841
- useLayerZeroControllerGetPoolAddressHook();
4842
-
4843
- const queryFn: QueryFunction<
4844
- Awaited<
4845
- ReturnType<
4846
- ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>
4847
- >
4848
- >
4849
- > = ({ signal }) => layerZeroControllerGetPoolAddress(params, signal);
4850
-
4851
- return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
4852
- Awaited<
4853
- ReturnType<
4854
- ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>
4855
- >
4856
- >,
4857
- TError,
4858
- TData
4859
- > & { queryKey: DataTag<QueryKey, TData, TError> };
4860
- };
4861
-
4862
- export type LayerZeroControllerGetPoolAddressQueryResult = NonNullable<
4863
- Awaited<
4864
- ReturnType<ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>>
4865
- >
4866
- >;
4867
- export type LayerZeroControllerGetPoolAddressQueryError = ErrorType<unknown>;
4868
-
4869
- export function useLayerZeroControllerGetPoolAddress<
4870
- TData = Awaited<
4871
- ReturnType<ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>>
4872
- >,
4873
- TError = ErrorType<unknown>,
4874
- >(
4875
- params: LayerZeroControllerGetPoolAddressParams,
4876
- options: {
4877
- query: Partial<
4878
- UseQueryOptions<
4879
- Awaited<
4880
- ReturnType<
4881
- ReturnType<
4882
- typeof useLayerZeroControllerGetPoolAddressHook
4883
- >
4884
- >
4885
- >,
4886
- TError,
4887
- TData
4888
- >
4889
- > &
4890
- Pick<
4891
- DefinedInitialDataOptions<
4892
- Awaited<
4893
- ReturnType<
4894
- ReturnType<
4895
- typeof useLayerZeroControllerGetPoolAddressHook
4896
- >
4897
- >
4898
- >,
4899
- TError,
4900
- Awaited<
4901
- ReturnType<
4902
- ReturnType<
4903
- typeof useLayerZeroControllerGetPoolAddressHook
4904
- >
4905
- >
4906
- >
4907
- >,
4908
- "initialData"
4909
- >;
4910
- },
4911
- queryClient?: QueryClient,
4912
- ): DefinedUseQueryResult<TData, TError> & {
4913
- queryKey: DataTag<QueryKey, TData, TError>;
4914
- };
4915
- export function useLayerZeroControllerGetPoolAddress<
4916
- TData = Awaited<
4917
- ReturnType<ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>>
4918
- >,
4919
- TError = ErrorType<unknown>,
4920
- >(
4921
- params: LayerZeroControllerGetPoolAddressParams,
4922
- options?: {
4923
- query?: Partial<
4924
- UseQueryOptions<
4925
- Awaited<
4926
- ReturnType<
4927
- ReturnType<
4928
- typeof useLayerZeroControllerGetPoolAddressHook
4929
- >
4930
- >
4931
- >,
4932
- TError,
4933
- TData
4934
- >
4935
- > &
4936
- Pick<
4937
- UndefinedInitialDataOptions<
4938
- Awaited<
4939
- ReturnType<
4940
- ReturnType<
4941
- typeof useLayerZeroControllerGetPoolAddressHook
4942
- >
4943
- >
4944
- >,
4945
- TError,
4946
- Awaited<
4947
- ReturnType<
4948
- ReturnType<
4949
- typeof useLayerZeroControllerGetPoolAddressHook
4950
- >
4951
- >
4952
- >
4953
- >,
4954
- "initialData"
4955
- >;
4956
- },
4957
- queryClient?: QueryClient,
4958
- ): UseQueryResult<TData, TError> & {
4959
- queryKey: DataTag<QueryKey, TData, TError>;
4960
- };
4961
- export function useLayerZeroControllerGetPoolAddress<
4962
- TData = Awaited<
4963
- ReturnType<ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>>
4964
- >,
4965
- TError = ErrorType<unknown>,
4966
- >(
4967
- params: LayerZeroControllerGetPoolAddressParams,
4968
- options?: {
4969
- query?: Partial<
4970
- UseQueryOptions<
4971
- Awaited<
4972
- ReturnType<
4973
- ReturnType<
4974
- typeof useLayerZeroControllerGetPoolAddressHook
4975
- >
4976
- >
4977
- >,
4978
- TError,
4979
- TData
4980
- >
4981
- >;
4982
- },
4983
- queryClient?: QueryClient,
4984
- ): UseQueryResult<TData, TError> & {
4985
- queryKey: DataTag<QueryKey, TData, TError>;
4986
- };
4987
- /**
4988
- * @summary Get LayerZero pool address for a token on a specific chain
4989
- */
4990
-
4991
- export function useLayerZeroControllerGetPoolAddress<
4992
- TData = Awaited<
4993
- ReturnType<ReturnType<typeof useLayerZeroControllerGetPoolAddressHook>>
4994
- >,
4995
- TError = ErrorType<unknown>,
4996
- >(
4997
- params: LayerZeroControllerGetPoolAddressParams,
4998
- options?: {
4999
- query?: Partial<
5000
- UseQueryOptions<
5001
- Awaited<
5002
- ReturnType<
5003
- ReturnType<
5004
- typeof useLayerZeroControllerGetPoolAddressHook
5005
- >
5006
- >
5007
- >,
5008
- TError,
5009
- TData
5010
- >
5011
- >;
5012
- },
5013
- queryClient?: QueryClient,
5014
- ): UseQueryResult<TData, TError> & {
5015
- queryKey: DataTag<QueryKey, TData, TError>;
5016
- } {
5017
- const queryOptions = useLayerZeroControllerGetPoolAddressQueryOptions(
5018
- params,
5019
- options,
5020
- );
5021
-
5022
- const query = useQuery(queryOptions, queryClient) as UseQueryResult<
5023
- TData,
5024
- TError
5025
- > & { queryKey: DataTag<QueryKey, TData, TError> };
5026
-
5027
- query.queryKey = queryOptions.queryKey;
5028
-
5029
- return query;
5030
- }