@polyester/sdk 0.36.0-devnet-20261119184734 → 0.36.0-devnet-20261120015159

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 (199) hide show
  1. package/CHANGELOG.md +18 -2
  2. package/dist/client.d.ts +2 -0
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +2 -0
  5. package/dist/client.js.map +1 -1
  6. package/dist/gen/ai/v1/assistant_pb.d.ts +55 -3
  7. package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
  8. package/dist/gen/ai/v1/assistant_pb.js +8 -1
  9. package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
  10. package/dist/gen/auth/v1/account_scope_pb.d.ts +40 -0
  11. package/dist/gen/auth/v1/account_scope_pb.d.ts.map +1 -0
  12. package/dist/gen/auth/v1/account_scope_pb.js +46 -0
  13. package/dist/gen/auth/v1/account_scope_pb.js.map +1 -0
  14. package/dist/gen/auth/v1/address_book_pb.d.ts +3 -31
  15. package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
  16. package/dist/gen/auth/v1/address_book_pb.js +8 -38
  17. package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
  18. package/dist/gen/auth/v1/auth_pb.d.ts +15 -14
  19. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  20. package/dist/gen/auth/v1/auth_pb.js +16 -15
  21. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  22. package/dist/gen/auth/v1/connected_apps_pb.d.ts +59 -58
  23. package/dist/gen/auth/v1/connected_apps_pb.d.ts.map +1 -1
  24. package/dist/gen/auth/v1/connected_apps_pb.js +38 -37
  25. package/dist/gen/auth/v1/connected_apps_pb.js.map +1 -1
  26. package/dist/gen/auth/v1/policies_pb.d.ts +27 -1
  27. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  28. package/dist/gen/auth/v1/policies_pb.js +27 -1
  29. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  30. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +228 -2
  31. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  32. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +32 -8
  33. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  34. package/dist/gen/changelog/v1/changelog_pb.d.ts +16 -4
  35. package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -1
  36. package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
  37. package/dist/gen/index.d.ts +7 -5
  38. package/dist/gen/index.js +7 -5
  39. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +288 -2
  40. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  41. package/dist/gen/marketdata/v1/marketdata_pb.js +115 -2
  42. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  43. package/dist/gen/orders/v1/orders_pb.d.ts +78 -25
  44. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  45. package/dist/gen/orders/v1/orders_pb.js +36 -7
  46. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  47. package/dist/gen/orders/v1/orders_read_pb.d.ts +35 -1
  48. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  49. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  50. package/dist/gen/strategies/v1/strategies_pb.d.ts +2928 -0
  51. package/dist/gen/strategies/v1/strategies_pb.d.ts.map +1 -0
  52. package/dist/gen/strategies/v1/strategies_pb.js +818 -0
  53. package/dist/gen/strategies/v1/strategies_pb.js.map +1 -0
  54. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +38 -17
  55. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  56. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +4 -1
  57. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  58. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +312 -132
  59. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts.map +1 -1
  60. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js +31 -26
  61. package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js.map +1 -1
  62. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +28 -13
  63. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  64. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +2 -2
  65. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  66. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +109 -2
  67. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -1
  68. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +23 -3
  69. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -1
  70. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +3 -2
  71. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
  72. package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
  73. package/dist/gen/triggers/v1/triggers_pb.d.ts +61 -11
  74. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  75. package/dist/gen/triggers/v1/triggers_pb.js +4 -2
  76. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  77. package/dist/index.d.ts +9 -6
  78. package/dist/services/account-activity/account-activity.schemas.d.ts +6 -6
  79. package/dist/services/address-book/address-book.codecs.js +1 -0
  80. package/dist/services/address-book/address-book.codecs.js.map +1 -1
  81. package/dist/services/address-book/address-book.js +1 -1
  82. package/dist/services/api-keys/api-keys.js +1 -1
  83. package/dist/services/assistant/assistant-events.schemas.d.ts +141 -43
  84. package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
  85. package/dist/services/assistant/assistant-events.schemas.js +15 -5
  86. package/dist/services/assistant/assistant-events.schemas.js.map +1 -1
  87. package/dist/services/assistant/assistant.codecs.d.ts +5 -2
  88. package/dist/services/assistant/assistant.codecs.d.ts.map +1 -1
  89. package/dist/services/assistant/assistant.codecs.js +10 -2
  90. package/dist/services/assistant/assistant.codecs.js.map +1 -1
  91. package/dist/services/assistant/assistant.schemas.d.ts +2 -2
  92. package/dist/services/auth/auth.js +1 -1
  93. package/dist/services/auth/auth.js.map +1 -1
  94. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +16 -16
  95. package/dist/services/balances/balances.js +1 -1
  96. package/dist/services/balances/balances.schemas.d.ts +3 -3
  97. package/dist/services/candles/candles.schemas.d.ts +10 -10
  98. package/dist/services/changelog/changelog.schemas.d.ts +38 -38
  99. package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
  100. package/dist/services/claims/claims.schemas.d.ts +2 -2
  101. package/dist/services/connected-apps/connected-apps.d.ts +4 -4
  102. package/dist/services/connected-apps/connected-apps.d.ts.map +1 -1
  103. package/dist/services/connected-apps/connected-apps.js +13 -13
  104. package/dist/services/connected-apps/connected-apps.js.map +1 -1
  105. package/dist/services/connected-apps/connected-apps.schemas.d.ts +7 -7
  106. package/dist/services/connected-apps/connected-apps.schemas.d.ts.map +1 -1
  107. package/dist/services/connected-apps/connected-apps.schemas.js +10 -10
  108. package/dist/services/connected-apps/connected-apps.schemas.js.map +1 -1
  109. package/dist/services/connected-apps/connected-apps.types.d.ts +2 -2
  110. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +8 -8
  111. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  112. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +6 -6
  113. package/dist/services/lifecycle/lifecycle.schemas.d.ts +94 -94
  114. package/dist/services/market-data/market-data.codecs.d.ts +9 -1
  115. package/dist/services/market-data/market-data.codecs.d.ts.map +1 -1
  116. package/dist/services/market-data/market-data.codecs.js +14 -1
  117. package/dist/services/market-data/market-data.codecs.js.map +1 -1
  118. package/dist/services/market-data/market-data.d.ts +9 -1
  119. package/dist/services/market-data/market-data.d.ts.map +1 -1
  120. package/dist/services/market-data/market-data.js +14 -1
  121. package/dist/services/market-data/market-data.js.map +1 -1
  122. package/dist/services/market-data/market-data.schemas.d.ts +40 -2
  123. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  124. package/dist/services/market-data/market-data.schemas.js +43 -8
  125. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  126. package/dist/services/market-data/market-data.types.d.ts +3 -3
  127. package/dist/services/notifications/notifications.schemas.d.ts +4 -4
  128. package/dist/services/orderbook/orderbook.d.ts.map +1 -1
  129. package/dist/services/orderbook/orderbook.js +5 -19
  130. package/dist/services/orderbook/orderbook.js.map +1 -1
  131. package/dist/services/orders/order-errors.schemas.d.ts +6 -6
  132. package/dist/services/orders/orders-batch.schemas.d.ts +72 -72
  133. package/dist/services/orders/orders-input.schemas.d.ts +10 -10
  134. package/dist/services/orders/orders-output.schemas.d.ts +16 -16
  135. package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
  136. package/dist/services/orders/orders-output.schemas.js +1 -1
  137. package/dist/services/orders/orders-output.schemas.js.map +1 -1
  138. package/dist/services/orders/orders.d.ts +5 -0
  139. package/dist/services/orders/orders.d.ts.map +1 -1
  140. package/dist/services/orders/orders.js +5 -0
  141. package/dist/services/orders/orders.js.map +1 -1
  142. package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
  143. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  144. package/dist/services/policies/shared.codecs.js +13 -4
  145. package/dist/services/policies/shared.codecs.js.map +1 -1
  146. package/dist/services/policies/shared.d.ts +1 -1
  147. package/dist/services/policies/subaccount-policies/subaccount-policies.js +1 -1
  148. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
  149. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  150. package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
  151. package/dist/services/strategies/service.d.ts +8 -0
  152. package/dist/services/strategies/service.d.ts.map +1 -0
  153. package/dist/services/strategies/service.js +9 -0
  154. package/dist/services/strategies/service.js.map +1 -0
  155. package/dist/services/strategies/strategies.codecs.d.ts +15 -0
  156. package/dist/services/strategies/strategies.codecs.d.ts.map +1 -0
  157. package/dist/services/strategies/strategies.codecs.js +50 -0
  158. package/dist/services/strategies/strategies.codecs.js.map +1 -0
  159. package/dist/services/strategies/strategies.d.ts +75 -0
  160. package/dist/services/strategies/strategies.d.ts.map +1 -0
  161. package/dist/services/strategies/strategies.js +135 -0
  162. package/dist/services/strategies/strategies.js.map +1 -0
  163. package/dist/services/strategies/strategies.schemas.d.ts +568 -0
  164. package/dist/services/strategies/strategies.schemas.d.ts.map +1 -0
  165. package/dist/services/strategies/strategies.schemas.js +408 -0
  166. package/dist/services/strategies/strategies.schemas.js.map +1 -0
  167. package/dist/services/strategies/strategies.types.d.ts +3 -0
  168. package/dist/services/subaccounts/subaccounts.js +2 -2
  169. package/dist/services/subaccounts/subaccounts.schemas.d.ts +8 -8
  170. package/dist/services/system/system.schemas.d.ts +13 -13
  171. package/dist/services/trades/trades.schemas.d.ts +1 -1
  172. package/dist/services/trading-withdraws/trading-withdraws.d.ts +29 -2
  173. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  174. package/dist/services/trading-withdraws/trading-withdraws.js +74 -11
  175. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  176. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +85 -1
  177. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  178. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +56 -1
  179. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  180. package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +3 -3
  181. package/dist/services/trading-withdraws/wallet-message.js +29 -1
  182. package/dist/services/trading-withdraws/wallet-message.js.map +1 -1
  183. package/dist/services/transfers/transfers.js +1 -1
  184. package/dist/services/transfers/transfers.schemas.d.ts +1 -1
  185. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  186. package/dist/services/triggers/triggers-output.schemas.d.ts +44 -44
  187. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  188. package/dist/shared/connect-error-mapping.js +5 -0
  189. package/dist/shared/connect-error-mapping.js.map +1 -1
  190. package/dist/shared/error-detail.d.ts +25 -2
  191. package/dist/shared/error-detail.d.ts.map +1 -1
  192. package/dist/shared/error-detail.js +1 -0
  193. package/dist/shared/error-detail.js.map +1 -1
  194. package/dist/shared/error-details/strategies.js +36 -0
  195. package/dist/shared/error-details/strategies.js.map +1 -0
  196. package/dist/wired-services.d.ts.map +1 -1
  197. package/dist/wired-services.js +6 -4
  198. package/dist/wired-services.js.map +1 -1
  199. package/package.json +1 -1
@@ -1,10 +1,9 @@
1
1
  import { TokenAmount } from "./quickswap_pb.js";
2
- import { AssetVolume } from "./quickswap_broker_pb.js";
3
2
  import { Message } from "@bufbuild/protobuf";
4
3
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
5
4
  import { Timestamp } from "@bufbuild/protobuf/wkt";
6
5
  declare namespace quickswap_explorer_pb_d_exports {
7
- export { ExplorerDeposit, ExplorerDepositSchema, ExplorerQuickSwap, ExplorerQuickSwapSchema, ExplorerRouteLeg, ExplorerRouteLegSchema, ExplorerWithdrawal, ExplorerWithdrawalSchema, GetQuickSwapStatsRequest, GetQuickSwapStatsRequestSchema, GetQuickSwapStatsResponse, GetQuickSwapStatsResponseSchema, ListCompletedQuickSwapsRequest, ListCompletedQuickSwapsRequestSchema, ListCompletedQuickSwapsResponse, ListCompletedQuickSwapsResponseSchema, QuickSwapExplorerService, QuickSwapRouteStats, QuickSwapRouteStatsSchema, QuickSwapStatsBucket, QuickSwapStatsBucketSchema, QuickSwapStatsBucketSize, QuickSwapStatsBucketSizeSchema, QuickSwapStatsTotals, QuickSwapStatsTotalsSchema, QuickSwapStatsWindow, QuickSwapStatsWindowSchema, ZippedAssetVolume, ZippedAssetVolumeSchema, file_swap_quickswap_v1_quickswap_explorer };
6
+ export { ExplorerDeposit, ExplorerDepositSchema, ExplorerQuickSwap, ExplorerQuickSwapSchema, ExplorerRouteLeg, ExplorerRouteLegSchema, ExplorerWithdrawal, ExplorerWithdrawalSchema, GetCompletedQuickSwapRequest, GetCompletedQuickSwapRequestSchema, GetCompletedQuickSwapResponse, GetCompletedQuickSwapResponseSchema, GetQuickSwapStatsRequest, GetQuickSwapStatsRequestSchema, GetQuickSwapStatsResponse, GetQuickSwapStatsResponseSchema, ListCompletedQuickSwapsRequest, ListCompletedQuickSwapsRequestSchema, ListCompletedQuickSwapsResponse, ListCompletedQuickSwapsResponseSchema, QuickSwapExplorerService, QuickSwapStatsBucketSize, QuickSwapStatsBucketSizeSchema, QuickSwapStatsBuckets, QuickSwapStatsBucketsSchema, QuickSwapStatsRoutes, QuickSwapStatsRoutesSchema, QuickSwapStatsTotals, QuickSwapStatsTotalsSchema, QuickSwapStatsWindow, QuickSwapStatsWindowSchema, file_swap_quickswap_v1_quickswap_explorer };
8
7
  }
9
8
  /**
10
9
  * Describes the file swap/quickswap/v1/quickswap_explorer.proto.
@@ -160,6 +159,25 @@ type ExplorerQuickSwap = Message<"swap.quickswap.v1.ExplorerQuickSwap"> & {
160
159
  * @generated from field: repeated swap.quickswap.v1.ExplorerWithdrawal withdrawals = 9;
161
160
  */
162
161
  withdrawals: ExplorerWithdrawal[];
162
+ /**
163
+ * USD value of the deposit taken into execution, fixed when it was taken
164
+ * in, as QuickSwap.deposited_value_usd: in base units of 18 decimals,
165
+ * rounded down, never repriced. Unset when it has none: not valued by a
166
+ * current price in time, or from before USD values existed; never zero
167
+ * for unknown.
168
+ *
169
+ * @generated from field: swap.quickswap.v1.TokenAmount source_value_usd = 10;
170
+ */
171
+ sourceValueUsd?: TokenAmount | undefined;
172
+ /**
173
+ * USD value of what the destination was paid, fixed when its payout was
174
+ * requested, as QuickSwap.delivered_value_usd. Like source_value_usd, it
175
+ * is unset when it has none, and can be set a few minutes after
176
+ * completed_at.
177
+ *
178
+ * @generated from field: swap.quickswap.v1.TokenAmount destination_value_usd = 11;
179
+ */
180
+ destinationValueUsd?: TokenAmount | undefined;
163
181
  };
164
182
  /**
165
183
  * Describes the message swap.quickswap.v1.ExplorerQuickSwap.
@@ -167,25 +185,43 @@ type ExplorerQuickSwap = Message<"swap.quickswap.v1.ExplorerQuickSwap"> & {
167
185
  */
168
186
  declare const ExplorerQuickSwapSchema: GenMessage<ExplorerQuickSwap>;
169
187
  /**
170
- * ListCompletedQuickSwapsRequest lists completed QuickSwaps of every broker.
188
+ * ListCompletedQuickSwapsRequest lists completed QuickSwaps of every broker,
189
+ * optionally only those matching every filter given. A side's filters match
190
+ * a QuickSwap whose asset and network is any of its zipped_asset_ids, or on
191
+ * any network of any of its asset_ids. The source and destination
192
+ * filters together may select at most 400 routes (source and destination
193
+ * asset and network pairs), counting each asset_id as all its networks.
194
+ * QuickSwaps created before the Explorer launched never match an asset
195
+ * filter, and those without a source_value_usd never match a USD bound.
196
+ *
197
+ * A USD bound is 0 or 1, 2 or 5 times a power of ten dollars from $1 to
198
+ * $1,000,000,000: $1, $2, $5, $10, $20, $50, $100 and so on. With a USD
199
+ * bound, the list holds only QuickSwaps that completed at least 5 minutes
200
+ * before it is read, when their source_value_usd is final, so it lags
201
+ * completion by up to 5 minutes. The routes times the value steps the range
202
+ * covers may be at most 400, counted from the request alone: the steps run
203
+ * $0 to $1, $1 to $2, $2 to $5, $5 to $10 and so on up to $1,000,000,000 and
204
+ * above, the last one, so a range without a maximum covers the steps from
205
+ * its minimum to the last.
171
206
  *
172
207
  * @generated from message swap.quickswap.v1.ListCompletedQuickSwapsRequest
173
208
  */
174
209
  type ListCompletedQuickSwapsRequest = Message<"swap.quickswap.v1.ListCompletedQuickSwapsRequest"> & {
175
210
  /**
176
- * Only QuickSwaps from this source asset and network, as a zipped_asset_id;
177
- * 0 for every source.
211
+ * Only QuickSwaps from one of these source assets and networks, as
212
+ * AssetChainVariant.zipped_asset_id values from
213
+ * GET /v1/chain/deposit-withdraw/config; at most 20.
178
214
  *
179
- * @generated from field: uint32 source_zipped_asset_id = 1;
215
+ * @generated from field: repeated uint32 source_zipped_asset_ids = 1;
180
216
  */
181
- sourceZippedAssetId: number;
217
+ sourceZippedAssetIds: number[];
182
218
  /**
183
- * Only QuickSwaps to this destination asset and network, as a
184
- * zipped_asset_id; 0 for every destination.
219
+ * Only QuickSwaps to one of these destination assets and networks, as
220
+ * source_zipped_asset_ids; at most 20.
185
221
  *
186
- * @generated from field: uint32 destination_zipped_asset_id = 2;
222
+ * @generated from field: repeated uint32 destination_zipped_asset_ids = 2;
187
223
  */
188
- destinationZippedAssetId: number;
224
+ destinationZippedAssetIds: number[];
189
225
  /**
190
226
  * Maximum number of QuickSwaps to return; 0 means 50, at most 100.
191
227
  *
@@ -194,12 +230,47 @@ type ListCompletedQuickSwapsRequest = Message<"swap.quickswap.v1.ListCompletedQu
194
230
  limit: number;
195
231
  /**
196
232
  * Opaque keyset cursor from a previous next_page_token, exclusive, bound
197
- * to the asset filters and the newest-first order. Reuse it with the same
198
- * filters. Empty for the first page.
233
+ * to the filters, the networks their asset IDs covered and the
234
+ * newest-first order. Reuse it with the same filters. If a network was
235
+ * added to or removed from one of the asset IDs since the first page, it
236
+ * is PAGE_TOKEN_INVALID: request the first page again. Empty for the first
237
+ * page.
199
238
  *
200
239
  * @generated from field: string page_token = 4;
201
240
  */
202
241
  pageToken: string;
242
+ /**
243
+ * Only QuickSwaps from one of these assets, on any of their networks, as
244
+ * AssetConfig.ledger_id values from GET /v1/chain/deposit-withdraw/config;
245
+ * at most 20.
246
+ *
247
+ * @generated from field: repeated uint32 source_asset_ids = 5;
248
+ */
249
+ sourceAssetIds: number[];
250
+ /**
251
+ * Only QuickSwaps to one of these assets, on any of their networks, as
252
+ * source_asset_ids; at most 20.
253
+ *
254
+ * @generated from field: repeated uint32 destination_asset_ids = 6;
255
+ */
256
+ destinationAssetIds: number[];
257
+ /**
258
+ * Only QuickSwaps whose source_value_usd is at least this: a bound on the
259
+ * grid, in base units of 18 decimals as source_value_usd.base_units, for
260
+ * example 100000000000000000000 for $100. Unset (empty) for no lower
261
+ * bound.
262
+ *
263
+ * @generated from field: string min_source_value_usd = 7;
264
+ */
265
+ minSourceValueUsd: string;
266
+ /**
267
+ * Only QuickSwaps whose source_value_usd is below this: a bound on the
268
+ * grid, in base units of 18 decimals, above min_source_value_usd when both
269
+ * are set, so never 0 alone. Unset (empty) for no upper bound.
270
+ *
271
+ * @generated from field: string max_source_value_usd = 8;
272
+ */
273
+ maxSourceValueUsd: string;
203
274
  };
204
275
  /**
205
276
  * Describes the message swap.quickswap.v1.ListCompletedQuickSwapsRequest.
@@ -234,38 +305,57 @@ type ListCompletedQuickSwapsResponse = Message<"swap.quickswap.v1.ListCompletedQ
234
305
  */
235
306
  declare const ListCompletedQuickSwapsResponseSchema: GenMessage<ListCompletedQuickSwapsResponse>;
236
307
  /**
237
- * ZippedAssetVolume is a total amount of one asset on one network.
308
+ * GetCompletedQuickSwapRequest reads one completed QuickSwap of any broker.
238
309
  *
239
- * @generated from message swap.quickswap.v1.ZippedAssetVolume
310
+ * @generated from message swap.quickswap.v1.GetCompletedQuickSwapRequest
240
311
  */
241
- type ZippedAssetVolume = Message<"swap.quickswap.v1.ZippedAssetVolume"> & {
312
+ type GetCompletedQuickSwapRequest = Message<"swap.quickswap.v1.GetCompletedQuickSwapRequest"> & {
242
313
  /**
243
- * Asset and network, as an AssetChainVariant.zipped_asset_id from
244
- * GET /v1/chain/deposit-withdraw/config.
314
+ * Public QuickSwap identifier. 0, which no QuickSwap has, is
315
+ * SWAP_NOT_FOUND like any other identifier no completed QuickSwap has.
245
316
  *
246
- * @generated from field: uint32 zipped_asset_id = 1;
317
+ * @generated from field: fixed64 swap_id = 1;
247
318
  */
248
- zippedAssetId: number;
319
+ swapId: bigint;
320
+ };
321
+ /**
322
+ * Describes the message swap.quickswap.v1.GetCompletedQuickSwapRequest.
323
+ * Use `create(GetCompletedQuickSwapRequestSchema)` to create a new message.
324
+ */
325
+ declare const GetCompletedQuickSwapRequestSchema: GenMessage<GetCompletedQuickSwapRequest>;
326
+ /**
327
+ * GetCompletedQuickSwapResponse returns one completed QuickSwap.
328
+ *
329
+ * @generated from message swap.quickswap.v1.GetCompletedQuickSwapResponse
330
+ */
331
+ type GetCompletedQuickSwapResponse = Message<"swap.quickswap.v1.GetCompletedQuickSwapResponse"> & {
249
332
  /**
250
- * Exact total, in that asset's token units.
333
+ * The QuickSwap, as ListCompletedQuickSwaps lists it.
251
334
  *
252
- * @generated from field: swap.quickswap.v1.TokenAmount amount = 2;
335
+ * @generated from field: swap.quickswap.v1.ExplorerQuickSwap quick_swap = 1;
253
336
  */
254
- amount?: TokenAmount | undefined;
337
+ quickSwap?: ExplorerQuickSwap | undefined;
255
338
  };
256
339
  /**
257
- * Describes the message swap.quickswap.v1.ZippedAssetVolume.
258
- * Use `create(ZippedAssetVolumeSchema)` to create a new message.
340
+ * Describes the message swap.quickswap.v1.GetCompletedQuickSwapResponse.
341
+ * Use `create(GetCompletedQuickSwapResponseSchema)` to create a new message.
259
342
  */
260
- declare const ZippedAssetVolumeSchema: GenMessage<ZippedAssetVolume>;
343
+ declare const GetCompletedQuickSwapResponseSchema: GenMessage<GetCompletedQuickSwapResponse>;
261
344
  /**
262
345
  * QuickSwapStatsTotals are the totals of the completed QuickSwaps of a
263
- * period, counted by completion time. Every list has one entry per asset
264
- * with a non-zero total, in ascending ID order. The USD values are fixed when
265
- * each amount happened: a deposit when it was taken into execution, a
266
- * delivery when its payout was requested and a fee when it was charged. Each
267
- * is valued once, within minutes, and never repriced, so a past period keeps
268
- * its value.
346
+ * period, counted by completion time. Each per-asset list is parallel to a
347
+ * list of the response: source_volume and destination_volume to
348
+ * GetQuickSwapStatsResponse.zipped_asset_ids, the fee lists to
349
+ * GetQuickSwapStatsResponse.fee_asset_ids, with "0" or 0 for an asset with
350
+ * nothing in this period.
351
+ *
352
+ * USD values are decimal strings of base units of 18 decimals, rounded down,
353
+ * and fixed when each amount happened: a deposit when it was taken into
354
+ * execution, a delivery when its payout was requested and a fee when it was
355
+ * charged. Each is valued once, within minutes, and never repriced, so a
356
+ * past period keeps its value. An amount without a USD value is left out of
357
+ * the USD sums and counted in unvalued_count or fees_unvalued_count: a
358
+ * count equal to the amounts counted means none was valued.
269
359
  *
270
360
  * @generated from message swap.quickswap.v1.QuickSwapStatsTotals
271
361
  */
@@ -273,60 +363,73 @@ type QuickSwapStatsTotals = Message<"swap.quickswap.v1.QuickSwapStatsTotals"> &
273
363
  /**
274
364
  * Completed QuickSwaps.
275
365
  *
276
- * @generated from field: uint64 swap_count = 1;
366
+ * @generated from field: uint32 swap_count = 1;
277
367
  */
278
- swapCount: bigint;
368
+ swapCount: number;
279
369
  /**
280
- * Amounts deposited, per source asset and network.
370
+ * Completed QuickSwaps whose deposited or delivered amount has no USD
371
+ * value, and so is left out of source_volume_usd or
372
+ * destination_volume_usd: not valued by a current price in time, or from
373
+ * before USD values existed.
281
374
  *
282
- * @generated from field: repeated swap.quickswap.v1.ZippedAssetVolume source_volume = 2;
375
+ * @generated from field: uint32 unvalued_count = 2;
283
376
  */
284
- sourceVolume: ZippedAssetVolume[];
377
+ unvaluedCount: number;
285
378
  /**
286
- * Amounts delivered, per destination asset and network.
379
+ * USD value of the deposited amounts that have one.
287
380
  *
288
- * @generated from field: repeated swap.quickswap.v1.ZippedAssetVolume destination_volume = 3;
381
+ * @generated from field: string source_volume_usd = 3;
289
382
  */
290
- destinationVolume: ZippedAssetVolume[];
383
+ sourceVolumeUsd: string;
291
384
  /**
292
- * Fees charged on those QuickSwaps, per asset: the service, broker,
293
- * affiliate and referral fees actually charged, summed over every broker.
294
- * Network fees are not included. Each asset is an AssetConfig.ledger_id
295
- * from GET /v1/chain/deposit-withdraw/config, in base units of 18
296
- * decimals. Each entry carries its USD value.
385
+ * USD value of the delivered amounts that have one.
297
386
  *
298
- * @generated from field: repeated swap.quickswap.v1.AssetVolume fees = 4;
387
+ * @generated from field: string destination_volume_usd = 4;
299
388
  */
300
- fees: AssetVolume[];
389
+ destinationVolumeUsd: string;
301
390
  /**
302
- * USD value of the deposited amounts that have one, in base units of 18
303
- * decimals, rounded down; unset when none has; never zero for unknown.
391
+ * USD value of the fees that have one.
304
392
  *
305
- * @generated from field: swap.quickswap.v1.TokenAmount source_volume_usd = 5;
393
+ * @generated from field: string fees_usd = 5;
306
394
  */
307
- sourceVolumeUsd?: TokenAmount | undefined;
395
+ feesUsd: string;
308
396
  /**
309
- * USD value of the delivered amounts that have one, as source_volume_usd.
397
+ * Exact amounts deposited, per source asset and network, as decimal
398
+ * strings of that asset's base units (zipped_asset_decimals), before the
399
+ * deposit network fee.
310
400
  *
311
- * @generated from field: swap.quickswap.v1.TokenAmount destination_volume_usd = 6;
401
+ * @generated from field: repeated string source_volume = 6;
312
402
  */
313
- destinationVolumeUsd?: TokenAmount | undefined;
403
+ sourceVolume: string[];
314
404
  /**
315
- * USD value of the fees that have one, as source_volume_usd.
405
+ * Exact amounts delivered, per destination asset and network, as decimal
406
+ * strings of that asset's base units, after the withdrawal network fee.
316
407
  *
317
- * @generated from field: swap.quickswap.v1.TokenAmount fees_usd = 7;
408
+ * @generated from field: repeated string destination_volume = 7;
318
409
  */
319
- feesUsd?: TokenAmount | undefined;
410
+ destinationVolume: string[];
320
411
  /**
321
- * Completed QuickSwaps counted here whose deposited or delivered amount
322
- * has no USD value, and so is left out of source_volume_usd or
323
- * destination_volume_usd: not valued by a current price in time, or from
324
- * before USD values existed. Fees without one are counted per asset, in
325
- * fees. Zero when the volume USD totals cover every QuickSwap.
412
+ * Fees charged on those QuickSwaps, per fee asset: the service, broker,
413
+ * affiliate and referral fees actually charged, summed over every broker,
414
+ * as decimal strings of base units of 18 decimals. Network fees are not
415
+ * included.
416
+ *
417
+ * @generated from field: repeated string fees = 8;
418
+ */
419
+ fees: string[];
420
+ /**
421
+ * USD value of each fee asset's fees that have one.
422
+ *
423
+ * @generated from field: repeated string fees_usd_by_asset = 9;
424
+ */
425
+ feesUsdByAsset: string[];
426
+ /**
427
+ * Fees of each fee asset without a USD value, left out of
428
+ * fees_usd_by_asset and fees_usd.
326
429
  *
327
- * @generated from field: uint64 unvalued_count = 8;
430
+ * @generated from field: repeated uint32 fees_unvalued_count = 10;
328
431
  */
329
- unvaluedCount: bigint;
432
+ feesUnvaluedCount: number[];
330
433
  };
331
434
  /**
332
435
  * Describes the message swap.quickswap.v1.QuickSwapStatsTotals.
@@ -334,92 +437,124 @@ type QuickSwapStatsTotals = Message<"swap.quickswap.v1.QuickSwapStatsTotals"> &
334
437
  */
335
438
  declare const QuickSwapStatsTotalsSchema: GenMessage<QuickSwapStatsTotals>;
336
439
  /**
337
- * QuickSwapStatsBucket is one bucket of the time series.
440
+ * QuickSwapStatsBuckets is the window's time series in columns: entry i of
441
+ * every list is bucket i, oldest first, with every bucket of the window,
442
+ * empty ones included. Bucket i starts at start_time plus i bucket lengths,
443
+ * inclusive, and ends where the next one starts. Per-asset amounts are only
444
+ * in the totals.
338
445
  *
339
- * @generated from message swap.quickswap.v1.QuickSwapStatsBucket
446
+ * @generated from message swap.quickswap.v1.QuickSwapStatsBuckets
340
447
  */
341
- type QuickSwapStatsBucket = Message<"swap.quickswap.v1.QuickSwapStatsBucket"> & {
448
+ type QuickSwapStatsBuckets = Message<"swap.quickswap.v1.QuickSwapStatsBuckets"> & {
342
449
  /**
343
- * Start of the bucket, inclusive; it ends where the next one starts.
450
+ * Completed QuickSwaps.
344
451
  *
345
- * @generated from field: google.protobuf.Timestamp start_time = 1;
452
+ * @generated from field: repeated uint32 swap_count = 1;
346
453
  */
347
- startTime?: Timestamp | undefined;
454
+ swapCount: number[];
348
455
  /**
349
- * Totals of the QuickSwaps that completed in the bucket.
456
+ * Completed QuickSwaps whose deposited or delivered amount has no USD
457
+ * value, as QuickSwapStatsTotals.unvalued_count.
350
458
  *
351
- * @generated from field: swap.quickswap.v1.QuickSwapStatsTotals totals = 2;
459
+ * @generated from field: repeated uint32 unvalued_count = 2;
352
460
  */
353
- totals?: QuickSwapStatsTotals | undefined;
461
+ unvaluedCount: number[];
462
+ /**
463
+ * USD value of the deposited amounts that have one, as
464
+ * QuickSwapStatsTotals.source_volume_usd.
465
+ *
466
+ * @generated from field: repeated string source_volume_usd = 3;
467
+ */
468
+ sourceVolumeUsd: string[];
469
+ /**
470
+ * USD value of the delivered amounts that have one.
471
+ *
472
+ * @generated from field: repeated string destination_volume_usd = 4;
473
+ */
474
+ destinationVolumeUsd: string[];
475
+ /**
476
+ * USD value of the fees that have one.
477
+ *
478
+ * @generated from field: repeated string fees_usd = 5;
479
+ */
480
+ feesUsd: string[];
481
+ /**
482
+ * Fees without a USD value, left out of fees_usd.
483
+ *
484
+ * @generated from field: repeated uint32 fees_unvalued_count = 6;
485
+ */
486
+ feesUnvaluedCount: number[];
354
487
  };
355
488
  /**
356
- * Describes the message swap.quickswap.v1.QuickSwapStatsBucket.
357
- * Use `create(QuickSwapStatsBucketSchema)` to create a new message.
489
+ * Describes the message swap.quickswap.v1.QuickSwapStatsBuckets.
490
+ * Use `create(QuickSwapStatsBucketsSchema)` to create a new message.
358
491
  */
359
- declare const QuickSwapStatsBucketSchema: GenMessage<QuickSwapStatsBucket>;
492
+ declare const QuickSwapStatsBucketsSchema: GenMessage<QuickSwapStatsBuckets>;
360
493
  /**
361
- * QuickSwapRouteStats are the totals of one route over the window.
494
+ * QuickSwapStatsRoutes are the totals of every route with a completed
495
+ * QuickSwap in the window, in columns: entry i of every list is route i,
496
+ * in ascending source then destination order. Amounts are decimal strings
497
+ * of each asset's base units (GetQuickSwapStatsResponse.zipped_asset_ids and
498
+ * zipped_asset_decimals); USD values as in QuickSwapStatsTotals.
362
499
  *
363
- * @generated from message swap.quickswap.v1.QuickSwapRouteStats
500
+ * @generated from message swap.quickswap.v1.QuickSwapStatsRoutes
364
501
  */
365
- type QuickSwapRouteStats = Message<"swap.quickswap.v1.QuickSwapRouteStats"> & {
502
+ type QuickSwapStatsRoutes = Message<"swap.quickswap.v1.QuickSwapStatsRoutes"> & {
366
503
  /**
367
- * Source asset and network, as a zipped_asset_id.
504
+ * Source asset and network of each route, as a zipped_asset_id.
368
505
  *
369
- * @generated from field: uint32 source_zipped_asset_id = 1;
506
+ * @generated from field: repeated uint32 source_zipped_asset_ids = 1;
370
507
  */
371
- sourceZippedAssetId: number;
508
+ sourceZippedAssetIds: number[];
372
509
  /**
373
- * Destination asset and network, as a zipped_asset_id.
510
+ * Destination asset and network of each route, as a zipped_asset_id.
374
511
  *
375
- * @generated from field: uint32 destination_zipped_asset_id = 2;
512
+ * @generated from field: repeated uint32 destination_zipped_asset_ids = 2;
376
513
  */
377
- destinationZippedAssetId: number;
514
+ destinationZippedAssetIds: number[];
378
515
  /**
379
516
  * Completed QuickSwaps on the route.
380
517
  *
381
- * @generated from field: uint64 swap_count = 3;
518
+ * @generated from field: repeated uint32 swap_count = 3;
382
519
  */
383
- swapCount: bigint;
520
+ swapCount: number[];
384
521
  /**
385
- * Exact amount deposited, in source token units.
522
+ * Completed QuickSwaps on the route whose deposited or delivered amount
523
+ * has no USD value, and so is left out of the USD values.
386
524
  *
387
- * @generated from field: swap.quickswap.v1.TokenAmount source_volume = 4;
525
+ * @generated from field: repeated uint32 unvalued_count = 4;
388
526
  */
389
- sourceVolume?: TokenAmount | undefined;
527
+ unvaluedCount: number[];
390
528
  /**
391
- * Exact amount delivered, in destination token units.
529
+ * Exact amount deposited, in source token units.
392
530
  *
393
- * @generated from field: swap.quickswap.v1.TokenAmount destination_volume = 5;
531
+ * @generated from field: repeated string source_volume = 5;
394
532
  */
395
- destinationVolume?: TokenAmount | undefined;
533
+ sourceVolume: string[];
396
534
  /**
397
- * USD value of the deposited amounts that have one, as
398
- * QuickSwapStatsTotals.source_volume_usd.
535
+ * Exact amount delivered, in destination token units.
399
536
  *
400
- * @generated from field: swap.quickswap.v1.TokenAmount source_volume_usd = 6;
537
+ * @generated from field: repeated string destination_volume = 6;
401
538
  */
402
- sourceVolumeUsd?: TokenAmount | undefined;
539
+ destinationVolume: string[];
403
540
  /**
404
- * USD value of the delivered amounts that have one, as
405
- * QuickSwapStatsTotals.destination_volume_usd.
541
+ * USD value of the deposited amounts that have one.
406
542
  *
407
- * @generated from field: swap.quickswap.v1.TokenAmount destination_volume_usd = 7;
543
+ * @generated from field: repeated string source_volume_usd = 7;
408
544
  */
409
- destinationVolumeUsd?: TokenAmount | undefined;
545
+ sourceVolumeUsd: string[];
410
546
  /**
411
- * Completed QuickSwaps on the route whose deposited or delivered amount
412
- * has no USD value, and so is left out of the USD fields.
547
+ * USD value of the delivered amounts that have one.
413
548
  *
414
- * @generated from field: uint64 unvalued_count = 8;
549
+ * @generated from field: repeated string destination_volume_usd = 8;
415
550
  */
416
- unvaluedCount: bigint;
551
+ destinationVolumeUsd: string[];
417
552
  };
418
553
  /**
419
- * Describes the message swap.quickswap.v1.QuickSwapRouteStats.
420
- * Use `create(QuickSwapRouteStatsSchema)` to create a new message.
554
+ * Describes the message swap.quickswap.v1.QuickSwapStatsRoutes.
555
+ * Use `create(QuickSwapStatsRoutesSchema)` to create a new message.
421
556
  */
422
- declare const QuickSwapRouteStatsSchema: GenMessage<QuickSwapRouteStats>;
557
+ declare const QuickSwapStatsRoutesSchema: GenMessage<QuickSwapStatsRoutes>;
423
558
  /**
424
559
  * GetQuickSwapStatsRequest reads the statistics of one window.
425
560
  *
@@ -440,8 +575,10 @@ type GetQuickSwapStatsRequest = Message<"swap.quickswap.v1.GetQuickSwapStatsRequ
440
575
  declare const GetQuickSwapStatsRequestSchema: GenMessage<GetQuickSwapStatsRequest>;
441
576
  /**
442
577
  * GetQuickSwapStatsResponse is the activity of completed QuickSwaps of every
443
- * broker over a window, with the window just before it for comparison.
444
- * Amounts are exact, with their USD values fixed when they happened.
578
+ * broker over a window, with the window just before it for comparison, in
579
+ * columns: each asset is listed once, with its decimals, and the per-asset
580
+ * lists of the totals are parallel to that list. Amounts are exact, with
581
+ * their USD values fixed when they happened.
445
582
  *
446
583
  * @generated from message swap.quickswap.v1.GetQuickSwapStatsResponse
447
584
  */
@@ -470,37 +607,59 @@ type GetQuickSwapStatsResponse = Message<"swap.quickswap.v1.GetQuickSwapStatsRes
470
607
  * @generated from field: swap.quickswap.v1.QuickSwapStatsBucketSize bucket_size = 4;
471
608
  */
472
609
  bucketSize: QuickSwapStatsBucketSize;
610
+ /**
611
+ * Every asset and network deposited or delivered in the window or the
612
+ * previous one, ascending, as an AssetChainVariant.zipped_asset_id from
613
+ * GET /v1/chain/deposit-withdraw/config.
614
+ *
615
+ * @generated from field: repeated uint32 zipped_asset_ids = 5;
616
+ */
617
+ zippedAssetIds: number[];
618
+ /**
619
+ * Token decimals of each zipped_asset_ids entry, in the same order.
620
+ *
621
+ * @generated from field: repeated uint32 zipped_asset_decimals = 6;
622
+ */
623
+ zippedAssetDecimals: number[];
624
+ /**
625
+ * Every asset a fee was charged in, in the window or the previous one,
626
+ * ascending, as an AssetConfig.ledger_id from
627
+ * GET /v1/chain/deposit-withdraw/config. Fees are in base units of 18
628
+ * decimals.
629
+ *
630
+ * @generated from field: repeated uint32 fee_asset_ids = 7;
631
+ */
632
+ feeAssetIds: number[];
473
633
  /**
474
634
  * Totals of the window.
475
635
  *
476
- * @generated from field: swap.quickswap.v1.QuickSwapStatsTotals totals = 5;
636
+ * @generated from field: swap.quickswap.v1.QuickSwapStatsTotals totals = 8;
477
637
  */
478
638
  totals?: QuickSwapStatsTotals | undefined;
479
639
  /**
480
640
  * Totals of the previous window: the same length, ending at start_time.
481
641
  *
482
- * @generated from field: swap.quickswap.v1.QuickSwapStatsTotals previous_totals = 6;
642
+ * @generated from field: swap.quickswap.v1.QuickSwapStatsTotals previous_totals = 9;
483
643
  */
484
644
  previousTotals?: QuickSwapStatsTotals | undefined;
485
645
  /**
486
- * Every bucket of the window, oldest first, empty ones included.
646
+ * The window's buckets.
487
647
  *
488
- * @generated from field: repeated swap.quickswap.v1.QuickSwapStatsBucket buckets = 7;
648
+ * @generated from field: swap.quickswap.v1.QuickSwapStatsBuckets buckets = 10;
489
649
  */
490
- buckets: QuickSwapStatsBucket[];
650
+ buckets?: QuickSwapStatsBuckets | undefined;
491
651
  /**
492
- * Every route with a completed QuickSwap in the window, in ascending
493
- * source then destination order. The set is small: the client ranks
494
- * routes, source assets and destination assets from it.
652
+ * Every route with a completed QuickSwap in the window. The set is small:
653
+ * the client ranks routes, source assets and destination assets from it.
495
654
  *
496
- * @generated from field: repeated swap.quickswap.v1.QuickSwapRouteStats routes = 8;
655
+ * @generated from field: swap.quickswap.v1.QuickSwapStatsRoutes routes = 11;
497
656
  */
498
- routes: QuickSwapRouteStats[];
657
+ routes?: QuickSwapStatsRoutes | undefined;
499
658
  /**
500
659
  * When the statistics were computed. Each window's outcome, answer or
501
660
  * error, is shared for about a minute, so an answer can be that old.
502
661
  *
503
- * @generated from field: google.protobuf.Timestamp as_of = 9;
662
+ * @generated from field: google.protobuf.Timestamp as_of = 12;
504
663
  */
505
664
  asOf?: Timestamp | undefined;
506
665
  };
@@ -603,19 +762,20 @@ declare const QuickSwapStatsBucketSizeSchema: GenEnum<QuickSwapStatsBucketSize>;
603
762
  * ConnectRPC and REST. It needs no credentials and lists QuickSwaps of every
604
763
  * broker, Polyester's own QuickSwap app included.
605
764
  *
606
- * Only completed QuickSwaps are shown: one in progress, refunded, returned
607
- * or expired never is. Each shows its assets and networks, the amounts
608
- * deposited and delivered, the markets traded, and the transactions and
765
+ * Only completed QuickSwaps are shown, listed or read by swap_id: one in
766
+ * progress, refunded, returned or expired never is. Each shows its assets
767
+ * and networks, the amounts deposited and delivered with their USD values
768
+ * fixed when they happened, the markets traded, and the transactions and
609
769
  * addresses of its deposit and destination payout, as public on their
610
770
  * networks. It shows no memo or destination tag, no return or refund
611
771
  * address and nothing about the broker (see ExplorerQuickSwap).
612
772
  *
613
773
  * GetQuickSwapStats aggregates the same completed QuickSwaps over a window:
614
- * totals, a time series and per-route totals, each with exact amounts per
615
- * asset and their USD values fixed when they happened.
774
+ * totals with exact amounts per asset, a time series of counts and USD
775
+ * values, and per-route totals, with USD values fixed when they happened.
616
776
  *
617
777
  * QuickSwaps created before the Explorer launched are listed, but never
618
- * match a source or destination filter and are not counted in statistics.
778
+ * match an asset filter and are not counted in statistics.
619
779
  *
620
780
  * Calls are rate limited per client address: over the limit a call fails
621
781
  * with RESOURCE_EXHAUSTED and a Retry-After header.
@@ -625,12 +785,15 @@ declare const QuickSwapStatsBucketSizeSchema: GenEnum<QuickSwapStatsBucketSize>;
625
785
  declare const QuickSwapExplorerService: GenService<{
626
786
  /**
627
787
  * ListCompletedQuickSwaps lists completed QuickSwaps of every broker,
628
- * newest completion first, optionally by source or destination asset and
629
- * network.
788
+ * newest completion first, optionally by source and destination assets,
789
+ * on given networks or on all of them, and by a range of source USD value.
630
790
  *
631
791
  * Errors:
632
- * - INVALID_ARGUMENT: malformed request, or PAGE_TOKEN_INVALID for a
633
- * page_token that is malformed or from other filters.
792
+ * - INVALID_ARGUMENT: malformed request; a USD bound off the grid; filters
793
+ * that select more than 400 routes, or routes times USD value steps; a
794
+ * max_source_value_usd not above min_source_value_usd; or
795
+ * PAGE_TOKEN_INVALID for a page_token that is malformed, from other
796
+ * filters, or from before a change of the networks the asset IDs cover.
634
797
  *
635
798
  * @generated from rpc swap.quickswap.v1.QuickSwapExplorerService.ListCompletedQuickSwaps
636
799
  */
@@ -639,6 +802,23 @@ declare const QuickSwapExplorerService: GenService<{
639
802
  input: typeof ListCompletedQuickSwapsRequestSchema;
640
803
  output: typeof ListCompletedQuickSwapsResponseSchema;
641
804
  };
805
+ /**
806
+ * GetCompletedQuickSwap returns one completed QuickSwap of any broker by
807
+ * swap_id, as ListCompletedQuickSwaps lists it.
808
+ *
809
+ * Errors:
810
+ * - NOT_FOUND: SWAP_NOT_FOUND when no completed QuickSwap has this
811
+ * swap_id: none has it, it is 0, or the QuickSwap has not completed,
812
+ * whatever its status. Every such answer is the same, so it never tells
813
+ * which.
814
+ *
815
+ * @generated from rpc swap.quickswap.v1.QuickSwapExplorerService.GetCompletedQuickSwap
816
+ */
817
+ getCompletedQuickSwap: {
818
+ methodKind: "unary";
819
+ input: typeof GetCompletedQuickSwapRequestSchema;
820
+ output: typeof GetCompletedQuickSwapResponseSchema;
821
+ };
642
822
  /**
643
823
  * GetQuickSwapStats returns the activity of completed QuickSwaps of every
644
824
  * broker over a window: its totals and the previous window's, a time
@@ -661,5 +841,5 @@ declare const QuickSwapExplorerService: GenService<{
661
841
  };
662
842
  }>;
663
843
  //#endregion
664
- export { ExplorerDeposit, ExplorerDepositSchema, ExplorerQuickSwap, ExplorerQuickSwapSchema, ExplorerRouteLeg, ExplorerRouteLegSchema, ExplorerWithdrawal, ExplorerWithdrawalSchema, GetQuickSwapStatsRequest, GetQuickSwapStatsRequestSchema, GetQuickSwapStatsResponse, GetQuickSwapStatsResponseSchema, ListCompletedQuickSwapsRequest, ListCompletedQuickSwapsRequestSchema, ListCompletedQuickSwapsResponse, ListCompletedQuickSwapsResponseSchema, QuickSwapExplorerService, QuickSwapRouteStats, QuickSwapRouteStatsSchema, QuickSwapStatsBucket, QuickSwapStatsBucketSchema, QuickSwapStatsBucketSize, QuickSwapStatsBucketSizeSchema, QuickSwapStatsTotals, QuickSwapStatsTotalsSchema, QuickSwapStatsWindow, QuickSwapStatsWindowSchema, ZippedAssetVolume, ZippedAssetVolumeSchema, file_swap_quickswap_v1_quickswap_explorer, quickswap_explorer_pb_d_exports };
844
+ export { ExplorerDeposit, ExplorerDepositSchema, ExplorerQuickSwap, ExplorerQuickSwapSchema, ExplorerRouteLeg, ExplorerRouteLegSchema, ExplorerWithdrawal, ExplorerWithdrawalSchema, GetCompletedQuickSwapRequest, GetCompletedQuickSwapRequestSchema, GetCompletedQuickSwapResponse, GetCompletedQuickSwapResponseSchema, GetQuickSwapStatsRequest, GetQuickSwapStatsRequestSchema, GetQuickSwapStatsResponse, GetQuickSwapStatsResponseSchema, ListCompletedQuickSwapsRequest, ListCompletedQuickSwapsRequestSchema, ListCompletedQuickSwapsResponse, ListCompletedQuickSwapsResponseSchema, QuickSwapExplorerService, QuickSwapStatsBucketSize, QuickSwapStatsBucketSizeSchema, QuickSwapStatsBuckets, QuickSwapStatsBucketsSchema, QuickSwapStatsRoutes, QuickSwapStatsRoutesSchema, QuickSwapStatsTotals, QuickSwapStatsTotalsSchema, QuickSwapStatsWindow, QuickSwapStatsWindowSchema, file_swap_quickswap_v1_quickswap_explorer, quickswap_explorer_pb_d_exports };
665
845
  //# sourceMappingURL=quickswap_explorer_pb.d.ts.map