tapimo 0.4.3 → 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.
Files changed (192) hide show
  1. package/dist/App.d.ts +7222 -6316
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +4 -0
  4. package/dist/App.js.map +1 -1
  5. package/dist/Scope.d.ts +18 -1
  6. package/dist/Scope.d.ts.map +1 -1
  7. package/dist/Scope.js +24 -3
  8. package/dist/Scope.js.map +1 -1
  9. package/dist/admin/apps/verified-tokens.d.ts +116 -116
  10. package/dist/apps/data/App.d.ts +2541 -2607
  11. package/dist/apps/data/App.d.ts.map +1 -1
  12. package/dist/apps/data/App.js +135 -44
  13. package/dist/apps/data/App.js.map +1 -1
  14. package/dist/apps/data/FundingQuoteProviders.d.ts +36 -0
  15. package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -0
  16. package/dist/apps/data/FundingQuoteProviders.js +190 -0
  17. package/dist/apps/data/FundingQuoteProviders.js.map +1 -0
  18. package/dist/apps/data/index.d.ts +1 -1
  19. package/dist/apps/data/index.js +1 -1
  20. package/dist/apps/data/routes/activities.d.ts +242 -242
  21. package/dist/apps/data/routes/addresses.d.ts +227 -227
  22. package/dist/apps/data/routes/balances.d.ts +12 -12
  23. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  24. package/dist/apps/data/routes/balances.js +67 -149
  25. package/dist/apps/data/routes/balances.js.map +1 -1
  26. package/dist/apps/data/routes/blocks.d.ts +125 -126
  27. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  28. package/dist/apps/data/routes/blocks.js +3 -5
  29. package/dist/apps/data/routes/blocks.js.map +1 -1
  30. package/dist/apps/data/routes/coingecko.d.ts +55 -54
  31. package/dist/apps/data/routes/coingecko.d.ts.map +1 -1
  32. package/dist/apps/data/routes/coingecko.js +3 -8
  33. package/dist/apps/data/routes/coingecko.js.map +1 -1
  34. package/dist/apps/data/routes/exchanges.d.ts +455 -455
  35. package/dist/apps/data/routes/fee-amm.d.ts +92 -92
  36. package/dist/apps/data/routes/funding.d.ts +91 -864
  37. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  38. package/dist/apps/data/routes/funding.js +138 -450
  39. package/dist/apps/data/routes/funding.js.map +1 -1
  40. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  41. package/dist/apps/data/routes/rpc.js +86 -16
  42. package/dist/apps/data/routes/rpc.js.map +1 -1
  43. package/dist/apps/data/routes/tokenlist.d.ts +36 -36
  44. package/dist/apps/data/routes/webhooks.d.ts +340 -0
  45. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  46. package/dist/apps/data/routes/webhooks.js +13 -1
  47. package/dist/apps/data/routes/webhooks.js.map +1 -1
  48. package/dist/apps/index.d.ts +1 -1
  49. package/dist/apps/index.js +1 -1
  50. package/dist/apps/management/App.d.ts +1843 -861
  51. package/dist/apps/management/App.d.ts.map +1 -1
  52. package/dist/apps/management/App.js +4 -0
  53. package/dist/apps/management/App.js.map +1 -1
  54. package/dist/apps/management/routes/api-keys.d.ts +121 -121
  55. package/dist/apps/management/routes/api-keys.js +2 -2
  56. package/dist/apps/management/routes/api-keys.js.map +1 -1
  57. package/dist/apps/management/routes/billing.d.ts +2 -2
  58. package/dist/apps/management/routes/invite-links.d.ts +1100 -0
  59. package/dist/apps/management/routes/invite-links.d.ts.map +1 -0
  60. package/dist/apps/management/routes/invite-links.js +411 -0
  61. package/dist/apps/management/routes/invite-links.js.map +1 -0
  62. package/dist/apps/management/routes/me.d.ts +13 -13
  63. package/dist/apps/management/routes/members.d.ts +77 -77
  64. package/dist/apps/management/routes/orgs.d.ts +96 -96
  65. package/dist/apps/management/routes/projects.d.ts +62 -62
  66. package/dist/apps/management/routes/scopes.d.ts +11 -11
  67. package/dist/apps/management/routes/scopes.d.ts.map +1 -1
  68. package/dist/apps/management/routes/scopes.js +2 -2
  69. package/dist/apps/management/routes/scopes.js.map +1 -1
  70. package/dist/apps/management/routes/usage.d.ts +79 -79
  71. package/dist/apps/mcp.d.ts.map +1 -1
  72. package/dist/apps/mcp.js +3 -1
  73. package/dist/apps/mcp.js.map +1 -1
  74. package/dist/apps/relay/App.d.ts.map +1 -1
  75. package/dist/apps/relay/App.js +42 -4
  76. package/dist/apps/relay/App.js.map +1 -1
  77. package/dist/cloudflare.d.ts +2 -0
  78. package/dist/cloudflare.d.ts.map +1 -1
  79. package/dist/cloudflare.js +4 -0
  80. package/dist/cloudflare.js.map +1 -1
  81. package/dist/db/Db.d.ts +3 -0
  82. package/dist/db/Db.d.ts.map +1 -1
  83. package/dist/db/Db.js +57 -0
  84. package/dist/db/Db.js.map +1 -1
  85. package/dist/db/Schema.d.ts +31 -0
  86. package/dist/db/Schema.d.ts.map +1 -1
  87. package/dist/db/Schema.js +31 -0
  88. package/dist/db/Schema.js.map +1 -1
  89. package/dist/db/tables/inviteLinks.d.ts +42 -0
  90. package/dist/db/tables/inviteLinks.d.ts.map +1 -0
  91. package/dist/db/tables/inviteLinks.js +148 -0
  92. package/dist/db/tables/inviteLinks.js.map +1 -0
  93. package/dist/db/tables/organizations.d.ts.map +1 -1
  94. package/dist/db/tables/organizations.js +2 -0
  95. package/dist/db/tables/organizations.js.map +1 -1
  96. package/dist/handlers/relay.d.ts.map +1 -1
  97. package/dist/handlers/relay.js +13 -3
  98. package/dist/handlers/relay.js.map +1 -1
  99. package/dist/internal/Auth.d.ts +42 -23
  100. package/dist/internal/Auth.d.ts.map +1 -1
  101. package/dist/internal/Auth.js +169 -20
  102. package/dist/internal/Auth.js.map +1 -1
  103. package/dist/internal/EdgeCache.d.ts +3 -1
  104. package/dist/internal/EdgeCache.d.ts.map +1 -1
  105. package/dist/internal/EdgeCache.js +17 -2
  106. package/dist/internal/EdgeCache.js.map +1 -1
  107. package/dist/internal/Errors.d.ts +6 -0
  108. package/dist/internal/Errors.d.ts.map +1 -0
  109. package/dist/internal/Errors.js +16 -0
  110. package/dist/internal/Errors.js.map +1 -0
  111. package/dist/internal/FundingQuotes.d.ts +644 -0
  112. package/dist/internal/FundingQuotes.d.ts.map +1 -0
  113. package/dist/internal/{FundingRoutes.js → FundingQuotes.js} +93 -289
  114. package/dist/internal/FundingQuotes.js.map +1 -0
  115. package/dist/internal/Store.d.ts +61 -16
  116. package/dist/internal/Store.d.ts.map +1 -1
  117. package/dist/internal/Store.js +72 -17
  118. package/dist/internal/Store.js.map +1 -1
  119. package/dist/internal/Viem.d.ts +2 -0
  120. package/dist/internal/Viem.d.ts.map +1 -1
  121. package/dist/internal/Viem.js +11 -2
  122. package/dist/internal/Viem.js.map +1 -1
  123. package/dist/internal/index.d.ts +27 -0
  124. package/dist/internal/index.d.ts.map +1 -0
  125. package/dist/internal/index.js +27 -0
  126. package/dist/internal/index.js.map +1 -0
  127. package/package.json +8 -3
  128. package/src/ApiKeys.test.ts +23 -0
  129. package/src/App.test-d.ts +2 -0
  130. package/src/App.test.ts +60 -4
  131. package/src/App.ts +6 -0
  132. package/src/Client.test-d.ts +16 -54
  133. package/src/Scope.test.ts +1 -0
  134. package/src/Scope.ts +30 -4
  135. package/src/apps/data/App.test.ts +354 -0
  136. package/src/apps/data/App.ts +159 -52
  137. package/src/apps/data/FundingQuoteProviders.test.ts +151 -0
  138. package/src/apps/data/FundingQuoteProviders.ts +251 -0
  139. package/src/apps/data/index.ts +1 -1
  140. package/src/apps/data/routes/balances.test.ts +64 -18
  141. package/src/apps/data/routes/balances.ts +76 -177
  142. package/src/apps/data/routes/blocks.ts +3 -5
  143. package/src/apps/data/routes/coingecko.ts +3 -8
  144. package/src/apps/data/routes/funding.test.ts +149 -306
  145. package/src/apps/data/routes/funding.ts +154 -604
  146. package/src/apps/data/routes/indexer.test.ts +99 -3
  147. package/src/apps/data/routes/rpc.test.ts +219 -0
  148. package/src/apps/data/routes/rpc.ts +92 -17
  149. package/src/apps/data/routes/webhooks.test.ts +23 -2
  150. package/src/apps/data/routes/webhooks.ts +13 -1
  151. package/src/apps/index.ts +1 -1
  152. package/src/apps/management/App.ts +4 -0
  153. package/src/apps/management/routes/api-keys.test.ts +47 -3
  154. package/src/apps/management/routes/api-keys.ts +2 -2
  155. package/src/apps/management/routes/invite-links.test.ts +385 -0
  156. package/src/apps/management/routes/invite-links.ts +570 -0
  157. package/src/apps/management/routes/scopes.test.ts +3 -2
  158. package/src/apps/management/routes/scopes.ts +4 -2
  159. package/src/apps/mcp.test.ts +55 -14
  160. package/src/apps/mcp.ts +3 -1
  161. package/src/apps/relay/App.test.ts +324 -4
  162. package/src/apps/relay/App.ts +40 -4
  163. package/src/cloudflare.ts +5 -0
  164. package/src/db/Db.ts +65 -0
  165. package/src/db/Schema.ts +39 -0
  166. package/src/db/tables/inviteLinks.ts +187 -0
  167. package/src/db/tables/organizations.ts +2 -0
  168. package/src/handlers/relay.ts +16 -4
  169. package/src/internal/Auth.test.ts +528 -37
  170. package/src/internal/Auth.ts +246 -45
  171. package/src/internal/EdgeCache.test.ts +24 -3
  172. package/src/internal/EdgeCache.ts +18 -2
  173. package/src/internal/FundingQuotes.test.ts +174 -0
  174. package/src/internal/FundingQuotes.ts +735 -0
  175. package/src/internal/Log.test.ts +4 -4
  176. package/src/internal/Store.test-d.ts +15 -0
  177. package/src/internal/Store.test.ts +153 -2
  178. package/src/internal/Store.ts +157 -41
  179. package/src/internal/Viem.ts +14 -5
  180. package/src/internal/index.test.ts +34 -0
  181. package/src/internal/index.ts +26 -0
  182. package/dist/apps/data/FundingRouteProviders.d.ts +0 -143
  183. package/dist/apps/data/FundingRouteProviders.d.ts.map +0 -1
  184. package/dist/apps/data/FundingRouteProviders.js +0 -546
  185. package/dist/apps/data/FundingRouteProviders.js.map +0 -1
  186. package/dist/internal/FundingRoutes.d.ts +0 -1085
  187. package/dist/internal/FundingRoutes.d.ts.map +0 -1
  188. package/dist/internal/FundingRoutes.js.map +0 -1
  189. package/src/apps/data/FundingRouteProviders.test.ts +0 -485
  190. package/src/apps/data/FundingRouteProviders.ts +0 -744
  191. package/src/internal/FundingRoutes.test.ts +0 -239
  192. package/src/internal/FundingRoutes.ts +0 -1067
@@ -1,22 +1,14 @@
1
1
  import * as z from 'zod/mini';
2
2
  import type * as App from '../../../App.js';
3
- import * as FundingRoutes from '../../../internal/FundingRoutes.js';
3
+ import * as FundingQuotes from '../../../internal/FundingQuotes.js';
4
4
  import * as Response from '../../../internal/Response.js';
5
- /** Zod schemas owned by the funding routes resource. */
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.ZodMiniEnum<{
10
- evm: "evm";
11
- solana: "solana";
12
- tron: "tron";
13
- }>;
9
+ addressFormat: z.ZodMiniLiteral<"evm">;
14
10
  id: z.ZodMiniString<string>;
15
- kind: z.ZodMiniEnum<{
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,175 +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 route response. */
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 route candidate. */
31
+ /** Provider summary embedded in a funding quote. */
41
32
  const ProviderRef: z.ZodMiniObject<{
42
- id: z.ZodMiniString<string>;
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
- /** Route quality signals exposed directly instead of implied by list order. */
38
+ /** Quote quality signals exposed directly instead of implied by list order. */
48
39
  const Quality: z.ZodMiniObject<{
49
- availableVolumeUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
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
- score: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
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 quote data for a route candidate. */
66
- const RouteQuote: z.ZodMiniObject<{
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
- limits: z.ZodMiniNullable<z.ZodMiniObject<{
70
- instantSourceAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
71
- maxSourceAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
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>>;
77
- sampledAt: z.ZodMiniISODateTime;
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>;
51
+ minimumOutputAmount: z.ZodMiniOptional<z.ZodMiniString<string>>;
153
52
  outputAmount: z.ZodMiniString<string>;
154
53
  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
54
  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
55
  }, z.core.$strip>;
189
- /** Static or live funding route candidate. */
190
- const RouteCandidate: z.ZodMiniObject<{
56
+ /** Successful live funding quote. */
57
+ const FundingQuote: z.ZodMiniObject<{
191
58
  destinationChain: z.ZodMiniObject<{
192
- addressFormat: z.ZodMiniEnum<{
193
- evm: "evm";
194
- solana: "solana";
195
- tron: "tron";
196
- }>;
59
+ addressFormat: z.ZodMiniLiteral<"evm">;
197
60
  id: z.ZodMiniString<string>;
198
- kind: z.ZodMiniEnum<{
199
- evm: "evm";
200
- solana: "solana";
201
- tron: "tron";
202
- }>;
61
+ kind: z.ZodMiniLiteral<"evm">;
203
62
  name: z.ZodMiniString<string>;
204
63
  providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
205
64
  }, z.core.$strip>;
@@ -213,61 +72,37 @@ export declare namespace schema {
213
72
  tokenKey: z.ZodMiniString<string>;
214
73
  verified: z.ZodMiniBoolean<boolean>;
215
74
  }, z.core.$strip>;
216
- errorCode: z.ZodMiniNullable<z.ZodMiniString<string>>;
217
75
  id: z.ZodMiniString<string>;
218
76
  provider: z.ZodMiniObject<{
219
- id: z.ZodMiniString<string>;
77
+ id: z.ZodMiniLiteral<"relay">;
220
78
  kind: z.ZodMiniString<string>;
221
79
  name: z.ZodMiniString<string>;
222
80
  requiresApiKey: z.ZodMiniBoolean<boolean>;
223
81
  }, z.core.$strip>;
224
82
  quality: z.ZodMiniObject<{
225
- availableVolumeUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
226
- estimatedSeconds: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
227
- feeBps: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
228
- historicalVolumeUsd24h: z.ZodMiniNullable<z.ZodMiniString<string>>;
229
- instantVolumeUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
83
+ estimatedSeconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
230
84
  liquiditySource: z.ZodMiniString<string>;
231
- score: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
232
- sourceDetail: z.ZodMiniNullable<z.ZodMiniString<string>>;
85
+ sourceDetail: z.ZodMiniOptional<z.ZodMiniString<string>>;
233
86
  tier: z.ZodMiniEnum<{
234
- error: "error";
235
87
  liquid: "liquid";
236
88
  thin: "thin";
237
- unavailable: "unavailable";
238
- unknown: "unknown";
239
89
  }>;
240
90
  }, z.core.$strip>;
241
- quote: z.ZodMiniNullable<z.ZodMiniObject<{
242
- expiresAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
91
+ quote: z.ZodMiniObject<{
243
92
  inputAmount: z.ZodMiniString<string>;
244
- limits: z.ZodMiniNullable<z.ZodMiniObject<{
245
- instantSourceAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
246
- maxSourceAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
247
- minSourceAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
248
- }, z.core.$strip>>;
249
- minimumOutputAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
250
- outputAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
251
- outputAmountFormatted: z.ZodMiniNullable<z.ZodMiniString<string>>;
93
+ minimumOutputAmount: z.ZodMiniOptional<z.ZodMiniString<string>>;
94
+ outputAmount: z.ZodMiniString<string>;
95
+ outputAmountFormatted: z.ZodMiniString<string>;
252
96
  sampledAt: z.ZodMiniISODateTime;
253
- }, z.core.$strip>>;
97
+ }, z.core.$strip>;
254
98
  sourceAmount: z.ZodMiniObject<{
255
99
  amount: z.ZodMiniString<string>;
256
100
  formatted: z.ZodMiniString<string>;
257
- usd: z.ZodMiniNullable<z.ZodMiniString<string>>;
258
101
  }, z.core.$strip>;
259
102
  sourceChain: z.ZodMiniObject<{
260
- addressFormat: z.ZodMiniEnum<{
261
- evm: "evm";
262
- solana: "solana";
263
- tron: "tron";
264
- }>;
103
+ addressFormat: z.ZodMiniLiteral<"evm">;
265
104
  id: z.ZodMiniString<string>;
266
- kind: z.ZodMiniEnum<{
267
- evm: "evm";
268
- solana: "solana";
269
- tron: "tron";
270
- }>;
105
+ kind: z.ZodMiniLiteral<"evm">;
271
106
  name: z.ZodMiniString<string>;
272
107
  providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
273
108
  }, z.core.$strip>;
@@ -281,42 +116,23 @@ export declare namespace schema {
281
116
  tokenKey: z.ZodMiniString<string>;
282
117
  verified: z.ZodMiniBoolean<boolean>;
283
118
  }, z.core.$strip>;
284
- status: z.ZodMiniEnum<{
285
- available: "available";
286
- error: "error";
287
- thin: "thin";
288
- unavailable: "unavailable";
289
- unknown: "unknown";
290
- }>;
291
119
  }, z.core.$strip>;
292
- /** Generic provider catalog entry. */
120
+ /** Funding quote provider catalog entry. */
293
121
  const Provider: z.ZodMiniObject<{
294
- capabilities: z.ZodMiniArray<z.ZodMiniEnum<{
295
- fundingRoutes: "fundingRoutes";
296
- }>>;
297
- id: z.ZodMiniString<string>;
122
+ id: z.ZodMiniLiteral<"relay">;
298
123
  kind: z.ZodMiniString<string>;
299
124
  name: z.ZodMiniString<string>;
300
125
  requiresApiKey: z.ZodMiniBoolean<boolean>;
301
126
  status: z.ZodMiniEnum<{
302
127
  configured: "configured";
303
- inventoryOnly: "inventoryOnly";
304
- planned: "planned";
128
+ unconfigured: "unconfigured";
305
129
  }>;
306
130
  }, z.core.$strip>;
307
131
  /** Chain inventory entry returned by the funding chains endpoint. */
308
132
  const ChainInventory: z.ZodMiniObject<{
309
- addressFormat: z.ZodMiniEnum<{
310
- evm: "evm";
311
- solana: "solana";
312
- tron: "tron";
313
- }>;
133
+ addressFormat: z.ZodMiniLiteral<"evm">;
314
134
  id: z.ZodMiniString<string>;
315
- kind: z.ZodMiniEnum<{
316
- evm: "evm";
317
- solana: "solana";
318
- tron: "tron";
319
- }>;
135
+ kind: z.ZodMiniLiteral<"evm">;
320
136
  name: z.ZodMiniString<string>;
321
137
  providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
322
138
  tokens: z.ZodMiniArray<z.ZodMiniObject<{
@@ -330,14 +146,12 @@ export declare namespace schema {
330
146
  verified: z.ZodMiniBoolean<boolean>;
331
147
  }, z.core.$strip>>;
332
148
  }, z.core.$strip>;
333
- /** Schemas for the listFundingRoutes operation. */
334
- namespace listFundingRoutes {
335
- /** Query parameters for funding route discovery. */
149
+ /** Schemas for the quoteFunding operation. */
150
+ namespace quoteFunding {
151
+ /** Query parameters for live funding quotes. */
336
152
  const Query: z.ZodMiniObject<{
337
153
  destinationToken: z.ZodMiniOptional<z.ZodMiniString<string>>;
338
- include: z.ZodMiniOptional<z.ZodMiniString<string>>;
339
- limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
340
- provider: z.ZodMiniOptional<z.ZodMiniString<string>>;
154
+ provider: z.ZodMiniOptional<z.ZodMiniLiteral<"relay">>;
341
155
  sourceAmount: z.ZodMiniString<string>;
342
156
  sourceAmountUnits: z.ZodMiniDefault<z.ZodMiniEnum<{
343
157
  baseUnits: "baseUnits";
@@ -346,21 +160,13 @@ export declare namespace schema {
346
160
  sourceChain: z.ZodMiniString<string>;
347
161
  sourceToken: z.ZodMiniString<string>;
348
162
  }, z.core.$strict>;
349
- /** Non-paginated list of funding route candidates. */
163
+ /** Non-paginated list of successful funding quotes. */
350
164
  const Response: z.ZodMiniObject<{
351
165
  data: z.ZodMiniArray<z.ZodMiniObject<{
352
166
  destinationChain: z.ZodMiniObject<{
353
- addressFormat: z.ZodMiniEnum<{
354
- evm: "evm";
355
- solana: "solana";
356
- tron: "tron";
357
- }>;
167
+ addressFormat: z.ZodMiniLiteral<"evm">;
358
168
  id: z.ZodMiniString<string>;
359
- kind: z.ZodMiniEnum<{
360
- evm: "evm";
361
- solana: "solana";
362
- tron: "tron";
363
- }>;
169
+ kind: z.ZodMiniLiteral<"evm">;
364
170
  name: z.ZodMiniString<string>;
365
171
  providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
366
172
  }, z.core.$strip>;
@@ -374,61 +180,37 @@ export declare namespace schema {
374
180
  tokenKey: z.ZodMiniString<string>;
375
181
  verified: z.ZodMiniBoolean<boolean>;
376
182
  }, z.core.$strip>;
377
- errorCode: z.ZodMiniNullable<z.ZodMiniString<string>>;
378
183
  id: z.ZodMiniString<string>;
379
184
  provider: z.ZodMiniObject<{
380
- id: z.ZodMiniString<string>;
185
+ id: z.ZodMiniLiteral<"relay">;
381
186
  kind: z.ZodMiniString<string>;
382
187
  name: z.ZodMiniString<string>;
383
188
  requiresApiKey: z.ZodMiniBoolean<boolean>;
384
189
  }, z.core.$strip>;
385
190
  quality: z.ZodMiniObject<{
386
- availableVolumeUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
387
- estimatedSeconds: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
388
- feeBps: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
389
- historicalVolumeUsd24h: z.ZodMiniNullable<z.ZodMiniString<string>>;
390
- instantVolumeUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
191
+ estimatedSeconds: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
391
192
  liquiditySource: z.ZodMiniString<string>;
392
- score: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
393
- sourceDetail: z.ZodMiniNullable<z.ZodMiniString<string>>;
193
+ sourceDetail: z.ZodMiniOptional<z.ZodMiniString<string>>;
394
194
  tier: z.ZodMiniEnum<{
395
- error: "error";
396
195
  liquid: "liquid";
397
196
  thin: "thin";
398
- unavailable: "unavailable";
399
- unknown: "unknown";
400
197
  }>;
401
198
  }, z.core.$strip>;
402
- quote: z.ZodMiniNullable<z.ZodMiniObject<{
403
- expiresAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
199
+ quote: z.ZodMiniObject<{
404
200
  inputAmount: z.ZodMiniString<string>;
405
- limits: z.ZodMiniNullable<z.ZodMiniObject<{
406
- instantSourceAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
407
- maxSourceAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
408
- minSourceAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
409
- }, z.core.$strip>>;
410
- minimumOutputAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
411
- outputAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
412
- outputAmountFormatted: z.ZodMiniNullable<z.ZodMiniString<string>>;
201
+ minimumOutputAmount: z.ZodMiniOptional<z.ZodMiniString<string>>;
202
+ outputAmount: z.ZodMiniString<string>;
203
+ outputAmountFormatted: z.ZodMiniString<string>;
413
204
  sampledAt: z.ZodMiniISODateTime;
414
- }, z.core.$strip>>;
205
+ }, z.core.$strip>;
415
206
  sourceAmount: z.ZodMiniObject<{
416
207
  amount: z.ZodMiniString<string>;
417
208
  formatted: z.ZodMiniString<string>;
418
- usd: z.ZodMiniNullable<z.ZodMiniString<string>>;
419
209
  }, z.core.$strip>;
420
210
  sourceChain: z.ZodMiniObject<{
421
- addressFormat: z.ZodMiniEnum<{
422
- evm: "evm";
423
- solana: "solana";
424
- tron: "tron";
425
- }>;
211
+ addressFormat: z.ZodMiniLiteral<"evm">;
426
212
  id: z.ZodMiniString<string>;
427
- kind: z.ZodMiniEnum<{
428
- evm: "evm";
429
- solana: "solana";
430
- tron: "tron";
431
- }>;
213
+ kind: z.ZodMiniLiteral<"evm">;
432
214
  name: z.ZodMiniString<string>;
433
215
  providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
434
216
  }, z.core.$strip>;
@@ -442,140 +224,17 @@ export declare namespace schema {
442
224
  tokenKey: z.ZodMiniString<string>;
443
225
  verified: z.ZodMiniBoolean<boolean>;
444
226
  }, z.core.$strip>;
445
- status: z.ZodMiniEnum<{
446
- available: "available";
447
- error: "error";
448
- thin: "thin";
449
- unavailable: "unavailable";
450
- unknown: "unknown";
451
- }>;
452
227
  }, z.core.$strip>>;
453
228
  }, z.core.$strip>;
454
229
  }
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
- }
563
230
  /** Schemas for the listFundingChains operation. */
564
231
  namespace listFundingChains {
565
232
  /** Non-paginated source-chain inventory. */
566
233
  const Response: z.ZodMiniObject<{
567
234
  data: z.ZodMiniArray<z.ZodMiniObject<{
568
- addressFormat: z.ZodMiniEnum<{
569
- evm: "evm";
570
- solana: "solana";
571
- tron: "tron";
572
- }>;
235
+ addressFormat: z.ZodMiniLiteral<"evm">;
573
236
  id: z.ZodMiniString<string>;
574
- kind: z.ZodMiniEnum<{
575
- evm: "evm";
576
- solana: "solana";
577
- tron: "tron";
578
- }>;
237
+ kind: z.ZodMiniLiteral<"evm">;
579
238
  name: z.ZodMiniString<string>;
580
239
  providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
581
240
  tokens: z.ZodMiniArray<z.ZodMiniObject<{
@@ -593,41 +252,31 @@ export declare namespace schema {
593
252
  }
594
253
  /** Schemas for the listProviders operation. */
595
254
  namespace listProviders {
596
- /** Query parameters for the generic provider catalog. */
597
- const Query: z.ZodMiniObject<{
598
- capability: z.ZodMiniOptional<z.ZodMiniEnum<{
599
- fundingRoutes: "fundingRoutes";
600
- }>>;
601
- }, z.core.$strict>;
602
- /** Non-paginated generic provider catalog. */
255
+ /** Non-paginated funding quote provider catalog. */
603
256
  const Response: z.ZodMiniObject<{
604
257
  data: z.ZodMiniArray<z.ZodMiniObject<{
605
- capabilities: z.ZodMiniArray<z.ZodMiniEnum<{
606
- fundingRoutes: "fundingRoutes";
607
- }>>;
608
- id: z.ZodMiniString<string>;
258
+ id: z.ZodMiniLiteral<"relay">;
609
259
  kind: z.ZodMiniString<string>;
610
260
  name: z.ZodMiniString<string>;
611
261
  requiresApiKey: z.ZodMiniBoolean<boolean>;
612
262
  status: z.ZodMiniEnum<{
613
263
  configured: "configured";
614
- inventoryOnly: "inventoryOnly";
615
- planned: "planned";
264
+ unconfigured: "unconfigured";
616
265
  }>;
617
266
  }, z.core.$strip>>;
618
267
  }, z.core.$strip>;
619
268
  }
620
269
  }
621
- /** Mounts funding route discovery and generic provider inventory endpoints. */
270
+ /** Mounts live funding quotes and their supporting inventory endpoints. */
622
271
  export declare function funding(options?: funding.Options): import("hono/hono-base").HonoBase<App.Environment, {
623
- "/v1/funding/routes": {
272
+ "/v1/funding/quotes": {
624
273
  $get: {
625
274
  output: {
626
275
  data: {
627
276
  destinationChain: {
628
- addressFormat: "evm" | "solana" | "tron";
277
+ addressFormat: "evm";
629
278
  id: string;
630
- kind: "evm" | "solana" | "tron";
279
+ kind: "evm";
631
280
  name: string;
632
281
  providerIds?: {
633
282
  [x: string]: string;
@@ -645,47 +294,34 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
645
294
  tokenKey: string;
646
295
  verified: boolean;
647
296
  };
648
- errorCode: string | null;
649
297
  id: string;
650
298
  provider: {
651
- id: string;
299
+ id: "relay";
652
300
  kind: string;
653
301
  name: string;
654
302
  requiresApiKey: boolean;
655
303
  };
656
304
  quality: {
657
- availableVolumeUsd: string | null;
658
- estimatedSeconds: number | null;
659
- feeBps: number | null;
660
- historicalVolumeUsd24h: string | null;
661
- instantVolumeUsd: string | null;
305
+ estimatedSeconds?: number | undefined;
662
306
  liquiditySource: string;
663
- score: number | null;
664
- sourceDetail: string | null;
665
- tier: "error" | "liquid" | "thin" | "unavailable" | "unknown";
307
+ sourceDetail?: string | undefined;
308
+ tier: "liquid" | "thin";
666
309
  };
667
310
  quote: {
668
- expiresAt: string | null;
669
311
  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;
312
+ minimumOutputAmount?: string | undefined;
313
+ outputAmount: string;
314
+ outputAmountFormatted: string;
678
315
  sampledAt: string;
679
- } | null;
316
+ };
680
317
  sourceAmount: {
681
318
  amount: string;
682
319
  formatted: string;
683
- usd: string | null;
684
320
  };
685
321
  sourceChain: {
686
- addressFormat: "evm" | "solana" | "tron";
322
+ addressFormat: "evm";
687
323
  id: string;
688
- kind: "evm" | "solana" | "tron";
324
+ kind: "evm";
689
325
  name: string;
690
326
  providerIds?: {
691
327
  [x: string]: string;
@@ -703,7 +339,6 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
703
339
  tokenKey: string;
704
340
  verified: boolean;
705
341
  };
706
- status: "available" | "error" | "thin" | "unavailable" | "unknown";
707
342
  }[];
708
343
  };
709
344
  outputFormat: "json";
@@ -711,8 +346,6 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
711
346
  input: {
712
347
  query: {
713
348
  destinationToken?: string | string[];
714
- include?: string | string[];
715
- limit?: string | string[];
716
349
  provider?: string | string[];
717
350
  sourceAmount: string | string[];
718
351
  sourceAmountUnits?: string | string[];
@@ -734,8 +367,6 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
734
367
  input: {
735
368
  query: {
736
369
  destinationToken?: string | string[];
737
- include?: string | string[];
738
- limit?: string | string[];
739
370
  provider?: string | string[];
740
371
  sourceAmount: string | string[];
741
372
  sourceAmountUnits?: string | string[];
@@ -757,8 +388,6 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
757
388
  input: {
758
389
  query: {
759
390
  destinationToken?: string | string[];
760
- include?: string | string[];
761
- limit?: string | string[];
762
391
  provider?: string | string[];
763
392
  sourceAmount: string | string[];
764
393
  sourceAmountUnits?: string | string[];
@@ -780,8 +409,6 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
780
409
  input: {
781
410
  query: {
782
411
  destinationToken?: string | string[];
783
- include?: string | string[];
784
- limit?: string | string[];
785
412
  provider?: string | string[];
786
413
  sourceAmount: string | string[];
787
414
  sourceAmountUnits?: string | string[];
@@ -796,8 +423,6 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
796
423
  input: {
797
424
  query: {
798
425
  destinationToken?: string | string[];
799
- include?: string | string[];
800
- limit?: string | string[];
801
426
  provider?: string | string[];
802
427
  sourceAmount: string | string[];
803
428
  sourceAmountUnits?: string | string[];
@@ -819,8 +444,6 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
819
444
  input: {
820
445
  query: {
821
446
  destinationToken?: string | string[];
822
- include?: string | string[];
823
- limit?: string | string[];
824
447
  provider?: string | string[];
825
448
  sourceAmount: string | string[];
826
449
  sourceAmountUnits?: string | string[];
@@ -842,8 +465,6 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
842
465
  input: {
843
466
  query: {
844
467
  destinationToken?: string | string[];
845
- include?: string | string[];
846
- limit?: string | string[];
847
468
  provider?: string | string[];
848
469
  sourceAmount: string | string[];
849
470
  sourceAmountUnits?: string | string[];
@@ -851,334 +472,10 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
851
472
  sourceToken: string | string[];
852
473
  };
853
474
  };
854
- };
855
- };
856
- } & {
857
- "/v1/funding/routes/quote": {
858
- $post: {
859
- output: {
860
- destinationChain: {
861
- addressFormat: "evm" | "solana" | "tron";
862
- id: string;
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;
874
- };
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: {
885
- amount: string;
886
- amountUsd: string | null;
887
- bps: number | null;
888
- token: {
889
- address: string;
890
- chainId: string;
891
- decimals: number;
892
- symbol: string;
893
- };
894
- };
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;
904
- };
905
- };
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
- };
940
- };
941
- outputFormat: "json";
942
- status: 200;
943
- input: {
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;
953
- };
954
- };
955
- } | {
956
- output: {
957
- error: {
958
- code: "api_key_malformed";
959
- details?: readonly Response.error.Detail[] | undefined;
960
- message: string;
961
- };
962
- requestId: string;
963
- };
964
- outputFormat: "json";
965
- status: 400;
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
- };
1001
- } | {
1002
- output: {
1003
- error: {
1004
- code: "api_key_invalid" | "api_key_missing";
1005
- details?: readonly Response.error.Detail[] | undefined;
1006
- message: string;
1007
- };
1008
- requestId: string;
1009
- };
1010
- outputFormat: "json";
1011
- status: 401;
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
- };
1040
- } | {
1041
- output: {
1042
- error: {
1043
- code: "api_key_forbidden";
1044
- details?: readonly Response.error.Detail[] | undefined;
1045
- message: string;
1046
- };
1047
- requestId: string;
1048
- };
1049
- outputFormat: "json";
1050
- status: 403;
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
- };
1109
- } | {
1110
- output: {
1111
- error: {
1112
- code: "payment_required" | "rate_limit_exceeded";
1113
- details?: readonly Response.error.Detail[] | undefined;
1114
- message: string;
1115
- };
1116
- requestId: string;
1117
- };
1118
- outputFormat: "json";
1119
- status: 429;
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
475
  } | {
1133
476
  output: {
1134
477
  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";
478
+ code: "upstream_error";
1182
479
  details?: readonly Response.error.Detail[] | undefined;
1183
480
  message: string;
1184
481
  };
@@ -1187,38 +484,13 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1187
484
  outputFormat: "json";
1188
485
  status: 502;
1189
486
  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
- };
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;
487
+ query: {
488
+ destinationToken?: string | string[];
489
+ provider?: string | string[];
490
+ sourceAmount: string | string[];
491
+ sourceAmountUnits?: string | string[];
492
+ sourceChain: string | string[];
493
+ sourceToken: string | string[];
1222
494
  };
1223
495
  };
1224
496
  };
@@ -1228,9 +500,9 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1228
500
  $get: {
1229
501
  output: {
1230
502
  data: {
1231
- addressFormat: "evm" | "solana" | "tron";
503
+ addressFormat: "evm";
1232
504
  id: string;
1233
- kind: "evm" | "solana" | "tron";
505
+ kind: "evm";
1234
506
  name: string;
1235
507
  providerIds?: {
1236
508
  [x: string]: string;
@@ -1308,25 +580,20 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1308
580
  };
1309
581
  };
1310
582
  } & {
1311
- "/v1/providers": {
583
+ "/v1/funding/providers": {
1312
584
  $get: {
1313
585
  output: {
1314
586
  data: {
1315
- capabilities: "fundingRoutes"[];
1316
- id: string;
587
+ id: "relay";
1317
588
  kind: string;
1318
589
  name: string;
1319
590
  requiresApiKey: boolean;
1320
- status: "configured" | "inventoryOnly" | "planned";
591
+ status: "configured" | "unconfigured";
1321
592
  }[];
1322
593
  };
1323
594
  outputFormat: "json";
1324
595
  status: 200;
1325
- input: {
1326
- query?: {
1327
- capability?: string | string[];
1328
- } | undefined;
1329
- };
596
+ input: {};
1330
597
  } | {
1331
598
  output: {
1332
599
  error: {
@@ -1338,27 +605,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1338
605
  };
1339
606
  outputFormat: "json";
1340
607
  status: 400;
1341
- input: {
1342
- query?: {
1343
- capability?: string | string[];
1344
- } | undefined;
1345
- };
1346
- } | {
1347
- output: {
1348
- error: {
1349
- code: "query_invalid";
1350
- details?: readonly Response.error.Detail[] | undefined;
1351
- message: string;
1352
- };
1353
- requestId: string;
1354
- };
1355
- outputFormat: "json";
1356
- status: 400;
1357
- input: {
1358
- query?: {
1359
- capability?: string | string[];
1360
- } | undefined;
1361
- };
608
+ input: {};
1362
609
  } | {
1363
610
  output: {
1364
611
  error: {
@@ -1370,20 +617,12 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1370
617
  };
1371
618
  outputFormat: "json";
1372
619
  status: 401;
1373
- input: {
1374
- query?: {
1375
- capability?: string | string[];
1376
- } | undefined;
1377
- };
620
+ input: {};
1378
621
  } | {
1379
622
  output: null;
1380
623
  outputFormat: "body";
1381
624
  status: 402;
1382
- input: {
1383
- query?: {
1384
- capability?: string | string[];
1385
- } | undefined;
1386
- };
625
+ input: {};
1387
626
  } | {
1388
627
  output: {
1389
628
  error: {
@@ -1395,11 +634,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1395
634
  };
1396
635
  outputFormat: "json";
1397
636
  status: 403;
1398
- input: {
1399
- query?: {
1400
- capability?: string | string[];
1401
- } | undefined;
1402
- };
637
+ input: {};
1403
638
  } | {
1404
639
  output: {
1405
640
  error: {
@@ -1411,25 +646,17 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
1411
646
  };
1412
647
  outputFormat: "json";
1413
648
  status: 429;
1414
- input: {
1415
- query?: {
1416
- capability?: string | string[];
1417
- } | undefined;
1418
- };
649
+ input: {};
1419
650
  };
1420
651
  };
1421
- }, "/", "/v1/providers">;
652
+ }, "/", "/v1/funding/providers">;
1422
653
  export declare namespace funding {
1423
- /** Options for funding route discovery. */
654
+ /** Options for live funding quotes. */
1424
655
  type Options = {
1425
- /** Across explicit quote capability. */
1426
- acrossQuote?: FundingRoutes.ProviderQuote | undefined;
1427
- /** Provider adapters used to enrich static inventory with live data. */
1428
- adapters?: FundingRoutes.ProviderAdapters | undefined;
656
+ /** Provider adapters used to request live quotes. */
657
+ adapters?: FundingQuotes.ProviderAdapters | undefined;
1429
658
  /** Per-provider quote timeout in milliseconds. */
1430
659
  adapterTimeoutMs?: number | undefined;
1431
- /** Timeout for depositor-specific provider quotes. */
1432
- quoteTimeoutMs?: number | undefined;
1433
660
  };
1434
661
  }
1435
662
  //# sourceMappingURL=funding.d.ts.map