tapimo 0.5.2 → 0.6.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 +13987 -5755
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js.map +1 -1
- package/dist/admin/App.d.ts +910 -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/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/verified-tokens.d.ts +643 -118
- 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 +45 -33
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/apps/data/App.d.ts +3733 -2428
- 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 +193 -2
- 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 +3575 -1358
- package/dist/apps/data/routes/activities.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.js +230 -88
- package/dist/apps/data/routes/activities.js.map +1 -1
- package/dist/apps/data/routes/addresses.d.ts +963 -342
- 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 +108 -57
- 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/coingecko.d.ts +169 -169
- package/dist/apps/data/routes/exchanges.d.ts +952 -201
- 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 +24 -24
- package/dist/apps/data/routes/funding.d.ts +8 -2
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +32 -6
- package/dist/apps/data/routes/funding.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts +5 -5
- 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 +166 -173
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +14 -12
- 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 +82 -17
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +70 -13
- 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.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 +459 -479
- 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 +1 -1
- package/dist/apps/index.d.ts.map +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/management/App.d.ts +8606 -1681
- 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 +23 -0
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +5 -3
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +88 -48
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +10 -2
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/faucet.d.ts +218 -0
- package/dist/apps/management/routes/faucet.d.ts.map +1 -0
- package/dist/apps/management/routes/faucet.js +139 -0
- package/dist/apps/management/routes/faucet.js.map +1 -0
- package/dist/apps/management/routes/invitations.d.ts +121 -121
- package/dist/apps/management/routes/invitations.d.ts.map +1 -1
- package/dist/apps/management/routes/invitations.js +3 -0
- package/dist/apps/management/routes/invitations.js.map +1 -1
- package/dist/apps/management/routes/invite-links.d.ts +197 -168
- 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 +2 -0
- package/dist/apps/management/routes/me.d.ts.map +1 -1
- package/dist/apps/management/routes/me.js +4 -0
- package/dist/apps/management/routes/me.js.map +1 -1
- package/dist/apps/management/routes/members.d.ts +49 -49
- package/dist/apps/management/routes/orgs.d.ts +91 -91
- package/dist/apps/management/routes/projects.d.ts +115 -115
- package/dist/apps/management/routes/usage.d.ts +35 -32
- 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/mcp.d.ts +9 -2
- package/dist/apps/mcp.d.ts.map +1 -1
- package/dist/apps/mcp.js +9 -4
- package/dist/apps/mcp.js.map +1 -1
- package/dist/cli/Cli.d.ts.map +1 -1
- package/dist/cli/Cli.js +7 -2
- package/dist/cli/Cli.js.map +1 -1
- package/dist/db/Db.d.ts +4 -0
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +83 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +41 -0
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +45 -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/invitations.d.ts +12 -1
- package/dist/db/tables/invitations.d.ts.map +1 -1
- package/dist/db/tables/invitations.js +23 -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/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/internal/Auth.d.ts +43 -2
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +60 -45
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/FundingQuotes.d.ts +69 -15
- package/dist/internal/FundingQuotes.d.ts.map +1 -1
- package/dist/internal/FundingQuotes.js +74 -25
- package/dist/internal/FundingQuotes.js.map +1 -1
- package/dist/internal/Log.d.ts +19 -1
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +2 -0
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/MetricSink.d.ts.map +1 -1
- package/dist/internal/MetricSink.js +9 -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/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/Viem.d.ts +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 +2 -2
- package/src/App.ts +9 -1
- package/src/Client.test-d.ts +638 -6
- package/src/admin/App.ts +4 -0
- package/src/admin/apps/early-access.test.ts +125 -0
- package/src/admin/apps/early-access.ts +175 -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/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/early-access.tsx +157 -0
- package/src/admin/ui/src/routes/verified-tokens.tsx +230 -19
- package/src/admin/ui.generated.ts +48 -33
- package/src/apps/data/App.ts +22 -14
- package/src/apps/data/FundingQuoteProviders.test.ts +298 -0
- package/src/apps/data/FundingQuoteProviders.ts +257 -4
- 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 +173 -3
- package/src/apps/data/routes/activities.ts +403 -132
- package/src/apps/data/routes/addresses.ts +19 -9
- package/src/apps/data/routes/balances.test.ts +144 -11
- package/src/apps/data/routes/balances.ts +140 -51
- package/src/apps/data/routes/exchanges.test.ts +540 -9
- package/src/apps/data/routes/exchanges.ts +690 -103
- package/src/apps/data/routes/funding.test.ts +84 -0
- package/src/apps/data/routes/funding.ts +38 -6
- package/src/apps/data/routes/receipts.test.ts +125 -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 +27 -12
- 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 +146 -4
- package/src/apps/data/routes/transfers.ts +91 -13
- package/src/apps/data/routes/valuation.test.ts +422 -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 +1 -1
- package/src/apps/management/App.ts +13 -0
- package/src/apps/management/routes/api-keys.test.ts +87 -0
- package/src/apps/management/routes/api-keys.ts +4 -3
- package/src/apps/management/routes/billing.test.ts +112 -1
- package/src/apps/management/routes/billing.ts +7 -2
- package/src/apps/management/routes/faucet.test.ts +79 -0
- package/src/apps/management/routes/faucet.ts +185 -0
- package/src/apps/management/routes/invitations.test.ts +172 -0
- package/src/apps/management/routes/invitations.ts +3 -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 +140 -88
- package/src/apps/management/routes/me.ts +6 -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/mcp.test.ts +13 -0
- package/src/apps/mcp.ts +18 -5
- package/src/cli/Cli.test.ts +36 -0
- package/src/cli/Cli.ts +7 -2
- package/src/db/Db.test.ts +19 -0
- package/src/db/Db.ts +95 -0
- package/src/db/Schema.ts +53 -0
- package/src/db/tables/earlyAccess.ts +86 -0
- package/src/db/tables/invitations.ts +26 -1
- package/src/db/tables/inviteLinks.ts +22 -3
- 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/internal/Auth.ts +73 -45
- package/src/internal/FundingQuotes.test.ts +143 -1
- package/src/internal/FundingQuotes.ts +95 -28
- package/src/internal/Log.test-d.ts +21 -0
- package/src/internal/Log.test.ts +50 -0
- package/src/internal/Log.ts +24 -1
- package/src/internal/MetricSink.test.ts +160 -0
- package/src/internal/MetricSink.ts +10 -0
- package/src/internal/OpenApi.ts +3 -0
- 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.ZodMiniString<string>;
|
|
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.ZodMiniString<string>;
|
|
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.ZodMiniString<string>;
|
|
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.ZodMiniString<string>;
|
|
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.ZodMiniString<string>;
|
|
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: "upstream_error";
|
|
1287
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1288
|
+
message: string;
|
|
1289
|
+
};
|
|
1290
|
+
requestId: string;
|
|
1291
|
+
};
|
|
1292
|
+
outputFormat: "json";
|
|
1293
|
+
status: 502;
|
|
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_malformed";
|
|
1313
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1314
|
+
message: string;
|
|
1315
|
+
};
|
|
1316
|
+
requestId: string;
|
|
1317
|
+
};
|
|
1318
|
+
outputFormat: "json";
|
|
1319
|
+
status: 400;
|
|
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_invalid" | "api_key_missing";
|
|
1339
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1340
|
+
message: string;
|
|
1341
|
+
};
|
|
1342
|
+
requestId: string;
|
|
1343
|
+
};
|
|
1344
|
+
outputFormat: "json";
|
|
1345
|
+
status: 401;
|
|
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: "api_key_forbidden";
|
|
1365
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1366
|
+
message: string;
|
|
1367
|
+
};
|
|
1368
|
+
requestId: string;
|
|
1369
|
+
};
|
|
1370
|
+
outputFormat: "json";
|
|
1371
|
+
status: 403;
|
|
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: "payment_required" | "rate_limit_exceeded";
|
|
1391
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1392
|
+
message: string;
|
|
1393
|
+
};
|
|
1394
|
+
requestId: string;
|
|
1395
|
+
};
|
|
1396
|
+
outputFormat: "json";
|
|
1397
|
+
status: 429;
|
|
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: "query_invalid";
|
|
1417
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1418
|
+
message: string;
|
|
1419
|
+
};
|
|
1420
|
+
requestId: string;
|
|
1421
|
+
};
|
|
1422
|
+
outputFormat: "json";
|
|
1423
|
+
status: 400;
|
|
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[];
|
|
@@ -998,20 +1692,21 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
998
1692
|
} | {
|
|
999
1693
|
output: {
|
|
1000
1694
|
error: {
|
|
1001
|
-
code: "
|
|
1695
|
+
code: "upstream_error";
|
|
1002
1696
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1003
1697
|
message: string;
|
|
1004
1698
|
};
|
|
1005
1699
|
requestId: string;
|
|
1006
1700
|
};
|
|
1007
1701
|
outputFormat: "json";
|
|
1008
|
-
status:
|
|
1702
|
+
status: 502;
|
|
1009
1703
|
input: {
|
|
1010
1704
|
query?: {
|
|
1011
1705
|
'blockNumber.from'?: string | string[];
|
|
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[];
|
|
@@ -1026,20 +1721,21 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1026
1721
|
} | {
|
|
1027
1722
|
output: {
|
|
1028
1723
|
error: {
|
|
1029
|
-
code: "
|
|
1724
|
+
code: "api_key_malformed";
|
|
1030
1725
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1031
1726
|
message: string;
|
|
1032
1727
|
};
|
|
1033
1728
|
requestId: string;
|
|
1034
1729
|
};
|
|
1035
1730
|
outputFormat: "json";
|
|
1036
|
-
status:
|
|
1731
|
+
status: 400;
|
|
1037
1732
|
input: {
|
|
1038
1733
|
query?: {
|
|
1039
1734
|
'blockNumber.from'?: string | string[];
|
|
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[];
|
|
@@ -1054,20 +1750,21 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1054
1750
|
} | {
|
|
1055
1751
|
output: {
|
|
1056
1752
|
error: {
|
|
1057
|
-
code: "
|
|
1753
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1058
1754
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1059
1755
|
message: string;
|
|
1060
1756
|
};
|
|
1061
1757
|
requestId: string;
|
|
1062
1758
|
};
|
|
1063
1759
|
outputFormat: "json";
|
|
1064
|
-
status:
|
|
1760
|
+
status: 401;
|
|
1065
1761
|
input: {
|
|
1066
1762
|
query?: {
|
|
1067
1763
|
'blockNumber.from'?: string | string[];
|
|
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[];
|
|
@@ -1082,20 +1779,21 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1082
1779
|
} | {
|
|
1083
1780
|
output: {
|
|
1084
1781
|
error: {
|
|
1085
|
-
code: "
|
|
1782
|
+
code: "api_key_forbidden";
|
|
1086
1783
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1087
1784
|
message: string;
|
|
1088
1785
|
};
|
|
1089
1786
|
requestId: string;
|
|
1090
1787
|
};
|
|
1091
1788
|
outputFormat: "json";
|
|
1092
|
-
status:
|
|
1789
|
+
status: 403;
|
|
1093
1790
|
input: {
|
|
1094
1791
|
query?: {
|
|
1095
1792
|
'blockNumber.from'?: string | string[];
|
|
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[];
|
|
@@ -1110,20 +1808,21 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1110
1808
|
} | {
|
|
1111
1809
|
output: {
|
|
1112
1810
|
error: {
|
|
1113
|
-
code: "
|
|
1811
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1114
1812
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1115
1813
|
message: string;
|
|
1116
1814
|
};
|
|
1117
1815
|
requestId: string;
|
|
1118
1816
|
};
|
|
1119
1817
|
outputFormat: "json";
|
|
1120
|
-
status:
|
|
1818
|
+
status: 429;
|
|
1121
1819
|
input: {
|
|
1122
1820
|
query?: {
|
|
1123
1821
|
'blockNumber.from'?: string | string[];
|
|
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[];
|
|
@@ -1138,20 +1837,21 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1138
1837
|
} | {
|
|
1139
1838
|
output: {
|
|
1140
1839
|
error: {
|
|
1141
|
-
code: "
|
|
1840
|
+
code: "query_invalid";
|
|
1142
1841
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1143
1842
|
message: string;
|
|
1144
1843
|
};
|
|
1145
1844
|
requestId: string;
|
|
1146
1845
|
};
|
|
1147
1846
|
outputFormat: "json";
|
|
1148
|
-
status:
|
|
1847
|
+
status: 400;
|
|
1149
1848
|
input: {
|
|
1150
1849
|
query?: {
|
|
1151
1850
|
'blockNumber.from'?: string | string[];
|
|
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[];
|
|
@@ -1266,14 +2010,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1266
2010
|
} | {
|
|
1267
2011
|
output: {
|
|
1268
2012
|
error: {
|
|
1269
|
-
code: "
|
|
2013
|
+
code: "upstream_error";
|
|
1270
2014
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1271
2015
|
message: string;
|
|
1272
2016
|
};
|
|
1273
2017
|
requestId: string;
|
|
1274
2018
|
};
|
|
1275
2019
|
outputFormat: "json";
|
|
1276
|
-
status:
|
|
2020
|
+
status: 502;
|
|
1277
2021
|
input: {
|
|
1278
2022
|
query?: {
|
|
1279
2023
|
chainId?: string | string[];
|
|
@@ -1288,14 +2032,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1288
2032
|
} | {
|
|
1289
2033
|
output: {
|
|
1290
2034
|
error: {
|
|
1291
|
-
code: "
|
|
2035
|
+
code: "api_key_malformed";
|
|
1292
2036
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1293
2037
|
message: string;
|
|
1294
2038
|
};
|
|
1295
2039
|
requestId: string;
|
|
1296
2040
|
};
|
|
1297
2041
|
outputFormat: "json";
|
|
1298
|
-
status:
|
|
2042
|
+
status: 400;
|
|
1299
2043
|
input: {
|
|
1300
2044
|
query?: {
|
|
1301
2045
|
chainId?: string | string[];
|
|
@@ -1310,14 +2054,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1310
2054
|
} | {
|
|
1311
2055
|
output: {
|
|
1312
2056
|
error: {
|
|
1313
|
-
code: "
|
|
2057
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1314
2058
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1315
2059
|
message: string;
|
|
1316
2060
|
};
|
|
1317
2061
|
requestId: string;
|
|
1318
2062
|
};
|
|
1319
2063
|
outputFormat: "json";
|
|
1320
|
-
status:
|
|
2064
|
+
status: 401;
|
|
1321
2065
|
input: {
|
|
1322
2066
|
query?: {
|
|
1323
2067
|
chainId?: string | string[];
|
|
@@ -1332,14 +2076,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1332
2076
|
} | {
|
|
1333
2077
|
output: {
|
|
1334
2078
|
error: {
|
|
1335
|
-
code: "
|
|
2079
|
+
code: "api_key_forbidden";
|
|
1336
2080
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1337
2081
|
message: string;
|
|
1338
2082
|
};
|
|
1339
2083
|
requestId: string;
|
|
1340
2084
|
};
|
|
1341
2085
|
outputFormat: "json";
|
|
1342
|
-
status:
|
|
2086
|
+
status: 403;
|
|
1343
2087
|
input: {
|
|
1344
2088
|
query?: {
|
|
1345
2089
|
chainId?: string | string[];
|
|
@@ -1354,14 +2098,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1354
2098
|
} | {
|
|
1355
2099
|
output: {
|
|
1356
2100
|
error: {
|
|
1357
|
-
code: "
|
|
2101
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1358
2102
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1359
2103
|
message: string;
|
|
1360
2104
|
};
|
|
1361
2105
|
requestId: string;
|
|
1362
2106
|
};
|
|
1363
2107
|
outputFormat: "json";
|
|
1364
|
-
status:
|
|
2108
|
+
status: 429;
|
|
1365
2109
|
input: {
|
|
1366
2110
|
query?: {
|
|
1367
2111
|
chainId?: string | string[];
|
|
@@ -1376,14 +2120,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1376
2120
|
} | {
|
|
1377
2121
|
output: {
|
|
1378
2122
|
error: {
|
|
1379
|
-
code: "
|
|
2123
|
+
code: "query_invalid";
|
|
1380
2124
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1381
2125
|
message: string;
|
|
1382
2126
|
};
|
|
1383
2127
|
requestId: string;
|
|
1384
2128
|
};
|
|
1385
2129
|
outputFormat: "json";
|
|
1386
|
-
status:
|
|
2130
|
+
status: 400;
|
|
1387
2131
|
input: {
|
|
1388
2132
|
query?: {
|
|
1389
2133
|
chainId?: string | string[];
|
|
@@ -1463,14 +2207,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1463
2207
|
} | {
|
|
1464
2208
|
output: {
|
|
1465
2209
|
error: {
|
|
1466
|
-
code: "
|
|
2210
|
+
code: "upstream_error";
|
|
1467
2211
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1468
2212
|
message: string;
|
|
1469
2213
|
};
|
|
1470
2214
|
requestId: string;
|
|
1471
2215
|
};
|
|
1472
2216
|
outputFormat: "json";
|
|
1473
|
-
status:
|
|
2217
|
+
status: 502;
|
|
1474
2218
|
input: {
|
|
1475
2219
|
param: {
|
|
1476
2220
|
base: `0x${string}`;
|
|
@@ -1484,14 +2228,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1484
2228
|
} | {
|
|
1485
2229
|
output: {
|
|
1486
2230
|
error: {
|
|
1487
|
-
code: "
|
|
2231
|
+
code: "api_key_malformed";
|
|
1488
2232
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1489
2233
|
message: string;
|
|
1490
2234
|
};
|
|
1491
2235
|
requestId: string;
|
|
1492
2236
|
};
|
|
1493
2237
|
outputFormat: "json";
|
|
1494
|
-
status:
|
|
2238
|
+
status: 400;
|
|
1495
2239
|
input: {
|
|
1496
2240
|
param: {
|
|
1497
2241
|
base: `0x${string}`;
|
|
@@ -1505,14 +2249,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1505
2249
|
} | {
|
|
1506
2250
|
output: {
|
|
1507
2251
|
error: {
|
|
1508
|
-
code: "
|
|
2252
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1509
2253
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1510
2254
|
message: string;
|
|
1511
2255
|
};
|
|
1512
2256
|
requestId: string;
|
|
1513
2257
|
};
|
|
1514
2258
|
outputFormat: "json";
|
|
1515
|
-
status:
|
|
2259
|
+
status: 401;
|
|
1516
2260
|
input: {
|
|
1517
2261
|
param: {
|
|
1518
2262
|
base: `0x${string}`;
|
|
@@ -1526,14 +2270,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1526
2270
|
} | {
|
|
1527
2271
|
output: {
|
|
1528
2272
|
error: {
|
|
1529
|
-
code: "
|
|
2273
|
+
code: "api_key_forbidden";
|
|
1530
2274
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1531
2275
|
message: string;
|
|
1532
2276
|
};
|
|
1533
2277
|
requestId: string;
|
|
1534
2278
|
};
|
|
1535
2279
|
outputFormat: "json";
|
|
1536
|
-
status:
|
|
2280
|
+
status: 403;
|
|
1537
2281
|
input: {
|
|
1538
2282
|
param: {
|
|
1539
2283
|
base: `0x${string}`;
|
|
@@ -1547,14 +2291,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1547
2291
|
} | {
|
|
1548
2292
|
output: {
|
|
1549
2293
|
error: {
|
|
1550
|
-
code: "
|
|
2294
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1551
2295
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1552
2296
|
message: string;
|
|
1553
2297
|
};
|
|
1554
2298
|
requestId: string;
|
|
1555
2299
|
};
|
|
1556
2300
|
outputFormat: "json";
|
|
1557
|
-
status:
|
|
2301
|
+
status: 429;
|
|
1558
2302
|
input: {
|
|
1559
2303
|
param: {
|
|
1560
2304
|
base: `0x${string}`;
|
|
@@ -1568,14 +2312,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1568
2312
|
} | {
|
|
1569
2313
|
output: {
|
|
1570
2314
|
error: {
|
|
1571
|
-
code: "
|
|
2315
|
+
code: "query_invalid";
|
|
1572
2316
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1573
2317
|
message: string;
|
|
1574
2318
|
};
|
|
1575
2319
|
requestId: string;
|
|
1576
2320
|
};
|
|
1577
2321
|
outputFormat: "json";
|
|
1578
|
-
status:
|
|
2322
|
+
status: 400;
|
|
1579
2323
|
input: {
|
|
1580
2324
|
param: {
|
|
1581
2325
|
base: `0x${string}`;
|
|
@@ -1692,14 +2436,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1692
2436
|
} | {
|
|
1693
2437
|
output: {
|
|
1694
2438
|
error: {
|
|
1695
|
-
code: "
|
|
2439
|
+
code: "upstream_error";
|
|
1696
2440
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1697
2441
|
message: string;
|
|
1698
2442
|
};
|
|
1699
2443
|
requestId: string;
|
|
1700
2444
|
};
|
|
1701
2445
|
outputFormat: "json";
|
|
1702
|
-
status:
|
|
2446
|
+
status: 502;
|
|
1703
2447
|
input: {
|
|
1704
2448
|
query?: {
|
|
1705
2449
|
base?: string | string[];
|
|
@@ -1717,14 +2461,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1717
2461
|
} | {
|
|
1718
2462
|
output: {
|
|
1719
2463
|
error: {
|
|
1720
|
-
code: "
|
|
2464
|
+
code: "api_key_malformed";
|
|
1721
2465
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1722
2466
|
message: string;
|
|
1723
2467
|
};
|
|
1724
2468
|
requestId: string;
|
|
1725
2469
|
};
|
|
1726
2470
|
outputFormat: "json";
|
|
1727
|
-
status:
|
|
2471
|
+
status: 400;
|
|
1728
2472
|
input: {
|
|
1729
2473
|
query?: {
|
|
1730
2474
|
base?: string | string[];
|
|
@@ -1742,14 +2486,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1742
2486
|
} | {
|
|
1743
2487
|
output: {
|
|
1744
2488
|
error: {
|
|
1745
|
-
code: "
|
|
2489
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1746
2490
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1747
2491
|
message: string;
|
|
1748
2492
|
};
|
|
1749
2493
|
requestId: string;
|
|
1750
2494
|
};
|
|
1751
2495
|
outputFormat: "json";
|
|
1752
|
-
status:
|
|
2496
|
+
status: 401;
|
|
1753
2497
|
input: {
|
|
1754
2498
|
query?: {
|
|
1755
2499
|
base?: string | string[];
|
|
@@ -1767,14 +2511,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1767
2511
|
} | {
|
|
1768
2512
|
output: {
|
|
1769
2513
|
error: {
|
|
1770
|
-
code: "
|
|
2514
|
+
code: "api_key_forbidden";
|
|
1771
2515
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1772
2516
|
message: string;
|
|
1773
2517
|
};
|
|
1774
2518
|
requestId: string;
|
|
1775
2519
|
};
|
|
1776
2520
|
outputFormat: "json";
|
|
1777
|
-
status:
|
|
2521
|
+
status: 403;
|
|
1778
2522
|
input: {
|
|
1779
2523
|
query?: {
|
|
1780
2524
|
base?: string | string[];
|
|
@@ -1792,14 +2536,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1792
2536
|
} | {
|
|
1793
2537
|
output: {
|
|
1794
2538
|
error: {
|
|
1795
|
-
code: "
|
|
2539
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1796
2540
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1797
2541
|
message: string;
|
|
1798
2542
|
};
|
|
1799
2543
|
requestId: string;
|
|
1800
2544
|
};
|
|
1801
2545
|
outputFormat: "json";
|
|
1802
|
-
status:
|
|
2546
|
+
status: 429;
|
|
1803
2547
|
input: {
|
|
1804
2548
|
query?: {
|
|
1805
2549
|
base?: string | string[];
|
|
@@ -1817,14 +2561,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1817
2561
|
} | {
|
|
1818
2562
|
output: {
|
|
1819
2563
|
error: {
|
|
1820
|
-
code: "
|
|
2564
|
+
code: "query_invalid";
|
|
1821
2565
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1822
2566
|
message: string;
|
|
1823
2567
|
};
|
|
1824
2568
|
requestId: string;
|
|
1825
2569
|
};
|
|
1826
2570
|
outputFormat: "json";
|
|
1827
|
-
status:
|
|
2571
|
+
status: 400;
|
|
1828
2572
|
input: {
|
|
1829
2573
|
query?: {
|
|
1830
2574
|
base?: string | string[];
|
|
@@ -1946,14 +2690,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1946
2690
|
} | {
|
|
1947
2691
|
output: {
|
|
1948
2692
|
error: {
|
|
1949
|
-
code: "
|
|
2693
|
+
code: "upstream_error";
|
|
1950
2694
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1951
2695
|
message: string;
|
|
1952
2696
|
};
|
|
1953
2697
|
requestId: string;
|
|
1954
2698
|
};
|
|
1955
2699
|
outputFormat: "json";
|
|
1956
|
-
status:
|
|
2700
|
+
status: 502;
|
|
1957
2701
|
input: {
|
|
1958
2702
|
param: {
|
|
1959
2703
|
orderId: string;
|
|
@@ -1967,14 +2711,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1967
2711
|
} | {
|
|
1968
2712
|
output: {
|
|
1969
2713
|
error: {
|
|
1970
|
-
code: "
|
|
2714
|
+
code: "api_key_malformed";
|
|
1971
2715
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1972
2716
|
message: string;
|
|
1973
2717
|
};
|
|
1974
2718
|
requestId: string;
|
|
1975
2719
|
};
|
|
1976
2720
|
outputFormat: "json";
|
|
1977
|
-
status:
|
|
2721
|
+
status: 400;
|
|
1978
2722
|
input: {
|
|
1979
2723
|
param: {
|
|
1980
2724
|
orderId: string;
|
|
@@ -1988,14 +2732,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
1988
2732
|
} | {
|
|
1989
2733
|
output: {
|
|
1990
2734
|
error: {
|
|
1991
|
-
code: "
|
|
2735
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1992
2736
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1993
2737
|
message: string;
|
|
1994
2738
|
};
|
|
1995
2739
|
requestId: string;
|
|
1996
2740
|
};
|
|
1997
2741
|
outputFormat: "json";
|
|
1998
|
-
status:
|
|
2742
|
+
status: 401;
|
|
1999
2743
|
input: {
|
|
2000
2744
|
param: {
|
|
2001
2745
|
orderId: string;
|
|
@@ -2009,14 +2753,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2009
2753
|
} | {
|
|
2010
2754
|
output: {
|
|
2011
2755
|
error: {
|
|
2012
|
-
code: "
|
|
2756
|
+
code: "api_key_forbidden";
|
|
2013
2757
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2014
2758
|
message: string;
|
|
2015
2759
|
};
|
|
2016
2760
|
requestId: string;
|
|
2017
2761
|
};
|
|
2018
2762
|
outputFormat: "json";
|
|
2019
|
-
status:
|
|
2763
|
+
status: 403;
|
|
2020
2764
|
input: {
|
|
2021
2765
|
param: {
|
|
2022
2766
|
orderId: string;
|
|
@@ -2030,14 +2774,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2030
2774
|
} | {
|
|
2031
2775
|
output: {
|
|
2032
2776
|
error: {
|
|
2033
|
-
code: "
|
|
2777
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2034
2778
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2035
2779
|
message: string;
|
|
2036
2780
|
};
|
|
2037
2781
|
requestId: string;
|
|
2038
2782
|
};
|
|
2039
2783
|
outputFormat: "json";
|
|
2040
|
-
status:
|
|
2784
|
+
status: 429;
|
|
2041
2785
|
input: {
|
|
2042
2786
|
param: {
|
|
2043
2787
|
orderId: string;
|
|
@@ -2051,14 +2795,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2051
2795
|
} | {
|
|
2052
2796
|
output: {
|
|
2053
2797
|
error: {
|
|
2054
|
-
code: "
|
|
2798
|
+
code: "query_invalid";
|
|
2055
2799
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2056
2800
|
message: string;
|
|
2057
2801
|
};
|
|
2058
2802
|
requestId: string;
|
|
2059
2803
|
};
|
|
2060
2804
|
outputFormat: "json";
|
|
2061
|
-
status:
|
|
2805
|
+
status: 400;
|
|
2062
2806
|
input: {
|
|
2063
2807
|
param: {
|
|
2064
2808
|
orderId: string;
|
|
@@ -2184,14 +2928,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2184
2928
|
} | {
|
|
2185
2929
|
output: {
|
|
2186
2930
|
error: {
|
|
2187
|
-
code: "
|
|
2931
|
+
code: "upstream_error";
|
|
2188
2932
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2189
2933
|
message: string;
|
|
2190
2934
|
};
|
|
2191
2935
|
requestId: string;
|
|
2192
2936
|
};
|
|
2193
2937
|
outputFormat: "json";
|
|
2194
|
-
status:
|
|
2938
|
+
status: 502;
|
|
2195
2939
|
input: {
|
|
2196
2940
|
param: {
|
|
2197
2941
|
orderId: string;
|
|
@@ -2209,14 +2953,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2209
2953
|
} | {
|
|
2210
2954
|
output: {
|
|
2211
2955
|
error: {
|
|
2212
|
-
code: "
|
|
2956
|
+
code: "api_key_malformed";
|
|
2213
2957
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2214
2958
|
message: string;
|
|
2215
2959
|
};
|
|
2216
2960
|
requestId: string;
|
|
2217
2961
|
};
|
|
2218
2962
|
outputFormat: "json";
|
|
2219
|
-
status:
|
|
2963
|
+
status: 400;
|
|
2220
2964
|
input: {
|
|
2221
2965
|
param: {
|
|
2222
2966
|
orderId: string;
|
|
@@ -2234,14 +2978,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2234
2978
|
} | {
|
|
2235
2979
|
output: {
|
|
2236
2980
|
error: {
|
|
2237
|
-
code: "
|
|
2981
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
2238
2982
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2239
2983
|
message: string;
|
|
2240
2984
|
};
|
|
2241
2985
|
requestId: string;
|
|
2242
2986
|
};
|
|
2243
2987
|
outputFormat: "json";
|
|
2244
|
-
status:
|
|
2988
|
+
status: 401;
|
|
2245
2989
|
input: {
|
|
2246
2990
|
param: {
|
|
2247
2991
|
orderId: string;
|
|
@@ -2259,14 +3003,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2259
3003
|
} | {
|
|
2260
3004
|
output: {
|
|
2261
3005
|
error: {
|
|
2262
|
-
code: "
|
|
3006
|
+
code: "api_key_forbidden";
|
|
2263
3007
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2264
3008
|
message: string;
|
|
2265
3009
|
};
|
|
2266
3010
|
requestId: string;
|
|
2267
3011
|
};
|
|
2268
3012
|
outputFormat: "json";
|
|
2269
|
-
status:
|
|
3013
|
+
status: 403;
|
|
2270
3014
|
input: {
|
|
2271
3015
|
param: {
|
|
2272
3016
|
orderId: string;
|
|
@@ -2284,14 +3028,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2284
3028
|
} | {
|
|
2285
3029
|
output: {
|
|
2286
3030
|
error: {
|
|
2287
|
-
code: "
|
|
3031
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2288
3032
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2289
3033
|
message: string;
|
|
2290
3034
|
};
|
|
2291
3035
|
requestId: string;
|
|
2292
3036
|
};
|
|
2293
3037
|
outputFormat: "json";
|
|
2294
|
-
status:
|
|
3038
|
+
status: 429;
|
|
2295
3039
|
input: {
|
|
2296
3040
|
param: {
|
|
2297
3041
|
orderId: string;
|
|
@@ -2309,14 +3053,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2309
3053
|
} | {
|
|
2310
3054
|
output: {
|
|
2311
3055
|
error: {
|
|
2312
|
-
code: "
|
|
3056
|
+
code: "query_invalid";
|
|
2313
3057
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2314
3058
|
message: string;
|
|
2315
3059
|
};
|
|
2316
3060
|
requestId: string;
|
|
2317
3061
|
};
|
|
2318
3062
|
outputFormat: "json";
|
|
2319
|
-
status:
|
|
3063
|
+
status: 400;
|
|
2320
3064
|
input: {
|
|
2321
3065
|
param: {
|
|
2322
3066
|
orderId: string;
|
|
@@ -2414,14 +3158,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2414
3158
|
} | {
|
|
2415
3159
|
output: {
|
|
2416
3160
|
error: {
|
|
2417
|
-
code: "
|
|
3161
|
+
code: "upstream_error";
|
|
2418
3162
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2419
3163
|
message: string;
|
|
2420
3164
|
};
|
|
2421
3165
|
requestId: string;
|
|
2422
3166
|
};
|
|
2423
3167
|
outputFormat: "json";
|
|
2424
|
-
status:
|
|
3168
|
+
status: 502;
|
|
2425
3169
|
input: {
|
|
2426
3170
|
param: {
|
|
2427
3171
|
base: `0x${string}`;
|
|
@@ -2437,14 +3181,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2437
3181
|
} | {
|
|
2438
3182
|
output: {
|
|
2439
3183
|
error: {
|
|
2440
|
-
code: "
|
|
3184
|
+
code: "api_key_malformed";
|
|
2441
3185
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2442
3186
|
message: string;
|
|
2443
3187
|
};
|
|
2444
3188
|
requestId: string;
|
|
2445
3189
|
};
|
|
2446
3190
|
outputFormat: "json";
|
|
2447
|
-
status:
|
|
3191
|
+
status: 400;
|
|
2448
3192
|
input: {
|
|
2449
3193
|
param: {
|
|
2450
3194
|
base: `0x${string}`;
|
|
@@ -2460,14 +3204,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2460
3204
|
} | {
|
|
2461
3205
|
output: {
|
|
2462
3206
|
error: {
|
|
2463
|
-
code: "
|
|
3207
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
2464
3208
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2465
3209
|
message: string;
|
|
2466
3210
|
};
|
|
2467
3211
|
requestId: string;
|
|
2468
3212
|
};
|
|
2469
3213
|
outputFormat: "json";
|
|
2470
|
-
status:
|
|
3214
|
+
status: 401;
|
|
2471
3215
|
input: {
|
|
2472
3216
|
param: {
|
|
2473
3217
|
base: `0x${string}`;
|
|
@@ -2483,14 +3227,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2483
3227
|
} | {
|
|
2484
3228
|
output: {
|
|
2485
3229
|
error: {
|
|
2486
|
-
code: "
|
|
3230
|
+
code: "api_key_forbidden";
|
|
2487
3231
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2488
3232
|
message: string;
|
|
2489
3233
|
};
|
|
2490
3234
|
requestId: string;
|
|
2491
3235
|
};
|
|
2492
3236
|
outputFormat: "json";
|
|
2493
|
-
status:
|
|
3237
|
+
status: 403;
|
|
2494
3238
|
input: {
|
|
2495
3239
|
param: {
|
|
2496
3240
|
base: `0x${string}`;
|
|
@@ -2506,14 +3250,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2506
3250
|
} | {
|
|
2507
3251
|
output: {
|
|
2508
3252
|
error: {
|
|
2509
|
-
code: "
|
|
3253
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2510
3254
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2511
3255
|
message: string;
|
|
2512
3256
|
};
|
|
2513
3257
|
requestId: string;
|
|
2514
3258
|
};
|
|
2515
3259
|
outputFormat: "json";
|
|
2516
|
-
status:
|
|
3260
|
+
status: 429;
|
|
2517
3261
|
input: {
|
|
2518
3262
|
param: {
|
|
2519
3263
|
base: `0x${string}`;
|
|
@@ -2529,14 +3273,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2529
3273
|
} | {
|
|
2530
3274
|
output: {
|
|
2531
3275
|
error: {
|
|
2532
|
-
code: "
|
|
3276
|
+
code: "query_invalid";
|
|
2533
3277
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2534
3278
|
message: string;
|
|
2535
3279
|
};
|
|
2536
3280
|
requestId: string;
|
|
2537
3281
|
};
|
|
2538
3282
|
outputFormat: "json";
|
|
2539
|
-
status:
|
|
3283
|
+
status: 400;
|
|
2540
3284
|
input: {
|
|
2541
3285
|
param: {
|
|
2542
3286
|
base: `0x${string}`;
|
|
@@ -2668,14 +3412,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2668
3412
|
} | {
|
|
2669
3413
|
output: {
|
|
2670
3414
|
error: {
|
|
2671
|
-
code: "
|
|
3415
|
+
code: "upstream_error";
|
|
2672
3416
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2673
3417
|
message: string;
|
|
2674
3418
|
};
|
|
2675
3419
|
requestId: string;
|
|
2676
3420
|
};
|
|
2677
3421
|
outputFormat: "json";
|
|
2678
|
-
status:
|
|
3422
|
+
status: 502;
|
|
2679
3423
|
input: {
|
|
2680
3424
|
param: {
|
|
2681
3425
|
base: `0x${string}`;
|
|
@@ -2690,14 +3434,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2690
3434
|
} | {
|
|
2691
3435
|
output: {
|
|
2692
3436
|
error: {
|
|
2693
|
-
code: "
|
|
3437
|
+
code: "api_key_malformed";
|
|
2694
3438
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2695
3439
|
message: string;
|
|
2696
3440
|
};
|
|
2697
3441
|
requestId: string;
|
|
2698
3442
|
};
|
|
2699
3443
|
outputFormat: "json";
|
|
2700
|
-
status:
|
|
3444
|
+
status: 400;
|
|
2701
3445
|
input: {
|
|
2702
3446
|
param: {
|
|
2703
3447
|
base: `0x${string}`;
|
|
@@ -2712,14 +3456,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2712
3456
|
} | {
|
|
2713
3457
|
output: {
|
|
2714
3458
|
error: {
|
|
2715
|
-
code: "
|
|
3459
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
2716
3460
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2717
3461
|
message: string;
|
|
2718
3462
|
};
|
|
2719
3463
|
requestId: string;
|
|
2720
3464
|
};
|
|
2721
3465
|
outputFormat: "json";
|
|
2722
|
-
status:
|
|
3466
|
+
status: 401;
|
|
2723
3467
|
input: {
|
|
2724
3468
|
param: {
|
|
2725
3469
|
base: `0x${string}`;
|
|
@@ -2734,14 +3478,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2734
3478
|
} | {
|
|
2735
3479
|
output: {
|
|
2736
3480
|
error: {
|
|
2737
|
-
code: "
|
|
3481
|
+
code: "api_key_forbidden";
|
|
2738
3482
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2739
3483
|
message: string;
|
|
2740
3484
|
};
|
|
2741
3485
|
requestId: string;
|
|
2742
3486
|
};
|
|
2743
3487
|
outputFormat: "json";
|
|
2744
|
-
status:
|
|
3488
|
+
status: 403;
|
|
2745
3489
|
input: {
|
|
2746
3490
|
param: {
|
|
2747
3491
|
base: `0x${string}`;
|
|
@@ -2756,14 +3500,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2756
3500
|
} | {
|
|
2757
3501
|
output: {
|
|
2758
3502
|
error: {
|
|
2759
|
-
code: "
|
|
3503
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2760
3504
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2761
3505
|
message: string;
|
|
2762
3506
|
};
|
|
2763
3507
|
requestId: string;
|
|
2764
3508
|
};
|
|
2765
3509
|
outputFormat: "json";
|
|
2766
|
-
status:
|
|
3510
|
+
status: 429;
|
|
2767
3511
|
input: {
|
|
2768
3512
|
param: {
|
|
2769
3513
|
base: `0x${string}`;
|
|
@@ -2778,14 +3522,14 @@ export declare function exchanges(): import("hono/hono-base").HonoBase<App.Envir
|
|
|
2778
3522
|
} | {
|
|
2779
3523
|
output: {
|
|
2780
3524
|
error: {
|
|
2781
|
-
code: "
|
|
3525
|
+
code: "query_invalid";
|
|
2782
3526
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2783
3527
|
message: string;
|
|
2784
3528
|
};
|
|
2785
3529
|
requestId: string;
|
|
2786
3530
|
};
|
|
2787
3531
|
outputFormat: "json";
|
|
2788
|
-
status:
|
|
3532
|
+
status: 400;
|
|
2789
3533
|
input: {
|
|
2790
3534
|
param: {
|
|
2791
3535
|
base: `0x${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.
|