tapimo 0.5.0 → 0.5.2
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 +4854 -4829
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +20 -2
- package/dist/App.js.map +1 -1
- package/dist/Assets.js +3 -3
- package/dist/Assets.js.map +1 -1
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +1 -2
- package/dist/Scope.js.map +1 -1
- package/dist/Webhooks.d.ts +1 -1
- package/dist/Webhooks.d.ts.map +1 -1
- package/dist/Webhooks.js +5 -10
- package/dist/Webhooks.js.map +1 -1
- package/dist/admin/App.d.ts +6 -34
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +3 -3
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.js +4 -1
- package/dist/admin/apps/api-keys.js.map +1 -1
- package/dist/admin/apps/scopes.d.ts +6 -34
- package/dist/admin/apps/scopes.d.ts.map +1 -1
- package/dist/admin/apps/scopes.js +2 -2
- package/dist/admin/apps/scopes.js.map +1 -1
- package/dist/admin/apps/verified-tokens.d.ts +2 -2
- package/dist/admin/ui.generated.d.ts +1 -1
- package/dist/admin/ui.generated.js +33 -33
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/apps/data/App.d.ts +1398 -1405
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +25 -38
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/FundingQuoteProviders.d.ts +108 -3
- package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -1
- package/dist/apps/data/FundingQuoteProviders.js +409 -2
- package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +245 -245
- package/dist/apps/data/routes/blocks.d.ts +123 -123
- package/dist/apps/data/routes/funding.d.ts +236 -146
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +23 -12
- package/dist/apps/data/routes/funding.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts.map +1 -1
- package/dist/apps/data/routes/indexer.js +9 -2
- package/dist/apps/data/routes/indexer.js.map +1 -1
- package/dist/apps/data/routes/rpc.d.ts +31 -31
- package/dist/apps/data/routes/tokenlist.d.ts +36 -36
- package/dist/apps/data/routes/transactions.d.ts +281 -281
- package/dist/apps/data/routes/transfers.d.ts +66 -73
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +21 -27
- package/dist/apps/data/routes/transfers.js.map +1 -1
- package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
- package/dist/apps/data/routes/webhooks.d.ts +35 -35
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +176 -42
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/management/App.d.ts +520 -504
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/Billing.d.ts.map +1 -1
- package/dist/apps/management/Billing.js +5 -4
- package/dist/apps/management/Billing.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +120 -120
- package/dist/apps/management/routes/billing.d.ts +211 -211
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +1 -1
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +72 -72
- package/dist/apps/management/routes/invite-links.d.ts +159 -159
- package/dist/apps/management/routes/me.d.ts +17 -17
- package/dist/apps/management/routes/members.d.ts +80 -80
- package/dist/apps/management/routes/orgs.d.ts +59 -43
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +18 -1
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/projects.d.ts +109 -109
- package/dist/apps/management/routes/scopes.d.ts +11 -11
- package/dist/apps/management/routes/usage.d.ts +79 -79
- package/dist/apps/mcp.js +2 -2
- package/dist/apps/mcp.js.map +1 -1
- package/dist/apps/relay/App.d.ts +2 -2
- package/dist/apps/relay/App.js +2 -2
- package/dist/apps/relay/Sponsorships.d.ts +3 -0
- package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
- package/dist/apps/relay/Sponsorships.js +15 -1
- package/dist/apps/relay/Sponsorships.js.map +1 -1
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +4 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.js +1 -1
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/organizations.d.ts +6 -0
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +26 -0
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/db/tables/requestUsage.d.ts +2 -11
- package/dist/db/tables/requestUsage.d.ts.map +1 -1
- package/dist/db/tables/requestUsage.js +1 -20
- package/dist/db/tables/requestUsage.js.map +1 -1
- package/dist/db/tables/sponsoredTransactions.d.ts +2 -1
- package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
- package/dist/db/tables/sponsoredTransactions.js +52 -10
- package/dist/db/tables/sponsoredTransactions.js.map +1 -1
- package/dist/internal/Auth.d.ts +4 -0
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +15 -8
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/Cache.d.ts.map +1 -1
- package/dist/internal/Cache.js +9 -1
- package/dist/internal/Cache.js.map +1 -1
- package/dist/internal/EdgeCache.d.ts.map +1 -1
- package/dist/internal/EdgeCache.js +12 -3
- package/dist/internal/EdgeCache.js.map +1 -1
- package/dist/internal/FundingQuotes.d.ts +176 -56
- package/dist/internal/FundingQuotes.d.ts.map +1 -1
- package/dist/internal/FundingQuotes.js +100 -5
- package/dist/internal/FundingQuotes.js.map +1 -1
- package/dist/internal/Log.d.ts +18 -12
- 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/RateLimit.d.ts +2 -0
- package/dist/internal/RateLimit.d.ts.map +1 -1
- package/dist/internal/RateLimit.js +4 -4
- package/dist/internal/RateLimit.js.map +1 -1
- package/dist/internal/Tidx.d.ts +9 -3
- package/dist/internal/Tidx.d.ts.map +1 -1
- package/dist/internal/Tidx.js +13 -7
- package/dist/internal/Tidx.js.map +1 -1
- package/dist/internal/Viem.d.ts +14 -1
- package/dist/internal/Viem.d.ts.map +1 -1
- package/dist/internal/Viem.js +19 -1
- package/dist/internal/Viem.js.map +1 -1
- package/package.json +7 -2
- package/src/ApiKeys.test.ts +2 -0
- package/src/App.test.ts +15 -4
- package/src/App.ts +31 -5
- package/src/Assets.ts +3 -3
- package/src/Client.test-d.ts +30 -3
- package/src/Scope.ts +4 -2
- package/src/Webhooks.ts +5 -10
- package/src/admin/apps/api-keys.test.ts +27 -0
- package/src/admin/apps/api-keys.ts +8 -1
- package/src/admin/apps/scopes.test.ts +7 -2
- package/src/admin/apps/scopes.ts +2 -2
- package/src/admin/ui/src/components/Dialog.tsx +8 -2
- package/src/admin/ui/src/lib/scopes.test.ts +19 -0
- package/src/admin/ui/src/lib/scopes.ts +12 -0
- package/src/admin/ui/src/routes/api-keys.tsx +128 -27
- package/src/admin/ui.generated.ts +33 -33
- package/src/apps/composition.test.ts +77 -0
- package/src/apps/data/App.ts +25 -45
- package/src/apps/data/FundingQuoteProviders.test.ts +615 -5
- package/src/apps/data/FundingQuoteProviders.ts +570 -4
- package/src/apps/data/routes/funding.test.ts +181 -7
- package/src/apps/data/routes/funding.ts +27 -12
- package/src/apps/data/routes/indexer.test.ts +82 -20
- package/src/apps/data/routes/indexer.ts +8 -2
- package/src/apps/data/routes/tokens.test.ts +54 -0
- package/src/apps/data/routes/transfers.test.ts +73 -1
- package/src/apps/data/routes/transfers.ts +24 -30
- package/src/apps/data/routes/webhooks.test.ts +203 -0
- package/src/apps/data/routes/webhooks.ts +191 -54
- package/src/apps/management/Billing.test.ts +52 -3
- package/src/apps/management/Billing.ts +5 -4
- package/src/apps/management/routes/billing.ts +6 -1
- package/src/apps/management/routes/orgs.ts +19 -1
- package/src/apps/mcp.test.ts +18 -0
- package/src/apps/mcp.ts +2 -2
- package/src/apps/relay/App.test.ts +6 -5
- package/src/apps/relay/App.ts +2 -2
- package/src/apps/relay/Sponsorships.test.ts +2 -2
- package/src/apps/relay/Sponsorships.ts +24 -1
- package/src/db/Db.test.ts +5 -5
- package/src/db/Db.ts +4 -0
- package/src/db/Schema.ts +1 -1
- package/src/db/tables/billingSettings.test.ts +2 -2
- package/src/db/tables/organizations.test.ts +32 -2
- package/src/db/tables/organizations.ts +28 -0
- package/src/db/tables/requestUsage.ts +3 -23
- package/src/db/tables/sponsoredTransactions.test.ts +60 -2
- package/src/db/tables/sponsoredTransactions.ts +67 -21
- package/src/db/tables/stripeCustomers.test.ts +2 -2
- package/src/internal/Auth.test.ts +63 -10
- package/src/internal/Auth.ts +21 -9
- package/src/internal/Cache.test.ts +19 -0
- package/src/internal/Cache.ts +13 -1
- package/src/internal/EdgeCache.test.ts +40 -0
- package/src/internal/EdgeCache.ts +11 -3
- package/src/internal/FundingQuotes.test.ts +130 -3
- package/src/internal/FundingQuotes.ts +113 -6
- package/src/internal/Log.ts +21 -14
- package/src/internal/RateLimit.test.ts +12 -0
- package/src/internal/RateLimit.ts +4 -4
- package/src/internal/Tidx.test.ts +48 -0
- package/src/internal/Tidx.ts +21 -7
- package/src/internal/Viem.test.ts +46 -0
- package/src/internal/Viem.ts +34 -1
|
@@ -6,9 +6,17 @@ import * as Response from '../../../internal/Response.js';
|
|
|
6
6
|
export declare namespace schema {
|
|
7
7
|
/** Source or destination chain reference. */
|
|
8
8
|
const Chain: z.ZodMiniObject<{
|
|
9
|
-
addressFormat: z.
|
|
9
|
+
addressFormat: z.ZodMiniEnum<{
|
|
10
|
+
base58: "base58";
|
|
11
|
+
base58check: "base58check";
|
|
12
|
+
evm: "evm";
|
|
13
|
+
}>;
|
|
10
14
|
id: z.ZodMiniString<string>;
|
|
11
|
-
kind: z.
|
|
15
|
+
kind: z.ZodMiniEnum<{
|
|
16
|
+
evm: "evm";
|
|
17
|
+
solana: "solana";
|
|
18
|
+
tron: "tron";
|
|
19
|
+
}>;
|
|
12
20
|
name: z.ZodMiniString<string>;
|
|
13
21
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
14
22
|
}, z.core.$strip>;
|
|
@@ -30,7 +38,12 @@ export declare namespace schema {
|
|
|
30
38
|
}, z.core.$strip>;
|
|
31
39
|
/** Provider summary embedded in a funding quote. */
|
|
32
40
|
const ProviderRef: z.ZodMiniObject<{
|
|
33
|
-
id: z.
|
|
41
|
+
id: z.ZodMiniEnum<{
|
|
42
|
+
across: "across";
|
|
43
|
+
relay: "relay";
|
|
44
|
+
rhino: "rhino";
|
|
45
|
+
squid: "squid";
|
|
46
|
+
}>;
|
|
34
47
|
kind: z.ZodMiniString<string>;
|
|
35
48
|
name: z.ZodMiniString<string>;
|
|
36
49
|
requiresApiKey: z.ZodMiniBoolean<boolean>;
|
|
@@ -47,6 +60,7 @@ export declare namespace schema {
|
|
|
47
60
|
}, z.core.$strip>;
|
|
48
61
|
/** Provider-derived output, limits, and freshness data. */
|
|
49
62
|
const QuoteDetails: z.ZodMiniObject<{
|
|
63
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
50
64
|
inputAmount: z.ZodMiniString<string>;
|
|
51
65
|
minimumOutputAmount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
52
66
|
outputAmount: z.ZodMiniString<string>;
|
|
@@ -56,9 +70,17 @@ export declare namespace schema {
|
|
|
56
70
|
/** Successful live funding quote. */
|
|
57
71
|
const FundingQuote: z.ZodMiniObject<{
|
|
58
72
|
destinationChain: z.ZodMiniObject<{
|
|
59
|
-
addressFormat: z.
|
|
73
|
+
addressFormat: z.ZodMiniEnum<{
|
|
74
|
+
base58: "base58";
|
|
75
|
+
base58check: "base58check";
|
|
76
|
+
evm: "evm";
|
|
77
|
+
}>;
|
|
60
78
|
id: z.ZodMiniString<string>;
|
|
61
|
-
kind: z.
|
|
79
|
+
kind: z.ZodMiniEnum<{
|
|
80
|
+
evm: "evm";
|
|
81
|
+
solana: "solana";
|
|
82
|
+
tron: "tron";
|
|
83
|
+
}>;
|
|
62
84
|
name: z.ZodMiniString<string>;
|
|
63
85
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
64
86
|
}, z.core.$strip>;
|
|
@@ -74,7 +96,12 @@ export declare namespace schema {
|
|
|
74
96
|
}, z.core.$strip>;
|
|
75
97
|
id: z.ZodMiniString<string>;
|
|
76
98
|
provider: z.ZodMiniObject<{
|
|
77
|
-
id: z.
|
|
99
|
+
id: z.ZodMiniEnum<{
|
|
100
|
+
across: "across";
|
|
101
|
+
relay: "relay";
|
|
102
|
+
rhino: "rhino";
|
|
103
|
+
squid: "squid";
|
|
104
|
+
}>;
|
|
78
105
|
kind: z.ZodMiniString<string>;
|
|
79
106
|
name: z.ZodMiniString<string>;
|
|
80
107
|
requiresApiKey: z.ZodMiniBoolean<boolean>;
|
|
@@ -89,6 +116,7 @@ export declare namespace schema {
|
|
|
89
116
|
}>;
|
|
90
117
|
}, z.core.$strip>;
|
|
91
118
|
quote: z.ZodMiniObject<{
|
|
119
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
92
120
|
inputAmount: z.ZodMiniString<string>;
|
|
93
121
|
minimumOutputAmount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
94
122
|
outputAmount: z.ZodMiniString<string>;
|
|
@@ -100,9 +128,17 @@ export declare namespace schema {
|
|
|
100
128
|
formatted: z.ZodMiniString<string>;
|
|
101
129
|
}, z.core.$strip>;
|
|
102
130
|
sourceChain: z.ZodMiniObject<{
|
|
103
|
-
addressFormat: z.
|
|
131
|
+
addressFormat: z.ZodMiniEnum<{
|
|
132
|
+
base58: "base58";
|
|
133
|
+
base58check: "base58check";
|
|
134
|
+
evm: "evm";
|
|
135
|
+
}>;
|
|
104
136
|
id: z.ZodMiniString<string>;
|
|
105
|
-
kind: z.
|
|
137
|
+
kind: z.ZodMiniEnum<{
|
|
138
|
+
evm: "evm";
|
|
139
|
+
solana: "solana";
|
|
140
|
+
tron: "tron";
|
|
141
|
+
}>;
|
|
106
142
|
name: z.ZodMiniString<string>;
|
|
107
143
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
108
144
|
}, z.core.$strip>;
|
|
@@ -119,7 +155,12 @@ export declare namespace schema {
|
|
|
119
155
|
}, z.core.$strip>;
|
|
120
156
|
/** Funding quote provider catalog entry. */
|
|
121
157
|
const Provider: z.ZodMiniObject<{
|
|
122
|
-
id: z.
|
|
158
|
+
id: z.ZodMiniEnum<{
|
|
159
|
+
across: "across";
|
|
160
|
+
relay: "relay";
|
|
161
|
+
rhino: "rhino";
|
|
162
|
+
squid: "squid";
|
|
163
|
+
}>;
|
|
123
164
|
kind: z.ZodMiniString<string>;
|
|
124
165
|
name: z.ZodMiniString<string>;
|
|
125
166
|
requiresApiKey: z.ZodMiniBoolean<boolean>;
|
|
@@ -130,9 +171,17 @@ export declare namespace schema {
|
|
|
130
171
|
}, z.core.$strip>;
|
|
131
172
|
/** Chain inventory entry returned by the funding chains endpoint. */
|
|
132
173
|
const ChainInventory: z.ZodMiniObject<{
|
|
133
|
-
addressFormat: z.
|
|
174
|
+
addressFormat: z.ZodMiniEnum<{
|
|
175
|
+
base58: "base58";
|
|
176
|
+
base58check: "base58check";
|
|
177
|
+
evm: "evm";
|
|
178
|
+
}>;
|
|
134
179
|
id: z.ZodMiniString<string>;
|
|
135
|
-
kind: z.
|
|
180
|
+
kind: z.ZodMiniEnum<{
|
|
181
|
+
evm: "evm";
|
|
182
|
+
solana: "solana";
|
|
183
|
+
tron: "tron";
|
|
184
|
+
}>;
|
|
136
185
|
name: z.ZodMiniString<string>;
|
|
137
186
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
138
187
|
tokens: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -151,7 +200,12 @@ export declare namespace schema {
|
|
|
151
200
|
/** Query parameters for live funding quotes. */
|
|
152
201
|
const Query: z.ZodMiniObject<{
|
|
153
202
|
destinationToken: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
154
|
-
provider: z.ZodMiniOptional<z.
|
|
203
|
+
provider: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
204
|
+
across: "across";
|
|
205
|
+
relay: "relay";
|
|
206
|
+
rhino: "rhino";
|
|
207
|
+
squid: "squid";
|
|
208
|
+
}>>;
|
|
155
209
|
sourceAmount: z.ZodMiniString<string>;
|
|
156
210
|
sourceAmountUnits: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
157
211
|
baseUnits: "baseUnits";
|
|
@@ -164,9 +218,17 @@ export declare namespace schema {
|
|
|
164
218
|
const Response: z.ZodMiniObject<{
|
|
165
219
|
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
166
220
|
destinationChain: z.ZodMiniObject<{
|
|
167
|
-
addressFormat: z.
|
|
221
|
+
addressFormat: z.ZodMiniEnum<{
|
|
222
|
+
base58: "base58";
|
|
223
|
+
base58check: "base58check";
|
|
224
|
+
evm: "evm";
|
|
225
|
+
}>;
|
|
168
226
|
id: z.ZodMiniString<string>;
|
|
169
|
-
kind: z.
|
|
227
|
+
kind: z.ZodMiniEnum<{
|
|
228
|
+
evm: "evm";
|
|
229
|
+
solana: "solana";
|
|
230
|
+
tron: "tron";
|
|
231
|
+
}>;
|
|
170
232
|
name: z.ZodMiniString<string>;
|
|
171
233
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
172
234
|
}, z.core.$strip>;
|
|
@@ -182,7 +244,12 @@ export declare namespace schema {
|
|
|
182
244
|
}, z.core.$strip>;
|
|
183
245
|
id: z.ZodMiniString<string>;
|
|
184
246
|
provider: z.ZodMiniObject<{
|
|
185
|
-
id: z.
|
|
247
|
+
id: z.ZodMiniEnum<{
|
|
248
|
+
across: "across";
|
|
249
|
+
relay: "relay";
|
|
250
|
+
rhino: "rhino";
|
|
251
|
+
squid: "squid";
|
|
252
|
+
}>;
|
|
186
253
|
kind: z.ZodMiniString<string>;
|
|
187
254
|
name: z.ZodMiniString<string>;
|
|
188
255
|
requiresApiKey: z.ZodMiniBoolean<boolean>;
|
|
@@ -197,6 +264,7 @@ export declare namespace schema {
|
|
|
197
264
|
}>;
|
|
198
265
|
}, z.core.$strip>;
|
|
199
266
|
quote: z.ZodMiniObject<{
|
|
267
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
200
268
|
inputAmount: z.ZodMiniString<string>;
|
|
201
269
|
minimumOutputAmount: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
202
270
|
outputAmount: z.ZodMiniString<string>;
|
|
@@ -208,9 +276,17 @@ export declare namespace schema {
|
|
|
208
276
|
formatted: z.ZodMiniString<string>;
|
|
209
277
|
}, z.core.$strip>;
|
|
210
278
|
sourceChain: z.ZodMiniObject<{
|
|
211
|
-
addressFormat: z.
|
|
279
|
+
addressFormat: z.ZodMiniEnum<{
|
|
280
|
+
base58: "base58";
|
|
281
|
+
base58check: "base58check";
|
|
282
|
+
evm: "evm";
|
|
283
|
+
}>;
|
|
212
284
|
id: z.ZodMiniString<string>;
|
|
213
|
-
kind: z.
|
|
285
|
+
kind: z.ZodMiniEnum<{
|
|
286
|
+
evm: "evm";
|
|
287
|
+
solana: "solana";
|
|
288
|
+
tron: "tron";
|
|
289
|
+
}>;
|
|
214
290
|
name: z.ZodMiniString<string>;
|
|
215
291
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
216
292
|
}, z.core.$strip>;
|
|
@@ -232,9 +308,17 @@ export declare namespace schema {
|
|
|
232
308
|
/** Non-paginated source-chain inventory. */
|
|
233
309
|
const Response: z.ZodMiniObject<{
|
|
234
310
|
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
235
|
-
addressFormat: z.
|
|
311
|
+
addressFormat: z.ZodMiniEnum<{
|
|
312
|
+
base58: "base58";
|
|
313
|
+
base58check: "base58check";
|
|
314
|
+
evm: "evm";
|
|
315
|
+
}>;
|
|
236
316
|
id: z.ZodMiniString<string>;
|
|
237
|
-
kind: z.
|
|
317
|
+
kind: z.ZodMiniEnum<{
|
|
318
|
+
evm: "evm";
|
|
319
|
+
solana: "solana";
|
|
320
|
+
tron: "tron";
|
|
321
|
+
}>;
|
|
238
322
|
name: z.ZodMiniString<string>;
|
|
239
323
|
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
240
324
|
tokens: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -255,7 +339,12 @@ export declare namespace schema {
|
|
|
255
339
|
/** Non-paginated funding quote provider catalog. */
|
|
256
340
|
const Response: z.ZodMiniObject<{
|
|
257
341
|
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
258
|
-
id: z.
|
|
342
|
+
id: z.ZodMiniEnum<{
|
|
343
|
+
across: "across";
|
|
344
|
+
relay: "relay";
|
|
345
|
+
rhino: "rhino";
|
|
346
|
+
squid: "squid";
|
|
347
|
+
}>;
|
|
259
348
|
kind: z.ZodMiniString<string>;
|
|
260
349
|
name: z.ZodMiniString<string>;
|
|
261
350
|
requiresApiKey: z.ZodMiniBoolean<boolean>;
|
|
@@ -271,78 +360,9 @@ export declare namespace schema {
|
|
|
271
360
|
export declare function funding(options?: funding.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
272
361
|
"/v1/funding/quotes": {
|
|
273
362
|
$get: {
|
|
274
|
-
output:
|
|
275
|
-
|
|
276
|
-
|
|
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;
|
|
363
|
+
output: null;
|
|
364
|
+
outputFormat: "body";
|
|
365
|
+
status: 402;
|
|
346
366
|
input: {
|
|
347
367
|
query: {
|
|
348
368
|
destinationToken?: string | string[];
|
|
@@ -377,14 +397,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
377
397
|
} | {
|
|
378
398
|
output: {
|
|
379
399
|
error: {
|
|
380
|
-
code: "
|
|
400
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
381
401
|
details?: readonly Response.error.Detail[] | undefined;
|
|
382
402
|
message: string;
|
|
383
403
|
};
|
|
384
404
|
requestId: string;
|
|
385
405
|
};
|
|
386
406
|
outputFormat: "json";
|
|
387
|
-
status:
|
|
407
|
+
status: 401;
|
|
388
408
|
input: {
|
|
389
409
|
query: {
|
|
390
410
|
destinationToken?: string | string[];
|
|
@@ -398,28 +418,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
398
418
|
} | {
|
|
399
419
|
output: {
|
|
400
420
|
error: {
|
|
401
|
-
code: "
|
|
421
|
+
code: "api_key_forbidden";
|
|
402
422
|
details?: readonly Response.error.Detail[] | undefined;
|
|
403
423
|
message: string;
|
|
404
424
|
};
|
|
405
425
|
requestId: string;
|
|
406
426
|
};
|
|
407
427
|
outputFormat: "json";
|
|
408
|
-
status:
|
|
409
|
-
input: {
|
|
410
|
-
query: {
|
|
411
|
-
destinationToken?: string | string[];
|
|
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;
|
|
428
|
+
status: 403;
|
|
423
429
|
input: {
|
|
424
430
|
query: {
|
|
425
431
|
destinationToken?: string | string[];
|
|
@@ -433,14 +439,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
433
439
|
} | {
|
|
434
440
|
output: {
|
|
435
441
|
error: {
|
|
436
|
-
code: "
|
|
442
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
437
443
|
details?: readonly Response.error.Detail[] | undefined;
|
|
438
444
|
message: string;
|
|
439
445
|
};
|
|
440
446
|
requestId: string;
|
|
441
447
|
};
|
|
442
448
|
outputFormat: "json";
|
|
443
|
-
status:
|
|
449
|
+
status: 429;
|
|
444
450
|
input: {
|
|
445
451
|
query: {
|
|
446
452
|
destinationToken?: string | string[];
|
|
@@ -454,14 +460,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
454
460
|
} | {
|
|
455
461
|
output: {
|
|
456
462
|
error: {
|
|
457
|
-
code: "
|
|
463
|
+
code: "query_invalid";
|
|
458
464
|
details?: readonly Response.error.Detail[] | undefined;
|
|
459
465
|
message: string;
|
|
460
466
|
};
|
|
461
467
|
requestId: string;
|
|
462
468
|
};
|
|
463
469
|
outputFormat: "json";
|
|
464
|
-
status:
|
|
470
|
+
status: 400;
|
|
465
471
|
input: {
|
|
466
472
|
query: {
|
|
467
473
|
destinationToken?: string | string[];
|
|
@@ -493,21 +499,65 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
493
499
|
sourceToken: string | string[];
|
|
494
500
|
};
|
|
495
501
|
};
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
|
-
} & {
|
|
499
|
-
"/v1/funding/chains": {
|
|
500
|
-
$get: {
|
|
502
|
+
} | {
|
|
501
503
|
output: {
|
|
502
504
|
data: {
|
|
503
|
-
|
|
505
|
+
destinationChain: {
|
|
506
|
+
addressFormat: "base58" | "base58check" | "evm";
|
|
507
|
+
id: string;
|
|
508
|
+
kind: "evm" | "solana" | "tron";
|
|
509
|
+
name: string;
|
|
510
|
+
providerIds?: {
|
|
511
|
+
[x: string]: string;
|
|
512
|
+
} | undefined;
|
|
513
|
+
};
|
|
514
|
+
destinationToken: {
|
|
515
|
+
address: string;
|
|
516
|
+
decimals: number;
|
|
517
|
+
metadata: {
|
|
518
|
+
[x: string]: string;
|
|
519
|
+
};
|
|
520
|
+
name: string;
|
|
521
|
+
standard: string;
|
|
522
|
+
symbol: string;
|
|
523
|
+
tokenKey: string;
|
|
524
|
+
verified: boolean;
|
|
525
|
+
};
|
|
504
526
|
id: string;
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
527
|
+
provider: {
|
|
528
|
+
id: "across" | "relay" | "rhino" | "squid";
|
|
529
|
+
kind: string;
|
|
530
|
+
name: string;
|
|
531
|
+
requiresApiKey: boolean;
|
|
532
|
+
};
|
|
533
|
+
quality: {
|
|
534
|
+
estimatedSeconds?: number | undefined;
|
|
535
|
+
liquiditySource: string;
|
|
536
|
+
sourceDetail?: string | undefined;
|
|
537
|
+
tier: "liquid" | "thin";
|
|
538
|
+
};
|
|
539
|
+
quote: {
|
|
540
|
+
expiresAt?: string | undefined;
|
|
541
|
+
inputAmount: string;
|
|
542
|
+
minimumOutputAmount?: string | undefined;
|
|
543
|
+
outputAmount: string;
|
|
544
|
+
outputAmountFormatted: string;
|
|
545
|
+
sampledAt: string;
|
|
546
|
+
};
|
|
547
|
+
sourceAmount: {
|
|
548
|
+
amount: string;
|
|
549
|
+
formatted: string;
|
|
550
|
+
};
|
|
551
|
+
sourceChain: {
|
|
552
|
+
addressFormat: "base58" | "base58check" | "evm";
|
|
553
|
+
id: string;
|
|
554
|
+
kind: "evm" | "solana" | "tron";
|
|
555
|
+
name: string;
|
|
556
|
+
providerIds?: {
|
|
557
|
+
[x: string]: string;
|
|
558
|
+
} | undefined;
|
|
559
|
+
};
|
|
560
|
+
sourceToken: {
|
|
511
561
|
address: string;
|
|
512
562
|
decimals: number;
|
|
513
563
|
metadata: {
|
|
@@ -518,11 +568,29 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
518
568
|
symbol: string;
|
|
519
569
|
tokenKey: string;
|
|
520
570
|
verified: boolean;
|
|
521
|
-
}
|
|
571
|
+
};
|
|
522
572
|
}[];
|
|
523
573
|
};
|
|
524
574
|
outputFormat: "json";
|
|
525
575
|
status: 200;
|
|
576
|
+
input: {
|
|
577
|
+
query: {
|
|
578
|
+
destinationToken?: string | string[];
|
|
579
|
+
provider?: string | string[];
|
|
580
|
+
sourceAmount: string | string[];
|
|
581
|
+
sourceAmountUnits?: string | string[];
|
|
582
|
+
sourceChain: string | string[];
|
|
583
|
+
sourceToken: string | string[];
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
} & {
|
|
589
|
+
"/v1/funding/chains": {
|
|
590
|
+
$get: {
|
|
591
|
+
output: null;
|
|
592
|
+
outputFormat: "body";
|
|
593
|
+
status: 402;
|
|
526
594
|
input: {};
|
|
527
595
|
} | {
|
|
528
596
|
output: {
|
|
@@ -548,11 +616,6 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
548
616
|
outputFormat: "json";
|
|
549
617
|
status: 401;
|
|
550
618
|
input: {};
|
|
551
|
-
} | {
|
|
552
|
-
output: null;
|
|
553
|
-
outputFormat: "body";
|
|
554
|
-
status: 402;
|
|
555
|
-
input: {};
|
|
556
619
|
} | {
|
|
557
620
|
output: {
|
|
558
621
|
error: {
|
|
@@ -577,23 +640,42 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
577
640
|
outputFormat: "json";
|
|
578
641
|
status: 429;
|
|
579
642
|
input: {};
|
|
580
|
-
}
|
|
581
|
-
};
|
|
582
|
-
} & {
|
|
583
|
-
"/v1/funding/providers": {
|
|
584
|
-
$get: {
|
|
643
|
+
} | {
|
|
585
644
|
output: {
|
|
586
645
|
data: {
|
|
587
|
-
|
|
588
|
-
|
|
646
|
+
addressFormat: "base58" | "base58check" | "evm";
|
|
647
|
+
id: string;
|
|
648
|
+
kind: "evm" | "solana" | "tron";
|
|
589
649
|
name: string;
|
|
590
|
-
|
|
591
|
-
|
|
650
|
+
providerIds?: {
|
|
651
|
+
[x: string]: string;
|
|
652
|
+
} | undefined;
|
|
653
|
+
tokens: {
|
|
654
|
+
address: string;
|
|
655
|
+
decimals: number;
|
|
656
|
+
metadata: {
|
|
657
|
+
[x: string]: string;
|
|
658
|
+
};
|
|
659
|
+
name: string;
|
|
660
|
+
standard: string;
|
|
661
|
+
symbol: string;
|
|
662
|
+
tokenKey: string;
|
|
663
|
+
verified: boolean;
|
|
664
|
+
}[];
|
|
592
665
|
}[];
|
|
593
666
|
};
|
|
594
667
|
outputFormat: "json";
|
|
595
668
|
status: 200;
|
|
596
669
|
input: {};
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
} & {
|
|
673
|
+
"/v1/funding/providers": {
|
|
674
|
+
$get: {
|
|
675
|
+
output: null;
|
|
676
|
+
outputFormat: "body";
|
|
677
|
+
status: 402;
|
|
678
|
+
input: {};
|
|
597
679
|
} | {
|
|
598
680
|
output: {
|
|
599
681
|
error: {
|
|
@@ -618,11 +700,6 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
618
700
|
outputFormat: "json";
|
|
619
701
|
status: 401;
|
|
620
702
|
input: {};
|
|
621
|
-
} | {
|
|
622
|
-
output: null;
|
|
623
|
-
outputFormat: "body";
|
|
624
|
-
status: 402;
|
|
625
|
-
input: {};
|
|
626
703
|
} | {
|
|
627
704
|
output: {
|
|
628
705
|
error: {
|
|
@@ -647,6 +724,19 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
647
724
|
outputFormat: "json";
|
|
648
725
|
status: 429;
|
|
649
726
|
input: {};
|
|
727
|
+
} | {
|
|
728
|
+
output: {
|
|
729
|
+
data: {
|
|
730
|
+
id: "across" | "relay" | "rhino" | "squid";
|
|
731
|
+
kind: string;
|
|
732
|
+
name: string;
|
|
733
|
+
requiresApiKey: boolean;
|
|
734
|
+
status: "configured" | "unconfigured";
|
|
735
|
+
}[];
|
|
736
|
+
};
|
|
737
|
+
outputFormat: "json";
|
|
738
|
+
status: 200;
|
|
739
|
+
input: {};
|
|
650
740
|
};
|
|
651
741
|
};
|
|
652
742
|
}, "/", "/v1/funding/providers">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funding.d.ts","sourceRoot":"","sources":["../../../../src/apps/data/routes/funding.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,OAAO,KAAK,KAAK,GAAG,MAAM,iBAAiB,CAAA;AAG3C,OAAO,KAAK,aAAa,MAAM,oCAAoC,CAAA;AAEnE,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"funding.d.ts","sourceRoot":"","sources":["../../../../src/apps/data/routes/funding.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,OAAO,KAAK,KAAK,GAAG,MAAM,iBAAiB,CAAA;AAG3C,OAAO,KAAK,aAAa,MAAM,oCAAoC,CAAA;AAEnE,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAA;AAIzD,oDAAoD;AACpD,yBAAiB,MAAM,CAAC;IACtB,6CAA6C;IACtC,MAAM,KAAK;;;;;;;;;;;;;;qBAiCjB,CAAA;IAED,6CAA6C;IACtC,MAAM,KAAK;;;;;;;;;qBA6CjB,CAAA;IAED,wDAAwD;IACjD,MAAM,WAAW;;;qBAevB,CAAA;IAED,oDAAoD;IAC7C,MAAM,WAAW;;;;;;;;;;qBAsBvB,CAAA;IAED,+EAA+E;IACxE,MAAM,OAAO;;;;;;;;qBA4BnB,CAAA;IAED,2DAA2D;IACpD,MAAM,YAAY;;;;;;;qBAuCxB,CAAA;IAED,qCAAqC;IAC9B,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkBxB,CAAA;IAED,4CAA4C;IACrC,MAAM,QAAQ;;;;;;;;;;;;;;qBA2BpB,CAAA;IAED,qEAAqE;IAC9D,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;qBAK1B,CAAA;IAED,8CAA8C;IAC9C,UAAiB,YAAY,CAAC;QAC5B,gDAAgD;QACzC,MAAM,KAAK;;;;;;;;;;;;;;;0BAoD0D,CAAA;QAE5E,uDAAuD;QAChD,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAKpB,CAAA;KACF;IAED,mDAAmD;IACnD,UAAiB,iBAAiB,CAAC;QACjC,4CAA4C;QACrC,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;yBAOpB,CAAA;KACF;IAED,+CAA+C;IAC/C,UAAiB,aAAa,CAAC;QAC7B,oDAAoD;QAC7C,MAAM,QAAQ;;;;;;;;;;;;;;;;yBAKpB,CAAA;KACF;CACF;AA4CD,2EAA2E;AAC3E,wBAAgB,OAAO,CAAC,OAAO,GAAE,OAAO,CAAC,OAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA4IpD;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,uCAAuC;IACvC,KAAK,OAAO,GAAG;QACb,qDAAqD;QACrD,QAAQ,CAAC,EAAE,aAAa,CAAC,gBAAgB,GAAG,SAAS,CAAA;QACrD,kDAAkD;QAClD,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KACtC,CAAA;CACF"}
|