tapimo 0.5.3 → 0.7.0
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/dist/App.d.ts +15830 -7220
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +9 -1
- package/dist/App.js.map +1 -1
- package/dist/Scope.d.ts +4 -0
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +5 -0
- package/dist/Scope.js.map +1 -1
- package/dist/admin/App.d.ts +1011 -412
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/App.js +4 -0
- package/dist/admin/App.js.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +2 -1
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/early-access.d.ts +148 -0
- package/dist/admin/apps/early-access.d.ts.map +1 -0
- package/dist/admin/apps/early-access.js +133 -0
- package/dist/admin/apps/early-access.js.map +1 -0
- package/dist/admin/apps/organizations.d.ts +124 -1
- package/dist/admin/apps/organizations.d.ts.map +1 -1
- package/dist/admin/apps/organizations.js +97 -6
- package/dist/admin/apps/organizations.js.map +1 -1
- package/dist/admin/apps/verified-tokens.d.ts +526 -1
- package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
- package/dist/admin/apps/verified-tokens.js +214 -1
- package/dist/admin/apps/verified-tokens.js.map +1 -1
- package/dist/admin/ui.generated.d.ts +1 -1
- package/dist/admin/ui.generated.d.ts.map +1 -1
- package/dist/admin/ui.generated.js +95 -75
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/analytics/Analytics.d.ts.map +1 -1
- package/dist/analytics/Analytics.js +20 -0
- package/dist/analytics/Analytics.js.map +1 -1
- package/dist/analytics/tables/requestEvents.d.ts +18 -0
- package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
- package/dist/analytics/tables/requestEvents.js +36 -7
- package/dist/analytics/tables/requestEvents.js.map +1 -1
- package/dist/apps/data/App.d.ts +6260 -4924
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +11 -6
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/FundingQuoteProviders.d.ts +34 -1
- package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -1
- package/dist/apps/data/FundingQuoteProviders.js +194 -16
- package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
- package/dist/apps/data/FxOracle.d.ts +71 -0
- package/dist/apps/data/FxOracle.d.ts.map +1 -0
- package/dist/apps/data/FxOracle.js +97 -0
- package/dist/apps/data/FxOracle.js.map +1 -0
- package/dist/apps/data/index.d.ts +1 -0
- package/dist/apps/data/index.d.ts.map +1 -1
- package/dist/apps/data/index.js +1 -0
- package/dist/apps/data/index.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +3599 -1382
- package/dist/apps/data/routes/activities.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.js +250 -88
- package/dist/apps/data/routes/activities.js.map +1 -1
- package/dist/apps/data/routes/addresses.d.ts +872 -251
- package/dist/apps/data/routes/addresses.d.ts.map +1 -1
- package/dist/apps/data/routes/addresses.js +11 -9
- package/dist/apps/data/routes/addresses.js.map +1 -1
- package/dist/apps/data/routes/balances.d.ts +77 -26
- package/dist/apps/data/routes/balances.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.js +88 -45
- package/dist/apps/data/routes/balances.js.map +1 -1
- package/dist/apps/data/routes/blocks.d.ts +39 -39
- package/dist/apps/data/routes/coingecko.d.ts +54 -54
- package/dist/apps/data/routes/exchanges.d.ts +856 -105
- package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
- package/dist/apps/data/routes/exchanges.js +518 -76
- package/dist/apps/data/routes/exchanges.js.map +1 -1
- package/dist/apps/data/routes/fee-amm.d.ts +81 -67
- package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
- package/dist/apps/data/routes/fee-amm.js +76 -91
- package/dist/apps/data/routes/fee-amm.js.map +1 -1
- package/dist/apps/data/routes/funding.d.ts +80 -36
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +65 -31
- package/dist/apps/data/routes/funding.js.map +1 -1
- package/dist/apps/data/routes/receipts.d.ts +392 -315
- package/dist/apps/data/routes/receipts.d.ts.map +1 -1
- package/dist/apps/data/routes/receipts.js +152 -77
- package/dist/apps/data/routes/receipts.js.map +1 -1
- package/dist/apps/data/routes/tokens.d.ts +167 -174
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +15 -13
- package/dist/apps/data/routes/tokens.js.map +1 -1
- package/dist/apps/data/routes/transactions.d.ts +277 -536
- package/dist/apps/data/routes/transactions.d.ts.map +1 -1
- package/dist/apps/data/routes/transactions.js +96 -77
- package/dist/apps/data/routes/transactions.js.map +1 -1
- package/dist/apps/data/routes/transfers.d.ts +157 -81
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +272 -130
- package/dist/apps/data/routes/transfers.js.map +1 -1
- package/dist/apps/data/routes/valuation.d.ts +307 -0
- package/dist/apps/data/routes/valuation.d.ts.map +1 -0
- package/dist/apps/data/routes/valuation.js +292 -0
- package/dist/apps/data/routes/valuation.js.map +1 -0
- package/dist/apps/data/routes/verified-tokens.d.ts +36 -36
- package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/verified-tokens.js +7 -5
- package/dist/apps/data/routes/verified-tokens.js.map +1 -1
- package/dist/apps/data/routes/webhooks.d.ts +103 -123
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +124 -25
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/index.d.ts +2 -1
- package/dist/apps/index.d.ts.map +1 -1
- package/dist/apps/index.js +2 -1
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/management/App.d.ts +8554 -1692
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/App.js +12 -1
- package/dist/apps/management/App.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +7 -0
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +17 -3
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +157 -162
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +31 -23
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/faucet.d.ts +232 -0
- package/dist/apps/management/routes/faucet.d.ts.map +1 -0
- package/dist/apps/management/routes/faucet.js +154 -0
- package/dist/apps/management/routes/faucet.js.map +1 -0
- package/dist/apps/management/routes/invitations.d.ts +60 -60
- package/dist/apps/management/routes/invite-links.d.ts +49 -20
- package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
- package/dist/apps/management/routes/invite-links.js +26 -1
- package/dist/apps/management/routes/invite-links.js.map +1 -1
- package/dist/apps/management/routes/me.d.ts +6 -6
- package/dist/apps/management/routes/members.d.ts +6 -6
- package/dist/apps/management/routes/orgs.d.ts +42 -42
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +5 -0
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/projects.d.ts +44 -44
- package/dist/apps/management/routes/usage.d.ts +3 -0
- package/dist/apps/management/routes/usage.d.ts.map +1 -1
- package/dist/apps/management/routes/usage.js +4 -0
- package/dist/apps/management/routes/usage.js.map +1 -1
- package/dist/apps/management/routes/verified-token-requests.d.ts +697 -0
- package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -0
- package/dist/apps/management/routes/verified-token-requests.js +271 -0
- package/dist/apps/management/routes/verified-token-requests.js.map +1 -0
- package/dist/apps/management/routes/webhooks.d.ts +6977 -0
- package/dist/apps/management/routes/webhooks.d.ts.map +1 -0
- package/dist/apps/management/routes/webhooks.js +573 -0
- package/dist/apps/management/routes/webhooks.js.map +1 -0
- package/dist/apps/mpp/App.d.ts +363 -0
- package/dist/apps/mpp/App.d.ts.map +1 -0
- package/dist/apps/mpp/App.js +72 -0
- package/dist/apps/mpp/App.js.map +1 -0
- package/dist/apps/mpp/Mpp.d.ts +178 -0
- package/dist/apps/mpp/Mpp.d.ts.map +1 -0
- package/dist/apps/mpp/Mpp.js +183 -0
- package/dist/apps/mpp/Mpp.js.map +1 -0
- package/dist/apps/mpp/index.d.ts +3 -0
- package/dist/apps/mpp/index.d.ts.map +1 -0
- package/dist/apps/mpp/index.js +3 -0
- package/dist/apps/mpp/index.js.map +1 -0
- package/dist/apps/relay/App.d.ts.map +1 -1
- package/dist/apps/relay/App.js +56 -9
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/db/Db.d.ts +6 -0
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +110 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +53 -0
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +56 -0
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/earlyAccess.d.ts +50 -0
- package/dist/db/tables/earlyAccess.d.ts.map +1 -0
- package/dist/db/tables/earlyAccess.js +63 -0
- package/dist/db/tables/earlyAccess.js.map +1 -0
- package/dist/db/tables/enabledBillingSources.d.ts +73 -0
- package/dist/db/tables/enabledBillingSources.d.ts.map +1 -0
- package/dist/db/tables/enabledBillingSources.js +69 -0
- package/dist/db/tables/enabledBillingSources.js.map +1 -0
- package/dist/db/tables/invitations.d.ts.map +1 -1
- package/dist/db/tables/invitations.js +3 -0
- package/dist/db/tables/invitations.js.map +1 -1
- package/dist/db/tables/inviteLinks.d.ts +10 -2
- package/dist/db/tables/inviteLinks.d.ts.map +1 -1
- package/dist/db/tables/inviteLinks.js +10 -1
- package/dist/db/tables/inviteLinks.js.map +1 -1
- package/dist/db/tables/organizations.d.ts +5 -2
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +13 -2
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/db/tables/sponsoredTransactions.d.ts +2 -0
- package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
- package/dist/db/tables/sponsoredTransactions.js +2 -0
- package/dist/db/tables/sponsoredTransactions.js.map +1 -1
- package/dist/db/tables/verifiedTokenRequests.d.ts +94 -0
- package/dist/db/tables/verifiedTokenRequests.d.ts.map +1 -0
- package/dist/db/tables/verifiedTokenRequests.js +120 -0
- package/dist/db/tables/verifiedTokenRequests.js.map +1 -0
- package/dist/db/tables/webhookSubscriptions.d.ts +14 -0
- package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
- package/dist/db/tables/webhookSubscriptions.js +16 -0
- package/dist/db/tables/webhookSubscriptions.js.map +1 -1
- package/dist/handlers/internal/utils.d.ts +1 -16
- package/dist/handlers/internal/utils.d.ts.map +1 -1
- package/dist/handlers/internal/utils.js +17 -6
- package/dist/handlers/internal/utils.js.map +1 -1
- package/dist/handlers/relay.d.ts.map +1 -1
- package/dist/handlers/relay.js +37 -5
- package/dist/handlers/relay.js.map +1 -1
- package/dist/internal/Auth.d.ts +11 -2
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +14 -47
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/FundingQuotes.d.ts +147 -47
- package/dist/internal/FundingQuotes.d.ts.map +1 -1
- package/dist/internal/FundingQuotes.js +119 -33
- package/dist/internal/FundingQuotes.js.map +1 -1
- package/dist/internal/Log.d.ts +37 -5
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +52 -3
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/MetricSink.d.ts.map +1 -1
- package/dist/internal/MetricSink.js +24 -0
- package/dist/internal/MetricSink.js.map +1 -1
- package/dist/internal/OpenApi.d.ts +2 -2
- package/dist/internal/OpenApi.d.ts.map +1 -1
- package/dist/internal/OpenApi.js +3 -0
- package/dist/internal/OpenApi.js.map +1 -1
- package/dist/internal/Response.d.ts +2 -2
- package/dist/internal/Response.d.ts.map +1 -1
- package/dist/internal/Response.js +12 -4
- package/dist/internal/Response.js.map +1 -1
- package/dist/internal/Schema.d.ts +14 -5
- package/dist/internal/Schema.d.ts.map +1 -1
- package/dist/internal/Schema.js +23 -5
- package/dist/internal/Schema.js.map +1 -1
- package/dist/internal/Value.d.ts +18 -0
- package/dist/internal/Value.d.ts.map +1 -1
- package/dist/internal/Value.js +11 -1
- package/dist/internal/Value.js.map +1 -1
- package/dist/internal/VerifiedTokens.d.ts.map +1 -1
- package/dist/internal/VerifiedTokens.js +10 -1
- package/dist/internal/VerifiedTokens.js.map +1 -1
- package/dist/internal/Webhooks.d.ts +24 -3
- package/dist/internal/Webhooks.d.ts.map +1 -1
- package/dist/internal/Webhooks.js +34 -8
- package/dist/internal/Webhooks.js.map +1 -1
- package/package.json +7 -2
- package/src/App.test.ts +9 -4
- package/src/App.ts +23 -3
- package/src/Client.test-d.ts +733 -20
- package/src/Scope.ts +5 -0
- package/src/admin/App.test.ts +4 -0
- package/src/admin/App.ts +4 -0
- package/src/admin/apps/early-access.test.ts +125 -0
- package/src/admin/apps/early-access.ts +176 -0
- package/src/admin/apps/organizations.test.ts +86 -2
- package/src/admin/apps/organizations.ts +155 -31
- package/src/admin/apps/scopes.test.ts +5 -0
- package/src/admin/apps/verified-tokens.test.ts +201 -0
- package/src/admin/apps/verified-tokens.ts +532 -286
- package/src/admin/ui/plugin.ts +2 -1
- package/src/admin/ui/src/lib/early-access.ts +63 -0
- package/src/admin/ui/src/lib/organizations.test.ts +81 -1
- package/src/admin/ui/src/lib/organizations.ts +92 -0
- package/src/admin/ui/src/lib/verified-tokens.ts +79 -0
- package/src/admin/ui/src/routeTree.gen.ts +33 -2
- package/src/admin/ui/src/routes/__root.tsx +2 -1
- package/src/admin/ui/src/routes/api-keys.tsx +1 -1
- package/src/admin/ui/src/routes/early-access.tsx +162 -0
- package/src/admin/ui/src/routes/organizations_.$orgId.tsx +103 -0
- package/src/admin/ui/src/routes/verified-tokens.tsx +230 -19
- package/src/admin/ui.generated.ts +95 -94
- package/src/analytics/Analytics.test.ts +83 -0
- package/src/analytics/Analytics.ts +20 -0
- package/src/analytics/tables/requestEvents.ts +60 -7
- package/src/apps/composition.test.ts +11 -2
- package/src/apps/data/App.test.ts +1 -1
- package/src/apps/data/App.ts +22 -14
- package/src/apps/data/FundingQuoteProviders.test.ts +297 -4
- package/src/apps/data/FundingQuoteProviders.ts +255 -29
- package/src/apps/data/FxOracle.test.ts +118 -0
- package/src/apps/data/FxOracle.ts +153 -0
- package/src/apps/data/index.ts +1 -0
- package/src/apps/data/routes/activities.test.ts +177 -3
- package/src/apps/data/routes/activities.ts +441 -132
- package/src/apps/data/routes/addresses.ts +19 -9
- package/src/apps/data/routes/balances.test.ts +148 -11
- package/src/apps/data/routes/balances.ts +140 -51
- package/src/apps/data/routes/exchanges.test.ts +544 -9
- package/src/apps/data/routes/exchanges.ts +690 -103
- package/src/apps/data/routes/fee-amm.test.ts +47 -23
- package/src/apps/data/routes/fee-amm.ts +98 -119
- package/src/apps/data/routes/funding.test.ts +113 -8
- package/src/apps/data/routes/funding.ts +77 -51
- package/src/apps/data/routes/receipts.test.ts +129 -23
- package/src/apps/data/routes/receipts.ts +205 -100
- package/src/apps/data/routes/tokens.test.ts +43 -0
- package/src/apps/data/routes/tokens.ts +28 -13
- package/src/apps/data/routes/transactions.test.ts +72 -19
- package/src/apps/data/routes/transactions.ts +162 -92
- package/src/apps/data/routes/transfers.test.ts +341 -31
- package/src/apps/data/routes/transfers.ts +358 -158
- package/src/apps/data/routes/valuation.test.ts +437 -0
- package/src/apps/data/routes/valuation.ts +423 -0
- package/src/apps/data/routes/verified-tokens.ts +14 -2
- package/src/apps/data/routes/webhooks.test.ts +56 -8
- package/src/apps/data/routes/webhooks.ts +144 -27
- package/src/apps/index.ts +2 -1
- package/src/apps/management/App.ts +13 -0
- package/src/apps/management/routes/api-keys.test.ts +14 -0
- package/src/apps/management/routes/api-keys.ts +27 -3
- package/src/apps/management/routes/billing.test.ts +152 -20
- package/src/apps/management/routes/billing.ts +34 -18
- package/src/apps/management/routes/faucet.test.ts +87 -0
- package/src/apps/management/routes/faucet.ts +201 -0
- package/src/apps/management/routes/invite-links.test.ts +117 -0
- package/src/apps/management/routes/invite-links.ts +43 -1
- package/src/apps/management/routes/me.test.ts +9 -99
- package/src/apps/management/routes/orgs.test.ts +45 -2
- package/src/apps/management/routes/orgs.ts +6 -0
- package/src/apps/management/routes/scopes.test.ts +1 -0
- package/src/apps/management/routes/usage.test.ts +6 -0
- package/src/apps/management/routes/usage.ts +7 -0
- package/src/apps/management/routes/verified-token-requests.test.ts +377 -0
- package/src/apps/management/routes/verified-token-requests.ts +397 -0
- package/src/apps/management/routes/webhooks.test.ts +426 -0
- package/src/apps/management/routes/webhooks.ts +672 -0
- package/src/apps/mpp/App.ts +86 -0
- package/src/apps/mpp/Mpp.test.ts +193 -0
- package/src/apps/mpp/Mpp.ts +353 -0
- package/src/apps/mpp/index.ts +2 -0
- package/src/apps/mpp/internal/Adapter.ts +11 -0
- package/src/apps/mpp/internal/Error.ts +9 -0
- package/src/apps/mpp/internal/Idempotency.ts +7 -0
- package/src/apps/mpp/internal/Screening.ts +10 -0
- package/src/apps/relay/App.test.ts +88 -6
- package/src/apps/relay/App.ts +61 -9
- package/src/db/Db.test.ts +19 -0
- package/src/db/Db.ts +125 -0
- package/src/db/Schema.ts +68 -0
- package/src/db/tables/earlyAccess.ts +86 -0
- package/src/db/tables/enabledBillingSources.test.ts +303 -0
- package/src/db/tables/enabledBillingSources.ts +118 -0
- package/src/db/tables/invitations.ts +3 -0
- package/src/db/tables/inviteLinks.ts +22 -3
- package/src/db/tables/organizations.test.ts +103 -0
- package/src/db/tables/organizations.ts +18 -2
- package/src/db/tables/sponsoredTransactions.ts +4 -0
- package/src/db/tables/verifiedTokenRequests.test.ts +200 -0
- package/src/db/tables/verifiedTokenRequests.ts +182 -0
- package/src/db/tables/webhookSubscriptions.ts +31 -0
- package/src/handlers/internal/utils.ts +22 -6
- package/src/handlers/relay.errors.test.ts +153 -0
- package/src/handlers/relay.ts +42 -7
- package/src/internal/Auth.test.ts +3 -3
- package/src/internal/Auth.ts +15 -47
- package/src/internal/FundingQuotes.test.ts +161 -6
- package/src/internal/FundingQuotes.ts +141 -39
- package/src/internal/Log.test-d.ts +21 -0
- package/src/internal/Log.test.ts +141 -0
- package/src/internal/Log.ts +93 -6
- package/src/internal/MetricSink.test.ts +215 -0
- package/src/internal/MetricSink.ts +24 -0
- package/src/internal/OpenApi.ts +3 -0
- package/src/internal/Response.test.ts +28 -0
- package/src/internal/Response.ts +12 -4
- package/src/internal/Schema.ts +50 -5
- package/src/internal/Value.test.ts +20 -0
- package/src/internal/Value.ts +24 -1
- package/src/internal/VerifiedTokens.ts +9 -1
- package/src/internal/Webhooks.test.ts +140 -0
- package/src/internal/Webhooks.ts +53 -9
|
@@ -3,6 +3,7 @@ import * as z from 'zod/mini';
|
|
|
3
3
|
import type * as App from '../../../App.js';
|
|
4
4
|
import * as Response from '../../../internal/Response.js';
|
|
5
5
|
import * as Schema from '../../../internal/Schema.js';
|
|
6
|
+
import * as Valuation from './valuation.js';
|
|
6
7
|
/** Zod schemas owned by the exchange handlers. */
|
|
7
8
|
export declare namespace schema {
|
|
8
9
|
/**
|
|
@@ -20,6 +21,196 @@ export declare namespace schema {
|
|
|
20
21
|
symbol: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
21
22
|
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
22
23
|
}, z.core.$strip>;
|
|
24
|
+
/** Schemas for creating an executable native DEX exchange quote. */
|
|
25
|
+
namespace createQuote {
|
|
26
|
+
/** Positive token amount accepted by the DEX's uint128 arguments. */
|
|
27
|
+
const Amount: z.ZodMiniString<string>;
|
|
28
|
+
/** Optional token fields that require sources beyond RPC metadata. */
|
|
29
|
+
const Include: z.ZodMiniEnum<{
|
|
30
|
+
"token.logoUri": "token.logoUri";
|
|
31
|
+
"token.verified": "token.verified";
|
|
32
|
+
}>;
|
|
33
|
+
/** Parses comma-separated optional token fields. */
|
|
34
|
+
const includeQuery: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
35
|
+
"token.logoUri": "token.logoUri";
|
|
36
|
+
"token.verified": "token.verified";
|
|
37
|
+
}>>>;
|
|
38
|
+
/** Query parameters selecting the Tempo chain and optional token fields. */
|
|
39
|
+
const Query: z.ZodMiniObject<{
|
|
40
|
+
chainId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
41
|
+
mainnet: "mainnet";
|
|
42
|
+
testnet: "testnet";
|
|
43
|
+
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
|
|
44
|
+
denomination: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
|
|
45
|
+
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
46
|
+
"token.logoUri": "token.logoUri";
|
|
47
|
+
"token.verified": "token.verified";
|
|
48
|
+
}>>>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
/** Quote request with one pinned side and caller-selected slippage. */
|
|
51
|
+
const Request: z.ZodMiniObject<{
|
|
52
|
+
amount: z.ZodMiniString<string>;
|
|
53
|
+
destinationToken: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
54
|
+
mode: z.ZodMiniEnum<{
|
|
55
|
+
exactDestination: "exactDestination";
|
|
56
|
+
exactSource: "exactSource";
|
|
57
|
+
}>;
|
|
58
|
+
slippageBps: z.ZodMiniNumber<number>;
|
|
59
|
+
sourceToken: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
60
|
+
}, z.core.$strict>;
|
|
61
|
+
/** One call in the unsigned Tempo transaction plan. */
|
|
62
|
+
const Call: z.ZodMiniObject<{
|
|
63
|
+
data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
|
|
64
|
+
to: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
65
|
+
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
/** Response-level valuation rate provenance. */
|
|
68
|
+
const Meta: z.ZodMiniObject<{
|
|
69
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
70
|
+
asOf: z.ZodMiniISODateTime;
|
|
71
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
72
|
+
source: z.ZodMiniString<string>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
/** Native DEX quote plus the approval and swap calls needed to execute it. */
|
|
76
|
+
const Response: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
|
|
77
|
+
destinationAmount: z.ZodMiniObject<{
|
|
78
|
+
baseUnits: z.ZodMiniString<string>;
|
|
79
|
+
currency: z.ZodMiniString<string>;
|
|
80
|
+
decimals: z.ZodMiniNumber<number>;
|
|
81
|
+
formatted: z.ZodMiniString<string>;
|
|
82
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
83
|
+
amount: z.ZodMiniString<string>;
|
|
84
|
+
currency: z.ZodMiniString<string>;
|
|
85
|
+
}, z.core.$strip>>>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
destinationAmountMin: z.ZodMiniObject<{
|
|
88
|
+
baseUnits: z.ZodMiniString<string>;
|
|
89
|
+
currency: z.ZodMiniString<string>;
|
|
90
|
+
decimals: z.ZodMiniNumber<number>;
|
|
91
|
+
formatted: z.ZodMiniString<string>;
|
|
92
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
93
|
+
amount: z.ZodMiniString<string>;
|
|
94
|
+
currency: z.ZodMiniString<string>;
|
|
95
|
+
}, z.core.$strip>>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
destinationToken: z.ZodMiniObject<{
|
|
98
|
+
currency: z.ZodMiniString<string>;
|
|
99
|
+
decimals: z.ZodMiniNumber<number>;
|
|
100
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
101
|
+
name: z.ZodMiniString<string>;
|
|
102
|
+
symbol: z.ZodMiniString<string>;
|
|
103
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
104
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
107
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
108
|
+
asOf: z.ZodMiniISODateTime;
|
|
109
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
110
|
+
source: z.ZodMiniString<string>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
mode: z.ZodMiniLiteral<"exactSource">;
|
|
114
|
+
sourceAmount: z.ZodMiniObject<{
|
|
115
|
+
baseUnits: z.ZodMiniString<string>;
|
|
116
|
+
currency: z.ZodMiniString<string>;
|
|
117
|
+
decimals: z.ZodMiniNumber<number>;
|
|
118
|
+
formatted: z.ZodMiniString<string>;
|
|
119
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
120
|
+
amount: z.ZodMiniString<string>;
|
|
121
|
+
currency: z.ZodMiniString<string>;
|
|
122
|
+
}, z.core.$strip>>>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
sourceToken: z.ZodMiniObject<{
|
|
125
|
+
currency: z.ZodMiniString<string>;
|
|
126
|
+
decimals: z.ZodMiniNumber<number>;
|
|
127
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
128
|
+
name: z.ZodMiniString<string>;
|
|
129
|
+
symbol: z.ZodMiniString<string>;
|
|
130
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
131
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
transaction: z.ZodMiniObject<{
|
|
134
|
+
calls: z.ZodMiniArray<z.ZodMiniObject<{
|
|
135
|
+
data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
|
|
136
|
+
to: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
137
|
+
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
140
|
+
mainnet: "mainnet";
|
|
141
|
+
testnet: "testnet";
|
|
142
|
+
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
}, z.core.$strip>, z.ZodMiniObject<{
|
|
145
|
+
destinationAmount: z.ZodMiniObject<{
|
|
146
|
+
baseUnits: z.ZodMiniString<string>;
|
|
147
|
+
currency: z.ZodMiniString<string>;
|
|
148
|
+
decimals: z.ZodMiniNumber<number>;
|
|
149
|
+
formatted: z.ZodMiniString<string>;
|
|
150
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
151
|
+
amount: z.ZodMiniString<string>;
|
|
152
|
+
currency: z.ZodMiniString<string>;
|
|
153
|
+
}, z.core.$strip>>>;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
destinationToken: z.ZodMiniObject<{
|
|
156
|
+
currency: z.ZodMiniString<string>;
|
|
157
|
+
decimals: z.ZodMiniNumber<number>;
|
|
158
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
159
|
+
name: z.ZodMiniString<string>;
|
|
160
|
+
symbol: z.ZodMiniString<string>;
|
|
161
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
162
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
165
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
166
|
+
asOf: z.ZodMiniISODateTime;
|
|
167
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
168
|
+
source: z.ZodMiniString<string>;
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
|
+
mode: z.ZodMiniLiteral<"exactDestination">;
|
|
172
|
+
sourceAmount: z.ZodMiniObject<{
|
|
173
|
+
baseUnits: z.ZodMiniString<string>;
|
|
174
|
+
currency: z.ZodMiniString<string>;
|
|
175
|
+
decimals: z.ZodMiniNumber<number>;
|
|
176
|
+
formatted: z.ZodMiniString<string>;
|
|
177
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
178
|
+
amount: z.ZodMiniString<string>;
|
|
179
|
+
currency: z.ZodMiniString<string>;
|
|
180
|
+
}, z.core.$strip>>>;
|
|
181
|
+
}, z.core.$strip>;
|
|
182
|
+
sourceAmountMax: z.ZodMiniObject<{
|
|
183
|
+
baseUnits: z.ZodMiniString<string>;
|
|
184
|
+
currency: z.ZodMiniString<string>;
|
|
185
|
+
decimals: z.ZodMiniNumber<number>;
|
|
186
|
+
formatted: z.ZodMiniString<string>;
|
|
187
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
188
|
+
amount: z.ZodMiniString<string>;
|
|
189
|
+
currency: z.ZodMiniString<string>;
|
|
190
|
+
}, z.core.$strip>>>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
sourceToken: z.ZodMiniObject<{
|
|
193
|
+
currency: z.ZodMiniString<string>;
|
|
194
|
+
decimals: z.ZodMiniNumber<number>;
|
|
195
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
196
|
+
name: z.ZodMiniString<string>;
|
|
197
|
+
symbol: z.ZodMiniString<string>;
|
|
198
|
+
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
199
|
+
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
transaction: z.ZodMiniObject<{
|
|
202
|
+
calls: z.ZodMiniArray<z.ZodMiniObject<{
|
|
203
|
+
data: z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<`0x${string}`, string>>;
|
|
204
|
+
to: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
205
|
+
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
206
|
+
}, z.core.$strip>>;
|
|
207
|
+
chainId: z.ZodMiniPipe<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniEnum<{
|
|
208
|
+
mainnet: "mainnet";
|
|
209
|
+
testnet: "testnet";
|
|
210
|
+
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
}, z.core.$strip>], "mode">;
|
|
213
|
+
}
|
|
23
214
|
/** Schemas for the getPairs operation. */
|
|
24
215
|
namespace getPairs {
|
|
25
216
|
/**
|
|
@@ -185,21 +376,15 @@ export declare namespace schema {
|
|
|
185
376
|
}
|
|
186
377
|
/** Schemas for the getSwaps operation (the swap feed, optionally pair-scoped). */
|
|
187
378
|
namespace getSwaps {
|
|
188
|
-
/**
|
|
189
|
-
* Optional related resource that callers opt into via `include`. Currently
|
|
190
|
-
* only `tokens` (embeds metadata for both pair tokens on each row's
|
|
191
|
-
* `sourceToken`/`destinationToken`).
|
|
192
|
-
*/
|
|
379
|
+
/** Optional token fields that require sources beyond RPC metadata. */
|
|
193
380
|
const Include: z.ZodMiniEnum<{
|
|
194
|
-
|
|
381
|
+
"token.logoUri": "token.logoUri";
|
|
382
|
+
"token.verified": "token.verified";
|
|
195
383
|
}>;
|
|
196
|
-
/**
|
|
197
|
-
* Parses a comma-separated `include` query value into a list of optional
|
|
198
|
-
* resources to embed. Extra lookups (e.g. token metadata) only run when
|
|
199
|
-
* explicitly requested, keeping the base swap feed fast.
|
|
200
|
-
*/
|
|
384
|
+
/** Parses comma-separated optional token fields. */
|
|
201
385
|
const includeQuery: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
202
|
-
|
|
386
|
+
"token.logoUri": "token.logoUri";
|
|
387
|
+
"token.verified": "token.verified";
|
|
203
388
|
}>>>;
|
|
204
389
|
/** Query parameters for swap feed requests. */
|
|
205
390
|
const Query: z.ZodMiniObject<{
|
|
@@ -210,8 +395,10 @@ export declare namespace schema {
|
|
|
210
395
|
testnet: "testnet";
|
|
211
396
|
}>, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniNumber<unknown>]>, z.ZodMiniNumber<number>>>;
|
|
212
397
|
cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
398
|
+
denomination: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
|
|
213
399
|
include: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniUnknown>, z.ZodMiniTransform<string[], unknown>>, z.ZodMiniArray<z.ZodMiniEnum<{
|
|
214
|
-
|
|
400
|
+
"token.logoUri": "token.logoUri";
|
|
401
|
+
"token.verified": "token.verified";
|
|
215
402
|
}>>>;
|
|
216
403
|
limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
|
|
217
404
|
maker: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
@@ -225,47 +412,60 @@ export declare namespace schema {
|
|
|
225
412
|
'timestamp.to': z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
226
413
|
transactionHash: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
227
414
|
}, z.core.$strict>;
|
|
228
|
-
/**
|
|
229
|
-
* One side of a swap: a `PairToken` (address plus optional metadata when
|
|
230
|
-
* requested via `include=tokens`) annotated with the `amount` that moved
|
|
231
|
-
* on this side, as a decimal integer string in base units.
|
|
232
|
-
*/
|
|
415
|
+
/** One swap-side token with RPC metadata and optional curated fields. */
|
|
233
416
|
const SwapSide: z.ZodMiniObject<{
|
|
234
417
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
235
|
-
currency: z.
|
|
236
|
-
decimals: z.
|
|
237
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string
|
|
238
|
-
name: z.
|
|
239
|
-
symbol: z.
|
|
418
|
+
currency: z.ZodMiniString<string>;
|
|
419
|
+
decimals: z.ZodMiniNumber<number>;
|
|
420
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
421
|
+
name: z.ZodMiniString<string>;
|
|
422
|
+
symbol: z.ZodMiniString<string>;
|
|
240
423
|
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
241
|
-
amount: z.ZodMiniString<string>;
|
|
242
424
|
}, z.core.$strip>;
|
|
243
425
|
/** A single maker-order fill within a swap, framed from the taker's perspective. */
|
|
244
426
|
const Fill: z.ZodMiniObject<{
|
|
427
|
+
destinationAmount: z.ZodMiniObject<{
|
|
428
|
+
baseUnits: z.ZodMiniString<string>;
|
|
429
|
+
currency: z.ZodMiniString<string>;
|
|
430
|
+
decimals: z.ZodMiniNumber<number>;
|
|
431
|
+
formatted: z.ZodMiniString<string>;
|
|
432
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
433
|
+
amount: z.ZodMiniString<string>;
|
|
434
|
+
currency: z.ZodMiniString<string>;
|
|
435
|
+
}, z.core.$strip>>>;
|
|
436
|
+
}, z.core.$strip>;
|
|
245
437
|
destinationToken: z.ZodMiniObject<{
|
|
246
438
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
247
|
-
currency: z.
|
|
248
|
-
decimals: z.
|
|
249
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string
|
|
250
|
-
name: z.
|
|
251
|
-
symbol: z.
|
|
439
|
+
currency: z.ZodMiniString<string>;
|
|
440
|
+
decimals: z.ZodMiniNumber<number>;
|
|
441
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
442
|
+
name: z.ZodMiniString<string>;
|
|
443
|
+
symbol: z.ZodMiniString<string>;
|
|
252
444
|
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
253
|
-
amount: z.ZodMiniString<string>;
|
|
254
445
|
}, z.core.$strip>;
|
|
255
446
|
logIndex: z.ZodMiniNumber<number>;
|
|
256
447
|
maker: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
257
448
|
orderId: z.ZodMiniString<string>;
|
|
258
449
|
partialFill: z.ZodMiniBoolean<boolean>;
|
|
259
450
|
price: z.ZodMiniString<string>;
|
|
451
|
+
sourceAmount: z.ZodMiniObject<{
|
|
452
|
+
baseUnits: z.ZodMiniString<string>;
|
|
453
|
+
currency: z.ZodMiniString<string>;
|
|
454
|
+
decimals: z.ZodMiniNumber<number>;
|
|
455
|
+
formatted: z.ZodMiniString<string>;
|
|
456
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
457
|
+
amount: z.ZodMiniString<string>;
|
|
458
|
+
currency: z.ZodMiniString<string>;
|
|
459
|
+
}, z.core.$strip>>>;
|
|
460
|
+
}, z.core.$strip>;
|
|
260
461
|
sourceToken: z.ZodMiniObject<{
|
|
261
462
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
262
|
-
currency: z.
|
|
263
|
-
decimals: z.
|
|
264
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string
|
|
265
|
-
name: z.
|
|
266
|
-
symbol: z.
|
|
463
|
+
currency: z.ZodMiniString<string>;
|
|
464
|
+
decimals: z.ZodMiniNumber<number>;
|
|
465
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
466
|
+
name: z.ZodMiniString<string>;
|
|
467
|
+
symbol: z.ZodMiniString<string>;
|
|
267
468
|
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
268
|
-
amount: z.ZodMiniString<string>;
|
|
269
469
|
}, z.core.$strip>;
|
|
270
470
|
}, z.core.$strip>;
|
|
271
471
|
/**
|
|
@@ -277,42 +477,69 @@ export declare namespace schema {
|
|
|
277
477
|
*/
|
|
278
478
|
const Swap: z.ZodMiniObject<{
|
|
279
479
|
blockNumber: z.ZodMiniNumber<number>;
|
|
480
|
+
destinationAmount: z.ZodMiniObject<{
|
|
481
|
+
baseUnits: z.ZodMiniString<string>;
|
|
482
|
+
currency: z.ZodMiniString<string>;
|
|
483
|
+
decimals: z.ZodMiniNumber<number>;
|
|
484
|
+
formatted: z.ZodMiniString<string>;
|
|
485
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
486
|
+
amount: z.ZodMiniString<string>;
|
|
487
|
+
currency: z.ZodMiniString<string>;
|
|
488
|
+
}, z.core.$strip>>>;
|
|
489
|
+
}, z.core.$strip>;
|
|
280
490
|
destinationToken: z.ZodMiniObject<{
|
|
281
491
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
282
|
-
currency: z.
|
|
283
|
-
decimals: z.
|
|
284
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string
|
|
285
|
-
name: z.
|
|
286
|
-
symbol: z.
|
|
492
|
+
currency: z.ZodMiniString<string>;
|
|
493
|
+
decimals: z.ZodMiniNumber<number>;
|
|
494
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
495
|
+
name: z.ZodMiniString<string>;
|
|
496
|
+
symbol: z.ZodMiniString<string>;
|
|
287
497
|
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
288
|
-
amount: z.ZodMiniString<string>;
|
|
289
498
|
}, z.core.$strip>;
|
|
290
499
|
filledAt: z.ZodMiniISODateTime;
|
|
291
500
|
fills: z.ZodMiniArray<z.ZodMiniObject<{
|
|
501
|
+
destinationAmount: z.ZodMiniObject<{
|
|
502
|
+
baseUnits: z.ZodMiniString<string>;
|
|
503
|
+
currency: z.ZodMiniString<string>;
|
|
504
|
+
decimals: z.ZodMiniNumber<number>;
|
|
505
|
+
formatted: z.ZodMiniString<string>;
|
|
506
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
507
|
+
amount: z.ZodMiniString<string>;
|
|
508
|
+
currency: z.ZodMiniString<string>;
|
|
509
|
+
}, z.core.$strip>>>;
|
|
510
|
+
}, z.core.$strip>;
|
|
292
511
|
destinationToken: z.ZodMiniObject<{
|
|
293
512
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
294
|
-
currency: z.
|
|
295
|
-
decimals: z.
|
|
296
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string
|
|
297
|
-
name: z.
|
|
298
|
-
symbol: z.
|
|
513
|
+
currency: z.ZodMiniString<string>;
|
|
514
|
+
decimals: z.ZodMiniNumber<number>;
|
|
515
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
516
|
+
name: z.ZodMiniString<string>;
|
|
517
|
+
symbol: z.ZodMiniString<string>;
|
|
299
518
|
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
300
|
-
amount: z.ZodMiniString<string>;
|
|
301
519
|
}, z.core.$strip>;
|
|
302
520
|
logIndex: z.ZodMiniNumber<number>;
|
|
303
521
|
maker: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
304
522
|
orderId: z.ZodMiniString<string>;
|
|
305
523
|
partialFill: z.ZodMiniBoolean<boolean>;
|
|
306
524
|
price: z.ZodMiniString<string>;
|
|
525
|
+
sourceAmount: z.ZodMiniObject<{
|
|
526
|
+
baseUnits: z.ZodMiniString<string>;
|
|
527
|
+
currency: z.ZodMiniString<string>;
|
|
528
|
+
decimals: z.ZodMiniNumber<number>;
|
|
529
|
+
formatted: z.ZodMiniString<string>;
|
|
530
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
531
|
+
amount: z.ZodMiniString<string>;
|
|
532
|
+
currency: z.ZodMiniString<string>;
|
|
533
|
+
}, z.core.$strip>>>;
|
|
534
|
+
}, z.core.$strip>;
|
|
307
535
|
sourceToken: z.ZodMiniObject<{
|
|
308
536
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
309
|
-
currency: z.
|
|
310
|
-
decimals: z.
|
|
311
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string
|
|
312
|
-
name: z.
|
|
313
|
-
symbol: z.
|
|
537
|
+
currency: z.ZodMiniString<string>;
|
|
538
|
+
decimals: z.ZodMiniNumber<number>;
|
|
539
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
540
|
+
name: z.ZodMiniString<string>;
|
|
541
|
+
symbol: z.ZodMiniString<string>;
|
|
314
542
|
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
315
|
-
amount: z.ZodMiniString<string>;
|
|
316
543
|
}, z.core.$strip>;
|
|
317
544
|
}, z.core.$strip>>;
|
|
318
545
|
id: z.ZodMiniString<string>;
|
|
@@ -323,15 +550,24 @@ export declare namespace schema {
|
|
|
323
550
|
}>>;
|
|
324
551
|
rate: z.ZodMiniString<string>;
|
|
325
552
|
route: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
553
|
+
sourceAmount: z.ZodMiniObject<{
|
|
554
|
+
baseUnits: z.ZodMiniString<string>;
|
|
555
|
+
currency: z.ZodMiniString<string>;
|
|
556
|
+
decimals: z.ZodMiniNumber<number>;
|
|
557
|
+
formatted: z.ZodMiniString<string>;
|
|
558
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
559
|
+
amount: z.ZodMiniString<string>;
|
|
560
|
+
currency: z.ZodMiniString<string>;
|
|
561
|
+
}, z.core.$strip>>>;
|
|
562
|
+
}, z.core.$strip>;
|
|
326
563
|
sourceToken: z.ZodMiniObject<{
|
|
327
564
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
328
|
-
currency: z.
|
|
329
|
-
decimals: z.
|
|
330
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string
|
|
331
|
-
name: z.
|
|
332
|
-
symbol: z.
|
|
565
|
+
currency: z.ZodMiniString<string>;
|
|
566
|
+
decimals: z.ZodMiniNumber<number>;
|
|
567
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
568
|
+
name: z.ZodMiniString<string>;
|
|
569
|
+
symbol: z.ZodMiniString<string>;
|
|
333
570
|
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
334
|
-
amount: z.ZodMiniString<string>;
|
|
335
571
|
}, z.core.$strip>;
|
|
336
572
|
taker: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
337
573
|
transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
@@ -343,45 +579,80 @@ export declare namespace schema {
|
|
|
343
579
|
* rows per page; a transaction batching several unrelated swaps by one
|
|
344
580
|
* taker may have its rows split across consecutive pages.
|
|
345
581
|
*/
|
|
582
|
+
/** Page-level resources: valuation rate provenance. */
|
|
583
|
+
const Meta: z.ZodMiniObject<{
|
|
584
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
585
|
+
asOf: z.ZodMiniISODateTime;
|
|
586
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
587
|
+
source: z.ZodMiniString<string>;
|
|
588
|
+
}, z.core.$strip>>;
|
|
589
|
+
}, z.core.$strip>;
|
|
346
590
|
const Response: z.ZodMiniObject<{
|
|
347
591
|
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
348
592
|
blockNumber: z.ZodMiniNumber<number>;
|
|
593
|
+
destinationAmount: z.ZodMiniObject<{
|
|
594
|
+
baseUnits: z.ZodMiniString<string>;
|
|
595
|
+
currency: z.ZodMiniString<string>;
|
|
596
|
+
decimals: z.ZodMiniNumber<number>;
|
|
597
|
+
formatted: z.ZodMiniString<string>;
|
|
598
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
599
|
+
amount: z.ZodMiniString<string>;
|
|
600
|
+
currency: z.ZodMiniString<string>;
|
|
601
|
+
}, z.core.$strip>>>;
|
|
602
|
+
}, z.core.$strip>;
|
|
349
603
|
destinationToken: z.ZodMiniObject<{
|
|
350
604
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
351
|
-
currency: z.
|
|
352
|
-
decimals: z.
|
|
353
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string
|
|
354
|
-
name: z.
|
|
355
|
-
symbol: z.
|
|
605
|
+
currency: z.ZodMiniString<string>;
|
|
606
|
+
decimals: z.ZodMiniNumber<number>;
|
|
607
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
608
|
+
name: z.ZodMiniString<string>;
|
|
609
|
+
symbol: z.ZodMiniString<string>;
|
|
356
610
|
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
357
|
-
amount: z.ZodMiniString<string>;
|
|
358
611
|
}, z.core.$strip>;
|
|
359
612
|
filledAt: z.ZodMiniISODateTime;
|
|
360
613
|
fills: z.ZodMiniArray<z.ZodMiniObject<{
|
|
614
|
+
destinationAmount: z.ZodMiniObject<{
|
|
615
|
+
baseUnits: z.ZodMiniString<string>;
|
|
616
|
+
currency: z.ZodMiniString<string>;
|
|
617
|
+
decimals: z.ZodMiniNumber<number>;
|
|
618
|
+
formatted: z.ZodMiniString<string>;
|
|
619
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
620
|
+
amount: z.ZodMiniString<string>;
|
|
621
|
+
currency: z.ZodMiniString<string>;
|
|
622
|
+
}, z.core.$strip>>>;
|
|
623
|
+
}, z.core.$strip>;
|
|
361
624
|
destinationToken: z.ZodMiniObject<{
|
|
362
625
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
363
|
-
currency: z.
|
|
364
|
-
decimals: z.
|
|
365
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string
|
|
366
|
-
name: z.
|
|
367
|
-
symbol: z.
|
|
626
|
+
currency: z.ZodMiniString<string>;
|
|
627
|
+
decimals: z.ZodMiniNumber<number>;
|
|
628
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
629
|
+
name: z.ZodMiniString<string>;
|
|
630
|
+
symbol: z.ZodMiniString<string>;
|
|
368
631
|
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
369
|
-
amount: z.ZodMiniString<string>;
|
|
370
632
|
}, z.core.$strip>;
|
|
371
633
|
logIndex: z.ZodMiniNumber<number>;
|
|
372
634
|
maker: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
373
635
|
orderId: z.ZodMiniString<string>;
|
|
374
636
|
partialFill: z.ZodMiniBoolean<boolean>;
|
|
375
637
|
price: z.ZodMiniString<string>;
|
|
638
|
+
sourceAmount: z.ZodMiniObject<{
|
|
639
|
+
baseUnits: z.ZodMiniString<string>;
|
|
640
|
+
currency: z.ZodMiniString<string>;
|
|
641
|
+
decimals: z.ZodMiniNumber<number>;
|
|
642
|
+
formatted: z.ZodMiniString<string>;
|
|
643
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
644
|
+
amount: z.ZodMiniString<string>;
|
|
645
|
+
currency: z.ZodMiniString<string>;
|
|
646
|
+
}, z.core.$strip>>>;
|
|
647
|
+
}, z.core.$strip>;
|
|
376
648
|
sourceToken: z.ZodMiniObject<{
|
|
377
649
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
378
|
-
currency: z.
|
|
379
|
-
decimals: z.
|
|
380
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string
|
|
381
|
-
name: z.
|
|
382
|
-
symbol: z.
|
|
650
|
+
currency: z.ZodMiniString<string>;
|
|
651
|
+
decimals: z.ZodMiniNumber<number>;
|
|
652
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
653
|
+
name: z.ZodMiniString<string>;
|
|
654
|
+
symbol: z.ZodMiniString<string>;
|
|
383
655
|
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
384
|
-
amount: z.ZodMiniString<string>;
|
|
385
656
|
}, z.core.$strip>;
|
|
386
657
|
}, z.core.$strip>>;
|
|
387
658
|
id: z.ZodMiniString<string>;
|
|
@@ -392,19 +663,35 @@ export declare namespace schema {
|
|
|
392
663
|
}>>;
|
|
393
664
|
rate: z.ZodMiniString<string>;
|
|
394
665
|
route: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
666
|
+
sourceAmount: z.ZodMiniObject<{
|
|
667
|
+
baseUnits: z.ZodMiniString<string>;
|
|
668
|
+
currency: z.ZodMiniString<string>;
|
|
669
|
+
decimals: z.ZodMiniNumber<number>;
|
|
670
|
+
formatted: z.ZodMiniString<string>;
|
|
671
|
+
valuation: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
|
|
672
|
+
amount: z.ZodMiniString<string>;
|
|
673
|
+
currency: z.ZodMiniString<string>;
|
|
674
|
+
}, z.core.$strip>>>;
|
|
675
|
+
}, z.core.$strip>;
|
|
395
676
|
sourceToken: z.ZodMiniObject<{
|
|
396
677
|
address: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
397
|
-
currency: z.
|
|
398
|
-
decimals: z.
|
|
399
|
-
logoUri: z.ZodMiniOptional<z.ZodMiniString<string
|
|
400
|
-
name: z.
|
|
401
|
-
symbol: z.
|
|
678
|
+
currency: z.ZodMiniString<string>;
|
|
679
|
+
decimals: z.ZodMiniNumber<number>;
|
|
680
|
+
logoUri: z.ZodMiniOptional<z.ZodMiniOptional<z.ZodMiniString<string>>>;
|
|
681
|
+
name: z.ZodMiniString<string>;
|
|
682
|
+
symbol: z.ZodMiniString<string>;
|
|
402
683
|
verified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
403
|
-
amount: z.ZodMiniString<string>;
|
|
404
684
|
}, z.core.$strip>;
|
|
405
685
|
taker: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
406
686
|
transactionHash: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
407
687
|
}, z.core.$strip>>;
|
|
688
|
+
meta: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
689
|
+
pricing: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
690
|
+
asOf: z.ZodMiniISODateTime;
|
|
691
|
+
basis: z.ZodMiniLiteral<"nominal">;
|
|
692
|
+
source: z.ZodMiniString<string>;
|
|
693
|
+
}, z.core.$strip>>;
|
|
694
|
+
}, z.core.$strip>>;
|
|
408
695
|
nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
409
696
|
}, z.core.$strip>;
|
|
410
697
|
}
|
|
@@ -972,7 +1259,413 @@ export declare namespace schema {
|
|
|
972
1259
|
* `token_balances_snapshot` row attribute cleanly to one pair. Pairs whose
|
|
973
1260
|
* DEX-escrow balance is zero are excluded from the liquidity ranking.
|
|
974
1261
|
*/
|
|
975
|
-
export declare function exchanges(): import("hono/hono-base").HonoBase<App.Environment, {
|
|
1262
|
+
export declare function exchanges(options?: exchanges.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
1263
|
+
"/v1/exchange/quotes": {
|
|
1264
|
+
$post: {
|
|
1265
|
+
output: null;
|
|
1266
|
+
outputFormat: "body";
|
|
1267
|
+
status: 402;
|
|
1268
|
+
input: {
|
|
1269
|
+
query?: {
|
|
1270
|
+
chainId?: string | string[];
|
|
1271
|
+
denomination?: string | string[];
|
|
1272
|
+
include?: string | string[];
|
|
1273
|
+
} | undefined;
|
|
1274
|
+
} & {
|
|
1275
|
+
json: {
|
|
1276
|
+
amount: string;
|
|
1277
|
+
destinationToken: `0x${string}`;
|
|
1278
|
+
mode: "exactDestination" | "exactSource";
|
|
1279
|
+
slippageBps: number;
|
|
1280
|
+
sourceToken: `0x${string}`;
|
|
1281
|
+
};
|
|
1282
|
+
};
|
|
1283
|
+
} | {
|
|
1284
|
+
output: {
|
|
1285
|
+
error: {
|
|
1286
|
+
code: "api_key_malformed";
|
|
1287
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1288
|
+
message: string;
|
|
1289
|
+
};
|
|
1290
|
+
requestId: string;
|
|
1291
|
+
};
|
|
1292
|
+
outputFormat: "json";
|
|
1293
|
+
status: 400;
|
|
1294
|
+
input: {
|
|
1295
|
+
query?: {
|
|
1296
|
+
chainId?: string | string[];
|
|
1297
|
+
denomination?: string | string[];
|
|
1298
|
+
include?: string | string[];
|
|
1299
|
+
} | undefined;
|
|
1300
|
+
} & {
|
|
1301
|
+
json: {
|
|
1302
|
+
amount: string;
|
|
1303
|
+
destinationToken: `0x${string}`;
|
|
1304
|
+
mode: "exactDestination" | "exactSource";
|
|
1305
|
+
slippageBps: number;
|
|
1306
|
+
sourceToken: `0x${string}`;
|
|
1307
|
+
};
|
|
1308
|
+
};
|
|
1309
|
+
} | {
|
|
1310
|
+
output: {
|
|
1311
|
+
error: {
|
|
1312
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1313
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1314
|
+
message: string;
|
|
1315
|
+
};
|
|
1316
|
+
requestId: string;
|
|
1317
|
+
};
|
|
1318
|
+
outputFormat: "json";
|
|
1319
|
+
status: 401;
|
|
1320
|
+
input: {
|
|
1321
|
+
query?: {
|
|
1322
|
+
chainId?: string | string[];
|
|
1323
|
+
denomination?: string | string[];
|
|
1324
|
+
include?: string | string[];
|
|
1325
|
+
} | undefined;
|
|
1326
|
+
} & {
|
|
1327
|
+
json: {
|
|
1328
|
+
amount: string;
|
|
1329
|
+
destinationToken: `0x${string}`;
|
|
1330
|
+
mode: "exactDestination" | "exactSource";
|
|
1331
|
+
slippageBps: number;
|
|
1332
|
+
sourceToken: `0x${string}`;
|
|
1333
|
+
};
|
|
1334
|
+
};
|
|
1335
|
+
} | {
|
|
1336
|
+
output: {
|
|
1337
|
+
error: {
|
|
1338
|
+
code: "api_key_forbidden";
|
|
1339
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1340
|
+
message: string;
|
|
1341
|
+
};
|
|
1342
|
+
requestId: string;
|
|
1343
|
+
};
|
|
1344
|
+
outputFormat: "json";
|
|
1345
|
+
status: 403;
|
|
1346
|
+
input: {
|
|
1347
|
+
query?: {
|
|
1348
|
+
chainId?: string | string[];
|
|
1349
|
+
denomination?: string | string[];
|
|
1350
|
+
include?: string | string[];
|
|
1351
|
+
} | undefined;
|
|
1352
|
+
} & {
|
|
1353
|
+
json: {
|
|
1354
|
+
amount: string;
|
|
1355
|
+
destinationToken: `0x${string}`;
|
|
1356
|
+
mode: "exactDestination" | "exactSource";
|
|
1357
|
+
slippageBps: number;
|
|
1358
|
+
sourceToken: `0x${string}`;
|
|
1359
|
+
};
|
|
1360
|
+
};
|
|
1361
|
+
} | {
|
|
1362
|
+
output: {
|
|
1363
|
+
error: {
|
|
1364
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1365
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1366
|
+
message: string;
|
|
1367
|
+
};
|
|
1368
|
+
requestId: string;
|
|
1369
|
+
};
|
|
1370
|
+
outputFormat: "json";
|
|
1371
|
+
status: 429;
|
|
1372
|
+
input: {
|
|
1373
|
+
query?: {
|
|
1374
|
+
chainId?: string | string[];
|
|
1375
|
+
denomination?: string | string[];
|
|
1376
|
+
include?: string | string[];
|
|
1377
|
+
} | undefined;
|
|
1378
|
+
} & {
|
|
1379
|
+
json: {
|
|
1380
|
+
amount: string;
|
|
1381
|
+
destinationToken: `0x${string}`;
|
|
1382
|
+
mode: "exactDestination" | "exactSource";
|
|
1383
|
+
slippageBps: number;
|
|
1384
|
+
sourceToken: `0x${string}`;
|
|
1385
|
+
};
|
|
1386
|
+
};
|
|
1387
|
+
} | {
|
|
1388
|
+
output: {
|
|
1389
|
+
error: {
|
|
1390
|
+
code: "query_invalid";
|
|
1391
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1392
|
+
message: string;
|
|
1393
|
+
};
|
|
1394
|
+
requestId: string;
|
|
1395
|
+
};
|
|
1396
|
+
outputFormat: "json";
|
|
1397
|
+
status: 400;
|
|
1398
|
+
input: {
|
|
1399
|
+
query?: {
|
|
1400
|
+
chainId?: string | string[];
|
|
1401
|
+
denomination?: string | string[];
|
|
1402
|
+
include?: string | string[];
|
|
1403
|
+
} | undefined;
|
|
1404
|
+
} & {
|
|
1405
|
+
json: {
|
|
1406
|
+
amount: string;
|
|
1407
|
+
destinationToken: `0x${string}`;
|
|
1408
|
+
mode: "exactDestination" | "exactSource";
|
|
1409
|
+
slippageBps: number;
|
|
1410
|
+
sourceToken: `0x${string}`;
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
} | {
|
|
1414
|
+
output: {
|
|
1415
|
+
error: {
|
|
1416
|
+
code: "upstream_error";
|
|
1417
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1418
|
+
message: string;
|
|
1419
|
+
};
|
|
1420
|
+
requestId: string;
|
|
1421
|
+
};
|
|
1422
|
+
outputFormat: "json";
|
|
1423
|
+
status: 502;
|
|
1424
|
+
input: {
|
|
1425
|
+
query?: {
|
|
1426
|
+
chainId?: string | string[];
|
|
1427
|
+
denomination?: string | string[];
|
|
1428
|
+
include?: string | string[];
|
|
1429
|
+
} | undefined;
|
|
1430
|
+
} & {
|
|
1431
|
+
json: {
|
|
1432
|
+
amount: string;
|
|
1433
|
+
destinationToken: `0x${string}`;
|
|
1434
|
+
mode: "exactDestination" | "exactSource";
|
|
1435
|
+
slippageBps: number;
|
|
1436
|
+
sourceToken: `0x${string}`;
|
|
1437
|
+
};
|
|
1438
|
+
};
|
|
1439
|
+
} | {
|
|
1440
|
+
output: {
|
|
1441
|
+
error: {
|
|
1442
|
+
code: "body_invalid";
|
|
1443
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1444
|
+
message: string;
|
|
1445
|
+
};
|
|
1446
|
+
requestId: string;
|
|
1447
|
+
};
|
|
1448
|
+
outputFormat: "json";
|
|
1449
|
+
status: 400;
|
|
1450
|
+
input: {
|
|
1451
|
+
query?: {
|
|
1452
|
+
chainId?: string | string[];
|
|
1453
|
+
denomination?: string | string[];
|
|
1454
|
+
include?: string | string[];
|
|
1455
|
+
} | undefined;
|
|
1456
|
+
} & {
|
|
1457
|
+
json: {
|
|
1458
|
+
amount: string;
|
|
1459
|
+
destinationToken: `0x${string}`;
|
|
1460
|
+
mode: "exactDestination" | "exactSource";
|
|
1461
|
+
slippageBps: number;
|
|
1462
|
+
sourceToken: `0x${string}`;
|
|
1463
|
+
};
|
|
1464
|
+
};
|
|
1465
|
+
} | {
|
|
1466
|
+
output: {
|
|
1467
|
+
error: {
|
|
1468
|
+
code: "quote_not_available";
|
|
1469
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1470
|
+
message: string;
|
|
1471
|
+
};
|
|
1472
|
+
requestId: string;
|
|
1473
|
+
};
|
|
1474
|
+
outputFormat: "json";
|
|
1475
|
+
status: 404;
|
|
1476
|
+
input: {
|
|
1477
|
+
query?: {
|
|
1478
|
+
chainId?: string | string[];
|
|
1479
|
+
denomination?: string | string[];
|
|
1480
|
+
include?: string | string[];
|
|
1481
|
+
} | undefined;
|
|
1482
|
+
} & {
|
|
1483
|
+
json: {
|
|
1484
|
+
amount: string;
|
|
1485
|
+
destinationToken: `0x${string}`;
|
|
1486
|
+
mode: "exactDestination" | "exactSource";
|
|
1487
|
+
slippageBps: number;
|
|
1488
|
+
sourceToken: `0x${string}`;
|
|
1489
|
+
};
|
|
1490
|
+
};
|
|
1491
|
+
} | {
|
|
1492
|
+
output: {
|
|
1493
|
+
error: {
|
|
1494
|
+
code: "quote_amount_out_of_range";
|
|
1495
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1496
|
+
message: string;
|
|
1497
|
+
};
|
|
1498
|
+
requestId: string;
|
|
1499
|
+
};
|
|
1500
|
+
outputFormat: "json";
|
|
1501
|
+
status: 400;
|
|
1502
|
+
input: {
|
|
1503
|
+
query?: {
|
|
1504
|
+
chainId?: string | string[];
|
|
1505
|
+
denomination?: string | string[];
|
|
1506
|
+
include?: string | string[];
|
|
1507
|
+
} | undefined;
|
|
1508
|
+
} & {
|
|
1509
|
+
json: {
|
|
1510
|
+
amount: string;
|
|
1511
|
+
destinationToken: `0x${string}`;
|
|
1512
|
+
mode: "exactDestination" | "exactSource";
|
|
1513
|
+
slippageBps: number;
|
|
1514
|
+
sourceToken: `0x${string}`;
|
|
1515
|
+
};
|
|
1516
|
+
};
|
|
1517
|
+
} | {
|
|
1518
|
+
output: {
|
|
1519
|
+
destinationAmount: {
|
|
1520
|
+
baseUnits: string;
|
|
1521
|
+
currency: string;
|
|
1522
|
+
decimals: number;
|
|
1523
|
+
formatted: string;
|
|
1524
|
+
valuation?: {
|
|
1525
|
+
amount: string;
|
|
1526
|
+
currency: string;
|
|
1527
|
+
} | null | undefined;
|
|
1528
|
+
};
|
|
1529
|
+
destinationAmountMin: {
|
|
1530
|
+
baseUnits: string;
|
|
1531
|
+
currency: string;
|
|
1532
|
+
decimals: number;
|
|
1533
|
+
formatted: string;
|
|
1534
|
+
valuation?: {
|
|
1535
|
+
amount: string;
|
|
1536
|
+
currency: string;
|
|
1537
|
+
} | null | undefined;
|
|
1538
|
+
};
|
|
1539
|
+
destinationToken: {
|
|
1540
|
+
currency: string;
|
|
1541
|
+
decimals: number;
|
|
1542
|
+
logoUri?: string | undefined;
|
|
1543
|
+
name: string;
|
|
1544
|
+
symbol: string;
|
|
1545
|
+
verified?: boolean | undefined;
|
|
1546
|
+
address: `0x${string}`;
|
|
1547
|
+
};
|
|
1548
|
+
meta?: {
|
|
1549
|
+
pricing?: {
|
|
1550
|
+
asOf: string;
|
|
1551
|
+
basis: "nominal";
|
|
1552
|
+
source: string;
|
|
1553
|
+
} | undefined;
|
|
1554
|
+
} | undefined;
|
|
1555
|
+
mode: "exactSource";
|
|
1556
|
+
sourceAmount: {
|
|
1557
|
+
baseUnits: string;
|
|
1558
|
+
currency: string;
|
|
1559
|
+
decimals: number;
|
|
1560
|
+
formatted: string;
|
|
1561
|
+
valuation?: {
|
|
1562
|
+
amount: string;
|
|
1563
|
+
currency: string;
|
|
1564
|
+
} | null | undefined;
|
|
1565
|
+
};
|
|
1566
|
+
sourceToken: {
|
|
1567
|
+
currency: string;
|
|
1568
|
+
decimals: number;
|
|
1569
|
+
logoUri?: string | undefined;
|
|
1570
|
+
name: string;
|
|
1571
|
+
symbol: string;
|
|
1572
|
+
verified?: boolean | undefined;
|
|
1573
|
+
address: `0x${string}`;
|
|
1574
|
+
};
|
|
1575
|
+
transaction: {
|
|
1576
|
+
calls: {
|
|
1577
|
+
data: `0x${string}`;
|
|
1578
|
+
to: `0x${string}`;
|
|
1579
|
+
value: `0x${string}`;
|
|
1580
|
+
}[];
|
|
1581
|
+
chainId: number;
|
|
1582
|
+
};
|
|
1583
|
+
} | {
|
|
1584
|
+
destinationAmount: {
|
|
1585
|
+
baseUnits: string;
|
|
1586
|
+
currency: string;
|
|
1587
|
+
decimals: number;
|
|
1588
|
+
formatted: string;
|
|
1589
|
+
valuation?: {
|
|
1590
|
+
amount: string;
|
|
1591
|
+
currency: string;
|
|
1592
|
+
} | null | undefined;
|
|
1593
|
+
};
|
|
1594
|
+
destinationToken: {
|
|
1595
|
+
currency: string;
|
|
1596
|
+
decimals: number;
|
|
1597
|
+
logoUri?: string | undefined;
|
|
1598
|
+
name: string;
|
|
1599
|
+
symbol: string;
|
|
1600
|
+
verified?: boolean | undefined;
|
|
1601
|
+
address: `0x${string}`;
|
|
1602
|
+
};
|
|
1603
|
+
meta?: {
|
|
1604
|
+
pricing?: {
|
|
1605
|
+
asOf: string;
|
|
1606
|
+
basis: "nominal";
|
|
1607
|
+
source: string;
|
|
1608
|
+
} | undefined;
|
|
1609
|
+
} | undefined;
|
|
1610
|
+
mode: "exactDestination";
|
|
1611
|
+
sourceAmount: {
|
|
1612
|
+
baseUnits: string;
|
|
1613
|
+
currency: string;
|
|
1614
|
+
decimals: number;
|
|
1615
|
+
formatted: string;
|
|
1616
|
+
valuation?: {
|
|
1617
|
+
amount: string;
|
|
1618
|
+
currency: string;
|
|
1619
|
+
} | null | undefined;
|
|
1620
|
+
};
|
|
1621
|
+
sourceAmountMax: {
|
|
1622
|
+
baseUnits: string;
|
|
1623
|
+
currency: string;
|
|
1624
|
+
decimals: number;
|
|
1625
|
+
formatted: string;
|
|
1626
|
+
valuation?: {
|
|
1627
|
+
amount: string;
|
|
1628
|
+
currency: string;
|
|
1629
|
+
} | null | undefined;
|
|
1630
|
+
};
|
|
1631
|
+
sourceToken: {
|
|
1632
|
+
currency: string;
|
|
1633
|
+
decimals: number;
|
|
1634
|
+
logoUri?: string | undefined;
|
|
1635
|
+
name: string;
|
|
1636
|
+
symbol: string;
|
|
1637
|
+
verified?: boolean | undefined;
|
|
1638
|
+
address: `0x${string}`;
|
|
1639
|
+
};
|
|
1640
|
+
transaction: {
|
|
1641
|
+
calls: {
|
|
1642
|
+
data: `0x${string}`;
|
|
1643
|
+
to: `0x${string}`;
|
|
1644
|
+
value: `0x${string}`;
|
|
1645
|
+
}[];
|
|
1646
|
+
chainId: number;
|
|
1647
|
+
};
|
|
1648
|
+
};
|
|
1649
|
+
outputFormat: "json";
|
|
1650
|
+
status: 200;
|
|
1651
|
+
input: {
|
|
1652
|
+
query?: {
|
|
1653
|
+
chainId?: string | string[];
|
|
1654
|
+
denomination?: string | string[];
|
|
1655
|
+
include?: string | string[];
|
|
1656
|
+
} | undefined;
|
|
1657
|
+
} & {
|
|
1658
|
+
json: {
|
|
1659
|
+
amount: string;
|
|
1660
|
+
destinationToken: `0x${string}`;
|
|
1661
|
+
mode: "exactDestination" | "exactSource";
|
|
1662
|
+
slippageBps: number;
|
|
1663
|
+
sourceToken: `0x${string}`;
|
|
1664
|
+
};
|
|
1665
|
+
};
|
|
1666
|
+
};
|
|
1667
|
+
};
|
|
1668
|
+
} & {
|
|
976
1669
|
"/v1/exchange/swaps": {
|
|
977
1670
|
$get: {
|
|
978
1671
|
output: null;
|
|
@@ -984,6 +1677,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
984
1677
|
'blockNumber.to'?: string | string[];
|
|
985
1678
|
chainId?: string | string[];
|
|
986
1679
|
cursor?: string | string[];
|
|
1680
|
+
denomination?: string | string[];
|
|
987
1681
|
include?: string | string[];
|
|
988
1682
|
limit?: string | string[];
|
|
989
1683
|
maker?: string | string[];
|
|
@@ -1012,6 +1706,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1012
1706
|
'blockNumber.to'?: string | string[];
|
|
1013
1707
|
chainId?: string | string[];
|
|
1014
1708
|
cursor?: string | string[];
|
|
1709
|
+
denomination?: string | string[];
|
|
1015
1710
|
include?: string | string[];
|
|
1016
1711
|
limit?: string | string[];
|
|
1017
1712
|
maker?: string | string[];
|
|
@@ -1040,6 +1735,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1040
1735
|
'blockNumber.to'?: string | string[];
|
|
1041
1736
|
chainId?: string | string[];
|
|
1042
1737
|
cursor?: string | string[];
|
|
1738
|
+
denomination?: string | string[];
|
|
1043
1739
|
include?: string | string[];
|
|
1044
1740
|
limit?: string | string[];
|
|
1045
1741
|
maker?: string | string[];
|
|
@@ -1068,6 +1764,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1068
1764
|
'blockNumber.to'?: string | string[];
|
|
1069
1765
|
chainId?: string | string[];
|
|
1070
1766
|
cursor?: string | string[];
|
|
1767
|
+
denomination?: string | string[];
|
|
1071
1768
|
include?: string | string[];
|
|
1072
1769
|
limit?: string | string[];
|
|
1073
1770
|
maker?: string | string[];
|
|
@@ -1096,6 +1793,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1096
1793
|
'blockNumber.to'?: string | string[];
|
|
1097
1794
|
chainId?: string | string[];
|
|
1098
1795
|
cursor?: string | string[];
|
|
1796
|
+
denomination?: string | string[];
|
|
1099
1797
|
include?: string | string[];
|
|
1100
1798
|
limit?: string | string[];
|
|
1101
1799
|
maker?: string | string[];
|
|
@@ -1124,6 +1822,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1124
1822
|
'blockNumber.to'?: string | string[];
|
|
1125
1823
|
chainId?: string | string[];
|
|
1126
1824
|
cursor?: string | string[];
|
|
1825
|
+
denomination?: string | string[];
|
|
1127
1826
|
include?: string | string[];
|
|
1128
1827
|
limit?: string | string[];
|
|
1129
1828
|
maker?: string | string[];
|
|
@@ -1152,6 +1851,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1152
1851
|
'blockNumber.to'?: string | string[];
|
|
1153
1852
|
chainId?: string | string[];
|
|
1154
1853
|
cursor?: string | string[];
|
|
1854
|
+
denomination?: string | string[];
|
|
1155
1855
|
include?: string | string[];
|
|
1156
1856
|
limit?: string | string[];
|
|
1157
1857
|
maker?: string | string[];
|
|
@@ -1167,42 +1867,69 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1167
1867
|
output: {
|
|
1168
1868
|
data: {
|
|
1169
1869
|
blockNumber: number;
|
|
1870
|
+
destinationAmount: {
|
|
1871
|
+
baseUnits: string;
|
|
1872
|
+
currency: string;
|
|
1873
|
+
decimals: number;
|
|
1874
|
+
formatted: string;
|
|
1875
|
+
valuation?: {
|
|
1876
|
+
amount: string;
|
|
1877
|
+
currency: string;
|
|
1878
|
+
} | null | undefined;
|
|
1879
|
+
};
|
|
1170
1880
|
destinationToken: {
|
|
1171
1881
|
address: `0x${string}`;
|
|
1172
|
-
currency
|
|
1173
|
-
decimals
|
|
1882
|
+
currency: string;
|
|
1883
|
+
decimals: number;
|
|
1174
1884
|
logoUri?: string | undefined;
|
|
1175
|
-
name
|
|
1176
|
-
symbol
|
|
1885
|
+
name: string;
|
|
1886
|
+
symbol: string;
|
|
1177
1887
|
verified?: boolean | undefined;
|
|
1178
|
-
amount: string;
|
|
1179
1888
|
};
|
|
1180
1889
|
filledAt: string;
|
|
1181
1890
|
fills: {
|
|
1891
|
+
destinationAmount: {
|
|
1892
|
+
baseUnits: string;
|
|
1893
|
+
currency: string;
|
|
1894
|
+
decimals: number;
|
|
1895
|
+
formatted: string;
|
|
1896
|
+
valuation?: {
|
|
1897
|
+
amount: string;
|
|
1898
|
+
currency: string;
|
|
1899
|
+
} | null | undefined;
|
|
1900
|
+
};
|
|
1182
1901
|
destinationToken: {
|
|
1183
1902
|
address: `0x${string}`;
|
|
1184
|
-
currency
|
|
1185
|
-
decimals
|
|
1903
|
+
currency: string;
|
|
1904
|
+
decimals: number;
|
|
1186
1905
|
logoUri?: string | undefined;
|
|
1187
|
-
name
|
|
1188
|
-
symbol
|
|
1906
|
+
name: string;
|
|
1907
|
+
symbol: string;
|
|
1189
1908
|
verified?: boolean | undefined;
|
|
1190
|
-
amount: string;
|
|
1191
1909
|
};
|
|
1192
1910
|
logIndex: number;
|
|
1193
1911
|
maker: `0x${string}`;
|
|
1194
1912
|
orderId: string;
|
|
1195
1913
|
partialFill: boolean;
|
|
1196
1914
|
price: string;
|
|
1915
|
+
sourceAmount: {
|
|
1916
|
+
baseUnits: string;
|
|
1917
|
+
currency: string;
|
|
1918
|
+
decimals: number;
|
|
1919
|
+
formatted: string;
|
|
1920
|
+
valuation?: {
|
|
1921
|
+
amount: string;
|
|
1922
|
+
currency: string;
|
|
1923
|
+
} | null | undefined;
|
|
1924
|
+
};
|
|
1197
1925
|
sourceToken: {
|
|
1198
1926
|
address: `0x${string}`;
|
|
1199
|
-
currency
|
|
1200
|
-
decimals
|
|
1927
|
+
currency: string;
|
|
1928
|
+
decimals: number;
|
|
1201
1929
|
logoUri?: string | undefined;
|
|
1202
|
-
name
|
|
1203
|
-
symbol
|
|
1930
|
+
name: string;
|
|
1931
|
+
symbol: string;
|
|
1204
1932
|
verified?: boolean | undefined;
|
|
1205
|
-
amount: string;
|
|
1206
1933
|
};
|
|
1207
1934
|
}[];
|
|
1208
1935
|
id: string;
|
|
@@ -1210,19 +1937,35 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1210
1937
|
mode: "exactDestination" | "exactSource" | null;
|
|
1211
1938
|
rate: string;
|
|
1212
1939
|
route: `0x${string}`[];
|
|
1940
|
+
sourceAmount: {
|
|
1941
|
+
baseUnits: string;
|
|
1942
|
+
currency: string;
|
|
1943
|
+
decimals: number;
|
|
1944
|
+
formatted: string;
|
|
1945
|
+
valuation?: {
|
|
1946
|
+
amount: string;
|
|
1947
|
+
currency: string;
|
|
1948
|
+
} | null | undefined;
|
|
1949
|
+
};
|
|
1213
1950
|
sourceToken: {
|
|
1214
1951
|
address: `0x${string}`;
|
|
1215
|
-
currency
|
|
1216
|
-
decimals
|
|
1952
|
+
currency: string;
|
|
1953
|
+
decimals: number;
|
|
1217
1954
|
logoUri?: string | undefined;
|
|
1218
|
-
name
|
|
1219
|
-
symbol
|
|
1955
|
+
name: string;
|
|
1956
|
+
symbol: string;
|
|
1220
1957
|
verified?: boolean | undefined;
|
|
1221
|
-
amount: string;
|
|
1222
1958
|
};
|
|
1223
1959
|
taker: `0x${string}`;
|
|
1224
1960
|
transactionHash: `0x${string}`;
|
|
1225
1961
|
}[];
|
|
1962
|
+
meta?: {
|
|
1963
|
+
pricing?: {
|
|
1964
|
+
asOf: string;
|
|
1965
|
+
basis: "nominal";
|
|
1966
|
+
source: string;
|
|
1967
|
+
} | undefined;
|
|
1968
|
+
} | undefined;
|
|
1226
1969
|
nextCursor: string | null;
|
|
1227
1970
|
};
|
|
1228
1971
|
outputFormat: "json";
|
|
@@ -1233,6 +1976,7 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1233
1976
|
'blockNumber.to'?: string | string[];
|
|
1234
1977
|
chainId?: string | string[];
|
|
1235
1978
|
cursor?: string | string[];
|
|
1979
|
+
denomination?: string | string[];
|
|
1236
1980
|
include?: string | string[];
|
|
1237
1981
|
limit?: string | string[];
|
|
1238
1982
|
maker?: string | string[];
|
|
@@ -2892,6 +3636,13 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2892
3636
|
};
|
|
2893
3637
|
};
|
|
2894
3638
|
}, "/", "/v1/exchange/pairs/:base/depth">;
|
|
3639
|
+
export declare namespace exchanges {
|
|
3640
|
+
/** Options for the exchange handlers. */
|
|
3641
|
+
type Options = {
|
|
3642
|
+
/** FX configuration backing amount valuation. */
|
|
3643
|
+
fx?: Valuation.addresses.Fx | undefined;
|
|
3644
|
+
};
|
|
3645
|
+
}
|
|
2895
3646
|
/**
|
|
2896
3647
|
* Resolves the point-in-time order-state streams for a set of `orderId`s
|
|
2897
3648
|
* from the raw `OrderPlaced`/`OrderFlipped` logs.
|