tapimo 0.4.4 → 0.5.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 +7403 -6127
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +4 -0
- package/dist/App.js.map +1 -1
- package/dist/Scope.d.ts +18 -1
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +24 -3
- package/dist/Scope.js.map +1 -1
- package/dist/admin/apps/verified-tokens.d.ts +115 -115
- package/dist/apps/data/App.d.ts +1838 -1534
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +135 -44
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/{FundingRouteProviders.d.ts → FundingQuoteProviders.d.ts} +7 -7
- package/dist/apps/data/{FundingRouteProviders.d.ts.map → FundingQuoteProviders.d.ts.map} +1 -1
- package/dist/apps/data/{FundingRouteProviders.js → FundingQuoteProviders.js} +36 -91
- package/dist/apps/data/FundingQuoteProviders.js.map +1 -0
- package/dist/apps/data/index.d.ts +1 -1
- package/dist/apps/data/index.js +1 -1
- package/dist/apps/data/routes/activities.d.ts +242 -242
- package/dist/apps/data/routes/addresses.d.ts +227 -227
- package/dist/apps/data/routes/balances.d.ts +12 -12
- package/dist/apps/data/routes/balances.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.js +67 -149
- package/dist/apps/data/routes/balances.js.map +1 -1
- package/dist/apps/data/routes/blocks.d.ts +125 -126
- package/dist/apps/data/routes/blocks.d.ts.map +1 -1
- package/dist/apps/data/routes/blocks.js +3 -5
- package/dist/apps/data/routes/blocks.js.map +1 -1
- package/dist/apps/data/routes/coingecko.d.ts +55 -54
- package/dist/apps/data/routes/coingecko.d.ts.map +1 -1
- package/dist/apps/data/routes/coingecko.js +3 -8
- package/dist/apps/data/routes/coingecko.js.map +1 -1
- package/dist/apps/data/routes/funding.d.ts +207 -388
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +143 -221
- package/dist/apps/data/routes/funding.js.map +1 -1
- package/dist/apps/data/routes/rpc.d.ts.map +1 -1
- package/dist/apps/data/routes/rpc.js +86 -16
- package/dist/apps/data/routes/rpc.js.map +1 -1
- package/dist/apps/data/routes/tokenlist.d.ts +33 -33
- package/dist/apps/data/routes/transactions.d.ts +281 -281
- package/dist/apps/data/routes/transfers.d.ts +58 -58
- package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
- package/dist/apps/data/routes/webhooks.d.ts +340 -0
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +13 -1
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/index.d.ts +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/apps/management/App.d.ts +1090 -108
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/App.js +4 -0
- package/dist/apps/management/App.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +118 -118
- package/dist/apps/management/routes/api-keys.js +2 -2
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +207 -207
- package/dist/apps/management/routes/invite-links.d.ts +1100 -0
- package/dist/apps/management/routes/invite-links.d.ts.map +1 -0
- package/dist/apps/management/routes/invite-links.js +411 -0
- package/dist/apps/management/routes/invite-links.js.map +1 -0
- package/dist/apps/management/routes/me.d.ts +17 -17
- package/dist/apps/management/routes/members.d.ts +71 -71
- package/dist/apps/management/routes/orgs.d.ts +12 -12
- package/dist/apps/management/routes/projects.d.ts +70 -70
- package/dist/apps/management/routes/scopes.d.ts +11 -11
- package/dist/apps/management/routes/scopes.d.ts.map +1 -1
- package/dist/apps/management/routes/scopes.js +2 -2
- package/dist/apps/management/routes/scopes.js.map +1 -1
- package/dist/apps/management/routes/usage.d.ts +75 -75
- package/dist/apps/relay/App.d.ts.map +1 -1
- package/dist/apps/relay/App.js +42 -4
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/db/Db.d.ts +3 -0
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +57 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +31 -0
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +31 -0
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/inviteLinks.d.ts +42 -0
- package/dist/db/tables/inviteLinks.d.ts.map +1 -0
- package/dist/db/tables/inviteLinks.js +148 -0
- package/dist/db/tables/inviteLinks.js.map +1 -0
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +2 -0
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/handlers/relay.d.ts.map +1 -1
- package/dist/handlers/relay.js +13 -3
- package/dist/handlers/relay.js.map +1 -1
- package/dist/internal/Auth.d.ts +9 -1
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +130 -10
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/EdgeCache.d.ts +3 -1
- package/dist/internal/EdgeCache.d.ts.map +1 -1
- package/dist/internal/EdgeCache.js +17 -2
- package/dist/internal/EdgeCache.js.map +1 -1
- package/dist/internal/{FundingRoutes.d.ts → FundingQuotes.d.ts} +185 -428
- package/dist/internal/FundingQuotes.d.ts.map +1 -0
- package/dist/internal/{FundingRoutes.js → FundingQuotes.js} +93 -218
- package/dist/internal/FundingQuotes.js.map +1 -0
- package/dist/internal/Viem.d.ts +3 -1
- package/dist/internal/Viem.d.ts.map +1 -1
- package/dist/internal/Viem.js +11 -2
- package/dist/internal/Viem.js.map +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +1 -1
- package/package.json +1 -1
- package/src/ApiKeys.test.ts +23 -0
- package/src/App.test-d.ts +2 -0
- package/src/App.ts +6 -0
- package/src/Client.test-d.ts +20 -11
- package/src/Scope.test.ts +1 -0
- package/src/Scope.ts +30 -4
- package/src/apps/data/App.test.ts +354 -0
- package/src/apps/data/App.ts +159 -52
- package/src/apps/data/FundingQuoteProviders.test.ts +151 -0
- package/src/apps/data/{FundingRouteProviders.ts → FundingQuoteProviders.ts} +40 -101
- package/src/apps/data/index.ts +1 -1
- package/src/apps/data/routes/balances.test.ts +64 -18
- package/src/apps/data/routes/balances.ts +76 -177
- package/src/apps/data/routes/blocks.ts +3 -5
- package/src/apps/data/routes/coingecko.ts +3 -8
- package/src/apps/data/routes/funding.test.ts +151 -206
- package/src/apps/data/routes/funding.ts +156 -291
- package/src/apps/data/routes/indexer.test.ts +97 -1
- package/src/apps/data/routes/rpc.test.ts +219 -0
- package/src/apps/data/routes/rpc.ts +92 -17
- package/src/apps/data/routes/webhooks.test.ts +21 -0
- package/src/apps/data/routes/webhooks.ts +13 -1
- package/src/apps/index.ts +1 -1
- package/src/apps/management/App.ts +4 -0
- package/src/apps/management/routes/api-keys.test.ts +47 -3
- package/src/apps/management/routes/api-keys.ts +2 -2
- package/src/apps/management/routes/invite-links.test.ts +385 -0
- package/src/apps/management/routes/invite-links.ts +570 -0
- package/src/apps/management/routes/scopes.test.ts +3 -2
- package/src/apps/management/routes/scopes.ts +4 -2
- package/src/apps/relay/App.test.ts +324 -4
- package/src/apps/relay/App.ts +40 -4
- package/src/db/Db.ts +65 -0
- package/src/db/Schema.ts +39 -0
- package/src/db/tables/inviteLinks.ts +187 -0
- package/src/db/tables/organizations.ts +2 -0
- package/src/handlers/relay.ts +16 -4
- package/src/internal/Auth.test.ts +132 -22
- package/src/internal/Auth.ts +171 -14
- package/src/internal/EdgeCache.test.ts +24 -3
- package/src/internal/EdgeCache.ts +18 -2
- package/src/internal/FundingQuotes.test.ts +174 -0
- package/src/internal/{FundingRoutes.ts → FundingQuotes.ts} +153 -312
- package/src/internal/Viem.ts +14 -5
- package/src/internal/index.test.ts +1 -1
- package/src/internal/index.ts +1 -1
- package/dist/apps/data/FundingRouteProviders.js.map +0 -1
- package/dist/internal/FundingRoutes.d.ts.map +0 -1
- package/dist/internal/FundingRoutes.js.map +0 -1
- package/src/apps/data/FundingRouteProviders.test.ts +0 -225
- package/src/internal/FundingRoutes.test.ts +0 -213
|
@@ -1,22 +1,14 @@
|
|
|
1
1
|
import * as z from 'zod/mini';
|
|
2
2
|
import type * as App from '../../../App.js';
|
|
3
|
-
import * as
|
|
3
|
+
import * as FundingQuotes from '../../../internal/FundingQuotes.js';
|
|
4
4
|
import * as Response from '../../../internal/Response.js';
|
|
5
|
-
/** Zod schemas owned by
|
|
5
|
+
/** Zod schemas owned by funding quote resources. */
|
|
6
6
|
export declare namespace schema {
|
|
7
7
|
/** Source or destination chain reference. */
|
|
8
8
|
const Chain: z.ZodMiniObject<{
|
|
9
|
-
addressFormat: z.
|
|
10
|
-
evm: "evm";
|
|
11
|
-
solana: "solana";
|
|
12
|
-
tron: "tron";
|
|
13
|
-
}>;
|
|
9
|
+
addressFormat: z.ZodMiniLiteral<"evm">;
|
|
14
10
|
id: z.ZodMiniString<string>;
|
|
15
|
-
kind: z.
|
|
16
|
-
evm: "evm";
|
|
17
|
-
solana: "solana";
|
|
18
|
-
tron: "tron";
|
|
19
|
-
}>;
|
|
11
|
+
kind: z.ZodMiniLiteral<"evm">;
|
|
20
12
|
name: z.ZodMiniString<string>;
|
|
21
13
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
22
14
|
}, z.core.$strip>;
|
|
@@ -31,65 +23,42 @@ export declare namespace schema {
|
|
|
31
23
|
tokenKey: z.ZodMiniString<string>;
|
|
32
24
|
verified: z.ZodMiniBoolean<boolean>;
|
|
33
25
|
}, z.core.$strip>;
|
|
34
|
-
/** Source amount echoed by a funding
|
|
26
|
+
/** Source amount echoed by a funding quote response. */
|
|
35
27
|
const TokenAmount: z.ZodMiniObject<{
|
|
36
28
|
amount: z.ZodMiniString<string>;
|
|
37
29
|
formatted: z.ZodMiniString<string>;
|
|
38
|
-
usd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
39
30
|
}, z.core.$strip>;
|
|
40
|
-
/** Provider summary embedded in a
|
|
31
|
+
/** Provider summary embedded in a funding quote. */
|
|
41
32
|
const ProviderRef: z.ZodMiniObject<{
|
|
42
|
-
id: z.
|
|
33
|
+
id: z.ZodMiniLiteral<"relay">;
|
|
43
34
|
kind: z.ZodMiniString<string>;
|
|
44
35
|
name: z.ZodMiniString<string>;
|
|
45
36
|
requiresApiKey: z.ZodMiniBoolean<boolean>;
|
|
46
37
|
}, z.core.$strip>;
|
|
47
|
-
/**
|
|
38
|
+
/** Quote quality signals exposed directly instead of implied by list order. */
|
|
48
39
|
const Quality: z.ZodMiniObject<{
|
|
49
|
-
|
|
50
|
-
estimatedSeconds: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
51
|
-
feeBps: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
52
|
-
historicalVolumeUsd24h: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
53
|
-
instantVolumeUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
40
|
+
estimatedSeconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
54
41
|
liquiditySource: z.ZodMiniString<string>;
|
|
55
|
-
|
|
56
|
-
sourceDetail: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
42
|
+
sourceDetail: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
57
43
|
tier: z.ZodMiniEnum<{
|
|
58
|
-
error: "error";
|
|
59
44
|
liquid: "liquid";
|
|
60
45
|
thin: "thin";
|
|
61
|
-
unavailable: "unavailable";
|
|
62
|
-
unknown: "unknown";
|
|
63
46
|
}>;
|
|
64
47
|
}, z.core.$strip>;
|
|
65
|
-
/** Provider-derived
|
|
66
|
-
const
|
|
67
|
-
expiresAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
48
|
+
/** Provider-derived output, limits, and freshness data. */
|
|
49
|
+
const QuoteDetails: z.ZodMiniObject<{
|
|
68
50
|
inputAmount: z.ZodMiniString<string>;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
minSourceAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
73
|
-
}, z.core.$strip>>;
|
|
74
|
-
minimumOutputAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
75
|
-
outputAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
76
|
-
outputAmountFormatted: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
51
|
+
minimumOutputAmount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
52
|
+
outputAmount: z.ZodMiniString<string>;
|
|
53
|
+
outputAmountFormatted: z.ZodMiniString<string>;
|
|
77
54
|
sampledAt: z.ZodMiniISODateTime;
|
|
78
55
|
}, z.core.$strip>;
|
|
79
|
-
/**
|
|
80
|
-
const
|
|
56
|
+
/** Successful live funding quote. */
|
|
57
|
+
const FundingQuote: z.ZodMiniObject<{
|
|
81
58
|
destinationChain: z.ZodMiniObject<{
|
|
82
|
-
addressFormat: z.
|
|
83
|
-
evm: "evm";
|
|
84
|
-
solana: "solana";
|
|
85
|
-
tron: "tron";
|
|
86
|
-
}>;
|
|
59
|
+
addressFormat: z.ZodMiniLiteral<"evm">;
|
|
87
60
|
id: z.ZodMiniString<string>;
|
|
88
|
-
kind: z.
|
|
89
|
-
evm: "evm";
|
|
90
|
-
solana: "solana";
|
|
91
|
-
tron: "tron";
|
|
92
|
-
}>;
|
|
61
|
+
kind: z.ZodMiniLiteral<"evm">;
|
|
93
62
|
name: z.ZodMiniString<string>;
|
|
94
63
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
95
64
|
}, z.core.$strip>;
|
|
@@ -103,61 +72,37 @@ export declare namespace schema {
|
|
|
103
72
|
tokenKey: z.ZodMiniString<string>;
|
|
104
73
|
verified: z.ZodMiniBoolean<boolean>;
|
|
105
74
|
}, z.core.$strip>;
|
|
106
|
-
errorCode: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
107
75
|
id: z.ZodMiniString<string>;
|
|
108
76
|
provider: z.ZodMiniObject<{
|
|
109
|
-
id: z.
|
|
77
|
+
id: z.ZodMiniLiteral<"relay">;
|
|
110
78
|
kind: z.ZodMiniString<string>;
|
|
111
79
|
name: z.ZodMiniString<string>;
|
|
112
80
|
requiresApiKey: z.ZodMiniBoolean<boolean>;
|
|
113
81
|
}, z.core.$strip>;
|
|
114
82
|
quality: z.ZodMiniObject<{
|
|
115
|
-
|
|
116
|
-
estimatedSeconds: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
117
|
-
feeBps: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
118
|
-
historicalVolumeUsd24h: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
119
|
-
instantVolumeUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
83
|
+
estimatedSeconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
120
84
|
liquiditySource: z.ZodMiniString<string>;
|
|
121
|
-
|
|
122
|
-
sourceDetail: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
85
|
+
sourceDetail: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
123
86
|
tier: z.ZodMiniEnum<{
|
|
124
|
-
error: "error";
|
|
125
87
|
liquid: "liquid";
|
|
126
88
|
thin: "thin";
|
|
127
|
-
unavailable: "unavailable";
|
|
128
|
-
unknown: "unknown";
|
|
129
89
|
}>;
|
|
130
90
|
}, z.core.$strip>;
|
|
131
|
-
quote: z.
|
|
132
|
-
expiresAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
91
|
+
quote: z.ZodMiniObject<{
|
|
133
92
|
inputAmount: z.ZodMiniString<string>;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
minSourceAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
138
|
-
}, z.core.$strip>>;
|
|
139
|
-
minimumOutputAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
140
|
-
outputAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
141
|
-
outputAmountFormatted: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
93
|
+
minimumOutputAmount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
94
|
+
outputAmount: z.ZodMiniString<string>;
|
|
95
|
+
outputAmountFormatted: z.ZodMiniString<string>;
|
|
142
96
|
sampledAt: z.ZodMiniISODateTime;
|
|
143
|
-
}, z.core.$strip
|
|
97
|
+
}, z.core.$strip>;
|
|
144
98
|
sourceAmount: z.ZodMiniObject<{
|
|
145
99
|
amount: z.ZodMiniString<string>;
|
|
146
100
|
formatted: z.ZodMiniString<string>;
|
|
147
|
-
usd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
148
101
|
}, z.core.$strip>;
|
|
149
102
|
sourceChain: z.ZodMiniObject<{
|
|
150
|
-
addressFormat: z.
|
|
151
|
-
evm: "evm";
|
|
152
|
-
solana: "solana";
|
|
153
|
-
tron: "tron";
|
|
154
|
-
}>;
|
|
103
|
+
addressFormat: z.ZodMiniLiteral<"evm">;
|
|
155
104
|
id: z.ZodMiniString<string>;
|
|
156
|
-
kind: z.
|
|
157
|
-
evm: "evm";
|
|
158
|
-
solana: "solana";
|
|
159
|
-
tron: "tron";
|
|
160
|
-
}>;
|
|
105
|
+
kind: z.ZodMiniLiteral<"evm">;
|
|
161
106
|
name: z.ZodMiniString<string>;
|
|
162
107
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
163
108
|
}, z.core.$strip>;
|
|
@@ -171,42 +116,23 @@ export declare namespace schema {
|
|
|
171
116
|
tokenKey: z.ZodMiniString<string>;
|
|
172
117
|
verified: z.ZodMiniBoolean<boolean>;
|
|
173
118
|
}, z.core.$strip>;
|
|
174
|
-
status: z.ZodMiniEnum<{
|
|
175
|
-
available: "available";
|
|
176
|
-
error: "error";
|
|
177
|
-
thin: "thin";
|
|
178
|
-
unavailable: "unavailable";
|
|
179
|
-
unknown: "unknown";
|
|
180
|
-
}>;
|
|
181
119
|
}, z.core.$strip>;
|
|
182
|
-
/**
|
|
120
|
+
/** Funding quote provider catalog entry. */
|
|
183
121
|
const Provider: z.ZodMiniObject<{
|
|
184
|
-
|
|
185
|
-
fundingRoutes: "fundingRoutes";
|
|
186
|
-
}>>;
|
|
187
|
-
id: z.ZodMiniString<string>;
|
|
122
|
+
id: z.ZodMiniLiteral<"relay">;
|
|
188
123
|
kind: z.ZodMiniString<string>;
|
|
189
124
|
name: z.ZodMiniString<string>;
|
|
190
125
|
requiresApiKey: z.ZodMiniBoolean<boolean>;
|
|
191
126
|
status: z.ZodMiniEnum<{
|
|
192
127
|
configured: "configured";
|
|
193
|
-
|
|
194
|
-
planned: "planned";
|
|
128
|
+
unconfigured: "unconfigured";
|
|
195
129
|
}>;
|
|
196
130
|
}, z.core.$strip>;
|
|
197
131
|
/** Chain inventory entry returned by the funding chains endpoint. */
|
|
198
132
|
const ChainInventory: z.ZodMiniObject<{
|
|
199
|
-
addressFormat: z.
|
|
200
|
-
evm: "evm";
|
|
201
|
-
solana: "solana";
|
|
202
|
-
tron: "tron";
|
|
203
|
-
}>;
|
|
133
|
+
addressFormat: z.ZodMiniLiteral<"evm">;
|
|
204
134
|
id: z.ZodMiniString<string>;
|
|
205
|
-
kind: z.
|
|
206
|
-
evm: "evm";
|
|
207
|
-
solana: "solana";
|
|
208
|
-
tron: "tron";
|
|
209
|
-
}>;
|
|
135
|
+
kind: z.ZodMiniLiteral<"evm">;
|
|
210
136
|
name: z.ZodMiniString<string>;
|
|
211
137
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
212
138
|
tokens: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -220,14 +146,12 @@ export declare namespace schema {
|
|
|
220
146
|
verified: z.ZodMiniBoolean<boolean>;
|
|
221
147
|
}, z.core.$strip>>;
|
|
222
148
|
}, z.core.$strip>;
|
|
223
|
-
/** Schemas for the
|
|
224
|
-
namespace
|
|
225
|
-
/** Query parameters for funding
|
|
149
|
+
/** Schemas for the quoteFunding operation. */
|
|
150
|
+
namespace quoteFunding {
|
|
151
|
+
/** Query parameters for live funding quotes. */
|
|
226
152
|
const Query: z.ZodMiniObject<{
|
|
227
153
|
destinationToken: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
228
|
-
|
|
229
|
-
limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
|
|
230
|
-
provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
154
|
+
provider: z.ZodMiniOptional<z.ZodMiniLiteral<"relay">>;
|
|
231
155
|
sourceAmount: z.ZodMiniString<string>;
|
|
232
156
|
sourceAmountUnits: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
233
157
|
baseUnits: "baseUnits";
|
|
@@ -236,21 +160,13 @@ export declare namespace schema {
|
|
|
236
160
|
sourceChain: z.ZodMiniString<string>;
|
|
237
161
|
sourceToken: z.ZodMiniString<string>;
|
|
238
162
|
}, z.core.$strict>;
|
|
239
|
-
/** Non-paginated list of funding
|
|
163
|
+
/** Non-paginated list of successful funding quotes. */
|
|
240
164
|
const Response: z.ZodMiniObject<{
|
|
241
165
|
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
242
166
|
destinationChain: z.ZodMiniObject<{
|
|
243
|
-
addressFormat: z.
|
|
244
|
-
evm: "evm";
|
|
245
|
-
solana: "solana";
|
|
246
|
-
tron: "tron";
|
|
247
|
-
}>;
|
|
167
|
+
addressFormat: z.ZodMiniLiteral<"evm">;
|
|
248
168
|
id: z.ZodMiniString<string>;
|
|
249
|
-
kind: z.
|
|
250
|
-
evm: "evm";
|
|
251
|
-
solana: "solana";
|
|
252
|
-
tron: "tron";
|
|
253
|
-
}>;
|
|
169
|
+
kind: z.ZodMiniLiteral<"evm">;
|
|
254
170
|
name: z.ZodMiniString<string>;
|
|
255
171
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
256
172
|
}, z.core.$strip>;
|
|
@@ -264,61 +180,37 @@ export declare namespace schema {
|
|
|
264
180
|
tokenKey: z.ZodMiniString<string>;
|
|
265
181
|
verified: z.ZodMiniBoolean<boolean>;
|
|
266
182
|
}, z.core.$strip>;
|
|
267
|
-
errorCode: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
268
183
|
id: z.ZodMiniString<string>;
|
|
269
184
|
provider: z.ZodMiniObject<{
|
|
270
|
-
id: z.
|
|
185
|
+
id: z.ZodMiniLiteral<"relay">;
|
|
271
186
|
kind: z.ZodMiniString<string>;
|
|
272
187
|
name: z.ZodMiniString<string>;
|
|
273
188
|
requiresApiKey: z.ZodMiniBoolean<boolean>;
|
|
274
189
|
}, z.core.$strip>;
|
|
275
190
|
quality: z.ZodMiniObject<{
|
|
276
|
-
|
|
277
|
-
estimatedSeconds: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
278
|
-
feeBps: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
279
|
-
historicalVolumeUsd24h: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
280
|
-
instantVolumeUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
191
|
+
estimatedSeconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
|
|
281
192
|
liquiditySource: z.ZodMiniString<string>;
|
|
282
|
-
|
|
283
|
-
sourceDetail: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
193
|
+
sourceDetail: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
284
194
|
tier: z.ZodMiniEnum<{
|
|
285
|
-
error: "error";
|
|
286
195
|
liquid: "liquid";
|
|
287
196
|
thin: "thin";
|
|
288
|
-
unavailable: "unavailable";
|
|
289
|
-
unknown: "unknown";
|
|
290
197
|
}>;
|
|
291
198
|
}, z.core.$strip>;
|
|
292
|
-
quote: z.
|
|
293
|
-
expiresAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
|
|
199
|
+
quote: z.ZodMiniObject<{
|
|
294
200
|
inputAmount: z.ZodMiniString<string>;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
minSourceAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
299
|
-
}, z.core.$strip>>;
|
|
300
|
-
minimumOutputAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
301
|
-
outputAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
302
|
-
outputAmountFormatted: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
201
|
+
minimumOutputAmount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
202
|
+
outputAmount: z.ZodMiniString<string>;
|
|
203
|
+
outputAmountFormatted: z.ZodMiniString<string>;
|
|
303
204
|
sampledAt: z.ZodMiniISODateTime;
|
|
304
|
-
}, z.core.$strip
|
|
205
|
+
}, z.core.$strip>;
|
|
305
206
|
sourceAmount: z.ZodMiniObject<{
|
|
306
207
|
amount: z.ZodMiniString<string>;
|
|
307
208
|
formatted: z.ZodMiniString<string>;
|
|
308
|
-
usd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
309
209
|
}, z.core.$strip>;
|
|
310
210
|
sourceChain: z.ZodMiniObject<{
|
|
311
|
-
addressFormat: z.
|
|
312
|
-
evm: "evm";
|
|
313
|
-
solana: "solana";
|
|
314
|
-
tron: "tron";
|
|
315
|
-
}>;
|
|
211
|
+
addressFormat: z.ZodMiniLiteral<"evm">;
|
|
316
212
|
id: z.ZodMiniString<string>;
|
|
317
|
-
kind: z.
|
|
318
|
-
evm: "evm";
|
|
319
|
-
solana: "solana";
|
|
320
|
-
tron: "tron";
|
|
321
|
-
}>;
|
|
213
|
+
kind: z.ZodMiniLiteral<"evm">;
|
|
322
214
|
name: z.ZodMiniString<string>;
|
|
323
215
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
324
216
|
}, z.core.$strip>;
|
|
@@ -332,13 +224,6 @@ export declare namespace schema {
|
|
|
332
224
|
tokenKey: z.ZodMiniString<string>;
|
|
333
225
|
verified: z.ZodMiniBoolean<boolean>;
|
|
334
226
|
}, z.core.$strip>;
|
|
335
|
-
status: z.ZodMiniEnum<{
|
|
336
|
-
available: "available";
|
|
337
|
-
error: "error";
|
|
338
|
-
thin: "thin";
|
|
339
|
-
unavailable: "unavailable";
|
|
340
|
-
unknown: "unknown";
|
|
341
|
-
}>;
|
|
342
227
|
}, z.core.$strip>>;
|
|
343
228
|
}, z.core.$strip>;
|
|
344
229
|
}
|
|
@@ -347,17 +232,9 @@ export declare namespace schema {
|
|
|
347
232
|
/** Non-paginated source-chain inventory. */
|
|
348
233
|
const Response: z.ZodMiniObject<{
|
|
349
234
|
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
350
|
-
addressFormat: z.
|
|
351
|
-
evm: "evm";
|
|
352
|
-
solana: "solana";
|
|
353
|
-
tron: "tron";
|
|
354
|
-
}>;
|
|
235
|
+
addressFormat: z.ZodMiniLiteral<"evm">;
|
|
355
236
|
id: z.ZodMiniString<string>;
|
|
356
|
-
kind: z.
|
|
357
|
-
evm: "evm";
|
|
358
|
-
solana: "solana";
|
|
359
|
-
tron: "tron";
|
|
360
|
-
}>;
|
|
237
|
+
kind: z.ZodMiniLiteral<"evm">;
|
|
361
238
|
name: z.ZodMiniString<string>;
|
|
362
239
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
363
240
|
tokens: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -375,43 +252,100 @@ export declare namespace schema {
|
|
|
375
252
|
}
|
|
376
253
|
/** Schemas for the listProviders operation. */
|
|
377
254
|
namespace listProviders {
|
|
378
|
-
/**
|
|
379
|
-
const Query: z.ZodMiniObject<{
|
|
380
|
-
capability: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
381
|
-
fundingRoutes: "fundingRoutes";
|
|
382
|
-
}>>;
|
|
383
|
-
}, z.core.$strict>;
|
|
384
|
-
/** Non-paginated generic provider catalog. */
|
|
255
|
+
/** Non-paginated funding quote provider catalog. */
|
|
385
256
|
const Response: z.ZodMiniObject<{
|
|
386
257
|
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
387
|
-
|
|
388
|
-
fundingRoutes: "fundingRoutes";
|
|
389
|
-
}>>;
|
|
390
|
-
id: z.ZodMiniString<string>;
|
|
258
|
+
id: z.ZodMiniLiteral<"relay">;
|
|
391
259
|
kind: z.ZodMiniString<string>;
|
|
392
260
|
name: z.ZodMiniString<string>;
|
|
393
261
|
requiresApiKey: z.ZodMiniBoolean<boolean>;
|
|
394
262
|
status: z.ZodMiniEnum<{
|
|
395
263
|
configured: "configured";
|
|
396
|
-
|
|
397
|
-
planned: "planned";
|
|
264
|
+
unconfigured: "unconfigured";
|
|
398
265
|
}>;
|
|
399
266
|
}, z.core.$strip>>;
|
|
400
267
|
}, z.core.$strip>;
|
|
401
268
|
}
|
|
402
269
|
}
|
|
403
|
-
/** Mounts funding
|
|
270
|
+
/** Mounts live funding quotes and their supporting inventory endpoints. */
|
|
404
271
|
export declare function funding(options?: funding.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
405
|
-
"/v1/funding/
|
|
272
|
+
"/v1/funding/quotes": {
|
|
406
273
|
$get: {
|
|
407
|
-
output:
|
|
408
|
-
|
|
409
|
-
|
|
274
|
+
output: {
|
|
275
|
+
data: {
|
|
276
|
+
destinationChain: {
|
|
277
|
+
addressFormat: "evm";
|
|
278
|
+
id: string;
|
|
279
|
+
kind: "evm";
|
|
280
|
+
name: string;
|
|
281
|
+
providerIds?: {
|
|
282
|
+
[x: string]: string;
|
|
283
|
+
} | undefined;
|
|
284
|
+
};
|
|
285
|
+
destinationToken: {
|
|
286
|
+
address: string;
|
|
287
|
+
decimals: number;
|
|
288
|
+
metadata: {
|
|
289
|
+
[x: string]: string;
|
|
290
|
+
};
|
|
291
|
+
name: string;
|
|
292
|
+
standard: string;
|
|
293
|
+
symbol: string;
|
|
294
|
+
tokenKey: string;
|
|
295
|
+
verified: boolean;
|
|
296
|
+
};
|
|
297
|
+
id: string;
|
|
298
|
+
provider: {
|
|
299
|
+
id: "relay";
|
|
300
|
+
kind: string;
|
|
301
|
+
name: string;
|
|
302
|
+
requiresApiKey: boolean;
|
|
303
|
+
};
|
|
304
|
+
quality: {
|
|
305
|
+
estimatedSeconds?: number | undefined;
|
|
306
|
+
liquiditySource: string;
|
|
307
|
+
sourceDetail?: string | undefined;
|
|
308
|
+
tier: "liquid" | "thin";
|
|
309
|
+
};
|
|
310
|
+
quote: {
|
|
311
|
+
inputAmount: string;
|
|
312
|
+
minimumOutputAmount?: string | undefined;
|
|
313
|
+
outputAmount: string;
|
|
314
|
+
outputAmountFormatted: string;
|
|
315
|
+
sampledAt: string;
|
|
316
|
+
};
|
|
317
|
+
sourceAmount: {
|
|
318
|
+
amount: string;
|
|
319
|
+
formatted: string;
|
|
320
|
+
};
|
|
321
|
+
sourceChain: {
|
|
322
|
+
addressFormat: "evm";
|
|
323
|
+
id: string;
|
|
324
|
+
kind: "evm";
|
|
325
|
+
name: string;
|
|
326
|
+
providerIds?: {
|
|
327
|
+
[x: string]: string;
|
|
328
|
+
} | undefined;
|
|
329
|
+
};
|
|
330
|
+
sourceToken: {
|
|
331
|
+
address: string;
|
|
332
|
+
decimals: number;
|
|
333
|
+
metadata: {
|
|
334
|
+
[x: string]: string;
|
|
335
|
+
};
|
|
336
|
+
name: string;
|
|
337
|
+
standard: string;
|
|
338
|
+
symbol: string;
|
|
339
|
+
tokenKey: string;
|
|
340
|
+
verified: boolean;
|
|
341
|
+
};
|
|
342
|
+
}[];
|
|
343
|
+
};
|
|
344
|
+
outputFormat: "json";
|
|
345
|
+
status: 200;
|
|
410
346
|
input: {
|
|
411
347
|
query: {
|
|
412
348
|
destinationToken?: string | string[];
|
|
413
|
-
include?: string | string[];
|
|
414
|
-
limit?: string | string[];
|
|
415
349
|
provider?: string | string[];
|
|
416
350
|
sourceAmount: string | string[];
|
|
417
351
|
sourceAmountUnits?: string | string[];
|
|
@@ -433,8 +367,27 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
433
367
|
input: {
|
|
434
368
|
query: {
|
|
435
369
|
destinationToken?: string | string[];
|
|
436
|
-
|
|
437
|
-
|
|
370
|
+
provider?: string | string[];
|
|
371
|
+
sourceAmount: string | string[];
|
|
372
|
+
sourceAmountUnits?: string | string[];
|
|
373
|
+
sourceChain: string | string[];
|
|
374
|
+
sourceToken: string | string[];
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
} | {
|
|
378
|
+
output: {
|
|
379
|
+
error: {
|
|
380
|
+
code: "query_invalid";
|
|
381
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
382
|
+
message: string;
|
|
383
|
+
};
|
|
384
|
+
requestId: string;
|
|
385
|
+
};
|
|
386
|
+
outputFormat: "json";
|
|
387
|
+
status: 400;
|
|
388
|
+
input: {
|
|
389
|
+
query: {
|
|
390
|
+
destinationToken?: string | string[];
|
|
438
391
|
provider?: string | string[];
|
|
439
392
|
sourceAmount: string | string[];
|
|
440
393
|
sourceAmountUnits?: string | string[];
|
|
@@ -456,8 +409,20 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
456
409
|
input: {
|
|
457
410
|
query: {
|
|
458
411
|
destinationToken?: string | string[];
|
|
459
|
-
|
|
460
|
-
|
|
412
|
+
provider?: string | string[];
|
|
413
|
+
sourceAmount: string | string[];
|
|
414
|
+
sourceAmountUnits?: string | string[];
|
|
415
|
+
sourceChain: string | string[];
|
|
416
|
+
sourceToken: string | string[];
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
} | {
|
|
420
|
+
output: null;
|
|
421
|
+
outputFormat: "body";
|
|
422
|
+
status: 402;
|
|
423
|
+
input: {
|
|
424
|
+
query: {
|
|
425
|
+
destinationToken?: string | string[];
|
|
461
426
|
provider?: string | string[];
|
|
462
427
|
sourceAmount: string | string[];
|
|
463
428
|
sourceAmountUnits?: string | string[];
|
|
@@ -479,8 +444,6 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
479
444
|
input: {
|
|
480
445
|
query: {
|
|
481
446
|
destinationToken?: string | string[];
|
|
482
|
-
include?: string | string[];
|
|
483
|
-
limit?: string | string[];
|
|
484
447
|
provider?: string | string[];
|
|
485
448
|
sourceAmount: string | string[];
|
|
486
449
|
sourceAmountUnits?: string | string[];
|
|
@@ -502,8 +465,6 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
502
465
|
input: {
|
|
503
466
|
query: {
|
|
504
467
|
destinationToken?: string | string[];
|
|
505
|
-
include?: string | string[];
|
|
506
|
-
limit?: string | string[];
|
|
507
468
|
provider?: string | string[];
|
|
508
469
|
sourceAmount: string | string[];
|
|
509
470
|
sourceAmountUnits?: string | string[];
|
|
@@ -514,19 +475,17 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
514
475
|
} | {
|
|
515
476
|
output: {
|
|
516
477
|
error: {
|
|
517
|
-
code: "
|
|
478
|
+
code: "upstream_error";
|
|
518
479
|
details?: readonly Response.error.Detail[] | undefined;
|
|
519
480
|
message: string;
|
|
520
481
|
};
|
|
521
482
|
requestId: string;
|
|
522
483
|
};
|
|
523
484
|
outputFormat: "json";
|
|
524
|
-
status:
|
|
485
|
+
status: 502;
|
|
525
486
|
input: {
|
|
526
487
|
query: {
|
|
527
488
|
destinationToken?: string | string[];
|
|
528
|
-
include?: string | string[];
|
|
529
|
-
limit?: string | string[];
|
|
530
489
|
provider?: string | string[];
|
|
531
490
|
sourceAmount: string | string[];
|
|
532
491
|
sourceAmountUnits?: string | string[];
|
|
@@ -534,77 +493,21 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
534
493
|
sourceToken: string | string[];
|
|
535
494
|
};
|
|
536
495
|
};
|
|
537
|
-
}
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
} & {
|
|
499
|
+
"/v1/funding/chains": {
|
|
500
|
+
$get: {
|
|
538
501
|
output: {
|
|
539
502
|
data: {
|
|
540
|
-
|
|
541
|
-
addressFormat: "evm" | "solana" | "tron";
|
|
542
|
-
id: string;
|
|
543
|
-
kind: "evm" | "solana" | "tron";
|
|
544
|
-
name: string;
|
|
545
|
-
providerIds?: {
|
|
546
|
-
[x: string]: string;
|
|
547
|
-
} | undefined;
|
|
548
|
-
};
|
|
549
|
-
destinationToken: {
|
|
550
|
-
address: string;
|
|
551
|
-
decimals: number;
|
|
552
|
-
metadata: {
|
|
553
|
-
[x: string]: string;
|
|
554
|
-
};
|
|
555
|
-
name: string;
|
|
556
|
-
standard: string;
|
|
557
|
-
symbol: string;
|
|
558
|
-
tokenKey: string;
|
|
559
|
-
verified: boolean;
|
|
560
|
-
};
|
|
561
|
-
errorCode: string | null;
|
|
503
|
+
addressFormat: "evm";
|
|
562
504
|
id: string;
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
quality: {
|
|
570
|
-
availableVolumeUsd: string | null;
|
|
571
|
-
estimatedSeconds: number | null;
|
|
572
|
-
feeBps: number | null;
|
|
573
|
-
historicalVolumeUsd24h: string | null;
|
|
574
|
-
instantVolumeUsd: string | null;
|
|
575
|
-
liquiditySource: string;
|
|
576
|
-
score: number | null;
|
|
577
|
-
sourceDetail: string | null;
|
|
578
|
-
tier: "error" | "liquid" | "thin" | "unavailable" | "unknown";
|
|
579
|
-
};
|
|
580
|
-
quote: {
|
|
581
|
-
expiresAt: string | null;
|
|
582
|
-
inputAmount: string;
|
|
583
|
-
limits: {
|
|
584
|
-
instantSourceAmount: string | null;
|
|
585
|
-
maxSourceAmount: string | null;
|
|
586
|
-
minSourceAmount: string | null;
|
|
587
|
-
} | null;
|
|
588
|
-
minimumOutputAmount: string | null;
|
|
589
|
-
outputAmount: string | null;
|
|
590
|
-
outputAmountFormatted: string | null;
|
|
591
|
-
sampledAt: string;
|
|
592
|
-
} | null;
|
|
593
|
-
sourceAmount: {
|
|
594
|
-
amount: string;
|
|
595
|
-
formatted: string;
|
|
596
|
-
usd: string | null;
|
|
597
|
-
};
|
|
598
|
-
sourceChain: {
|
|
599
|
-
addressFormat: "evm" | "solana" | "tron";
|
|
600
|
-
id: string;
|
|
601
|
-
kind: "evm" | "solana" | "tron";
|
|
602
|
-
name: string;
|
|
603
|
-
providerIds?: {
|
|
604
|
-
[x: string]: string;
|
|
605
|
-
} | undefined;
|
|
606
|
-
};
|
|
607
|
-
sourceToken: {
|
|
505
|
+
kind: "evm";
|
|
506
|
+
name: string;
|
|
507
|
+
providerIds?: {
|
|
508
|
+
[x: string]: string;
|
|
509
|
+
} | undefined;
|
|
510
|
+
tokens: {
|
|
608
511
|
address: string;
|
|
609
512
|
decimals: number;
|
|
610
513
|
metadata: {
|
|
@@ -615,32 +518,11 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
615
518
|
symbol: string;
|
|
616
519
|
tokenKey: string;
|
|
617
520
|
verified: boolean;
|
|
618
|
-
};
|
|
619
|
-
status: "available" | "error" | "thin" | "unavailable" | "unknown";
|
|
521
|
+
}[];
|
|
620
522
|
}[];
|
|
621
523
|
};
|
|
622
524
|
outputFormat: "json";
|
|
623
525
|
status: 200;
|
|
624
|
-
input: {
|
|
625
|
-
query: {
|
|
626
|
-
destinationToken?: string | string[];
|
|
627
|
-
include?: string | string[];
|
|
628
|
-
limit?: string | string[];
|
|
629
|
-
provider?: string | string[];
|
|
630
|
-
sourceAmount: string | string[];
|
|
631
|
-
sourceAmountUnits?: string | string[];
|
|
632
|
-
sourceChain: string | string[];
|
|
633
|
-
sourceToken: string | string[];
|
|
634
|
-
};
|
|
635
|
-
};
|
|
636
|
-
};
|
|
637
|
-
};
|
|
638
|
-
} & {
|
|
639
|
-
"/v1/funding/chains": {
|
|
640
|
-
$get: {
|
|
641
|
-
output: null;
|
|
642
|
-
outputFormat: "body";
|
|
643
|
-
status: 402;
|
|
644
526
|
input: {};
|
|
645
527
|
} | {
|
|
646
528
|
output: {
|
|
@@ -666,6 +548,11 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
666
548
|
outputFormat: "json";
|
|
667
549
|
status: 401;
|
|
668
550
|
input: {};
|
|
551
|
+
} | {
|
|
552
|
+
output: null;
|
|
553
|
+
outputFormat: "body";
|
|
554
|
+
status: 402;
|
|
555
|
+
input: {};
|
|
669
556
|
} | {
|
|
670
557
|
output: {
|
|
671
558
|
error: {
|
|
@@ -690,46 +577,23 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
690
577
|
outputFormat: "json";
|
|
691
578
|
status: 429;
|
|
692
579
|
input: {};
|
|
693
|
-
}
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
} & {
|
|
583
|
+
"/v1/funding/providers": {
|
|
584
|
+
$get: {
|
|
694
585
|
output: {
|
|
695
586
|
data: {
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
kind: "evm" | "solana" | "tron";
|
|
587
|
+
id: "relay";
|
|
588
|
+
kind: string;
|
|
699
589
|
name: string;
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
} | undefined;
|
|
703
|
-
tokens: {
|
|
704
|
-
address: string;
|
|
705
|
-
decimals: number;
|
|
706
|
-
metadata: {
|
|
707
|
-
[x: string]: string;
|
|
708
|
-
};
|
|
709
|
-
name: string;
|
|
710
|
-
standard: string;
|
|
711
|
-
symbol: string;
|
|
712
|
-
tokenKey: string;
|
|
713
|
-
verified: boolean;
|
|
714
|
-
}[];
|
|
590
|
+
requiresApiKey: boolean;
|
|
591
|
+
status: "configured" | "unconfigured";
|
|
715
592
|
}[];
|
|
716
593
|
};
|
|
717
594
|
outputFormat: "json";
|
|
718
595
|
status: 200;
|
|
719
596
|
input: {};
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
} & {
|
|
723
|
-
"/v1/providers": {
|
|
724
|
-
$get: {
|
|
725
|
-
output: null;
|
|
726
|
-
outputFormat: "body";
|
|
727
|
-
status: 402;
|
|
728
|
-
input: {
|
|
729
|
-
query?: {
|
|
730
|
-
capability?: string | string[];
|
|
731
|
-
} | undefined;
|
|
732
|
-
};
|
|
733
597
|
} | {
|
|
734
598
|
output: {
|
|
735
599
|
error: {
|
|
@@ -741,11 +605,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
741
605
|
};
|
|
742
606
|
outputFormat: "json";
|
|
743
607
|
status: 400;
|
|
744
|
-
input: {
|
|
745
|
-
query?: {
|
|
746
|
-
capability?: string | string[];
|
|
747
|
-
} | undefined;
|
|
748
|
-
};
|
|
608
|
+
input: {};
|
|
749
609
|
} | {
|
|
750
610
|
output: {
|
|
751
611
|
error: {
|
|
@@ -757,11 +617,12 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
757
617
|
};
|
|
758
618
|
outputFormat: "json";
|
|
759
619
|
status: 401;
|
|
760
|
-
input: {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
620
|
+
input: {};
|
|
621
|
+
} | {
|
|
622
|
+
output: null;
|
|
623
|
+
outputFormat: "body";
|
|
624
|
+
status: 402;
|
|
625
|
+
input: {};
|
|
765
626
|
} | {
|
|
766
627
|
output: {
|
|
767
628
|
error: {
|
|
@@ -773,11 +634,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
773
634
|
};
|
|
774
635
|
outputFormat: "json";
|
|
775
636
|
status: 403;
|
|
776
|
-
input: {
|
|
777
|
-
query?: {
|
|
778
|
-
capability?: string | string[];
|
|
779
|
-
} | undefined;
|
|
780
|
-
};
|
|
637
|
+
input: {};
|
|
781
638
|
} | {
|
|
782
639
|
output: {
|
|
783
640
|
error: {
|
|
@@ -789,53 +646,15 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
789
646
|
};
|
|
790
647
|
outputFormat: "json";
|
|
791
648
|
status: 429;
|
|
792
|
-
input: {
|
|
793
|
-
query?: {
|
|
794
|
-
capability?: string | string[];
|
|
795
|
-
} | undefined;
|
|
796
|
-
};
|
|
797
|
-
} | {
|
|
798
|
-
output: {
|
|
799
|
-
error: {
|
|
800
|
-
code: "query_invalid";
|
|
801
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
802
|
-
message: string;
|
|
803
|
-
};
|
|
804
|
-
requestId: string;
|
|
805
|
-
};
|
|
806
|
-
outputFormat: "json";
|
|
807
|
-
status: 400;
|
|
808
|
-
input: {
|
|
809
|
-
query?: {
|
|
810
|
-
capability?: string | string[];
|
|
811
|
-
} | undefined;
|
|
812
|
-
};
|
|
813
|
-
} | {
|
|
814
|
-
output: {
|
|
815
|
-
data: {
|
|
816
|
-
capabilities: "fundingRoutes"[];
|
|
817
|
-
id: string;
|
|
818
|
-
kind: string;
|
|
819
|
-
name: string;
|
|
820
|
-
requiresApiKey: boolean;
|
|
821
|
-
status: "configured" | "inventoryOnly" | "planned";
|
|
822
|
-
}[];
|
|
823
|
-
};
|
|
824
|
-
outputFormat: "json";
|
|
825
|
-
status: 200;
|
|
826
|
-
input: {
|
|
827
|
-
query?: {
|
|
828
|
-
capability?: string | string[];
|
|
829
|
-
} | undefined;
|
|
830
|
-
};
|
|
649
|
+
input: {};
|
|
831
650
|
};
|
|
832
651
|
};
|
|
833
|
-
}, "/", "/v1/providers">;
|
|
652
|
+
}, "/", "/v1/funding/providers">;
|
|
834
653
|
export declare namespace funding {
|
|
835
|
-
/** Options for funding
|
|
654
|
+
/** Options for live funding quotes. */
|
|
836
655
|
type Options = {
|
|
837
|
-
/** Provider adapters used to
|
|
838
|
-
adapters?:
|
|
656
|
+
/** Provider adapters used to request live quotes. */
|
|
657
|
+
adapters?: FundingQuotes.ProviderAdapters | undefined;
|
|
839
658
|
/** Per-provider quote timeout in milliseconds. */
|
|
840
659
|
adapterTimeoutMs?: number | undefined;
|
|
841
660
|
};
|