tapimo 0.4.1 → 0.4.3
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/README.md +1 -1
- package/dist/ApiKey.d.ts +1 -9
- package/dist/ApiKey.d.ts.map +1 -1
- package/dist/ApiKey.js +2 -3
- package/dist/ApiKey.js.map +1 -1
- package/dist/ApiKeys.d.ts +53 -27
- package/dist/ApiKeys.d.ts.map +1 -1
- package/dist/ApiKeys.js +32 -17
- package/dist/ApiKeys.js.map +1 -1
- package/dist/App.d.ts +2451 -1533
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +23 -9
- package/dist/App.js.map +1 -1
- package/dist/Assets.d.ts +10 -0
- package/dist/Assets.d.ts.map +1 -1
- package/dist/Assets.js +4 -0
- package/dist/Assets.js.map +1 -1
- package/dist/Auth.d.ts +2 -1
- package/dist/Auth.d.ts.map +1 -1
- package/dist/Auth.js +2 -1
- package/dist/Auth.js.map +1 -1
- package/dist/Scope.d.ts +40 -15
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +44 -13
- package/dist/Scope.js.map +1 -1
- package/dist/admin/App.d.ts +560 -9
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/App.js +38 -6
- package/dist/admin/App.js.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +10 -24
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.js +10 -3
- package/dist/admin/apps/api-keys.js.map +1 -1
- package/dist/admin/apps/organizations.d.ts +833 -0
- package/dist/admin/apps/organizations.d.ts.map +1 -0
- package/dist/admin/apps/organizations.js +733 -0
- package/dist/admin/apps/organizations.js.map +1 -0
- package/dist/admin/apps/scopes.d.ts +8 -0
- package/dist/admin/apps/scopes.d.ts.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 +53 -13
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/analytics/Analytics.d.ts +10 -0
- package/dist/analytics/Analytics.d.ts.map +1 -1
- package/dist/analytics/Analytics.js +8 -0
- package/dist/analytics/Analytics.js.map +1 -1
- package/dist/analytics/tables/requestEvents.d.ts +9 -0
- package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
- package/dist/analytics/tables/requestEvents.js +14 -0
- package/dist/analytics/tables/requestEvents.js.map +1 -1
- package/dist/apps/data/App.d.ts +1354 -984
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/FundingRouteProviders.d.ts +94 -5
- package/dist/apps/data/FundingRouteProviders.d.ts.map +1 -1
- package/dist/apps/data/FundingRouteProviders.js +196 -5
- package/dist/apps/data/FundingRouteProviders.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +38 -38
- package/dist/apps/data/routes/addresses.d.ts +24 -24
- package/dist/apps/data/routes/blocks.d.ts +39 -39
- package/dist/apps/data/routes/exchanges.d.ts +453 -453
- package/dist/apps/data/routes/fee-amm.d.ts +101 -101
- package/dist/apps/data/routes/funding.d.ts +730 -138
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +234 -0
- 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/transactions.d.ts +281 -281
- package/dist/apps/data/routes/transfers.d.ts +58 -58
- package/dist/apps/data/routes/verified-tokens.d.ts +81 -81
- package/dist/apps/management/App.d.ts +1156 -615
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/App.js +2 -2
- package/dist/apps/management/Billing.d.ts +3 -0
- package/dist/apps/management/Billing.d.ts.map +1 -1
- package/dist/apps/management/Billing.js +7 -2
- package/dist/apps/management/Billing.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +106 -90
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +41 -30
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +278 -146
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +14 -14
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +93 -20
- package/dist/apps/management/routes/invitations.d.ts.map +1 -1
- package/dist/apps/management/routes/invitations.js +12 -15
- package/dist/apps/management/routes/invitations.js.map +1 -1
- package/dist/apps/management/routes/me.d.ts +6 -6
- package/dist/apps/management/routes/members.d.ts +89 -18
- package/dist/apps/management/routes/members.d.ts.map +1 -1
- package/dist/apps/management/routes/members.js +10 -10
- package/dist/apps/management/routes/members.js.map +1 -1
- package/dist/apps/management/routes/orgs.d.ts +130 -70
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +19 -19
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/projects.d.ts +137 -48
- package/dist/apps/management/routes/projects.d.ts.map +1 -1
- package/dist/apps/management/routes/projects.js +12 -13
- package/dist/apps/management/routes/projects.js.map +1 -1
- package/dist/apps/management/routes/scopes.d.ts +4 -18
- package/dist/apps/management/routes/scopes.d.ts.map +1 -1
- package/dist/apps/management/routes/scopes.js +6 -7
- package/dist/apps/management/routes/scopes.js.map +1 -1
- package/dist/apps/management/routes/usage.d.ts +63 -19
- package/dist/apps/management/routes/usage.d.ts.map +1 -1
- package/dist/apps/management/routes/usage.js +9 -10
- package/dist/apps/management/routes/usage.js.map +1 -1
- package/dist/apps/mcp.d.ts.map +1 -1
- package/dist/apps/mcp.js +35 -3
- package/dist/apps/mcp.js.map +1 -1
- package/dist/apps/relay/App.d.ts +26 -4
- package/dist/apps/relay/App.d.ts.map +1 -1
- package/dist/apps/relay/App.js +17 -14
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/db/Db.d.ts +5 -3
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +52 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +13 -0
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +16 -1
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/adminAuditLogs.d.ts +27 -0
- package/dist/db/tables/adminAuditLogs.d.ts.map +1 -0
- package/dist/db/tables/adminAuditLogs.js +19 -0
- package/dist/db/tables/adminAuditLogs.js.map +1 -0
- package/dist/db/tables/invitations.d.ts +1 -1
- package/dist/db/tables/invitations.d.ts.map +1 -1
- package/dist/db/tables/memberships.d.ts +32 -4
- package/dist/db/tables/memberships.d.ts.map +1 -1
- package/dist/db/tables/memberships.js +31 -0
- package/dist/db/tables/memberships.js.map +1 -1
- package/dist/db/tables/organizations.d.ts +43 -1
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +103 -0
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/db/tables/projects.d.ts +25 -0
- package/dist/db/tables/projects.d.ts.map +1 -1
- package/dist/db/tables/projects.js +22 -0
- package/dist/db/tables/projects.js.map +1 -1
- package/dist/db/tables/webhookDeliveries.d.ts +26 -0
- package/dist/db/tables/webhookDeliveries.d.ts.map +1 -1
- package/dist/db/tables/webhookDeliveries.js +37 -0
- package/dist/db/tables/webhookDeliveries.js.map +1 -1
- package/dist/internal/Auth.d.ts +13 -18
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +78 -58
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/Cursor.d.ts +1 -1
- package/dist/internal/Cursor.d.ts.map +1 -1
- package/dist/internal/Cursor.js +4 -0
- package/dist/internal/Cursor.js.map +1 -1
- package/dist/internal/EdgeCache.d.ts.map +1 -1
- package/dist/internal/EdgeCache.js +2 -0
- package/dist/internal/EdgeCache.js.map +1 -1
- package/dist/internal/FundingRoutes.d.ts +170 -0
- package/dist/internal/FundingRoutes.d.ts.map +1 -1
- package/dist/internal/FundingRoutes.js +68 -6
- package/dist/internal/FundingRoutes.js.map +1 -1
- package/dist/internal/Log.d.ts +16 -1
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +5 -3
- package/dist/internal/Log.js.map +1 -1
- package/package.json +2 -2
- package/src/ApiKey.ts +2 -3
- package/src/ApiKeys.ts +95 -17
- package/src/App.test.ts +44 -2
- package/src/App.ts +29 -9
- package/src/Assets.ts +8 -0
- package/src/Auth.test-d.ts +36 -0
- package/src/Auth.ts +20 -1
- package/src/Client.test-d.ts +64 -17
- package/src/Scope.test.ts +34 -0
- package/src/Scope.ts +53 -17
- package/src/admin/App.test.ts +33 -3
- package/src/admin/App.ts +49 -14
- package/src/admin/apps/api-keys.ts +10 -3
- package/src/admin/apps/organizations.test.ts +455 -0
- package/src/admin/apps/organizations.ts +953 -0
- package/src/admin/apps/scopes.test.ts +10 -0
- package/src/admin/ui/plugin.ts +1 -1
- package/src/admin/ui/src/components/MobileProfile.tsx +2 -0
- package/src/admin/ui/src/components/ThemeToggle.tsx +20 -0
- package/src/admin/ui/src/lib/api-keys.ts +36 -19
- package/src/admin/ui/src/lib/config.ts +2 -3
- package/src/admin/ui/src/lib/organizations.test.ts +89 -0
- package/src/admin/ui/src/lib/organizations.ts +262 -0
- package/src/admin/ui/src/lib/query-client.ts +3 -1
- package/src/admin/ui/src/lib/theme.ts +57 -0
- package/src/admin/ui/src/routeTree.gen.ts +47 -4
- package/src/admin/ui/src/routes/__root.tsx +18 -3
- package/src/admin/ui/src/routes/api-keys.tsx +52 -7
- package/src/admin/ui/src/routes/index.tsx +1 -1
- package/src/admin/ui/src/routes/organizations.tsx +158 -0
- package/src/admin/ui/src/routes/organizations_.$orgId.tsx +710 -0
- package/src/admin/ui/src/start.ts +6 -0
- package/src/admin/ui.generated.ts +63 -13
- package/src/analytics/Analytics.ts +25 -0
- package/src/analytics/tables/requestEvents.ts +33 -0
- package/src/apps/composition.test.ts +82 -2
- package/src/apps/data/FundingRouteProviders.test.ts +204 -0
- package/src/apps/data/FundingRouteProviders.ts +294 -9
- package/src/apps/data/routes/funding.test.ts +90 -23
- package/src/apps/data/routes/funding.ts +315 -0
- package/src/apps/management/App.ts +2 -2
- package/src/apps/management/Billing.ts +10 -2
- package/src/apps/management/routes/api-keys.test.ts +137 -1
- package/src/apps/management/routes/api-keys.ts +63 -38
- package/src/apps/management/routes/billing.ts +14 -14
- package/src/apps/management/routes/invitations.test.ts +102 -1
- package/src/apps/management/routes/invitations.ts +13 -15
- package/src/apps/management/routes/members.ts +10 -10
- package/src/apps/management/routes/orgs.test.ts +78 -16
- package/src/apps/management/routes/orgs.ts +21 -20
- package/src/apps/management/routes/projects.ts +12 -13
- package/src/apps/management/routes/scopes.test.ts +16 -0
- package/src/apps/management/routes/scopes.ts +6 -7
- package/src/apps/management/routes/usage.ts +9 -14
- package/src/apps/mcp.test.ts +25 -1
- package/src/apps/mcp.ts +43 -3
- package/src/apps/relay/App.test.ts +23 -18
- package/src/apps/relay/App.ts +35 -14
- package/src/db/Db.ts +59 -3
- package/src/db/Schema.ts +20 -1
- package/src/db/tables/adminAuditLogs.ts +47 -0
- package/src/db/tables/invitations.ts +1 -1
- package/src/db/tables/memberships.ts +59 -3
- package/src/db/tables/organizations.ts +148 -1
- package/src/db/tables/projects.ts +47 -0
- package/src/db/tables/webhookDeliveries.ts +83 -0
- package/src/internal/Auth.test.ts +174 -7
- package/src/internal/Auth.ts +90 -62
- package/src/internal/Cursor.test.ts +10 -0
- package/src/internal/Cursor.ts +5 -1
- package/src/internal/EdgeCache.test.ts +11 -0
- package/src/internal/EdgeCache.ts +2 -0
- package/src/internal/FundingRoutes.test.ts +26 -0
- package/src/internal/FundingRoutes.ts +187 -18
- package/src/internal/Log.test.ts +41 -3
- package/src/internal/Log.ts +23 -4
|
@@ -76,6 +76,116 @@ export declare namespace schema {
|
|
|
76
76
|
outputAmountFormatted: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
77
77
|
sampledAt: z.ZodMiniISODateTime;
|
|
78
78
|
}, z.core.$strip>;
|
|
79
|
+
/** Token reference attached to a normalized quote fee. */
|
|
80
|
+
const QuoteFeeToken: z.ZodMiniObject<{
|
|
81
|
+
address: z.ZodMiniString<string>;
|
|
82
|
+
chainId: z.ZodMiniString<string>;
|
|
83
|
+
decimals: z.ZodMiniNumber<number>;
|
|
84
|
+
symbol: z.ZodMiniString<string>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
/** Normalized fee summary for an explicit funding quote. */
|
|
87
|
+
const QuoteFee: z.ZodMiniObject<{
|
|
88
|
+
amount: z.ZodMiniString<string>;
|
|
89
|
+
amountUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
90
|
+
bps: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
91
|
+
token: z.ZodMiniObject<{
|
|
92
|
+
address: z.ZodMiniString<string>;
|
|
93
|
+
chainId: z.ZodMiniString<string>;
|
|
94
|
+
decimals: z.ZodMiniNumber<number>;
|
|
95
|
+
symbol: z.ZodMiniString<string>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
/** Explicit depositor-specific quote for one curated funding route. */
|
|
99
|
+
const FundingQuote: z.ZodMiniObject<{
|
|
100
|
+
destinationChain: z.ZodMiniObject<{
|
|
101
|
+
addressFormat: z.ZodMiniEnum<{
|
|
102
|
+
evm: "evm";
|
|
103
|
+
solana: "solana";
|
|
104
|
+
tron: "tron";
|
|
105
|
+
}>;
|
|
106
|
+
id: z.ZodMiniString<string>;
|
|
107
|
+
kind: z.ZodMiniEnum<{
|
|
108
|
+
evm: "evm";
|
|
109
|
+
solana: "solana";
|
|
110
|
+
tron: "tron";
|
|
111
|
+
}>;
|
|
112
|
+
name: z.ZodMiniString<string>;
|
|
113
|
+
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
destinationToken: z.ZodMiniObject<{
|
|
116
|
+
address: z.ZodMiniString<string>;
|
|
117
|
+
decimals: z.ZodMiniNumber<number>;
|
|
118
|
+
metadata: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
119
|
+
name: z.ZodMiniString<string>;
|
|
120
|
+
standard: z.ZodMiniString<string>;
|
|
121
|
+
symbol: z.ZodMiniString<string>;
|
|
122
|
+
tokenKey: z.ZodMiniString<string>;
|
|
123
|
+
verified: z.ZodMiniBoolean<boolean>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
estimatedSeconds: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
126
|
+
expiresAt: z.ZodMiniISODateTime;
|
|
127
|
+
fees: z.ZodMiniObject<{
|
|
128
|
+
total: z.ZodMiniObject<{
|
|
129
|
+
amount: z.ZodMiniString<string>;
|
|
130
|
+
amountUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
131
|
+
bps: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
132
|
+
token: z.ZodMiniObject<{
|
|
133
|
+
address: z.ZodMiniString<string>;
|
|
134
|
+
chainId: z.ZodMiniString<string>;
|
|
135
|
+
decimals: z.ZodMiniNumber<number>;
|
|
136
|
+
symbol: z.ZodMiniString<string>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
totalMax: z.ZodMiniObject<{
|
|
140
|
+
amount: z.ZodMiniString<string>;
|
|
141
|
+
amountUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
142
|
+
bps: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
143
|
+
token: z.ZodMiniObject<{
|
|
144
|
+
address: z.ZodMiniString<string>;
|
|
145
|
+
chainId: z.ZodMiniString<string>;
|
|
146
|
+
decimals: z.ZodMiniNumber<number>;
|
|
147
|
+
symbol: z.ZodMiniString<string>;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
inputAmount: z.ZodMiniString<string>;
|
|
152
|
+
minimumOutputAmount: z.ZodMiniString<string>;
|
|
153
|
+
outputAmount: z.ZodMiniString<string>;
|
|
154
|
+
outputAmountFormatted: z.ZodMiniString<string>;
|
|
155
|
+
provider: z.ZodMiniObject<{
|
|
156
|
+
id: z.ZodMiniString<string>;
|
|
157
|
+
kind: z.ZodMiniString<string>;
|
|
158
|
+
name: z.ZodMiniString<string>;
|
|
159
|
+
requiresApiKey: z.ZodMiniBoolean<boolean>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
routeId: z.ZodMiniString<string>;
|
|
162
|
+
sampledAt: z.ZodMiniISODateTime;
|
|
163
|
+
sourceChain: z.ZodMiniObject<{
|
|
164
|
+
addressFormat: z.ZodMiniEnum<{
|
|
165
|
+
evm: "evm";
|
|
166
|
+
solana: "solana";
|
|
167
|
+
tron: "tron";
|
|
168
|
+
}>;
|
|
169
|
+
id: z.ZodMiniString<string>;
|
|
170
|
+
kind: z.ZodMiniEnum<{
|
|
171
|
+
evm: "evm";
|
|
172
|
+
solana: "solana";
|
|
173
|
+
tron: "tron";
|
|
174
|
+
}>;
|
|
175
|
+
name: z.ZodMiniString<string>;
|
|
176
|
+
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
sourceToken: z.ZodMiniObject<{
|
|
179
|
+
address: z.ZodMiniString<string>;
|
|
180
|
+
decimals: z.ZodMiniNumber<number>;
|
|
181
|
+
metadata: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
182
|
+
name: z.ZodMiniString<string>;
|
|
183
|
+
standard: z.ZodMiniString<string>;
|
|
184
|
+
symbol: z.ZodMiniString<string>;
|
|
185
|
+
tokenKey: z.ZodMiniString<string>;
|
|
186
|
+
verified: z.ZodMiniBoolean<boolean>;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
}, z.core.$strip>;
|
|
79
189
|
/** Static or live funding route candidate. */
|
|
80
190
|
const RouteCandidate: z.ZodMiniObject<{
|
|
81
191
|
destinationChain: z.ZodMiniObject<{
|
|
@@ -342,6 +452,114 @@ export declare namespace schema {
|
|
|
342
452
|
}, z.core.$strip>>;
|
|
343
453
|
}, z.core.$strip>;
|
|
344
454
|
}
|
|
455
|
+
/** Schemas for the quoteFundingRoute operation. */
|
|
456
|
+
namespace quoteFundingRoute {
|
|
457
|
+
/** JSON body for an explicit funding route quote. */
|
|
458
|
+
const Body: z.ZodMiniObject<{
|
|
459
|
+
depositor: z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>;
|
|
460
|
+
destinationToken: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
461
|
+
provider: z.ZodMiniLiteral<"across">;
|
|
462
|
+
recipient: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>;
|
|
463
|
+
sourceAmount: z.ZodMiniString<string>;
|
|
464
|
+
sourceAmountUnits: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
465
|
+
baseUnits: "baseUnits";
|
|
466
|
+
decimal: "decimal";
|
|
467
|
+
}>>;
|
|
468
|
+
sourceChain: z.ZodMiniString<string>;
|
|
469
|
+
sourceToken: z.ZodMiniString<string>;
|
|
470
|
+
}, z.core.$strict>;
|
|
471
|
+
/** Normalized funding quote without provider execution payloads. */
|
|
472
|
+
const Response: z.ZodMiniObject<{
|
|
473
|
+
destinationChain: z.ZodMiniObject<{
|
|
474
|
+
addressFormat: z.ZodMiniEnum<{
|
|
475
|
+
evm: "evm";
|
|
476
|
+
solana: "solana";
|
|
477
|
+
tron: "tron";
|
|
478
|
+
}>;
|
|
479
|
+
id: z.ZodMiniString<string>;
|
|
480
|
+
kind: z.ZodMiniEnum<{
|
|
481
|
+
evm: "evm";
|
|
482
|
+
solana: "solana";
|
|
483
|
+
tron: "tron";
|
|
484
|
+
}>;
|
|
485
|
+
name: z.ZodMiniString<string>;
|
|
486
|
+
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
487
|
+
}, z.core.$strip>;
|
|
488
|
+
destinationToken: z.ZodMiniObject<{
|
|
489
|
+
address: z.ZodMiniString<string>;
|
|
490
|
+
decimals: z.ZodMiniNumber<number>;
|
|
491
|
+
metadata: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
492
|
+
name: z.ZodMiniString<string>;
|
|
493
|
+
standard: z.ZodMiniString<string>;
|
|
494
|
+
symbol: z.ZodMiniString<string>;
|
|
495
|
+
tokenKey: z.ZodMiniString<string>;
|
|
496
|
+
verified: z.ZodMiniBoolean<boolean>;
|
|
497
|
+
}, z.core.$strip>;
|
|
498
|
+
estimatedSeconds: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
499
|
+
expiresAt: z.ZodMiniISODateTime;
|
|
500
|
+
fees: z.ZodMiniObject<{
|
|
501
|
+
total: z.ZodMiniObject<{
|
|
502
|
+
amount: z.ZodMiniString<string>;
|
|
503
|
+
amountUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
504
|
+
bps: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
505
|
+
token: z.ZodMiniObject<{
|
|
506
|
+
address: z.ZodMiniString<string>;
|
|
507
|
+
chainId: z.ZodMiniString<string>;
|
|
508
|
+
decimals: z.ZodMiniNumber<number>;
|
|
509
|
+
symbol: z.ZodMiniString<string>;
|
|
510
|
+
}, z.core.$strip>;
|
|
511
|
+
}, z.core.$strip>;
|
|
512
|
+
totalMax: z.ZodMiniObject<{
|
|
513
|
+
amount: z.ZodMiniString<string>;
|
|
514
|
+
amountUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
515
|
+
bps: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
516
|
+
token: z.ZodMiniObject<{
|
|
517
|
+
address: z.ZodMiniString<string>;
|
|
518
|
+
chainId: z.ZodMiniString<string>;
|
|
519
|
+
decimals: z.ZodMiniNumber<number>;
|
|
520
|
+
symbol: z.ZodMiniString<string>;
|
|
521
|
+
}, z.core.$strip>;
|
|
522
|
+
}, z.core.$strip>;
|
|
523
|
+
}, z.core.$strip>;
|
|
524
|
+
inputAmount: z.ZodMiniString<string>;
|
|
525
|
+
minimumOutputAmount: z.ZodMiniString<string>;
|
|
526
|
+
outputAmount: z.ZodMiniString<string>;
|
|
527
|
+
outputAmountFormatted: z.ZodMiniString<string>;
|
|
528
|
+
provider: z.ZodMiniObject<{
|
|
529
|
+
id: z.ZodMiniString<string>;
|
|
530
|
+
kind: z.ZodMiniString<string>;
|
|
531
|
+
name: z.ZodMiniString<string>;
|
|
532
|
+
requiresApiKey: z.ZodMiniBoolean<boolean>;
|
|
533
|
+
}, z.core.$strip>;
|
|
534
|
+
routeId: z.ZodMiniString<string>;
|
|
535
|
+
sampledAt: z.ZodMiniISODateTime;
|
|
536
|
+
sourceChain: z.ZodMiniObject<{
|
|
537
|
+
addressFormat: z.ZodMiniEnum<{
|
|
538
|
+
evm: "evm";
|
|
539
|
+
solana: "solana";
|
|
540
|
+
tron: "tron";
|
|
541
|
+
}>;
|
|
542
|
+
id: z.ZodMiniString<string>;
|
|
543
|
+
kind: z.ZodMiniEnum<{
|
|
544
|
+
evm: "evm";
|
|
545
|
+
solana: "solana";
|
|
546
|
+
tron: "tron";
|
|
547
|
+
}>;
|
|
548
|
+
name: z.ZodMiniString<string>;
|
|
549
|
+
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
550
|
+
}, z.core.$strip>;
|
|
551
|
+
sourceToken: z.ZodMiniObject<{
|
|
552
|
+
address: z.ZodMiniString<string>;
|
|
553
|
+
decimals: z.ZodMiniNumber<number>;
|
|
554
|
+
metadata: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
555
|
+
name: z.ZodMiniString<string>;
|
|
556
|
+
standard: z.ZodMiniString<string>;
|
|
557
|
+
symbol: z.ZodMiniString<string>;
|
|
558
|
+
tokenKey: z.ZodMiniString<string>;
|
|
559
|
+
verified: z.ZodMiniBoolean<boolean>;
|
|
560
|
+
}, z.core.$strip>;
|
|
561
|
+
}, z.core.$strip>;
|
|
562
|
+
}
|
|
345
563
|
/** Schemas for the listFundingChains operation. */
|
|
346
564
|
namespace listFundingChains {
|
|
347
565
|
/** Non-paginated source-chain inventory. */
|
|
@@ -404,9 +622,92 @@ export declare namespace schema {
|
|
|
404
622
|
export declare function funding(options?: funding.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
405
623
|
"/v1/funding/routes": {
|
|
406
624
|
$get: {
|
|
407
|
-
output:
|
|
408
|
-
|
|
409
|
-
|
|
625
|
+
output: {
|
|
626
|
+
data: {
|
|
627
|
+
destinationChain: {
|
|
628
|
+
addressFormat: "evm" | "solana" | "tron";
|
|
629
|
+
id: string;
|
|
630
|
+
kind: "evm" | "solana" | "tron";
|
|
631
|
+
name: string;
|
|
632
|
+
providerIds?: {
|
|
633
|
+
[x: string]: string;
|
|
634
|
+
} | undefined;
|
|
635
|
+
};
|
|
636
|
+
destinationToken: {
|
|
637
|
+
address: string;
|
|
638
|
+
decimals: number;
|
|
639
|
+
metadata: {
|
|
640
|
+
[x: string]: string;
|
|
641
|
+
};
|
|
642
|
+
name: string;
|
|
643
|
+
standard: string;
|
|
644
|
+
symbol: string;
|
|
645
|
+
tokenKey: string;
|
|
646
|
+
verified: boolean;
|
|
647
|
+
};
|
|
648
|
+
errorCode: string | null;
|
|
649
|
+
id: string;
|
|
650
|
+
provider: {
|
|
651
|
+
id: string;
|
|
652
|
+
kind: string;
|
|
653
|
+
name: string;
|
|
654
|
+
requiresApiKey: boolean;
|
|
655
|
+
};
|
|
656
|
+
quality: {
|
|
657
|
+
availableVolumeUsd: string | null;
|
|
658
|
+
estimatedSeconds: number | null;
|
|
659
|
+
feeBps: number | null;
|
|
660
|
+
historicalVolumeUsd24h: string | null;
|
|
661
|
+
instantVolumeUsd: string | null;
|
|
662
|
+
liquiditySource: string;
|
|
663
|
+
score: number | null;
|
|
664
|
+
sourceDetail: string | null;
|
|
665
|
+
tier: "error" | "liquid" | "thin" | "unavailable" | "unknown";
|
|
666
|
+
};
|
|
667
|
+
quote: {
|
|
668
|
+
expiresAt: string | null;
|
|
669
|
+
inputAmount: string;
|
|
670
|
+
limits: {
|
|
671
|
+
instantSourceAmount: string | null;
|
|
672
|
+
maxSourceAmount: string | null;
|
|
673
|
+
minSourceAmount: string | null;
|
|
674
|
+
} | null;
|
|
675
|
+
minimumOutputAmount: string | null;
|
|
676
|
+
outputAmount: string | null;
|
|
677
|
+
outputAmountFormatted: string | null;
|
|
678
|
+
sampledAt: string;
|
|
679
|
+
} | null;
|
|
680
|
+
sourceAmount: {
|
|
681
|
+
amount: string;
|
|
682
|
+
formatted: string;
|
|
683
|
+
usd: string | null;
|
|
684
|
+
};
|
|
685
|
+
sourceChain: {
|
|
686
|
+
addressFormat: "evm" | "solana" | "tron";
|
|
687
|
+
id: string;
|
|
688
|
+
kind: "evm" | "solana" | "tron";
|
|
689
|
+
name: string;
|
|
690
|
+
providerIds?: {
|
|
691
|
+
[x: string]: string;
|
|
692
|
+
} | undefined;
|
|
693
|
+
};
|
|
694
|
+
sourceToken: {
|
|
695
|
+
address: string;
|
|
696
|
+
decimals: number;
|
|
697
|
+
metadata: {
|
|
698
|
+
[x: string]: string;
|
|
699
|
+
};
|
|
700
|
+
name: string;
|
|
701
|
+
standard: string;
|
|
702
|
+
symbol: string;
|
|
703
|
+
tokenKey: string;
|
|
704
|
+
verified: boolean;
|
|
705
|
+
};
|
|
706
|
+
status: "available" | "error" | "thin" | "unavailable" | "unknown";
|
|
707
|
+
}[];
|
|
708
|
+
};
|
|
709
|
+
outputFormat: "json";
|
|
710
|
+
status: 200;
|
|
410
711
|
input: {
|
|
411
712
|
query: {
|
|
412
713
|
destinationToken?: string | string[];
|
|
@@ -445,14 +746,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
445
746
|
} | {
|
|
446
747
|
output: {
|
|
447
748
|
error: {
|
|
448
|
-
code: "
|
|
749
|
+
code: "query_invalid";
|
|
449
750
|
details?: readonly Response.error.Detail[] | undefined;
|
|
450
751
|
message: string;
|
|
451
752
|
};
|
|
452
753
|
requestId: string;
|
|
453
754
|
};
|
|
454
755
|
outputFormat: "json";
|
|
455
|
-
status:
|
|
756
|
+
status: 400;
|
|
456
757
|
input: {
|
|
457
758
|
query: {
|
|
458
759
|
destinationToken?: string | string[];
|
|
@@ -468,14 +769,30 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
468
769
|
} | {
|
|
469
770
|
output: {
|
|
470
771
|
error: {
|
|
471
|
-
code: "
|
|
772
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
472
773
|
details?: readonly Response.error.Detail[] | undefined;
|
|
473
774
|
message: string;
|
|
474
775
|
};
|
|
475
776
|
requestId: string;
|
|
476
777
|
};
|
|
477
778
|
outputFormat: "json";
|
|
478
|
-
status:
|
|
779
|
+
status: 401;
|
|
780
|
+
input: {
|
|
781
|
+
query: {
|
|
782
|
+
destinationToken?: string | string[];
|
|
783
|
+
include?: string | string[];
|
|
784
|
+
limit?: string | string[];
|
|
785
|
+
provider?: string | string[];
|
|
786
|
+
sourceAmount: string | string[];
|
|
787
|
+
sourceAmountUnits?: string | string[];
|
|
788
|
+
sourceChain: string | string[];
|
|
789
|
+
sourceToken: string | string[];
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
} | {
|
|
793
|
+
output: null;
|
|
794
|
+
outputFormat: "body";
|
|
795
|
+
status: 402;
|
|
479
796
|
input: {
|
|
480
797
|
query: {
|
|
481
798
|
destinationToken?: string | string[];
|
|
@@ -491,14 +808,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
491
808
|
} | {
|
|
492
809
|
output: {
|
|
493
810
|
error: {
|
|
494
|
-
code: "
|
|
811
|
+
code: "api_key_forbidden";
|
|
495
812
|
details?: readonly Response.error.Detail[] | undefined;
|
|
496
813
|
message: string;
|
|
497
814
|
};
|
|
498
815
|
requestId: string;
|
|
499
816
|
};
|
|
500
817
|
outputFormat: "json";
|
|
501
|
-
status:
|
|
818
|
+
status: 403;
|
|
502
819
|
input: {
|
|
503
820
|
query: {
|
|
504
821
|
destinationToken?: string | string[];
|
|
@@ -514,14 +831,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
514
831
|
} | {
|
|
515
832
|
output: {
|
|
516
833
|
error: {
|
|
517
|
-
code: "
|
|
834
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
518
835
|
details?: readonly Response.error.Detail[] | undefined;
|
|
519
836
|
message: string;
|
|
520
837
|
};
|
|
521
838
|
requestId: string;
|
|
522
839
|
};
|
|
523
840
|
outputFormat: "json";
|
|
524
|
-
status:
|
|
841
|
+
status: 429;
|
|
525
842
|
input: {
|
|
526
843
|
query: {
|
|
527
844
|
destinationToken?: string | string[];
|
|
@@ -534,114 +851,107 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
534
851
|
sourceToken: string | string[];
|
|
535
852
|
};
|
|
536
853
|
};
|
|
537
|
-
}
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
} & {
|
|
857
|
+
"/v1/funding/routes/quote": {
|
|
858
|
+
$post: {
|
|
538
859
|
output: {
|
|
539
|
-
|
|
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;
|
|
860
|
+
destinationChain: {
|
|
861
|
+
addressFormat: "evm" | "solana" | "tron";
|
|
562
862
|
id: string;
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
instantVolumeUsd: string | null;
|
|
575
|
-
liquiditySource: string;
|
|
576
|
-
score: number | null;
|
|
577
|
-
sourceDetail: string | null;
|
|
578
|
-
tier: "error" | "liquid" | "thin" | "unavailable" | "unknown";
|
|
863
|
+
kind: "evm" | "solana" | "tron";
|
|
864
|
+
name: string;
|
|
865
|
+
providerIds?: {
|
|
866
|
+
[x: string]: string;
|
|
867
|
+
} | undefined;
|
|
868
|
+
};
|
|
869
|
+
destinationToken: {
|
|
870
|
+
address: string;
|
|
871
|
+
decimals: number;
|
|
872
|
+
metadata: {
|
|
873
|
+
[x: string]: string;
|
|
579
874
|
};
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
outputAmountFormatted: string | null;
|
|
591
|
-
sampledAt: string;
|
|
592
|
-
} | null;
|
|
593
|
-
sourceAmount: {
|
|
875
|
+
name: string;
|
|
876
|
+
standard: string;
|
|
877
|
+
symbol: string;
|
|
878
|
+
tokenKey: string;
|
|
879
|
+
verified: boolean;
|
|
880
|
+
};
|
|
881
|
+
estimatedSeconds: number | null;
|
|
882
|
+
expiresAt: string;
|
|
883
|
+
fees: {
|
|
884
|
+
total: {
|
|
594
885
|
amount: string;
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
providerIds?: {
|
|
604
|
-
[x: string]: string;
|
|
605
|
-
} | undefined;
|
|
886
|
+
amountUsd: string | null;
|
|
887
|
+
bps: number | null;
|
|
888
|
+
token: {
|
|
889
|
+
address: string;
|
|
890
|
+
chainId: string;
|
|
891
|
+
decimals: number;
|
|
892
|
+
symbol: string;
|
|
893
|
+
};
|
|
606
894
|
};
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
895
|
+
totalMax: {
|
|
896
|
+
amount: string;
|
|
897
|
+
amountUsd: string | null;
|
|
898
|
+
bps: number | null;
|
|
899
|
+
token: {
|
|
900
|
+
address: string;
|
|
901
|
+
chainId: string;
|
|
902
|
+
decimals: number;
|
|
903
|
+
symbol: string;
|
|
612
904
|
};
|
|
613
|
-
name: string;
|
|
614
|
-
standard: string;
|
|
615
|
-
symbol: string;
|
|
616
|
-
tokenKey: string;
|
|
617
|
-
verified: boolean;
|
|
618
905
|
};
|
|
619
|
-
|
|
620
|
-
|
|
906
|
+
};
|
|
907
|
+
inputAmount: string;
|
|
908
|
+
minimumOutputAmount: string;
|
|
909
|
+
outputAmount: string;
|
|
910
|
+
outputAmountFormatted: string;
|
|
911
|
+
provider: {
|
|
912
|
+
id: string;
|
|
913
|
+
kind: string;
|
|
914
|
+
name: string;
|
|
915
|
+
requiresApiKey: boolean;
|
|
916
|
+
};
|
|
917
|
+
routeId: string;
|
|
918
|
+
sampledAt: string;
|
|
919
|
+
sourceChain: {
|
|
920
|
+
addressFormat: "evm" | "solana" | "tron";
|
|
921
|
+
id: string;
|
|
922
|
+
kind: "evm" | "solana" | "tron";
|
|
923
|
+
name: string;
|
|
924
|
+
providerIds?: {
|
|
925
|
+
[x: string]: string;
|
|
926
|
+
} | undefined;
|
|
927
|
+
};
|
|
928
|
+
sourceToken: {
|
|
929
|
+
address: string;
|
|
930
|
+
decimals: number;
|
|
931
|
+
metadata: {
|
|
932
|
+
[x: string]: string;
|
|
933
|
+
};
|
|
934
|
+
name: string;
|
|
935
|
+
standard: string;
|
|
936
|
+
symbol: string;
|
|
937
|
+
tokenKey: string;
|
|
938
|
+
verified: boolean;
|
|
939
|
+
};
|
|
621
940
|
};
|
|
622
941
|
outputFormat: "json";
|
|
623
942
|
status: 200;
|
|
624
943
|
input: {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
sourceAmount: string
|
|
631
|
-
sourceAmountUnits?:
|
|
632
|
-
sourceChain: string
|
|
633
|
-
sourceToken: string
|
|
944
|
+
json: {
|
|
945
|
+
depositor: `0x${string}`;
|
|
946
|
+
destinationToken?: string | undefined;
|
|
947
|
+
provider: "across";
|
|
948
|
+
recipient?: `0x${string}` | undefined;
|
|
949
|
+
sourceAmount: string;
|
|
950
|
+
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
951
|
+
sourceChain: string;
|
|
952
|
+
sourceToken: string;
|
|
634
953
|
};
|
|
635
954
|
};
|
|
636
|
-
};
|
|
637
|
-
};
|
|
638
|
-
} & {
|
|
639
|
-
"/v1/funding/chains": {
|
|
640
|
-
$get: {
|
|
641
|
-
output: null;
|
|
642
|
-
outputFormat: "body";
|
|
643
|
-
status: 402;
|
|
644
|
-
input: {};
|
|
645
955
|
} | {
|
|
646
956
|
output: {
|
|
647
957
|
error: {
|
|
@@ -653,7 +963,41 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
653
963
|
};
|
|
654
964
|
outputFormat: "json";
|
|
655
965
|
status: 400;
|
|
656
|
-
input: {
|
|
966
|
+
input: {
|
|
967
|
+
json: {
|
|
968
|
+
depositor: `0x${string}`;
|
|
969
|
+
destinationToken?: string | undefined;
|
|
970
|
+
provider: "across";
|
|
971
|
+
recipient?: `0x${string}` | undefined;
|
|
972
|
+
sourceAmount: string;
|
|
973
|
+
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
974
|
+
sourceChain: string;
|
|
975
|
+
sourceToken: string;
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
} | {
|
|
979
|
+
output: {
|
|
980
|
+
error: {
|
|
981
|
+
code: "body_invalid";
|
|
982
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
983
|
+
message: string;
|
|
984
|
+
};
|
|
985
|
+
requestId: string;
|
|
986
|
+
};
|
|
987
|
+
outputFormat: "json";
|
|
988
|
+
status: 400;
|
|
989
|
+
input: {
|
|
990
|
+
json: {
|
|
991
|
+
depositor: `0x${string}`;
|
|
992
|
+
destinationToken?: string | undefined;
|
|
993
|
+
provider: "across";
|
|
994
|
+
recipient?: `0x${string}` | undefined;
|
|
995
|
+
sourceAmount: string;
|
|
996
|
+
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
997
|
+
sourceChain: string;
|
|
998
|
+
sourceToken: string;
|
|
999
|
+
};
|
|
1000
|
+
};
|
|
657
1001
|
} | {
|
|
658
1002
|
output: {
|
|
659
1003
|
error: {
|
|
@@ -665,7 +1009,34 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
665
1009
|
};
|
|
666
1010
|
outputFormat: "json";
|
|
667
1011
|
status: 401;
|
|
668
|
-
input: {
|
|
1012
|
+
input: {
|
|
1013
|
+
json: {
|
|
1014
|
+
depositor: `0x${string}`;
|
|
1015
|
+
destinationToken?: string | undefined;
|
|
1016
|
+
provider: "across";
|
|
1017
|
+
recipient?: `0x${string}` | undefined;
|
|
1018
|
+
sourceAmount: string;
|
|
1019
|
+
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1020
|
+
sourceChain: string;
|
|
1021
|
+
sourceToken: string;
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
} | {
|
|
1025
|
+
output: null;
|
|
1026
|
+
outputFormat: "body";
|
|
1027
|
+
status: 402;
|
|
1028
|
+
input: {
|
|
1029
|
+
json: {
|
|
1030
|
+
depositor: `0x${string}`;
|
|
1031
|
+
destinationToken?: string | undefined;
|
|
1032
|
+
provider: "across";
|
|
1033
|
+
recipient?: `0x${string}` | undefined;
|
|
1034
|
+
sourceAmount: string;
|
|
1035
|
+
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1036
|
+
sourceChain: string;
|
|
1037
|
+
sourceToken: string;
|
|
1038
|
+
};
|
|
1039
|
+
};
|
|
669
1040
|
} | {
|
|
670
1041
|
output: {
|
|
671
1042
|
error: {
|
|
@@ -677,7 +1048,64 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
677
1048
|
};
|
|
678
1049
|
outputFormat: "json";
|
|
679
1050
|
status: 403;
|
|
680
|
-
input: {
|
|
1051
|
+
input: {
|
|
1052
|
+
json: {
|
|
1053
|
+
depositor: `0x${string}`;
|
|
1054
|
+
destinationToken?: string | undefined;
|
|
1055
|
+
provider: "across";
|
|
1056
|
+
recipient?: `0x${string}` | undefined;
|
|
1057
|
+
sourceAmount: string;
|
|
1058
|
+
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1059
|
+
sourceChain: string;
|
|
1060
|
+
sourceToken: string;
|
|
1061
|
+
};
|
|
1062
|
+
};
|
|
1063
|
+
} | {
|
|
1064
|
+
output: {
|
|
1065
|
+
error: {
|
|
1066
|
+
code: "route_not_found";
|
|
1067
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1068
|
+
message: string;
|
|
1069
|
+
};
|
|
1070
|
+
requestId: string;
|
|
1071
|
+
};
|
|
1072
|
+
outputFormat: "json";
|
|
1073
|
+
status: 404;
|
|
1074
|
+
input: {
|
|
1075
|
+
json: {
|
|
1076
|
+
depositor: `0x${string}`;
|
|
1077
|
+
destinationToken?: string | undefined;
|
|
1078
|
+
provider: "across";
|
|
1079
|
+
recipient?: `0x${string}` | undefined;
|
|
1080
|
+
sourceAmount: string;
|
|
1081
|
+
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1082
|
+
sourceChain: string;
|
|
1083
|
+
sourceToken: string;
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
} | {
|
|
1087
|
+
output: {
|
|
1088
|
+
error: {
|
|
1089
|
+
code: "quote_unavailable";
|
|
1090
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1091
|
+
message: string;
|
|
1092
|
+
};
|
|
1093
|
+
requestId: string;
|
|
1094
|
+
};
|
|
1095
|
+
outputFormat: "json";
|
|
1096
|
+
status: 404;
|
|
1097
|
+
input: {
|
|
1098
|
+
json: {
|
|
1099
|
+
depositor: `0x${string}`;
|
|
1100
|
+
destinationToken?: string | undefined;
|
|
1101
|
+
provider: "across";
|
|
1102
|
+
recipient?: `0x${string}` | undefined;
|
|
1103
|
+
sourceAmount: string;
|
|
1104
|
+
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1105
|
+
sourceChain: string;
|
|
1106
|
+
sourceToken: string;
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
681
1109
|
} | {
|
|
682
1110
|
output: {
|
|
683
1111
|
error: {
|
|
@@ -689,8 +1117,115 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
689
1117
|
};
|
|
690
1118
|
outputFormat: "json";
|
|
691
1119
|
status: 429;
|
|
692
|
-
input: {
|
|
1120
|
+
input: {
|
|
1121
|
+
json: {
|
|
1122
|
+
depositor: `0x${string}`;
|
|
1123
|
+
destinationToken?: string | undefined;
|
|
1124
|
+
provider: "across";
|
|
1125
|
+
recipient?: `0x${string}` | undefined;
|
|
1126
|
+
sourceAmount: string;
|
|
1127
|
+
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1128
|
+
sourceChain: string;
|
|
1129
|
+
sourceToken: string;
|
|
1130
|
+
};
|
|
1131
|
+
};
|
|
1132
|
+
} | {
|
|
1133
|
+
output: {
|
|
1134
|
+
error: {
|
|
1135
|
+
code: "provider_unconfigured";
|
|
1136
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1137
|
+
message: string;
|
|
1138
|
+
};
|
|
1139
|
+
requestId: string;
|
|
1140
|
+
};
|
|
1141
|
+
outputFormat: "json";
|
|
1142
|
+
status: 501;
|
|
1143
|
+
input: {
|
|
1144
|
+
json: {
|
|
1145
|
+
depositor: `0x${string}`;
|
|
1146
|
+
destinationToken?: string | undefined;
|
|
1147
|
+
provider: "across";
|
|
1148
|
+
recipient?: `0x${string}` | undefined;
|
|
1149
|
+
sourceAmount: string;
|
|
1150
|
+
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1151
|
+
sourceChain: string;
|
|
1152
|
+
sourceToken: string;
|
|
1153
|
+
};
|
|
1154
|
+
};
|
|
1155
|
+
} | {
|
|
1156
|
+
output: {
|
|
1157
|
+
error: {
|
|
1158
|
+
code: "provider_rate_limited";
|
|
1159
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1160
|
+
message: string;
|
|
1161
|
+
};
|
|
1162
|
+
requestId: string;
|
|
1163
|
+
};
|
|
1164
|
+
outputFormat: "json";
|
|
1165
|
+
status: 502;
|
|
1166
|
+
input: {
|
|
1167
|
+
json: {
|
|
1168
|
+
depositor: `0x${string}`;
|
|
1169
|
+
destinationToken?: string | undefined;
|
|
1170
|
+
provider: "across";
|
|
1171
|
+
recipient?: `0x${string}` | undefined;
|
|
1172
|
+
sourceAmount: string;
|
|
1173
|
+
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1174
|
+
sourceChain: string;
|
|
1175
|
+
sourceToken: string;
|
|
1176
|
+
};
|
|
1177
|
+
};
|
|
1178
|
+
} | {
|
|
1179
|
+
output: {
|
|
1180
|
+
error: {
|
|
1181
|
+
code: "provider_timeout";
|
|
1182
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1183
|
+
message: string;
|
|
1184
|
+
};
|
|
1185
|
+
requestId: string;
|
|
1186
|
+
};
|
|
1187
|
+
outputFormat: "json";
|
|
1188
|
+
status: 502;
|
|
1189
|
+
input: {
|
|
1190
|
+
json: {
|
|
1191
|
+
depositor: `0x${string}`;
|
|
1192
|
+
destinationToken?: string | undefined;
|
|
1193
|
+
provider: "across";
|
|
1194
|
+
recipient?: `0x${string}` | undefined;
|
|
1195
|
+
sourceAmount: string;
|
|
1196
|
+
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1197
|
+
sourceChain: string;
|
|
1198
|
+
sourceToken: string;
|
|
1199
|
+
};
|
|
1200
|
+
};
|
|
693
1201
|
} | {
|
|
1202
|
+
output: {
|
|
1203
|
+
error: {
|
|
1204
|
+
code: "provider_error";
|
|
1205
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1206
|
+
message: string;
|
|
1207
|
+
};
|
|
1208
|
+
requestId: string;
|
|
1209
|
+
};
|
|
1210
|
+
outputFormat: "json";
|
|
1211
|
+
status: 502;
|
|
1212
|
+
input: {
|
|
1213
|
+
json: {
|
|
1214
|
+
depositor: `0x${string}`;
|
|
1215
|
+
destinationToken?: string | undefined;
|
|
1216
|
+
provider: "across";
|
|
1217
|
+
recipient?: `0x${string}` | undefined;
|
|
1218
|
+
sourceAmount: string;
|
|
1219
|
+
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1220
|
+
sourceChain: string;
|
|
1221
|
+
sourceToken: string;
|
|
1222
|
+
};
|
|
1223
|
+
};
|
|
1224
|
+
};
|
|
1225
|
+
};
|
|
1226
|
+
} & {
|
|
1227
|
+
"/v1/funding/chains": {
|
|
1228
|
+
$get: {
|
|
694
1229
|
output: {
|
|
695
1230
|
data: {
|
|
696
1231
|
addressFormat: "evm" | "solana" | "tron";
|
|
@@ -717,30 +1252,76 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
717
1252
|
outputFormat: "json";
|
|
718
1253
|
status: 200;
|
|
719
1254
|
input: {};
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
1255
|
+
} | {
|
|
1256
|
+
output: {
|
|
1257
|
+
error: {
|
|
1258
|
+
code: "api_key_malformed";
|
|
1259
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1260
|
+
message: string;
|
|
1261
|
+
};
|
|
1262
|
+
requestId: string;
|
|
1263
|
+
};
|
|
1264
|
+
outputFormat: "json";
|
|
1265
|
+
status: 400;
|
|
1266
|
+
input: {};
|
|
1267
|
+
} | {
|
|
1268
|
+
output: {
|
|
1269
|
+
error: {
|
|
1270
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1271
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1272
|
+
message: string;
|
|
1273
|
+
};
|
|
1274
|
+
requestId: string;
|
|
1275
|
+
};
|
|
1276
|
+
outputFormat: "json";
|
|
1277
|
+
status: 401;
|
|
1278
|
+
input: {};
|
|
1279
|
+
} | {
|
|
725
1280
|
output: null;
|
|
726
1281
|
outputFormat: "body";
|
|
727
1282
|
status: 402;
|
|
728
|
-
input: {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
1283
|
+
input: {};
|
|
1284
|
+
} | {
|
|
1285
|
+
output: {
|
|
1286
|
+
error: {
|
|
1287
|
+
code: "api_key_forbidden";
|
|
1288
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1289
|
+
message: string;
|
|
1290
|
+
};
|
|
1291
|
+
requestId: string;
|
|
732
1292
|
};
|
|
1293
|
+
outputFormat: "json";
|
|
1294
|
+
status: 403;
|
|
1295
|
+
input: {};
|
|
733
1296
|
} | {
|
|
734
1297
|
output: {
|
|
735
1298
|
error: {
|
|
736
|
-
code: "
|
|
1299
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
737
1300
|
details?: readonly Response.error.Detail[] | undefined;
|
|
738
1301
|
message: string;
|
|
739
1302
|
};
|
|
740
1303
|
requestId: string;
|
|
741
1304
|
};
|
|
742
1305
|
outputFormat: "json";
|
|
743
|
-
status:
|
|
1306
|
+
status: 429;
|
|
1307
|
+
input: {};
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1310
|
+
} & {
|
|
1311
|
+
"/v1/providers": {
|
|
1312
|
+
$get: {
|
|
1313
|
+
output: {
|
|
1314
|
+
data: {
|
|
1315
|
+
capabilities: "fundingRoutes"[];
|
|
1316
|
+
id: string;
|
|
1317
|
+
kind: string;
|
|
1318
|
+
name: string;
|
|
1319
|
+
requiresApiKey: boolean;
|
|
1320
|
+
status: "configured" | "inventoryOnly" | "planned";
|
|
1321
|
+
}[];
|
|
1322
|
+
};
|
|
1323
|
+
outputFormat: "json";
|
|
1324
|
+
status: 200;
|
|
744
1325
|
input: {
|
|
745
1326
|
query?: {
|
|
746
1327
|
capability?: string | string[];
|
|
@@ -749,14 +1330,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
749
1330
|
} | {
|
|
750
1331
|
output: {
|
|
751
1332
|
error: {
|
|
752
|
-
code: "
|
|
1333
|
+
code: "api_key_malformed";
|
|
753
1334
|
details?: readonly Response.error.Detail[] | undefined;
|
|
754
1335
|
message: string;
|
|
755
1336
|
};
|
|
756
1337
|
requestId: string;
|
|
757
1338
|
};
|
|
758
1339
|
outputFormat: "json";
|
|
759
|
-
status:
|
|
1340
|
+
status: 400;
|
|
760
1341
|
input: {
|
|
761
1342
|
query?: {
|
|
762
1343
|
capability?: string | string[];
|
|
@@ -765,14 +1346,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
765
1346
|
} | {
|
|
766
1347
|
output: {
|
|
767
1348
|
error: {
|
|
768
|
-
code: "
|
|
1349
|
+
code: "query_invalid";
|
|
769
1350
|
details?: readonly Response.error.Detail[] | undefined;
|
|
770
1351
|
message: string;
|
|
771
1352
|
};
|
|
772
1353
|
requestId: string;
|
|
773
1354
|
};
|
|
774
1355
|
outputFormat: "json";
|
|
775
|
-
status:
|
|
1356
|
+
status: 400;
|
|
776
1357
|
input: {
|
|
777
1358
|
query?: {
|
|
778
1359
|
capability?: string | string[];
|
|
@@ -781,14 +1362,23 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
781
1362
|
} | {
|
|
782
1363
|
output: {
|
|
783
1364
|
error: {
|
|
784
|
-
code: "
|
|
1365
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
785
1366
|
details?: readonly Response.error.Detail[] | undefined;
|
|
786
1367
|
message: string;
|
|
787
1368
|
};
|
|
788
1369
|
requestId: string;
|
|
789
1370
|
};
|
|
790
1371
|
outputFormat: "json";
|
|
791
|
-
status:
|
|
1372
|
+
status: 401;
|
|
1373
|
+
input: {
|
|
1374
|
+
query?: {
|
|
1375
|
+
capability?: string | string[];
|
|
1376
|
+
} | undefined;
|
|
1377
|
+
};
|
|
1378
|
+
} | {
|
|
1379
|
+
output: null;
|
|
1380
|
+
outputFormat: "body";
|
|
1381
|
+
status: 402;
|
|
792
1382
|
input: {
|
|
793
1383
|
query?: {
|
|
794
1384
|
capability?: string | string[];
|
|
@@ -797,14 +1387,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
797
1387
|
} | {
|
|
798
1388
|
output: {
|
|
799
1389
|
error: {
|
|
800
|
-
code: "
|
|
1390
|
+
code: "api_key_forbidden";
|
|
801
1391
|
details?: readonly Response.error.Detail[] | undefined;
|
|
802
1392
|
message: string;
|
|
803
1393
|
};
|
|
804
1394
|
requestId: string;
|
|
805
1395
|
};
|
|
806
1396
|
outputFormat: "json";
|
|
807
|
-
status:
|
|
1397
|
+
status: 403;
|
|
808
1398
|
input: {
|
|
809
1399
|
query?: {
|
|
810
1400
|
capability?: string | string[];
|
|
@@ -812,17 +1402,15 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
812
1402
|
};
|
|
813
1403
|
} | {
|
|
814
1404
|
output: {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
status: "configured" | "inventoryOnly" | "planned";
|
|
822
|
-
}[];
|
|
1405
|
+
error: {
|
|
1406
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1407
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1408
|
+
message: string;
|
|
1409
|
+
};
|
|
1410
|
+
requestId: string;
|
|
823
1411
|
};
|
|
824
1412
|
outputFormat: "json";
|
|
825
|
-
status:
|
|
1413
|
+
status: 429;
|
|
826
1414
|
input: {
|
|
827
1415
|
query?: {
|
|
828
1416
|
capability?: string | string[];
|
|
@@ -834,10 +1422,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
834
1422
|
export declare namespace funding {
|
|
835
1423
|
/** Options for funding route discovery. */
|
|
836
1424
|
type Options = {
|
|
1425
|
+
/** Across explicit quote capability. */
|
|
1426
|
+
acrossQuote?: FundingRoutes.ProviderQuote | undefined;
|
|
837
1427
|
/** Provider adapters used to enrich static inventory with live data. */
|
|
838
1428
|
adapters?: FundingRoutes.ProviderAdapters | undefined;
|
|
839
1429
|
/** Per-provider quote timeout in milliseconds. */
|
|
840
1430
|
adapterTimeoutMs?: number | undefined;
|
|
1431
|
+
/** Timeout for depositor-specific provider quotes. */
|
|
1432
|
+
quoteTimeoutMs?: number | undefined;
|
|
841
1433
|
};
|
|
842
1434
|
}
|
|
843
1435
|
//# sourceMappingURL=funding.d.ts.map
|