@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.
- package/CHANGELOG.md +18 -2
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -0
- package/dist/client.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +55 -3
- package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.js +8 -1
- package/dist/gen/ai/v1/assistant_pb.js.map +1 -1
- package/dist/gen/auth/v1/account_scope_pb.d.ts +40 -0
- package/dist/gen/auth/v1/account_scope_pb.d.ts.map +1 -0
- package/dist/gen/auth/v1/account_scope_pb.js +46 -0
- package/dist/gen/auth/v1/account_scope_pb.js.map +1 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts +3 -31
- package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/address_book_pb.js +8 -38
- package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +15 -14
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +16 -15
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/connected_apps_pb.d.ts +59 -58
- package/dist/gen/auth/v1/connected_apps_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/connected_apps_pb.js +38 -37
- package/dist/gen/auth/v1/connected_apps_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +27 -1
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +27 -1
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +228 -2
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +32 -8
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/changelog/v1/changelog_pb.d.ts +16 -4
- package/dist/gen/changelog/v1/changelog_pb.d.ts.map +1 -1
- package/dist/gen/changelog/v1/changelog_pb.js.map +1 -1
- package/dist/gen/index.d.ts +7 -5
- package/dist/gen/index.js +7 -5
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +288 -2
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js +115 -2
- package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +78 -25
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +36 -7
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts +35 -1
- package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
- package/dist/gen/strategies/v1/strategies_pb.d.ts +2928 -0
- package/dist/gen/strategies/v1/strategies_pb.d.ts.map +1 -0
- package/dist/gen/strategies/v1/strategies_pb.js +818 -0
- package/dist/gen/strategies/v1/strategies_pb.js.map +1 -0
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +38 -17
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +4 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts +312 -132
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js +31 -26
- package/dist/gen/swap/quickswap/v1/quickswap_explorer_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +28 -13
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +2 -2
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +109 -2
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +23 -3
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +3 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.d.ts +61 -11
- package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
- package/dist/gen/triggers/v1/triggers_pb.js +4 -2
- package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
- package/dist/index.d.ts +9 -6
- package/dist/services/account-activity/account-activity.schemas.d.ts +6 -6
- package/dist/services/address-book/address-book.codecs.js +1 -0
- package/dist/services/address-book/address-book.codecs.js.map +1 -1
- package/dist/services/address-book/address-book.js +1 -1
- package/dist/services/api-keys/api-keys.js +1 -1
- package/dist/services/assistant/assistant-events.schemas.d.ts +141 -43
- package/dist/services/assistant/assistant-events.schemas.d.ts.map +1 -1
- package/dist/services/assistant/assistant-events.schemas.js +15 -5
- package/dist/services/assistant/assistant-events.schemas.js.map +1 -1
- package/dist/services/assistant/assistant.codecs.d.ts +5 -2
- package/dist/services/assistant/assistant.codecs.d.ts.map +1 -1
- package/dist/services/assistant/assistant.codecs.js +10 -2
- package/dist/services/assistant/assistant.codecs.js.map +1 -1
- package/dist/services/assistant/assistant.schemas.d.ts +2 -2
- package/dist/services/auth/auth.js +1 -1
- package/dist/services/auth/auth.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +16 -16
- package/dist/services/balances/balances.js +1 -1
- package/dist/services/balances/balances.schemas.d.ts +3 -3
- package/dist/services/candles/candles.schemas.d.ts +10 -10
- package/dist/services/changelog/changelog.schemas.d.ts +38 -38
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/claims/claims.schemas.d.ts +2 -2
- package/dist/services/connected-apps/connected-apps.d.ts +4 -4
- package/dist/services/connected-apps/connected-apps.d.ts.map +1 -1
- package/dist/services/connected-apps/connected-apps.js +13 -13
- package/dist/services/connected-apps/connected-apps.js.map +1 -1
- package/dist/services/connected-apps/connected-apps.schemas.d.ts +7 -7
- package/dist/services/connected-apps/connected-apps.schemas.d.ts.map +1 -1
- package/dist/services/connected-apps/connected-apps.schemas.js +10 -10
- package/dist/services/connected-apps/connected-apps.schemas.js.map +1 -1
- package/dist/services/connected-apps/connected-apps.types.d.ts +2 -2
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +8 -8
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +6 -6
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +94 -94
- package/dist/services/market-data/market-data.codecs.d.ts +9 -1
- package/dist/services/market-data/market-data.codecs.d.ts.map +1 -1
- package/dist/services/market-data/market-data.codecs.js +14 -1
- package/dist/services/market-data/market-data.codecs.js.map +1 -1
- package/dist/services/market-data/market-data.d.ts +9 -1
- package/dist/services/market-data/market-data.d.ts.map +1 -1
- package/dist/services/market-data/market-data.js +14 -1
- package/dist/services/market-data/market-data.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.d.ts +40 -2
- package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
- package/dist/services/market-data/market-data.schemas.js +43 -8
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/market-data/market-data.types.d.ts +3 -3
- package/dist/services/notifications/notifications.schemas.d.ts +4 -4
- package/dist/services/orderbook/orderbook.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.js +5 -19
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +6 -6
- package/dist/services/orders/orders-batch.schemas.d.ts +72 -72
- package/dist/services/orders/orders-input.schemas.d.ts +10 -10
- package/dist/services/orders/orders-output.schemas.d.ts +16 -16
- package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
- package/dist/services/orders/orders-output.schemas.js +1 -1
- package/dist/services/orders/orders-output.schemas.js.map +1 -1
- package/dist/services/orders/orders.d.ts +5 -0
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +5 -0
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
- package/dist/services/policies/shared.codecs.js +13 -4
- package/dist/services/policies/shared.codecs.js.map +1 -1
- package/dist/services/policies/shared.d.ts +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.js +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
- package/dist/services/strategies/service.d.ts +8 -0
- package/dist/services/strategies/service.d.ts.map +1 -0
- package/dist/services/strategies/service.js +9 -0
- package/dist/services/strategies/service.js.map +1 -0
- package/dist/services/strategies/strategies.codecs.d.ts +15 -0
- package/dist/services/strategies/strategies.codecs.d.ts.map +1 -0
- package/dist/services/strategies/strategies.codecs.js +50 -0
- package/dist/services/strategies/strategies.codecs.js.map +1 -0
- package/dist/services/strategies/strategies.d.ts +75 -0
- package/dist/services/strategies/strategies.d.ts.map +1 -0
- package/dist/services/strategies/strategies.js +135 -0
- package/dist/services/strategies/strategies.js.map +1 -0
- package/dist/services/strategies/strategies.schemas.d.ts +568 -0
- package/dist/services/strategies/strategies.schemas.d.ts.map +1 -0
- package/dist/services/strategies/strategies.schemas.js +408 -0
- package/dist/services/strategies/strategies.schemas.js.map +1 -0
- package/dist/services/strategies/strategies.types.d.ts +3 -0
- package/dist/services/subaccounts/subaccounts.js +2 -2
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +8 -8
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts +29 -2
- package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +74 -11
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +85 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +56 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +3 -3
- package/dist/services/trading-withdraws/wallet-message.js +29 -1
- package/dist/services/trading-withdraws/wallet-message.js.map +1 -1
- package/dist/services/transfers/transfers.js +1 -1
- package/dist/services/transfers/transfers.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +44 -44
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +5 -0
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +25 -2
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js +1 -0
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/strategies.js +36 -0
- package/dist/shared/error-details/strategies.js.map +1 -0
- package/dist/wired-services.d.ts.map +1 -1
- package/dist/wired-services.js +6 -4
- package/dist/wired-services.js.map +1 -1
- 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,
|
|
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
|
|
177
|
-
*
|
|
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
|
|
215
|
+
* @generated from field: repeated uint32 source_zipped_asset_ids = 1;
|
|
180
216
|
*/
|
|
181
|
-
|
|
217
|
+
sourceZippedAssetIds: number[];
|
|
182
218
|
/**
|
|
183
|
-
* Only QuickSwaps to
|
|
184
|
-
*
|
|
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
|
|
222
|
+
* @generated from field: repeated uint32 destination_zipped_asset_ids = 2;
|
|
187
223
|
*/
|
|
188
|
-
|
|
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
|
|
198
|
-
*
|
|
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
|
-
*
|
|
308
|
+
* GetCompletedQuickSwapRequest reads one completed QuickSwap of any broker.
|
|
238
309
|
*
|
|
239
|
-
* @generated from message swap.quickswap.v1.
|
|
310
|
+
* @generated from message swap.quickswap.v1.GetCompletedQuickSwapRequest
|
|
240
311
|
*/
|
|
241
|
-
type
|
|
312
|
+
type GetCompletedQuickSwapRequest = Message<"swap.quickswap.v1.GetCompletedQuickSwapRequest"> & {
|
|
242
313
|
/**
|
|
243
|
-
*
|
|
244
|
-
*
|
|
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:
|
|
317
|
+
* @generated from field: fixed64 swap_id = 1;
|
|
247
318
|
*/
|
|
248
|
-
|
|
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
|
-
*
|
|
333
|
+
* The QuickSwap, as ListCompletedQuickSwaps lists it.
|
|
251
334
|
*
|
|
252
|
-
* @generated from field: swap.quickswap.v1.
|
|
335
|
+
* @generated from field: swap.quickswap.v1.ExplorerQuickSwap quick_swap = 1;
|
|
253
336
|
*/
|
|
254
|
-
|
|
337
|
+
quickSwap?: ExplorerQuickSwap | undefined;
|
|
255
338
|
};
|
|
256
339
|
/**
|
|
257
|
-
* Describes the message swap.quickswap.v1.
|
|
258
|
-
* Use `create(
|
|
340
|
+
* Describes the message swap.quickswap.v1.GetCompletedQuickSwapResponse.
|
|
341
|
+
* Use `create(GetCompletedQuickSwapResponseSchema)` to create a new message.
|
|
259
342
|
*/
|
|
260
|
-
declare const
|
|
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.
|
|
264
|
-
*
|
|
265
|
-
*
|
|
266
|
-
*
|
|
267
|
-
*
|
|
268
|
-
*
|
|
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:
|
|
366
|
+
* @generated from field: uint32 swap_count = 1;
|
|
277
367
|
*/
|
|
278
|
-
swapCount:
|
|
368
|
+
swapCount: number;
|
|
279
369
|
/**
|
|
280
|
-
*
|
|
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:
|
|
375
|
+
* @generated from field: uint32 unvalued_count = 2;
|
|
283
376
|
*/
|
|
284
|
-
|
|
377
|
+
unvaluedCount: number;
|
|
285
378
|
/**
|
|
286
|
-
*
|
|
379
|
+
* USD value of the deposited amounts that have one.
|
|
287
380
|
*
|
|
288
|
-
* @generated from field:
|
|
381
|
+
* @generated from field: string source_volume_usd = 3;
|
|
289
382
|
*/
|
|
290
|
-
|
|
383
|
+
sourceVolumeUsd: string;
|
|
291
384
|
/**
|
|
292
|
-
*
|
|
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:
|
|
387
|
+
* @generated from field: string destination_volume_usd = 4;
|
|
299
388
|
*/
|
|
300
|
-
|
|
389
|
+
destinationVolumeUsd: string;
|
|
301
390
|
/**
|
|
302
|
-
* USD value of the
|
|
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:
|
|
393
|
+
* @generated from field: string fees_usd = 5;
|
|
306
394
|
*/
|
|
307
|
-
|
|
395
|
+
feesUsd: string;
|
|
308
396
|
/**
|
|
309
|
-
*
|
|
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:
|
|
401
|
+
* @generated from field: repeated string source_volume = 6;
|
|
312
402
|
*/
|
|
313
|
-
|
|
403
|
+
sourceVolume: string[];
|
|
314
404
|
/**
|
|
315
|
-
*
|
|
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:
|
|
408
|
+
* @generated from field: repeated string destination_volume = 7;
|
|
318
409
|
*/
|
|
319
|
-
|
|
410
|
+
destinationVolume: string[];
|
|
320
411
|
/**
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
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:
|
|
430
|
+
* @generated from field: repeated uint32 fees_unvalued_count = 10;
|
|
328
431
|
*/
|
|
329
|
-
|
|
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
|
-
*
|
|
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.
|
|
446
|
+
* @generated from message swap.quickswap.v1.QuickSwapStatsBuckets
|
|
340
447
|
*/
|
|
341
|
-
type
|
|
448
|
+
type QuickSwapStatsBuckets = Message<"swap.quickswap.v1.QuickSwapStatsBuckets"> & {
|
|
342
449
|
/**
|
|
343
|
-
*
|
|
450
|
+
* Completed QuickSwaps.
|
|
344
451
|
*
|
|
345
|
-
* @generated from field:
|
|
452
|
+
* @generated from field: repeated uint32 swap_count = 1;
|
|
346
453
|
*/
|
|
347
|
-
|
|
454
|
+
swapCount: number[];
|
|
348
455
|
/**
|
|
349
|
-
*
|
|
456
|
+
* Completed QuickSwaps whose deposited or delivered amount has no USD
|
|
457
|
+
* value, as QuickSwapStatsTotals.unvalued_count.
|
|
350
458
|
*
|
|
351
|
-
* @generated from field:
|
|
459
|
+
* @generated from field: repeated uint32 unvalued_count = 2;
|
|
352
460
|
*/
|
|
353
|
-
|
|
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.
|
|
357
|
-
* Use `create(
|
|
489
|
+
* Describes the message swap.quickswap.v1.QuickSwapStatsBuckets.
|
|
490
|
+
* Use `create(QuickSwapStatsBucketsSchema)` to create a new message.
|
|
358
491
|
*/
|
|
359
|
-
declare const
|
|
492
|
+
declare const QuickSwapStatsBucketsSchema: GenMessage<QuickSwapStatsBuckets>;
|
|
360
493
|
/**
|
|
361
|
-
*
|
|
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.
|
|
500
|
+
* @generated from message swap.quickswap.v1.QuickSwapStatsRoutes
|
|
364
501
|
*/
|
|
365
|
-
type
|
|
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
|
|
506
|
+
* @generated from field: repeated uint32 source_zipped_asset_ids = 1;
|
|
370
507
|
*/
|
|
371
|
-
|
|
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
|
|
512
|
+
* @generated from field: repeated uint32 destination_zipped_asset_ids = 2;
|
|
376
513
|
*/
|
|
377
|
-
|
|
514
|
+
destinationZippedAssetIds: number[];
|
|
378
515
|
/**
|
|
379
516
|
* Completed QuickSwaps on the route.
|
|
380
517
|
*
|
|
381
|
-
* @generated from field:
|
|
518
|
+
* @generated from field: repeated uint32 swap_count = 3;
|
|
382
519
|
*/
|
|
383
|
-
swapCount:
|
|
520
|
+
swapCount: number[];
|
|
384
521
|
/**
|
|
385
|
-
*
|
|
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:
|
|
525
|
+
* @generated from field: repeated uint32 unvalued_count = 4;
|
|
388
526
|
*/
|
|
389
|
-
|
|
527
|
+
unvaluedCount: number[];
|
|
390
528
|
/**
|
|
391
|
-
* Exact amount
|
|
529
|
+
* Exact amount deposited, in source token units.
|
|
392
530
|
*
|
|
393
|
-
* @generated from field:
|
|
531
|
+
* @generated from field: repeated string source_volume = 5;
|
|
394
532
|
*/
|
|
395
|
-
|
|
533
|
+
sourceVolume: string[];
|
|
396
534
|
/**
|
|
397
|
-
*
|
|
398
|
-
* QuickSwapStatsTotals.source_volume_usd.
|
|
535
|
+
* Exact amount delivered, in destination token units.
|
|
399
536
|
*
|
|
400
|
-
* @generated from field:
|
|
537
|
+
* @generated from field: repeated string destination_volume = 6;
|
|
401
538
|
*/
|
|
402
|
-
|
|
539
|
+
destinationVolume: string[];
|
|
403
540
|
/**
|
|
404
|
-
* USD value of the
|
|
405
|
-
* QuickSwapStatsTotals.destination_volume_usd.
|
|
541
|
+
* USD value of the deposited amounts that have one.
|
|
406
542
|
*
|
|
407
|
-
* @generated from field:
|
|
543
|
+
* @generated from field: repeated string source_volume_usd = 7;
|
|
408
544
|
*/
|
|
409
|
-
|
|
545
|
+
sourceVolumeUsd: string[];
|
|
410
546
|
/**
|
|
411
|
-
*
|
|
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:
|
|
549
|
+
* @generated from field: repeated string destination_volume_usd = 8;
|
|
415
550
|
*/
|
|
416
|
-
|
|
551
|
+
destinationVolumeUsd: string[];
|
|
417
552
|
};
|
|
418
553
|
/**
|
|
419
|
-
* Describes the message swap.quickswap.v1.
|
|
420
|
-
* Use `create(
|
|
554
|
+
* Describes the message swap.quickswap.v1.QuickSwapStatsRoutes.
|
|
555
|
+
* Use `create(QuickSwapStatsRoutesSchema)` to create a new message.
|
|
421
556
|
*/
|
|
422
|
-
declare const
|
|
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
|
-
*
|
|
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 =
|
|
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 =
|
|
642
|
+
* @generated from field: swap.quickswap.v1.QuickSwapStatsTotals previous_totals = 9;
|
|
483
643
|
*/
|
|
484
644
|
previousTotals?: QuickSwapStatsTotals | undefined;
|
|
485
645
|
/**
|
|
486
|
-
*
|
|
646
|
+
* The window's buckets.
|
|
487
647
|
*
|
|
488
|
-
* @generated from field:
|
|
648
|
+
* @generated from field: swap.quickswap.v1.QuickSwapStatsBuckets buckets = 10;
|
|
489
649
|
*/
|
|
490
|
-
buckets
|
|
650
|
+
buckets?: QuickSwapStatsBuckets | undefined;
|
|
491
651
|
/**
|
|
492
|
-
* Every route with a completed QuickSwap in the window
|
|
493
|
-
*
|
|
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:
|
|
655
|
+
* @generated from field: swap.quickswap.v1.QuickSwapStatsRoutes routes = 11;
|
|
497
656
|
*/
|
|
498
|
-
routes
|
|
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 =
|
|
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
|
|
607
|
-
* or expired never is. Each shows its assets
|
|
608
|
-
*
|
|
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
|
|
615
|
-
*
|
|
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
|
|
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
|
|
629
|
-
*
|
|
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
|
|
633
|
-
*
|
|
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,
|
|
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
|