@swapkit/helpers 4.5.9 → 4.12.3

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 (109) hide show
  1. package/dist/LICENSE +246 -0
  2. package/dist/api/index.cjs +0 -4
  3. package/dist/api/index.js +1 -4
  4. package/dist/chunk-1m30h0t9.js +1 -0
  5. package/dist/chunk-jsgxsr8a.js +4 -0
  6. package/dist/chunk-z5an6869.js +5 -0
  7. package/dist/contracts.cjs +0 -3
  8. package/dist/contracts.js +0 -3
  9. package/dist/index.cjs +1 -7
  10. package/dist/index.js +1 -7
  11. package/dist/tokens.cjs +0 -3
  12. package/dist/tokens.js +0 -3
  13. package/dist/types/api/index.d.ts +126 -153
  14. package/dist/types/api/index.d.ts.map +1 -1
  15. package/dist/types/api/midgard/endpoints.d.ts +2 -1
  16. package/dist/types/api/midgard/endpoints.d.ts.map +1 -1
  17. package/dist/types/api/swapkitApi/endpoints.d.ts +134 -159
  18. package/dist/types/api/swapkitApi/endpoints.d.ts.map +1 -1
  19. package/dist/types/api/swapkitApi/types.d.ts +1038 -23
  20. package/dist/types/api/swapkitApi/types.d.ts.map +1 -1
  21. package/dist/types/api/thornode/endpoints.d.ts +1 -1
  22. package/dist/types/api/thornode/endpoints.d.ts.map +1 -1
  23. package/dist/types/index.d.ts +5 -0
  24. package/dist/types/index.d.ts.map +1 -1
  25. package/dist/types/modules/assetValue.d.ts +6 -7
  26. package/dist/types/modules/assetValue.d.ts.map +1 -1
  27. package/dist/types/modules/requestClient.d.ts +1 -1
  28. package/dist/types/modules/requestClient.d.ts.map +1 -1
  29. package/dist/types/modules/swapKitConfig.d.ts +24 -78
  30. package/dist/types/modules/swapKitConfig.d.ts.map +1 -1
  31. package/dist/types/modules/swapKitError.d.ts +146 -14
  32. package/dist/types/modules/swapKitError.d.ts.map +1 -1
  33. package/dist/types/modules/widgetAuth.d.ts +6 -0
  34. package/dist/types/modules/widgetAuth.d.ts.map +1 -0
  35. package/dist/types/types/derivationPath.d.ts +1 -1
  36. package/dist/types/types/derivationPath.d.ts.map +1 -1
  37. package/dist/types/types/quotes.d.ts +2 -6
  38. package/dist/types/types/quotes.d.ts.map +1 -1
  39. package/dist/types/types/sdk.d.ts +6 -0
  40. package/dist/types/types/sdk.d.ts.map +1 -1
  41. package/dist/types/types/wallet.d.ts +12 -3
  42. package/dist/types/types/wallet.d.ts.map +1 -1
  43. package/dist/types/utils/asset.d.ts +17 -1
  44. package/dist/types/utils/asset.d.ts.map +1 -1
  45. package/dist/types/utils/chains.d.ts +5 -0
  46. package/dist/types/utils/chains.d.ts.map +1 -1
  47. package/dist/types/utils/derivationPath.d.ts +4 -2
  48. package/dist/types/utils/derivationPath.d.ts.map +1 -1
  49. package/dist/types/utils/wallets.d.ts +18 -2
  50. package/dist/types/utils/wallets.d.ts.map +1 -1
  51. package/package.json +12 -30
  52. package/dist/api/index.cjs.map +0 -14
  53. package/dist/api/index.js.map +0 -14
  54. package/dist/chunk-pfmeq01a.js +0 -5
  55. package/dist/chunk-pfmeq01a.js.map +0 -9
  56. package/dist/chunk-vb4wtm2w.js +0 -4
  57. package/dist/chunk-vb4wtm2w.js.map +0 -9
  58. package/dist/contracts.cjs.map +0 -10
  59. package/dist/contracts.js.map +0 -10
  60. package/dist/index.cjs.map +0 -30
  61. package/dist/index.js.map +0 -30
  62. package/dist/tokens.cjs.map +0 -10
  63. package/dist/tokens.js.map +0 -10
  64. package/src/api/index.ts +0 -9
  65. package/src/api/midgard/endpoints.ts +0 -348
  66. package/src/api/midgard/types.ts +0 -515
  67. package/src/api/swapkitApi/endpoints.ts +0 -247
  68. package/src/api/swapkitApi/types.ts +0 -624
  69. package/src/api/thornode/endpoints.ts +0 -105
  70. package/src/api/thornode/types.ts +0 -247
  71. package/src/contracts.ts +0 -1
  72. package/src/index.ts +0 -28
  73. package/src/modules/__tests__/assetValue.test.ts +0 -2452
  74. package/src/modules/__tests__/bigIntArithmetics.test.ts +0 -410
  75. package/src/modules/__tests__/feeMultiplier.test.ts +0 -125
  76. package/src/modules/__tests__/swapKitConfig.test.ts +0 -425
  77. package/src/modules/__tests__/swapKitNumber.test.ts +0 -435
  78. package/src/modules/assetValue.ts +0 -532
  79. package/src/modules/bigIntArithmetics.ts +0 -362
  80. package/src/modules/feeMultiplier.ts +0 -80
  81. package/src/modules/requestClient.ts +0 -110
  82. package/src/modules/swapKitConfig.ts +0 -174
  83. package/src/modules/swapKitError.ts +0 -470
  84. package/src/modules/swapKitNumber.ts +0 -13
  85. package/src/tokens.ts +0 -1
  86. package/src/types/commonTypes.ts +0 -10
  87. package/src/types/derivationPath.ts +0 -11
  88. package/src/types/errors/apiV1.ts +0 -0
  89. package/src/types/index.ts +0 -5
  90. package/src/types/quotes.ts +0 -174
  91. package/src/types/sdk.ts +0 -38
  92. package/src/types/wallet.ts +0 -124
  93. package/src/utils/__tests__/asset.test.ts +0 -186
  94. package/src/utils/__tests__/derivationPath.test.ts +0 -142
  95. package/src/utils/__tests__/explorerUrls.test.ts +0 -59
  96. package/src/utils/__tests__/liquidity.test.ts +0 -302
  97. package/src/utils/__tests__/memo.test.ts +0 -99
  98. package/src/utils/__tests__/others.test.ts +0 -165
  99. package/src/utils/__tests__/validators.test.ts +0 -84
  100. package/src/utils/__tests__/wallets.test.ts +0 -621
  101. package/src/utils/asset.ts +0 -399
  102. package/src/utils/chains.ts +0 -100
  103. package/src/utils/derivationPath.ts +0 -101
  104. package/src/utils/explorerUrls.ts +0 -32
  105. package/src/utils/liquidity.ts +0 -150
  106. package/src/utils/memo.ts +0 -102
  107. package/src/utils/others.ts +0 -62
  108. package/src/utils/validators.ts +0 -32
  109. package/src/utils/wallets.ts +0 -237
@@ -1,6 +1,6 @@
1
- import { ErrorCode, FeeTypeEnum, ProviderName, WarningCodeEnum } from "@swapkit/helpers";
2
1
  import { Chain, ChainId } from "@swapkit/types";
3
2
  import { coerce, type ZodType, z } from "zod/v4";
3
+ import { ErrorCode, FeeTypeEnum, ProviderName, WarningCodeEnum } from "../../types/quotes";
4
4
  export declare enum PriorityLabel {
5
5
  CHEAPEST = "CHEAPEST",
6
6
  FASTEST = "FASTEST",
@@ -137,26 +137,42 @@ export declare const AssetValueSchema: z.ZodObject<{
137
137
  }, z.core.$strip>>;
138
138
  ticker: z.ZodString;
139
139
  }, z.core.$strip>;
140
+ export declare const CoinGeckoMetadataSchema: z.ZodObject<{
141
+ id: z.ZodOptional<z.ZodString>;
142
+ market_cap: z.ZodOptional<z.ZodNumber>;
143
+ name: z.ZodOptional<z.ZodString>;
144
+ price_change_24h_usd: z.ZodOptional<z.ZodNumber>;
145
+ price_change_percentage_24h_usd: z.ZodOptional<z.ZodNumber>;
146
+ sparkline_in_7d: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
147
+ timestamp: z.ZodOptional<z.ZodString>;
148
+ total_volume: z.ZodOptional<z.ZodNumber>;
149
+ }, z.core.$strip>;
140
150
  export declare const TokenDetailsMetadataSchema: z.ZodObject<{
141
- id: z.ZodString;
142
- market_cap: z.ZodNumber;
143
- name: z.ZodString;
144
- price_change_24h_usd: z.ZodNumber;
145
- price_change_percentage_24h_usd: z.ZodNumber;
146
- sparkline_in_7d: z.ZodArray<z.ZodNumber>;
147
- timestamp: z.ZodString;
148
- total_volume: z.ZodNumber;
151
+ cg: z.ZodOptional<z.ZodObject<{
152
+ id: z.ZodOptional<z.ZodString>;
153
+ market_cap: z.ZodOptional<z.ZodNumber>;
154
+ name: z.ZodOptional<z.ZodString>;
155
+ price_change_24h_usd: z.ZodOptional<z.ZodNumber>;
156
+ price_change_percentage_24h_usd: z.ZodOptional<z.ZodNumber>;
157
+ sparkline_in_7d: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
158
+ timestamp: z.ZodOptional<z.ZodString>;
159
+ total_volume: z.ZodOptional<z.ZodNumber>;
160
+ }, z.core.$strip>>;
161
+ identifier: z.ZodString;
162
+ price_usd: z.ZodNumber;
163
+ provider: z.ZodString;
164
+ timestamp: z.ZodNumber;
149
165
  }, z.core.$strip>;
150
166
  export declare const PriceResponseSchema: z.ZodArray<z.ZodObject<{
151
167
  cg: z.ZodOptional<z.ZodOptional<z.ZodObject<{
152
- id: z.ZodString;
153
- market_cap: z.ZodNumber;
154
- name: z.ZodString;
155
- price_change_24h_usd: z.ZodNumber;
156
- price_change_percentage_24h_usd: z.ZodNumber;
157
- sparkline_in_7d: z.ZodArray<z.ZodNumber>;
158
- timestamp: z.ZodString;
159
- total_volume: z.ZodNumber;
168
+ id: z.ZodOptional<z.ZodString>;
169
+ market_cap: z.ZodOptional<z.ZodNumber>;
170
+ name: z.ZodOptional<z.ZodString>;
171
+ price_change_24h_usd: z.ZodOptional<z.ZodNumber>;
172
+ price_change_percentage_24h_usd: z.ZodOptional<z.ZodNumber>;
173
+ sparkline_in_7d: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
174
+ timestamp: z.ZodOptional<z.ZodString>;
175
+ total_volume: z.ZodOptional<z.ZodNumber>;
160
176
  }, z.core.$strip>>>;
161
177
  identifier: z.ZodOptional<z.ZodString>;
162
178
  price_usd: z.ZodOptional<z.ZodNumber>;
@@ -951,6 +967,19 @@ export declare const EVMTransactionSchema: z.ZodObject<{
951
967
  value: z.ZodString;
952
968
  }, z.core.$strip>;
953
969
  export type EVMTransaction = z.infer<typeof EVMTransactionSchema>;
970
+ export declare const TronTransactionSchema: z.ZodObject<{
971
+ raw_data: z.ZodObject<{
972
+ contract: z.ZodAny;
973
+ expiration: z.ZodNumber;
974
+ ref_block_bytes: z.ZodString;
975
+ ref_block_hash: z.ZodString;
976
+ timestamp: z.ZodNumber;
977
+ }, z.core.$strip>;
978
+ raw_data_hex: z.ZodString;
979
+ txID: z.ZodString;
980
+ visible: z.ZodBoolean;
981
+ }, z.core.$strip>;
982
+ export type ApiTronTransaction = z.infer<typeof TronTransactionSchema>;
954
983
  export declare const EVMTransactionDetailsParamsSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>, z.ZodObject<{
955
984
  from: z.ZodString;
956
985
  value: z.ZodString;
@@ -968,6 +997,65 @@ export declare const EVMTransactionDetailsSchema: z.ZodObject<{
968
997
  }, z.core.$strip>]>>;
969
998
  }, z.core.$strip>;
970
999
  export type EVMTransactionDetails = z.infer<typeof EVMTransactionDetailsSchema>;
1000
+ declare const ThorchainDepositMsgSchema: z.ZodObject<{
1001
+ typeUrl: z.ZodString;
1002
+ value: z.ZodObject<{
1003
+ coins: z.ZodArray<z.ZodObject<{
1004
+ amount: z.ZodString;
1005
+ asset: z.ZodObject<{
1006
+ chain: z.ZodString;
1007
+ symbol: z.ZodString;
1008
+ synth: z.ZodBoolean;
1009
+ ticker: z.ZodString;
1010
+ }, z.core.$strip>;
1011
+ }, z.core.$strip>>;
1012
+ memo: z.ZodString;
1013
+ signer: z.ZodString;
1014
+ }, z.core.$strip>;
1015
+ }, z.core.$strip>;
1016
+ export type ThorchainDepositMsg = z.infer<typeof ThorchainDepositMsgSchema>;
1017
+ declare const CosmosSendMsgSchema: z.ZodObject<{
1018
+ typeUrl: z.ZodString;
1019
+ value: z.ZodObject<{
1020
+ amount: z.ZodArray<z.ZodObject<{
1021
+ amount: z.ZodString;
1022
+ denom: z.ZodString;
1023
+ }, z.core.$strip>>;
1024
+ fromAddress: z.ZodString;
1025
+ toAddress: z.ZodString;
1026
+ }, z.core.$strip>;
1027
+ }, z.core.$strip>;
1028
+ export type CosmosSendMsg = z.infer<typeof CosmosSendMsgSchema>;
1029
+ declare const EncodeObjectSchema: z.ZodObject<{
1030
+ typeUrl: z.ZodString;
1031
+ value: z.ZodUnion<[z.ZodObject<{
1032
+ typeUrl: z.ZodString;
1033
+ value: z.ZodObject<{
1034
+ amount: z.ZodArray<z.ZodObject<{
1035
+ amount: z.ZodString;
1036
+ denom: z.ZodString;
1037
+ }, z.core.$strip>>;
1038
+ fromAddress: z.ZodString;
1039
+ toAddress: z.ZodString;
1040
+ }, z.core.$strip>;
1041
+ }, z.core.$strip>, z.ZodObject<{
1042
+ typeUrl: z.ZodString;
1043
+ value: z.ZodObject<{
1044
+ coins: z.ZodArray<z.ZodObject<{
1045
+ amount: z.ZodString;
1046
+ asset: z.ZodObject<{
1047
+ chain: z.ZodString;
1048
+ symbol: z.ZodString;
1049
+ synth: z.ZodBoolean;
1050
+ ticker: z.ZodString;
1051
+ }, z.core.$strip>;
1052
+ }, z.core.$strip>>;
1053
+ memo: z.ZodString;
1054
+ signer: z.ZodString;
1055
+ }, z.core.$strip>;
1056
+ }, z.core.$strip>]>;
1057
+ }, z.core.$strip>;
1058
+ export type APICosmosEncodedObject = z.infer<typeof EncodeObjectSchema>;
971
1059
  export declare const CosmosTransactionSchema: z.ZodObject<{
972
1060
  accountNumber: z.ZodNumber;
973
1061
  chainId: z.ZodEnum<typeof ChainId>;
@@ -981,11 +1069,49 @@ export declare const CosmosTransactionSchema: z.ZodObject<{
981
1069
  memo: z.ZodString;
982
1070
  msgs: z.ZodArray<z.ZodObject<{
983
1071
  typeUrl: z.ZodString;
984
- value: z.ZodUnknown;
1072
+ value: z.ZodUnion<[z.ZodObject<{
1073
+ typeUrl: z.ZodString;
1074
+ value: z.ZodObject<{
1075
+ amount: z.ZodArray<z.ZodObject<{
1076
+ amount: z.ZodString;
1077
+ denom: z.ZodString;
1078
+ }, z.core.$strip>>;
1079
+ fromAddress: z.ZodString;
1080
+ toAddress: z.ZodString;
1081
+ }, z.core.$strip>;
1082
+ }, z.core.$strip>, z.ZodObject<{
1083
+ typeUrl: z.ZodString;
1084
+ value: z.ZodObject<{
1085
+ coins: z.ZodArray<z.ZodObject<{
1086
+ amount: z.ZodString;
1087
+ asset: z.ZodObject<{
1088
+ chain: z.ZodString;
1089
+ symbol: z.ZodString;
1090
+ synth: z.ZodBoolean;
1091
+ ticker: z.ZodString;
1092
+ }, z.core.$strip>;
1093
+ }, z.core.$strip>>;
1094
+ memo: z.ZodString;
1095
+ signer: z.ZodString;
1096
+ }, z.core.$strip>;
1097
+ }, z.core.$strip>]>;
985
1098
  }, z.core.$strip>>;
986
1099
  sequence: z.ZodNumber;
987
1100
  }, z.core.$strip>;
988
1101
  export type CosmosTransaction = z.infer<typeof CosmosTransactionSchema>;
1102
+ export declare const StarknetTransactionSchema: z.ZodArray<z.ZodObject<{
1103
+ calldata: z.ZodArray<z.ZodString>;
1104
+ contractAddress: z.ZodString;
1105
+ entrypoint: z.ZodString;
1106
+ }, z.core.$strip>>;
1107
+ export type StarknetTransaction = z.infer<typeof StarknetTransactionSchema>;
1108
+ export declare const TONTransactionSchema: z.ZodArray<z.ZodObject<{
1109
+ address: z.ZodString;
1110
+ amount: z.ZodString;
1111
+ payload: z.ZodOptional<z.ZodString>;
1112
+ stateInit: z.ZodOptional<z.ZodString>;
1113
+ }, z.core.$strip>>;
1114
+ export type TONTransaction = z.infer<typeof TONTransactionSchema>;
989
1115
  export declare const RouteLegSchema: z.ZodObject<{
990
1116
  affiliate: z.ZodOptional<z.ZodString>;
991
1117
  affiliateFee: z.ZodOptional<z.ZodNumber>;
@@ -1005,10 +1131,10 @@ export declare const RouteLegSchema: z.ZodObject<{
1005
1131
  export type RouteLeg = z.infer<typeof RouteLegSchema>;
1006
1132
  export declare const RouteLegWithoutAddressesSchema: z.ZodObject<{
1007
1133
  affiliate: z.ZodOptional<z.ZodString>;
1008
- provider: z.ZodEnum<typeof ProviderName>;
1009
1134
  affiliateFee: z.ZodOptional<z.ZodNumber>;
1010
1135
  buyAsset: z.ZodString;
1011
1136
  sellAsset: z.ZodString;
1137
+ provider: z.ZodEnum<typeof ProviderName>;
1012
1138
  estimatedTime: z.ZodOptional<z.ZodObject<{
1013
1139
  inbound: z.ZodOptional<z.ZodNumber>;
1014
1140
  outbound: z.ZodOptional<z.ZodNumber>;
@@ -1290,10 +1416,55 @@ export declare const QuoteResponseRouteItem: z.ZodObject<{
1290
1416
  memo: z.ZodString;
1291
1417
  msgs: z.ZodArray<z.ZodObject<{
1292
1418
  typeUrl: z.ZodString;
1293
- value: z.ZodUnknown;
1419
+ value: z.ZodUnion<[z.ZodObject<{
1420
+ typeUrl: z.ZodString;
1421
+ value: z.ZodObject<{
1422
+ amount: z.ZodArray<z.ZodObject<{
1423
+ amount: z.ZodString;
1424
+ denom: z.ZodString;
1425
+ }, z.core.$strip>>;
1426
+ fromAddress: z.ZodString;
1427
+ toAddress: z.ZodString;
1428
+ }, z.core.$strip>;
1429
+ }, z.core.$strip>, z.ZodObject<{
1430
+ typeUrl: z.ZodString;
1431
+ value: z.ZodObject<{
1432
+ coins: z.ZodArray<z.ZodObject<{
1433
+ amount: z.ZodString;
1434
+ asset: z.ZodObject<{
1435
+ chain: z.ZodString;
1436
+ symbol: z.ZodString;
1437
+ synth: z.ZodBoolean;
1438
+ ticker: z.ZodString;
1439
+ }, z.core.$strip>;
1440
+ }, z.core.$strip>>;
1441
+ memo: z.ZodString;
1442
+ signer: z.ZodString;
1443
+ }, z.core.$strip>;
1444
+ }, z.core.$strip>]>;
1294
1445
  }, z.core.$strip>>;
1295
1446
  sequence: z.ZodNumber;
1296
- }, z.core.$strip>, z.ZodString]>>;
1447
+ }, z.core.$strip>, z.ZodObject<{
1448
+ raw_data: z.ZodObject<{
1449
+ contract: z.ZodAny;
1450
+ expiration: z.ZodNumber;
1451
+ ref_block_bytes: z.ZodString;
1452
+ ref_block_hash: z.ZodString;
1453
+ timestamp: z.ZodNumber;
1454
+ }, z.core.$strip>;
1455
+ raw_data_hex: z.ZodString;
1456
+ txID: z.ZodString;
1457
+ visible: z.ZodBoolean;
1458
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
1459
+ calldata: z.ZodArray<z.ZodString>;
1460
+ contractAddress: z.ZodString;
1461
+ entrypoint: z.ZodString;
1462
+ }, z.core.$strip>>, z.ZodArray<z.ZodObject<{
1463
+ address: z.ZodString;
1464
+ amount: z.ZodString;
1465
+ payload: z.ZodOptional<z.ZodString>;
1466
+ stateInit: z.ZodOptional<z.ZodString>;
1467
+ }, z.core.$strip>>, z.ZodString]>>;
1297
1468
  txType: z.ZodOptional<z.ZodEnum<typeof RouteQuoteTxType>>;
1298
1469
  warnings: z.ZodArray<z.ZodObject<{
1299
1470
  code: z.ZodEnum<typeof WarningCodeEnum>;
@@ -1441,10 +1612,55 @@ export declare const QuoteResponseSchema: z.ZodObject<{
1441
1612
  memo: z.ZodString;
1442
1613
  msgs: z.ZodArray<z.ZodObject<{
1443
1614
  typeUrl: z.ZodString;
1444
- value: z.ZodUnknown;
1615
+ value: z.ZodUnion<[z.ZodObject<{
1616
+ typeUrl: z.ZodString;
1617
+ value: z.ZodObject<{
1618
+ amount: z.ZodArray<z.ZodObject<{
1619
+ amount: z.ZodString;
1620
+ denom: z.ZodString;
1621
+ }, z.core.$strip>>;
1622
+ fromAddress: z.ZodString;
1623
+ toAddress: z.ZodString;
1624
+ }, z.core.$strip>;
1625
+ }, z.core.$strip>, z.ZodObject<{
1626
+ typeUrl: z.ZodString;
1627
+ value: z.ZodObject<{
1628
+ coins: z.ZodArray<z.ZodObject<{
1629
+ amount: z.ZodString;
1630
+ asset: z.ZodObject<{
1631
+ chain: z.ZodString;
1632
+ symbol: z.ZodString;
1633
+ synth: z.ZodBoolean;
1634
+ ticker: z.ZodString;
1635
+ }, z.core.$strip>;
1636
+ }, z.core.$strip>>;
1637
+ memo: z.ZodString;
1638
+ signer: z.ZodString;
1639
+ }, z.core.$strip>;
1640
+ }, z.core.$strip>]>;
1445
1641
  }, z.core.$strip>>;
1446
1642
  sequence: z.ZodNumber;
1447
- }, z.core.$strip>, z.ZodString]>>;
1643
+ }, z.core.$strip>, z.ZodObject<{
1644
+ raw_data: z.ZodObject<{
1645
+ contract: z.ZodAny;
1646
+ expiration: z.ZodNumber;
1647
+ ref_block_bytes: z.ZodString;
1648
+ ref_block_hash: z.ZodString;
1649
+ timestamp: z.ZodNumber;
1650
+ }, z.core.$strip>;
1651
+ raw_data_hex: z.ZodString;
1652
+ txID: z.ZodString;
1653
+ visible: z.ZodBoolean;
1654
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
1655
+ calldata: z.ZodArray<z.ZodString>;
1656
+ contractAddress: z.ZodString;
1657
+ entrypoint: z.ZodString;
1658
+ }, z.core.$strip>>, z.ZodArray<z.ZodObject<{
1659
+ address: z.ZodString;
1660
+ amount: z.ZodString;
1661
+ payload: z.ZodOptional<z.ZodString>;
1662
+ stateInit: z.ZodOptional<z.ZodString>;
1663
+ }, z.core.$strip>>, z.ZodString]>>;
1448
1664
  txType: z.ZodOptional<z.ZodEnum<typeof RouteQuoteTxType>>;
1449
1665
  warnings: z.ZodArray<z.ZodObject<{
1450
1666
  code: z.ZodEnum<typeof WarningCodeEnum>;
@@ -1486,5 +1702,804 @@ declare const BalanceResponseSchema: z.ZodArray<z.ZodObject<{
1486
1702
  value: z.ZodString;
1487
1703
  }, z.core.$strip>>;
1488
1704
  export type BalanceResponse = z.infer<typeof BalanceResponseSchema>;
1705
+ export declare const ApproveRequestParams: z.ZodUnion<readonly [z.ZodObject<{
1706
+ amount: z.ZodString;
1707
+ spender: z.ZodString;
1708
+ tokenIdentifier: z.ZodString;
1709
+ userWalletAddress: z.ZodString;
1710
+ }, z.core.$strip>, z.ZodObject<{
1711
+ amount: z.ZodString;
1712
+ chainId: z.ZodEnum<typeof ChainId>;
1713
+ spender: z.ZodString;
1714
+ tokenContractAddress: z.ZodString;
1715
+ userWalletAddress: z.ZodString;
1716
+ }, z.core.$strip>, z.ZodObject<{
1717
+ routeId: z.ZodString;
1718
+ }, z.core.$strip>]>;
1719
+ export type ApproveRequest = z.infer<typeof ApproveRequestParams>;
1720
+ export declare const ApproveResponseSchema: z.ZodObject<{
1721
+ approvalTransaction: z.ZodOptional<z.ZodObject<{
1722
+ data: z.ZodString;
1723
+ from: z.ZodString;
1724
+ gasLimit: z.ZodOptional<z.ZodString>;
1725
+ gasPrice: z.ZodOptional<z.ZodString>;
1726
+ to: z.ZodString;
1727
+ value: z.ZodString;
1728
+ }, z.core.$strip>>;
1729
+ approvedAmount: z.ZodString;
1730
+ isApproved: z.ZodBoolean;
1731
+ }, z.core.$strip>;
1732
+ export type ApproveResponse = z.infer<typeof ApproveResponseSchema>;
1733
+ export declare const ApprovalTransactionSchema: z.ZodObject<{
1734
+ data: z.ZodString;
1735
+ from: z.ZodString;
1736
+ gasLimit: z.ZodOptional<z.ZodString>;
1737
+ gasPrice: z.ZodOptional<z.ZodString>;
1738
+ to: z.ZodString;
1739
+ value: z.ZodString;
1740
+ }, z.core.$strip>;
1741
+ export type ApprovalTransaction = z.infer<typeof ApprovalTransactionSchema>;
1742
+ declare const QuoteV3NextActionSchema: z.ZodObject<{
1743
+ method: z.ZodString;
1744
+ payload: z.ZodOptional<z.ZodUnknown>;
1745
+ url: z.ZodString;
1746
+ }, z.core.$strip>;
1747
+ declare const QuoteRouteV3ResponseSchema: z.ZodObject<{
1748
+ buyAsset: z.ZodString;
1749
+ providers: z.ZodArray<z.ZodEnum<typeof ProviderName>>;
1750
+ sellAmount: z.ZodString;
1751
+ sellAsset: z.ZodString;
1752
+ fees: z.ZodArray<z.ZodObject<{
1753
+ amount: z.ZodString;
1754
+ asset: z.ZodString;
1755
+ chain: z.ZodString;
1756
+ protocol: z.ZodEnum<typeof ProviderName>;
1757
+ type: z.ZodEnum<typeof FeeTypeEnum>;
1758
+ }, z.core.$strip>>;
1759
+ warnings: z.ZodArray<z.ZodObject<{
1760
+ code: z.ZodEnum<typeof WarningCodeEnum>;
1761
+ display: z.ZodString;
1762
+ tooltip: z.ZodOptional<z.ZodString>;
1763
+ }, z.core.$strip>>;
1764
+ estimatedTime: z.ZodOptional<z.ZodObject<{
1765
+ inbound: z.ZodOptional<z.ZodNumber>;
1766
+ outbound: z.ZodOptional<z.ZodNumber>;
1767
+ swap: z.ZodOptional<z.ZodNumber>;
1768
+ total: z.ZodNumber;
1769
+ }, z.core.$strip>>;
1770
+ expectedBuyAmount: z.ZodString;
1771
+ expectedBuyAmountMaxSlippage: z.ZodString;
1772
+ expiration: z.ZodOptional<z.ZodString>;
1773
+ legs: z.ZodArray<z.ZodObject<{
1774
+ buyAmount: z.ZodString;
1775
+ buyAmountMaxSlippage: z.ZodString;
1776
+ buyAsset: z.ZodString;
1777
+ expectedBuyAmount: z.ZodString;
1778
+ expectedBuyAmountMaxSlippage: z.ZodString;
1779
+ fees: z.ZodArray<z.ZodObject<{
1780
+ amount: z.ZodString;
1781
+ asset: z.ZodString;
1782
+ chain: z.ZodString;
1783
+ protocol: z.ZodEnum<typeof ProviderName>;
1784
+ type: z.ZodEnum<typeof FeeTypeEnum>;
1785
+ }, z.core.$strip>>;
1786
+ provider: z.ZodEnum<typeof ProviderName>;
1787
+ sellAmount: z.ZodString;
1788
+ sellAsset: z.ZodString;
1789
+ }, z.core.$strip>>;
1790
+ buyAmount: z.ZodString;
1791
+ buyAmountMaxSlippage: z.ZodString;
1792
+ routeId: z.ZodString;
1793
+ totalSlippageBps: z.ZodNumber;
1794
+ meta: z.ZodObject<{
1795
+ assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1796
+ asset: z.ZodString;
1797
+ image: z.ZodString;
1798
+ price: z.ZodNumber;
1799
+ }, z.core.$strip>>>;
1800
+ maxStreamingQuantity: z.ZodOptional<z.ZodNumber>;
1801
+ referrer: z.ZodOptional<z.ZodString>;
1802
+ streamingInterval: z.ZodOptional<z.ZodNumber>;
1803
+ tags: z.ZodArray<z.ZodEnum<typeof PriorityLabel>>;
1804
+ }, z.core.$strip>;
1805
+ nextActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1806
+ method: z.ZodString;
1807
+ payload: z.ZodOptional<z.ZodUnknown>;
1808
+ url: z.ZodString;
1809
+ }, z.core.$strip>>>;
1810
+ }, z.core.$strip>;
1811
+ export declare const QuoteV3ResponseSchema: z.ZodObject<{
1812
+ error: z.ZodOptional<z.ZodString>;
1813
+ providerErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1814
+ errorCode: z.ZodOptional<z.ZodEnum<typeof ErrorCode>>;
1815
+ message: z.ZodOptional<z.ZodString>;
1816
+ provider: z.ZodOptional<z.ZodEnum<typeof ProviderName>>;
1817
+ }, z.core.$strip>>>;
1818
+ quoteId: z.ZodString;
1819
+ routes: z.ZodArray<z.ZodObject<{
1820
+ buyAsset: z.ZodString;
1821
+ providers: z.ZodArray<z.ZodEnum<typeof ProviderName>>;
1822
+ sellAmount: z.ZodString;
1823
+ sellAsset: z.ZodString;
1824
+ fees: z.ZodArray<z.ZodObject<{
1825
+ amount: z.ZodString;
1826
+ asset: z.ZodString;
1827
+ chain: z.ZodString;
1828
+ protocol: z.ZodEnum<typeof ProviderName>;
1829
+ type: z.ZodEnum<typeof FeeTypeEnum>;
1830
+ }, z.core.$strip>>;
1831
+ warnings: z.ZodArray<z.ZodObject<{
1832
+ code: z.ZodEnum<typeof WarningCodeEnum>;
1833
+ display: z.ZodString;
1834
+ tooltip: z.ZodOptional<z.ZodString>;
1835
+ }, z.core.$strip>>;
1836
+ estimatedTime: z.ZodOptional<z.ZodObject<{
1837
+ inbound: z.ZodOptional<z.ZodNumber>;
1838
+ outbound: z.ZodOptional<z.ZodNumber>;
1839
+ swap: z.ZodOptional<z.ZodNumber>;
1840
+ total: z.ZodNumber;
1841
+ }, z.core.$strip>>;
1842
+ expectedBuyAmount: z.ZodString;
1843
+ expectedBuyAmountMaxSlippage: z.ZodString;
1844
+ expiration: z.ZodOptional<z.ZodString>;
1845
+ legs: z.ZodArray<z.ZodObject<{
1846
+ buyAmount: z.ZodString;
1847
+ buyAmountMaxSlippage: z.ZodString;
1848
+ buyAsset: z.ZodString;
1849
+ expectedBuyAmount: z.ZodString;
1850
+ expectedBuyAmountMaxSlippage: z.ZodString;
1851
+ fees: z.ZodArray<z.ZodObject<{
1852
+ amount: z.ZodString;
1853
+ asset: z.ZodString;
1854
+ chain: z.ZodString;
1855
+ protocol: z.ZodEnum<typeof ProviderName>;
1856
+ type: z.ZodEnum<typeof FeeTypeEnum>;
1857
+ }, z.core.$strip>>;
1858
+ provider: z.ZodEnum<typeof ProviderName>;
1859
+ sellAmount: z.ZodString;
1860
+ sellAsset: z.ZodString;
1861
+ }, z.core.$strip>>;
1862
+ buyAmount: z.ZodString;
1863
+ buyAmountMaxSlippage: z.ZodString;
1864
+ routeId: z.ZodString;
1865
+ totalSlippageBps: z.ZodNumber;
1866
+ meta: z.ZodObject<{
1867
+ assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1868
+ asset: z.ZodString;
1869
+ image: z.ZodString;
1870
+ price: z.ZodNumber;
1871
+ }, z.core.$strip>>>;
1872
+ maxStreamingQuantity: z.ZodOptional<z.ZodNumber>;
1873
+ referrer: z.ZodOptional<z.ZodString>;
1874
+ streamingInterval: z.ZodOptional<z.ZodNumber>;
1875
+ tags: z.ZodArray<z.ZodEnum<typeof PriorityLabel>>;
1876
+ }, z.core.$strip>;
1877
+ nextActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1878
+ method: z.ZodString;
1879
+ payload: z.ZodOptional<z.ZodUnknown>;
1880
+ url: z.ZodString;
1881
+ }, z.core.$strip>>>;
1882
+ }, z.core.$strip>>;
1883
+ }, z.core.$strip>;
1884
+ export type QuoteNextAction = z.infer<typeof QuoteV3NextActionSchema>;
1885
+ export type QuoteSimpleResponse = z.infer<typeof QuoteV3ResponseSchema>;
1886
+ export type QuoteSimpleResponseRoute = z.infer<typeof QuoteRouteV3ResponseSchema>;
1887
+ export declare const SwapToRequestSchema: z.ZodObject<{
1888
+ providers: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof ProviderName>>>;
1889
+ sellAsset: z.ZodString;
1890
+ }, z.core.$strip>;
1891
+ export type SwapToRequest = z.infer<typeof SwapToRequestSchema>;
1892
+ export declare const SwapToAssetSchema: z.ZodObject<{
1893
+ chain: z.ZodEnum<typeof Chain>;
1894
+ identifier: z.ZodString;
1895
+ providers: z.ZodArray<z.ZodEnum<typeof ProviderName>>;
1896
+ symbol: z.ZodString;
1897
+ ticker: z.ZodString;
1898
+ }, z.core.$strip>;
1899
+ export type SwapToAsset = z.infer<typeof SwapToAssetSchema>;
1900
+ export declare const SwapToResponseSchema: z.ZodObject<{
1901
+ buyAssets: z.ZodArray<z.ZodObject<{
1902
+ chain: z.ZodEnum<typeof Chain>;
1903
+ identifier: z.ZodString;
1904
+ providers: z.ZodArray<z.ZodEnum<typeof ProviderName>>;
1905
+ symbol: z.ZodString;
1906
+ ticker: z.ZodString;
1907
+ }, z.core.$strip>>;
1908
+ sellAsset: z.ZodString;
1909
+ }, z.core.$strip>;
1910
+ export type SwapToResponse = z.infer<typeof SwapToResponseSchema>;
1911
+ export declare const QuoteRouteV2Response: z.ZodObject<{
1912
+ buyAsset: z.ZodString;
1913
+ providers: z.ZodArray<z.ZodEnum<typeof ProviderName>>;
1914
+ sellAmount: z.ZodString;
1915
+ sellAsset: z.ZodString;
1916
+ fees: z.ZodArray<z.ZodObject<{
1917
+ amount: z.ZodString;
1918
+ asset: z.ZodString;
1919
+ chain: z.ZodString;
1920
+ protocol: z.ZodEnum<typeof ProviderName>;
1921
+ type: z.ZodEnum<typeof FeeTypeEnum>;
1922
+ }, z.core.$strip>>;
1923
+ warnings: z.ZodArray<z.ZodObject<{
1924
+ code: z.ZodEnum<typeof WarningCodeEnum>;
1925
+ display: z.ZodString;
1926
+ tooltip: z.ZodOptional<z.ZodString>;
1927
+ }, z.core.$strip>>;
1928
+ estimatedTime: z.ZodOptional<z.ZodObject<{
1929
+ inbound: z.ZodOptional<z.ZodNumber>;
1930
+ outbound: z.ZodOptional<z.ZodNumber>;
1931
+ swap: z.ZodOptional<z.ZodNumber>;
1932
+ total: z.ZodNumber;
1933
+ }, z.core.$strip>>;
1934
+ expectedBuyAmount: z.ZodString;
1935
+ expectedBuyAmountMaxSlippage: z.ZodString;
1936
+ expiration: z.ZodOptional<z.ZodString>;
1937
+ legs: z.ZodArray<z.ZodObject<{
1938
+ buyAmount: z.ZodString;
1939
+ buyAmountMaxSlippage: z.ZodString;
1940
+ buyAsset: z.ZodString;
1941
+ expectedBuyAmount: z.ZodString;
1942
+ expectedBuyAmountMaxSlippage: z.ZodString;
1943
+ fees: z.ZodArray<z.ZodObject<{
1944
+ amount: z.ZodString;
1945
+ asset: z.ZodString;
1946
+ chain: z.ZodString;
1947
+ protocol: z.ZodEnum<typeof ProviderName>;
1948
+ type: z.ZodEnum<typeof FeeTypeEnum>;
1949
+ }, z.core.$strip>>;
1950
+ provider: z.ZodEnum<typeof ProviderName>;
1951
+ sellAmount: z.ZodString;
1952
+ sellAsset: z.ZodString;
1953
+ }, z.core.$strip>>;
1954
+ buyAmount: z.ZodString;
1955
+ buyAmountMaxSlippage: z.ZodString;
1956
+ routeId: z.ZodString;
1957
+ totalSlippageBps: z.ZodNumber;
1958
+ destinationAddress: z.ZodString;
1959
+ inboundAddress: z.ZodOptional<z.ZodString>;
1960
+ memo: z.ZodOptional<z.ZodString>;
1961
+ meta: z.ZodObject<{
1962
+ assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1963
+ asset: z.ZodString;
1964
+ image: z.ZodString;
1965
+ price: z.ZodNumber;
1966
+ }, z.core.$strip>>>;
1967
+ maxStreamingQuantity: z.ZodOptional<z.ZodNumber>;
1968
+ streamingInterval: z.ZodOptional<z.ZodNumber>;
1969
+ tags: z.ZodArray<z.ZodEnum<typeof PriorityLabel>>;
1970
+ affiliate: z.ZodOptional<z.ZodString>;
1971
+ affiliateFee: z.ZodOptional<z.ZodString>;
1972
+ approvalAddress: z.ZodOptional<z.ZodString>;
1973
+ chainflip: z.ZodOptional<z.ZodObject<{
1974
+ destinationAddress: z.ZodString;
1975
+ affiliateFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
1976
+ brokerAddress: z.ZodString;
1977
+ feeBps: z.ZodNumber;
1978
+ }, z.core.$strip>>>;
1979
+ brokerCommissionBps: z.ZodOptional<z.ZodNumber>;
1980
+ buyAsset: z.ZodObject<{
1981
+ asset: z.ZodString;
1982
+ chain: z.ZodString;
1983
+ }, z.core.$strip>;
1984
+ channelMetadata: z.ZodOptional<z.ZodObject<{
1985
+ cfParameters: z.ZodOptional<z.ZodString>;
1986
+ gasBudget: z.ZodOptional<z.ZodString>;
1987
+ message: z.ZodOptional<z.ZodString>;
1988
+ }, z.core.$strip>>;
1989
+ dcaParameters: z.ZodOptional<z.ZodObject<{
1990
+ chunkInterval: z.ZodOptional<z.ZodNumber>;
1991
+ numberOfChunks: z.ZodOptional<z.ZodNumber>;
1992
+ }, z.core.$strip>>;
1993
+ maxBoostFeeBps: z.ZodOptional<z.ZodNumber>;
1994
+ refundParameters: z.ZodOptional<z.ZodObject<{
1995
+ minPrice: z.ZodOptional<z.ZodString>;
1996
+ refundAddress: z.ZodOptional<z.ZodString>;
1997
+ retryDuration: z.ZodOptional<z.ZodNumber>;
1998
+ }, z.core.$strip>>;
1999
+ sellAsset: z.ZodObject<{
2000
+ asset: z.ZodString;
2001
+ chain: z.ZodString;
2002
+ }, z.core.$strip>;
2003
+ }, z.core.$strip>>;
2004
+ garden: z.ZodOptional<z.ZodObject<{
2005
+ destinationAddress: z.ZodString;
2006
+ affiliateFees: z.ZodOptional<z.ZodObject<{
2007
+ feeBps: z.ZodNumber;
2008
+ nearId: z.ZodString;
2009
+ }, z.core.$strip>>;
2010
+ buyAsset: z.ZodString;
2011
+ sellAmount: z.ZodString;
2012
+ sellAsset: z.ZodString;
2013
+ slippage: coerce.ZodCoercedNumber<unknown>;
2014
+ sourceAddress: z.ZodString;
2015
+ }, z.core.$strip>>;
2016
+ near: z.ZodOptional<z.ZodObject<{
2017
+ destinationAddress: z.ZodString;
2018
+ affiliateFees: z.ZodOptional<z.ZodObject<{
2019
+ feeBps: z.ZodNumber;
2020
+ nearId: z.ZodString;
2021
+ }, z.core.$strip>>;
2022
+ buyAsset: z.ZodString;
2023
+ sellAmount: z.ZodString;
2024
+ sellAsset: z.ZodString;
2025
+ slippage: coerce.ZodCoercedNumber<unknown>;
2026
+ sourceAddress: z.ZodString;
2027
+ }, z.core.$strip>>;
2028
+ priceImpact: z.ZodOptional<z.ZodNumber>;
2029
+ referrer: z.ZodOptional<z.ZodString>;
2030
+ txType: z.ZodOptional<z.ZodEnum<typeof RouteQuoteTxType>>;
2031
+ }, z.core.$strip>;
2032
+ sourceAddress: z.ZodString;
2033
+ targetAddress: z.ZodOptional<z.ZodString>;
2034
+ tx: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2035
+ data: z.ZodString;
2036
+ from: z.ZodString;
2037
+ to: z.ZodString;
2038
+ value: z.ZodString;
2039
+ }, z.core.$strip>, z.ZodObject<{
2040
+ accountNumber: z.ZodNumber;
2041
+ chainId: z.ZodEnum<typeof ChainId>;
2042
+ fee: z.ZodObject<{
2043
+ amount: z.ZodArray<z.ZodObject<{
2044
+ amount: z.ZodString;
2045
+ denom: z.ZodString;
2046
+ }, z.core.$strip>>;
2047
+ gas: z.ZodString;
2048
+ }, z.core.$strip>;
2049
+ memo: z.ZodString;
2050
+ msgs: z.ZodArray<z.ZodObject<{
2051
+ typeUrl: z.ZodString;
2052
+ value: z.ZodUnion<[z.ZodObject<{
2053
+ typeUrl: z.ZodString;
2054
+ value: z.ZodObject<{
2055
+ amount: z.ZodArray<z.ZodObject<{
2056
+ amount: z.ZodString;
2057
+ denom: z.ZodString;
2058
+ }, z.core.$strip>>;
2059
+ fromAddress: z.ZodString;
2060
+ toAddress: z.ZodString;
2061
+ }, z.core.$strip>;
2062
+ }, z.core.$strip>, z.ZodObject<{
2063
+ typeUrl: z.ZodString;
2064
+ value: z.ZodObject<{
2065
+ coins: z.ZodArray<z.ZodObject<{
2066
+ amount: z.ZodString;
2067
+ asset: z.ZodObject<{
2068
+ chain: z.ZodString;
2069
+ symbol: z.ZodString;
2070
+ synth: z.ZodBoolean;
2071
+ ticker: z.ZodString;
2072
+ }, z.core.$strip>;
2073
+ }, z.core.$strip>>;
2074
+ memo: z.ZodString;
2075
+ signer: z.ZodString;
2076
+ }, z.core.$strip>;
2077
+ }, z.core.$strip>]>;
2078
+ }, z.core.$strip>>;
2079
+ sequence: z.ZodNumber;
2080
+ }, z.core.$strip>, z.ZodObject<{
2081
+ raw_data: z.ZodObject<{
2082
+ contract: z.ZodAny;
2083
+ expiration: z.ZodNumber;
2084
+ ref_block_bytes: z.ZodString;
2085
+ ref_block_hash: z.ZodString;
2086
+ timestamp: z.ZodNumber;
2087
+ }, z.core.$strip>;
2088
+ raw_data_hex: z.ZodString;
2089
+ txID: z.ZodString;
2090
+ visible: z.ZodBoolean;
2091
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
2092
+ address: z.ZodString;
2093
+ amount: z.ZodString;
2094
+ payload: z.ZodOptional<z.ZodString>;
2095
+ stateInit: z.ZodOptional<z.ZodString>;
2096
+ }, z.core.$strip>>, z.ZodString]>>;
2097
+ txType: z.ZodOptional<z.ZodEnum<typeof RouteQuoteTxType>>;
2098
+ }, z.core.$strip>;
2099
+ export declare const RouteQuoteProviderErrorSchema: z.ZodObject<{
2100
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
2101
+ errorCode: z.ZodEnum<typeof ErrorCode>;
2102
+ message: z.ZodOptional<z.ZodString>;
2103
+ provider: z.ZodOptional<z.ZodEnum<typeof ProviderName>>;
2104
+ }, z.core.$strip>;
2105
+ export type RouteQuoteProviderError = z.infer<typeof RouteQuoteProviderErrorSchema>;
2106
+ export declare const QuoteV2ResponseSchema: z.ZodObject<{
2107
+ error: z.ZodOptional<z.ZodString>;
2108
+ providerErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
2109
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>>;
2110
+ errorCode: z.ZodEnum<typeof ErrorCode>;
2111
+ message: z.ZodOptional<z.ZodString>;
2112
+ provider: z.ZodOptional<z.ZodEnum<typeof ProviderName>>;
2113
+ }, z.core.$strip>>>;
2114
+ quoteId: z.ZodString;
2115
+ routes: z.ZodArray<z.ZodObject<{
2116
+ buyAsset: z.ZodString;
2117
+ providers: z.ZodArray<z.ZodEnum<typeof ProviderName>>;
2118
+ sellAmount: z.ZodString;
2119
+ sellAsset: z.ZodString;
2120
+ fees: z.ZodArray<z.ZodObject<{
2121
+ amount: z.ZodString;
2122
+ asset: z.ZodString;
2123
+ chain: z.ZodString;
2124
+ protocol: z.ZodEnum<typeof ProviderName>;
2125
+ type: z.ZodEnum<typeof FeeTypeEnum>;
2126
+ }, z.core.$strip>>;
2127
+ warnings: z.ZodArray<z.ZodObject<{
2128
+ code: z.ZodEnum<typeof WarningCodeEnum>;
2129
+ display: z.ZodString;
2130
+ tooltip: z.ZodOptional<z.ZodString>;
2131
+ }, z.core.$strip>>;
2132
+ estimatedTime: z.ZodOptional<z.ZodObject<{
2133
+ inbound: z.ZodOptional<z.ZodNumber>;
2134
+ outbound: z.ZodOptional<z.ZodNumber>;
2135
+ swap: z.ZodOptional<z.ZodNumber>;
2136
+ total: z.ZodNumber;
2137
+ }, z.core.$strip>>;
2138
+ expectedBuyAmount: z.ZodString;
2139
+ expectedBuyAmountMaxSlippage: z.ZodString;
2140
+ expiration: z.ZodOptional<z.ZodString>;
2141
+ legs: z.ZodArray<z.ZodObject<{
2142
+ buyAmount: z.ZodString;
2143
+ buyAmountMaxSlippage: z.ZodString;
2144
+ buyAsset: z.ZodString;
2145
+ expectedBuyAmount: z.ZodString;
2146
+ expectedBuyAmountMaxSlippage: z.ZodString;
2147
+ fees: z.ZodArray<z.ZodObject<{
2148
+ amount: z.ZodString;
2149
+ asset: z.ZodString;
2150
+ chain: z.ZodString;
2151
+ protocol: z.ZodEnum<typeof ProviderName>;
2152
+ type: z.ZodEnum<typeof FeeTypeEnum>;
2153
+ }, z.core.$strip>>;
2154
+ provider: z.ZodEnum<typeof ProviderName>;
2155
+ sellAmount: z.ZodString;
2156
+ sellAsset: z.ZodString;
2157
+ }, z.core.$strip>>;
2158
+ buyAmount: z.ZodString;
2159
+ buyAmountMaxSlippage: z.ZodString;
2160
+ routeId: z.ZodString;
2161
+ totalSlippageBps: z.ZodNumber;
2162
+ destinationAddress: z.ZodString;
2163
+ inboundAddress: z.ZodOptional<z.ZodString>;
2164
+ memo: z.ZodOptional<z.ZodString>;
2165
+ meta: z.ZodObject<{
2166
+ assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2167
+ asset: z.ZodString;
2168
+ image: z.ZodString;
2169
+ price: z.ZodNumber;
2170
+ }, z.core.$strip>>>;
2171
+ maxStreamingQuantity: z.ZodOptional<z.ZodNumber>;
2172
+ streamingInterval: z.ZodOptional<z.ZodNumber>;
2173
+ tags: z.ZodArray<z.ZodEnum<typeof PriorityLabel>>;
2174
+ affiliate: z.ZodOptional<z.ZodString>;
2175
+ affiliateFee: z.ZodOptional<z.ZodString>;
2176
+ approvalAddress: z.ZodOptional<z.ZodString>;
2177
+ chainflip: z.ZodOptional<z.ZodObject<{
2178
+ destinationAddress: z.ZodString;
2179
+ affiliateFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
2180
+ brokerAddress: z.ZodString;
2181
+ feeBps: z.ZodNumber;
2182
+ }, z.core.$strip>>>;
2183
+ brokerCommissionBps: z.ZodOptional<z.ZodNumber>;
2184
+ buyAsset: z.ZodObject<{
2185
+ asset: z.ZodString;
2186
+ chain: z.ZodString;
2187
+ }, z.core.$strip>;
2188
+ channelMetadata: z.ZodOptional<z.ZodObject<{
2189
+ cfParameters: z.ZodOptional<z.ZodString>;
2190
+ gasBudget: z.ZodOptional<z.ZodString>;
2191
+ message: z.ZodOptional<z.ZodString>;
2192
+ }, z.core.$strip>>;
2193
+ dcaParameters: z.ZodOptional<z.ZodObject<{
2194
+ chunkInterval: z.ZodOptional<z.ZodNumber>;
2195
+ numberOfChunks: z.ZodOptional<z.ZodNumber>;
2196
+ }, z.core.$strip>>;
2197
+ maxBoostFeeBps: z.ZodOptional<z.ZodNumber>;
2198
+ refundParameters: z.ZodOptional<z.ZodObject<{
2199
+ minPrice: z.ZodOptional<z.ZodString>;
2200
+ refundAddress: z.ZodOptional<z.ZodString>;
2201
+ retryDuration: z.ZodOptional<z.ZodNumber>;
2202
+ }, z.core.$strip>>;
2203
+ sellAsset: z.ZodObject<{
2204
+ asset: z.ZodString;
2205
+ chain: z.ZodString;
2206
+ }, z.core.$strip>;
2207
+ }, z.core.$strip>>;
2208
+ garden: z.ZodOptional<z.ZodObject<{
2209
+ destinationAddress: z.ZodString;
2210
+ affiliateFees: z.ZodOptional<z.ZodObject<{
2211
+ feeBps: z.ZodNumber;
2212
+ nearId: z.ZodString;
2213
+ }, z.core.$strip>>;
2214
+ buyAsset: z.ZodString;
2215
+ sellAmount: z.ZodString;
2216
+ sellAsset: z.ZodString;
2217
+ slippage: coerce.ZodCoercedNumber<unknown>;
2218
+ sourceAddress: z.ZodString;
2219
+ }, z.core.$strip>>;
2220
+ near: z.ZodOptional<z.ZodObject<{
2221
+ destinationAddress: z.ZodString;
2222
+ affiliateFees: z.ZodOptional<z.ZodObject<{
2223
+ feeBps: z.ZodNumber;
2224
+ nearId: z.ZodString;
2225
+ }, z.core.$strip>>;
2226
+ buyAsset: z.ZodString;
2227
+ sellAmount: z.ZodString;
2228
+ sellAsset: z.ZodString;
2229
+ slippage: coerce.ZodCoercedNumber<unknown>;
2230
+ sourceAddress: z.ZodString;
2231
+ }, z.core.$strip>>;
2232
+ priceImpact: z.ZodOptional<z.ZodNumber>;
2233
+ referrer: z.ZodOptional<z.ZodString>;
2234
+ txType: z.ZodOptional<z.ZodEnum<typeof RouteQuoteTxType>>;
2235
+ }, z.core.$strip>;
2236
+ sourceAddress: z.ZodString;
2237
+ targetAddress: z.ZodOptional<z.ZodString>;
2238
+ tx: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2239
+ data: z.ZodString;
2240
+ from: z.ZodString;
2241
+ to: z.ZodString;
2242
+ value: z.ZodString;
2243
+ }, z.core.$strip>, z.ZodObject<{
2244
+ accountNumber: z.ZodNumber;
2245
+ chainId: z.ZodEnum<typeof ChainId>;
2246
+ fee: z.ZodObject<{
2247
+ amount: z.ZodArray<z.ZodObject<{
2248
+ amount: z.ZodString;
2249
+ denom: z.ZodString;
2250
+ }, z.core.$strip>>;
2251
+ gas: z.ZodString;
2252
+ }, z.core.$strip>;
2253
+ memo: z.ZodString;
2254
+ msgs: z.ZodArray<z.ZodObject<{
2255
+ typeUrl: z.ZodString;
2256
+ value: z.ZodUnion<[z.ZodObject<{
2257
+ typeUrl: z.ZodString;
2258
+ value: z.ZodObject<{
2259
+ amount: z.ZodArray<z.ZodObject<{
2260
+ amount: z.ZodString;
2261
+ denom: z.ZodString;
2262
+ }, z.core.$strip>>;
2263
+ fromAddress: z.ZodString;
2264
+ toAddress: z.ZodString;
2265
+ }, z.core.$strip>;
2266
+ }, z.core.$strip>, z.ZodObject<{
2267
+ typeUrl: z.ZodString;
2268
+ value: z.ZodObject<{
2269
+ coins: z.ZodArray<z.ZodObject<{
2270
+ amount: z.ZodString;
2271
+ asset: z.ZodObject<{
2272
+ chain: z.ZodString;
2273
+ symbol: z.ZodString;
2274
+ synth: z.ZodBoolean;
2275
+ ticker: z.ZodString;
2276
+ }, z.core.$strip>;
2277
+ }, z.core.$strip>>;
2278
+ memo: z.ZodString;
2279
+ signer: z.ZodString;
2280
+ }, z.core.$strip>;
2281
+ }, z.core.$strip>]>;
2282
+ }, z.core.$strip>>;
2283
+ sequence: z.ZodNumber;
2284
+ }, z.core.$strip>, z.ZodObject<{
2285
+ raw_data: z.ZodObject<{
2286
+ contract: z.ZodAny;
2287
+ expiration: z.ZodNumber;
2288
+ ref_block_bytes: z.ZodString;
2289
+ ref_block_hash: z.ZodString;
2290
+ timestamp: z.ZodNumber;
2291
+ }, z.core.$strip>;
2292
+ raw_data_hex: z.ZodString;
2293
+ txID: z.ZodString;
2294
+ visible: z.ZodBoolean;
2295
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
2296
+ address: z.ZodString;
2297
+ amount: z.ZodString;
2298
+ payload: z.ZodOptional<z.ZodString>;
2299
+ stateInit: z.ZodOptional<z.ZodString>;
2300
+ }, z.core.$strip>>, z.ZodString]>>;
2301
+ txType: z.ZodOptional<z.ZodEnum<typeof RouteQuoteTxType>>;
2302
+ }, z.core.$strip>>;
2303
+ }, z.core.$strip>;
2304
+ export type QuoteV2Response = z.infer<typeof QuoteV2ResponseSchema>;
2305
+ export type QuoteRouteV2Response = z.infer<typeof QuoteRouteV2Response>;
2306
+ export declare const SwapRouteV2ResponseSchema: z.ZodObject<{
2307
+ buyAsset: z.ZodString;
2308
+ providers: z.ZodArray<z.ZodEnum<typeof ProviderName>>;
2309
+ sellAmount: z.ZodString;
2310
+ sellAsset: z.ZodString;
2311
+ fees: z.ZodArray<z.ZodObject<{
2312
+ amount: z.ZodString;
2313
+ asset: z.ZodString;
2314
+ chain: z.ZodString;
2315
+ protocol: z.ZodEnum<typeof ProviderName>;
2316
+ type: z.ZodEnum<typeof FeeTypeEnum>;
2317
+ }, z.core.$strip>>;
2318
+ warnings: z.ZodArray<z.ZodObject<{
2319
+ code: z.ZodEnum<typeof WarningCodeEnum>;
2320
+ display: z.ZodString;
2321
+ tooltip: z.ZodOptional<z.ZodString>;
2322
+ }, z.core.$strip>>;
2323
+ estimatedTime: z.ZodOptional<z.ZodObject<{
2324
+ inbound: z.ZodOptional<z.ZodNumber>;
2325
+ outbound: z.ZodOptional<z.ZodNumber>;
2326
+ swap: z.ZodOptional<z.ZodNumber>;
2327
+ total: z.ZodNumber;
2328
+ }, z.core.$strip>>;
2329
+ expectedBuyAmount: z.ZodString;
2330
+ expectedBuyAmountMaxSlippage: z.ZodString;
2331
+ expiration: z.ZodOptional<z.ZodString>;
2332
+ legs: z.ZodArray<z.ZodObject<{
2333
+ buyAmount: z.ZodString;
2334
+ buyAmountMaxSlippage: z.ZodString;
2335
+ buyAsset: z.ZodString;
2336
+ expectedBuyAmount: z.ZodString;
2337
+ expectedBuyAmountMaxSlippage: z.ZodString;
2338
+ fees: z.ZodArray<z.ZodObject<{
2339
+ amount: z.ZodString;
2340
+ asset: z.ZodString;
2341
+ chain: z.ZodString;
2342
+ protocol: z.ZodEnum<typeof ProviderName>;
2343
+ type: z.ZodEnum<typeof FeeTypeEnum>;
2344
+ }, z.core.$strip>>;
2345
+ provider: z.ZodEnum<typeof ProviderName>;
2346
+ sellAmount: z.ZodString;
2347
+ sellAsset: z.ZodString;
2348
+ }, z.core.$strip>>;
2349
+ buyAmount: z.ZodString;
2350
+ buyAmountMaxSlippage: z.ZodString;
2351
+ routeId: z.ZodString;
2352
+ totalSlippageBps: z.ZodNumber;
2353
+ destinationAddress: z.ZodString;
2354
+ inboundAddress: z.ZodOptional<z.ZodString>;
2355
+ memo: z.ZodOptional<z.ZodString>;
2356
+ meta: z.ZodObject<{
2357
+ assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
2358
+ asset: z.ZodString;
2359
+ image: z.ZodString;
2360
+ price: z.ZodNumber;
2361
+ }, z.core.$strip>>>;
2362
+ maxStreamingQuantity: z.ZodOptional<z.ZodNumber>;
2363
+ streamingInterval: z.ZodOptional<z.ZodNumber>;
2364
+ tags: z.ZodArray<z.ZodEnum<typeof PriorityLabel>>;
2365
+ affiliate: z.ZodOptional<z.ZodString>;
2366
+ affiliateFee: z.ZodOptional<z.ZodString>;
2367
+ approvalAddress: z.ZodOptional<z.ZodString>;
2368
+ chainflip: z.ZodOptional<z.ZodObject<{
2369
+ destinationAddress: z.ZodString;
2370
+ affiliateFees: z.ZodOptional<z.ZodArray<z.ZodObject<{
2371
+ brokerAddress: z.ZodString;
2372
+ feeBps: z.ZodNumber;
2373
+ }, z.core.$strip>>>;
2374
+ brokerCommissionBps: z.ZodOptional<z.ZodNumber>;
2375
+ buyAsset: z.ZodObject<{
2376
+ asset: z.ZodString;
2377
+ chain: z.ZodString;
2378
+ }, z.core.$strip>;
2379
+ channelMetadata: z.ZodOptional<z.ZodObject<{
2380
+ cfParameters: z.ZodOptional<z.ZodString>;
2381
+ gasBudget: z.ZodOptional<z.ZodString>;
2382
+ message: z.ZodOptional<z.ZodString>;
2383
+ }, z.core.$strip>>;
2384
+ dcaParameters: z.ZodOptional<z.ZodObject<{
2385
+ chunkInterval: z.ZodOptional<z.ZodNumber>;
2386
+ numberOfChunks: z.ZodOptional<z.ZodNumber>;
2387
+ }, z.core.$strip>>;
2388
+ maxBoostFeeBps: z.ZodOptional<z.ZodNumber>;
2389
+ refundParameters: z.ZodOptional<z.ZodObject<{
2390
+ minPrice: z.ZodOptional<z.ZodString>;
2391
+ refundAddress: z.ZodOptional<z.ZodString>;
2392
+ retryDuration: z.ZodOptional<z.ZodNumber>;
2393
+ }, z.core.$strip>>;
2394
+ sellAsset: z.ZodObject<{
2395
+ asset: z.ZodString;
2396
+ chain: z.ZodString;
2397
+ }, z.core.$strip>;
2398
+ }, z.core.$strip>>;
2399
+ garden: z.ZodOptional<z.ZodObject<{
2400
+ destinationAddress: z.ZodString;
2401
+ affiliateFees: z.ZodOptional<z.ZodObject<{
2402
+ feeBps: z.ZodNumber;
2403
+ nearId: z.ZodString;
2404
+ }, z.core.$strip>>;
2405
+ buyAsset: z.ZodString;
2406
+ sellAmount: z.ZodString;
2407
+ sellAsset: z.ZodString;
2408
+ slippage: coerce.ZodCoercedNumber<unknown>;
2409
+ sourceAddress: z.ZodString;
2410
+ }, z.core.$strip>>;
2411
+ near: z.ZodOptional<z.ZodObject<{
2412
+ destinationAddress: z.ZodString;
2413
+ affiliateFees: z.ZodOptional<z.ZodObject<{
2414
+ feeBps: z.ZodNumber;
2415
+ nearId: z.ZodString;
2416
+ }, z.core.$strip>>;
2417
+ buyAsset: z.ZodString;
2418
+ sellAmount: z.ZodString;
2419
+ sellAsset: z.ZodString;
2420
+ slippage: coerce.ZodCoercedNumber<unknown>;
2421
+ sourceAddress: z.ZodString;
2422
+ }, z.core.$strip>>;
2423
+ priceImpact: z.ZodOptional<z.ZodNumber>;
2424
+ referrer: z.ZodOptional<z.ZodString>;
2425
+ txType: z.ZodOptional<z.ZodEnum<typeof RouteQuoteTxType>>;
2426
+ }, z.core.$strip>;
2427
+ sourceAddress: z.ZodString;
2428
+ targetAddress: z.ZodOptional<z.ZodString>;
2429
+ tx: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
2430
+ data: z.ZodString;
2431
+ from: z.ZodString;
2432
+ to: z.ZodString;
2433
+ value: z.ZodString;
2434
+ }, z.core.$strip>, z.ZodObject<{
2435
+ accountNumber: z.ZodNumber;
2436
+ chainId: z.ZodEnum<typeof ChainId>;
2437
+ fee: z.ZodObject<{
2438
+ amount: z.ZodArray<z.ZodObject<{
2439
+ amount: z.ZodString;
2440
+ denom: z.ZodString;
2441
+ }, z.core.$strip>>;
2442
+ gas: z.ZodString;
2443
+ }, z.core.$strip>;
2444
+ memo: z.ZodString;
2445
+ msgs: z.ZodArray<z.ZodObject<{
2446
+ typeUrl: z.ZodString;
2447
+ value: z.ZodUnion<[z.ZodObject<{
2448
+ typeUrl: z.ZodString;
2449
+ value: z.ZodObject<{
2450
+ amount: z.ZodArray<z.ZodObject<{
2451
+ amount: z.ZodString;
2452
+ denom: z.ZodString;
2453
+ }, z.core.$strip>>;
2454
+ fromAddress: z.ZodString;
2455
+ toAddress: z.ZodString;
2456
+ }, z.core.$strip>;
2457
+ }, z.core.$strip>, z.ZodObject<{
2458
+ typeUrl: z.ZodString;
2459
+ value: z.ZodObject<{
2460
+ coins: z.ZodArray<z.ZodObject<{
2461
+ amount: z.ZodString;
2462
+ asset: z.ZodObject<{
2463
+ chain: z.ZodString;
2464
+ symbol: z.ZodString;
2465
+ synth: z.ZodBoolean;
2466
+ ticker: z.ZodString;
2467
+ }, z.core.$strip>;
2468
+ }, z.core.$strip>>;
2469
+ memo: z.ZodString;
2470
+ signer: z.ZodString;
2471
+ }, z.core.$strip>;
2472
+ }, z.core.$strip>]>;
2473
+ }, z.core.$strip>>;
2474
+ sequence: z.ZodNumber;
2475
+ }, z.core.$strip>, z.ZodObject<{
2476
+ raw_data: z.ZodObject<{
2477
+ contract: z.ZodAny;
2478
+ expiration: z.ZodNumber;
2479
+ ref_block_bytes: z.ZodString;
2480
+ ref_block_hash: z.ZodString;
2481
+ timestamp: z.ZodNumber;
2482
+ }, z.core.$strip>;
2483
+ raw_data_hex: z.ZodString;
2484
+ txID: z.ZodString;
2485
+ visible: z.ZodBoolean;
2486
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
2487
+ address: z.ZodString;
2488
+ amount: z.ZodString;
2489
+ payload: z.ZodOptional<z.ZodString>;
2490
+ stateInit: z.ZodOptional<z.ZodString>;
2491
+ }, z.core.$strip>>, z.ZodString]>>;
2492
+ txType: z.ZodOptional<z.ZodEnum<typeof RouteQuoteTxType>>;
2493
+ approvalTx: z.ZodOptional<z.ZodObject<{
2494
+ data: z.ZodString;
2495
+ from: z.ZodString;
2496
+ gasLimit: z.ZodOptional<z.ZodString>;
2497
+ gasPrice: z.ZodOptional<z.ZodString>;
2498
+ to: z.ZodString;
2499
+ value: z.ZodString;
2500
+ }, z.core.$strip>>;
2501
+ swapId: z.ZodString;
2502
+ }, z.core.$strip>;
2503
+ export type SwapRouteV2Response = z.infer<typeof SwapRouteV2ResponseSchema>;
1489
2504
  export {};
1490
2505
  //# sourceMappingURL=types.d.ts.map