tapimo 0.4.4 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/dist/App.d.ts +7403 -6127
  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 +115 -115
  10. package/dist/apps/data/App.d.ts +1838 -1534
  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/{FundingRouteProviders.d.ts → FundingQuoteProviders.d.ts} +7 -7
  15. package/dist/apps/data/{FundingRouteProviders.d.ts.map → FundingQuoteProviders.d.ts.map} +1 -1
  16. package/dist/apps/data/{FundingRouteProviders.js → FundingQuoteProviders.js} +36 -91
  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/funding.d.ts +207 -388
  35. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  36. package/dist/apps/data/routes/funding.js +143 -221
  37. package/dist/apps/data/routes/funding.js.map +1 -1
  38. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  39. package/dist/apps/data/routes/rpc.js +86 -16
  40. package/dist/apps/data/routes/rpc.js.map +1 -1
  41. package/dist/apps/data/routes/tokenlist.d.ts +33 -33
  42. package/dist/apps/data/routes/transactions.d.ts +281 -281
  43. package/dist/apps/data/routes/transfers.d.ts +58 -58
  44. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  45. package/dist/apps/data/routes/webhooks.d.ts +340 -0
  46. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  47. package/dist/apps/data/routes/webhooks.js +13 -1
  48. package/dist/apps/data/routes/webhooks.js.map +1 -1
  49. package/dist/apps/index.d.ts +1 -1
  50. package/dist/apps/index.js +1 -1
  51. package/dist/apps/management/App.d.ts +1090 -108
  52. package/dist/apps/management/App.d.ts.map +1 -1
  53. package/dist/apps/management/App.js +4 -0
  54. package/dist/apps/management/App.js.map +1 -1
  55. package/dist/apps/management/routes/api-keys.d.ts +118 -118
  56. package/dist/apps/management/routes/api-keys.js +2 -2
  57. package/dist/apps/management/routes/api-keys.js.map +1 -1
  58. package/dist/apps/management/routes/billing.d.ts +207 -207
  59. package/dist/apps/management/routes/invite-links.d.ts +1100 -0
  60. package/dist/apps/management/routes/invite-links.d.ts.map +1 -0
  61. package/dist/apps/management/routes/invite-links.js +411 -0
  62. package/dist/apps/management/routes/invite-links.js.map +1 -0
  63. package/dist/apps/management/routes/me.d.ts +17 -17
  64. package/dist/apps/management/routes/members.d.ts +71 -71
  65. package/dist/apps/management/routes/orgs.d.ts +12 -12
  66. package/dist/apps/management/routes/projects.d.ts +70 -70
  67. package/dist/apps/management/routes/scopes.d.ts +11 -11
  68. package/dist/apps/management/routes/scopes.d.ts.map +1 -1
  69. package/dist/apps/management/routes/scopes.js +2 -2
  70. package/dist/apps/management/routes/scopes.js.map +1 -1
  71. package/dist/apps/management/routes/usage.d.ts +75 -75
  72. package/dist/apps/relay/App.d.ts.map +1 -1
  73. package/dist/apps/relay/App.js +42 -4
  74. package/dist/apps/relay/App.js.map +1 -1
  75. package/dist/db/Db.d.ts +3 -0
  76. package/dist/db/Db.d.ts.map +1 -1
  77. package/dist/db/Db.js +57 -0
  78. package/dist/db/Db.js.map +1 -1
  79. package/dist/db/Schema.d.ts +31 -0
  80. package/dist/db/Schema.d.ts.map +1 -1
  81. package/dist/db/Schema.js +31 -0
  82. package/dist/db/Schema.js.map +1 -1
  83. package/dist/db/tables/inviteLinks.d.ts +42 -0
  84. package/dist/db/tables/inviteLinks.d.ts.map +1 -0
  85. package/dist/db/tables/inviteLinks.js +148 -0
  86. package/dist/db/tables/inviteLinks.js.map +1 -0
  87. package/dist/db/tables/organizations.d.ts.map +1 -1
  88. package/dist/db/tables/organizations.js +2 -0
  89. package/dist/db/tables/organizations.js.map +1 -1
  90. package/dist/handlers/relay.d.ts.map +1 -1
  91. package/dist/handlers/relay.js +13 -3
  92. package/dist/handlers/relay.js.map +1 -1
  93. package/dist/internal/Auth.d.ts +9 -1
  94. package/dist/internal/Auth.d.ts.map +1 -1
  95. package/dist/internal/Auth.js +130 -10
  96. package/dist/internal/Auth.js.map +1 -1
  97. package/dist/internal/EdgeCache.d.ts +3 -1
  98. package/dist/internal/EdgeCache.d.ts.map +1 -1
  99. package/dist/internal/EdgeCache.js +17 -2
  100. package/dist/internal/EdgeCache.js.map +1 -1
  101. package/dist/internal/{FundingRoutes.d.ts → FundingQuotes.d.ts} +185 -428
  102. package/dist/internal/FundingQuotes.d.ts.map +1 -0
  103. package/dist/internal/{FundingRoutes.js → FundingQuotes.js} +93 -218
  104. package/dist/internal/FundingQuotes.js.map +1 -0
  105. package/dist/internal/Viem.d.ts +3 -1
  106. package/dist/internal/Viem.d.ts.map +1 -1
  107. package/dist/internal/Viem.js +11 -2
  108. package/dist/internal/Viem.js.map +1 -1
  109. package/dist/internal/index.d.ts +1 -1
  110. package/dist/internal/index.js +1 -1
  111. package/package.json +1 -1
  112. package/src/ApiKeys.test.ts +23 -0
  113. package/src/App.test-d.ts +2 -0
  114. package/src/App.ts +6 -0
  115. package/src/Client.test-d.ts +20 -11
  116. package/src/Scope.test.ts +1 -0
  117. package/src/Scope.ts +30 -4
  118. package/src/apps/data/App.test.ts +354 -0
  119. package/src/apps/data/App.ts +159 -52
  120. package/src/apps/data/FundingQuoteProviders.test.ts +151 -0
  121. package/src/apps/data/{FundingRouteProviders.ts → FundingQuoteProviders.ts} +40 -101
  122. package/src/apps/data/index.ts +1 -1
  123. package/src/apps/data/routes/balances.test.ts +64 -18
  124. package/src/apps/data/routes/balances.ts +76 -177
  125. package/src/apps/data/routes/blocks.ts +3 -5
  126. package/src/apps/data/routes/coingecko.ts +3 -8
  127. package/src/apps/data/routes/funding.test.ts +151 -206
  128. package/src/apps/data/routes/funding.ts +156 -291
  129. package/src/apps/data/routes/indexer.test.ts +97 -1
  130. package/src/apps/data/routes/rpc.test.ts +219 -0
  131. package/src/apps/data/routes/rpc.ts +92 -17
  132. package/src/apps/data/routes/webhooks.test.ts +21 -0
  133. package/src/apps/data/routes/webhooks.ts +13 -1
  134. package/src/apps/index.ts +1 -1
  135. package/src/apps/management/App.ts +4 -0
  136. package/src/apps/management/routes/api-keys.test.ts +47 -3
  137. package/src/apps/management/routes/api-keys.ts +2 -2
  138. package/src/apps/management/routes/invite-links.test.ts +385 -0
  139. package/src/apps/management/routes/invite-links.ts +570 -0
  140. package/src/apps/management/routes/scopes.test.ts +3 -2
  141. package/src/apps/management/routes/scopes.ts +4 -2
  142. package/src/apps/relay/App.test.ts +324 -4
  143. package/src/apps/relay/App.ts +40 -4
  144. package/src/db/Db.ts +65 -0
  145. package/src/db/Schema.ts +39 -0
  146. package/src/db/tables/inviteLinks.ts +187 -0
  147. package/src/db/tables/organizations.ts +2 -0
  148. package/src/handlers/relay.ts +16 -4
  149. package/src/internal/Auth.test.ts +132 -22
  150. package/src/internal/Auth.ts +171 -14
  151. package/src/internal/EdgeCache.test.ts +24 -3
  152. package/src/internal/EdgeCache.ts +18 -2
  153. package/src/internal/FundingQuotes.test.ts +174 -0
  154. package/src/internal/{FundingRoutes.ts → FundingQuotes.ts} +153 -312
  155. package/src/internal/Viem.ts +14 -5
  156. package/src/internal/index.test.ts +1 -1
  157. package/src/internal/index.ts +1 -1
  158. package/dist/apps/data/FundingRouteProviders.js.map +0 -1
  159. package/dist/internal/FundingRoutes.d.ts.map +0 -1
  160. package/dist/internal/FundingRoutes.js.map +0 -1
  161. package/src/apps/data/FundingRouteProviders.test.ts +0 -225
  162. package/src/internal/FundingRoutes.test.ts +0 -213
@@ -5,7 +5,7 @@ declare const destinationChain: {
5
5
  readonly kind: 'evm';
6
6
  readonly name: 'Tempo';
7
7
  };
8
- /** Source chains accepted by the funding route inventory. */
8
+ /** Source chains considered by funding quote providers. */
9
9
  declare const sourceChains: readonly [{
10
10
  readonly addressFormat: 'evm';
11
11
  readonly aliases: readonly ['ethereum', 'eth', 'eip155:1'];
@@ -13,9 +13,6 @@ declare const sourceChains: readonly [{
13
13
  readonly kind: 'evm';
14
14
  readonly name: 'Ethereum';
15
15
  readonly providerIds: {
16
- readonly bridge: 'ethereum';
17
- readonly bungee: '1';
18
- readonly lifi: '1';
19
16
  readonly relay: '1';
20
17
  };
21
18
  readonly slug: 'ethereum';
@@ -62,9 +59,6 @@ declare const sourceChains: readonly [{
62
59
  readonly kind: 'evm';
63
60
  readonly name: 'Base';
64
61
  readonly providerIds: {
65
- readonly bridge: 'base';
66
- readonly bungee: '8453';
67
- readonly lifi: '8453';
68
62
  readonly relay: '8453';
69
63
  };
70
64
  readonly slug: 'base';
@@ -97,8 +91,6 @@ declare const sourceChains: readonly [{
97
91
  readonly kind: 'evm';
98
92
  readonly name: 'BNB Smart Chain';
99
93
  readonly providerIds: {
100
- readonly bungee: '56';
101
- readonly lifi: '56';
102
94
  readonly relay: '56';
103
95
  };
104
96
  readonly slug: 'bnb';
@@ -117,53 +109,8 @@ declare const sourceChains: readonly [{
117
109
  readonly standard: 'BEP-20';
118
110
  readonly symbol: 'USDT';
119
111
  }];
120
- }, {
121
- readonly addressFormat: 'solana';
122
- readonly aliases: readonly ['solana', 'solana:mainnet'];
123
- readonly id: 'solana:mainnet';
124
- readonly kind: 'solana';
125
- readonly name: 'Solana';
126
- readonly providerIds: {
127
- readonly bridge: 'solana';
128
- readonly relay: 'solana';
129
- };
130
- readonly slug: 'solana';
131
- readonly tokens: readonly [{
132
- readonly address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
133
- readonly coingeckoId: 'usd-coin';
134
- readonly decimals: 6;
135
- readonly name: 'USD Coin';
136
- readonly standard: 'SPL';
137
- readonly symbol: 'USDC';
138
- }, {
139
- readonly address: 'Es9vMFrzaCERmJfrF4H2FYD4KCo3LwC1uix9YEaQ8t1v';
140
- readonly coingeckoId: 'tether';
141
- readonly decimals: 6;
142
- readonly name: 'Tether USD';
143
- readonly standard: 'SPL';
144
- readonly symbol: 'USDT';
145
- }];
146
- }, {
147
- readonly addressFormat: 'tron';
148
- readonly aliases: readonly ['tron', 'tron:mainnet'];
149
- readonly id: 'tron:mainnet';
150
- readonly kind: 'tron';
151
- readonly name: 'Tron';
152
- readonly providerIds: {
153
- readonly bridge: 'tron';
154
- readonly relay: 'tron';
155
- };
156
- readonly slug: 'tron';
157
- readonly tokens: readonly [{
158
- readonly address: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t';
159
- readonly coingeckoId: 'tether';
160
- readonly decimals: 6;
161
- readonly name: 'Tether USD';
162
- readonly standard: 'TRC-20';
163
- readonly symbol: 'USDT';
164
- }];
165
112
  }];
166
- /** Tempo destination tokens supported by the initial funding route inventory. */
113
+ /** Tempo destination tokens supported by funding quote providers. */
167
114
  declare const destinationTokens: readonly [{
168
115
  readonly address: '0x20c0000000000000000000000000000000000000';
169
116
  readonly decimals: 6;
@@ -200,57 +147,35 @@ declare const destinationTokens: readonly [{
200
147
  readonly standard: 'TIP-20';
201
148
  readonly symbol: 'frxUSD';
202
149
  }];
203
- /** Providers exposed by the generic provider catalog. */
150
+ /** Providers supported by live funding quotes. */
204
151
  declare const providers: readonly [{
205
- readonly capabilities: readonly ['fundingRoutes'];
206
152
  readonly id: 'relay';
207
153
  readonly kind: 'solverNetwork';
208
154
  readonly name: 'Relay';
209
155
  readonly requiresApiKey: false;
210
- readonly status: 'inventoryOnly';
211
- }, {
212
- readonly capabilities: readonly ['fundingRoutes'];
213
- readonly id: 'bridge';
214
- readonly kind: 'enterpriseTransfer';
215
- readonly name: 'Bridge.xyz';
216
- readonly requiresApiKey: true;
217
- readonly status: 'inventoryOnly';
218
- }, {
219
- readonly capabilities: readonly ['fundingRoutes'];
220
- readonly id: 'bungee';
221
- readonly kind: 'aggregator';
222
- readonly name: 'Bungee';
223
- readonly requiresApiKey: false;
224
- readonly status: 'inventoryOnly';
225
- }, {
226
- readonly capabilities: readonly ['fundingRoutes'];
227
- readonly id: 'lifi';
228
- readonly kind: 'aggregator';
229
- readonly name: 'LI.FI';
230
- readonly requiresApiKey: true;
231
- readonly status: 'planned';
156
+ readonly status: 'unconfigured';
232
157
  }];
233
158
  type TokenInput = (typeof sourceChains)[number]['tokens'][number];
234
159
  type DestinationTokenInput = (typeof destinationTokens)[number];
235
160
  type ProviderInput = (typeof providers)[number];
236
161
  type SourceChainInput = (typeof sourceChains)[number];
237
- /** Provider ids accepted by the funding route inventory. */
162
+ /** Provider ids accepted by funding quote requests. */
238
163
  export type ProviderId = ProviderInput['id'];
239
- /** Provider-specific route status for the requested amount. */
240
- export type RouteStatus = 'available' | 'thin' | 'unknown' | 'unavailable' | 'error';
241
- /** Machine-readable route quality tier. */
242
- export type QualityTier = 'liquid' | 'thin' | 'unknown' | 'unavailable' | 'error';
243
- /** Response expansions accepted by funding route discovery. */
244
- export type Include = 'quotes';
164
+ /** Provider-specific quote status for the requested amount. */
165
+ export type QuoteStatus = 'available' | 'thin' | 'unknown' | 'unavailable';
166
+ /** Machine-readable quote quality tier. */
167
+ export type QualityTier = 'liquid' | 'thin' | 'unknown' | 'unavailable';
245
168
  /** Normalized chain reference passed to provider adapters. */
246
169
  export type ChainRef = ReturnType<typeof formatChain> | typeof destinationChain;
247
170
  /** Normalized token amount passed to provider adapters. */
248
171
  export type TokenAmount = ReturnType<typeof resolveSourceAmount>;
249
172
  /** Normalized token reference passed to provider adapters. */
250
173
  export type TokenRef = ReturnType<typeof formatDestinationToken> | ReturnType<typeof formatSourceToken>;
251
- /** A normalized funding route candidate returned by route discovery. */
252
- export type RouteCandidate = ReturnType<typeof formatRouteCandidate>;
253
- /** Cache policy for a single funding route discovery request. */
174
+ /** A normalized internal candidate passed to funding quote providers. */
175
+ export type QuoteCandidate = ReturnType<typeof formatQuoteCandidate>;
176
+ /** A successful normalized funding quote returned to callers. */
177
+ export type FundingQuote = ReturnType<typeof formatFundingQuote>;
178
+ /** Cache policy for a single funding quote request. */
254
179
  export type CachePolicy = {
255
180
  /** Whether provider adapters should bypass their own quote or inventory caches. */
256
181
  bypass: boolean;
@@ -259,10 +184,6 @@ export type CachePolicy = {
259
184
  export type QuoteRequest = {
260
185
  /** Optional Tempo destination token symbol, address, or token key. */
261
186
  destinationToken?: string | undefined;
262
- /** Response expansions requested by the caller. */
263
- include: readonly Include[];
264
- /** Maximum number of route candidates requested by the caller. */
265
- limit: number;
266
187
  /** Optional provider id filter. */
267
188
  provider?: string | undefined;
268
189
  /** Source amount as supplied by the caller. */
@@ -274,20 +195,18 @@ export type QuoteRequest = {
274
195
  /** Source token symbol, contract address, mint, or Tempo token key. */
275
196
  sourceToken: string;
276
197
  };
277
- /** Input passed to a provider adapter for one static route candidate probe. */
198
+ /** Input passed to a provider adapter for one curated quote candidate. */
278
199
  export type QuoteProbeInput = {
279
- /** Cache policy for provider-side inventory, quote, and liquidity lookups. */
200
+ /** Cache policy for provider-side discovery and quote lookups. */
280
201
  cache: CachePolicy;
281
202
  /** Destination chain, always Tempo mainnet in V1. */
282
203
  destinationChain: ChainRef;
283
- /** Tempo token expected from this route. */
204
+ /** Tempo token expected from this quote. */
284
205
  destinationToken: TokenRef;
285
- /** Response expansions requested by the caller. */
286
- include: readonly Include[];
287
- /** Normalized caller request that produced this route candidate. */
206
+ /** Normalized caller request that produced this quote candidate. */
288
207
  request: QuoteRequest;
289
- /** Static candidate being enriched with live provider information. */
290
- route: RouteCandidate;
208
+ /** Curated candidate selected for live provider quoting. */
209
+ candidate: QuoteCandidate;
291
210
  /** Source amount in base units and display form. */
292
211
  sourceAmount: TokenAmount;
293
212
  /** Chain where the caller currently holds funds. */
@@ -295,218 +214,80 @@ export type QuoteProbeInput = {
295
214
  /** Token the caller currently holds. */
296
215
  sourceToken: TokenRef;
297
216
  };
298
- /** Provider-specific source amount limits, expressed in source base units. */
299
- export type QuoteProbeLimits = {
300
- /** Provider-reported instant source amount capacity. */
301
- instantSourceAmount?: string | null | undefined;
302
- /** Provider-reported maximum source amount. */
303
- maxSourceAmount?: string | null | undefined;
304
- /** Provider-reported minimum source amount. */
305
- minSourceAmount?: string | null | undefined;
306
- };
307
217
  /** Quote probe data returned by a provider adapter. */
308
218
  export type QuoteProbeResult = {
309
- /** Stable route error code when status is `error`. */
310
- errorCode?: string | null | undefined;
311
- /** Provider quote expiry timestamp. */
312
- expiresAt?: string | null | undefined;
313
- /** Provider-reported source amount limits. */
314
- limits?: QuoteProbeLimits | null | undefined;
315
219
  /** Slippage-adjusted minimum destination amount in base units. */
316
- minimumOutputAmount?: string | null | undefined;
220
+ minimumOutputAmount?: string | undefined;
317
221
  /** Expected destination amount in base units. */
318
- outputAmount?: string | null | undefined;
222
+ outputAmount?: string | undefined;
319
223
  /** Expected destination amount rendered with destination token decimals. */
320
- outputAmountFormatted?: string | null | undefined;
321
- /** Timestamp for the live quote or route probe. */
224
+ outputAmountFormatted?: string | undefined;
225
+ /** Timestamp for the live quote probe. */
322
226
  sampledAt: string;
323
- /** Provider-specific route status for the requested amount. */
324
- status: RouteStatus;
325
- /** Provider-backed route quality metadata. */
227
+ /** Provider-specific quote status for the requested amount. */
228
+ status: QuoteStatus;
229
+ /** Provider-backed quote quality metadata. */
326
230
  quality?: {
327
- /** Available USD capacity, when available. */
328
- availableVolumeUsd?: string | null | undefined;
329
231
  /** Estimated settlement time in seconds, when known. */
330
- estimatedSeconds?: number | null | undefined;
331
- /** Estimated fee in basis points, when known. */
332
- feeBps?: number | null | undefined;
333
- /** 24h routed volume in USD, when available. */
334
- historicalVolumeUsd24h?: string | null | undefined;
335
- /** Instant USD capacity, when available. */
336
- instantVolumeUsd?: string | null | undefined;
232
+ estimatedSeconds?: number | undefined;
337
233
  /** Where the live liquidity or support signal came from. */
338
234
  liquiditySource: string;
339
- /** Explainable route score from 0 to 100, when enough signals are available. */
340
- score?: number | null | undefined;
341
235
  /** Provider-specific quote source or endpoint detail. */
342
- sourceDetail?: string | null | undefined;
343
- /** Machine-readable route quality tier. */
236
+ sourceDetail?: string | undefined;
237
+ /** Machine-readable quote quality tier. */
344
238
  tier?: QualityTier | undefined;
345
239
  };
346
240
  };
347
- /** Adapter used to enrich a static route candidate with live provider information. */
241
+ /** Adapter used to request a live provider quote. */
348
242
  export type ProviderAdapter = {
349
243
  /** Probes provider-backed quote information for one static candidate. */
350
244
  probeQuote(input: QuoteProbeInput, signal: AbortSignal): Promise<QuoteProbeResult>;
351
245
  };
352
- /** Provider adapter registry, keyed by provider id. Missing adapters leave routes static. */
246
+ /** Provider adapter registry, keyed by provider id. */
353
247
  export type ProviderAdapters = Partial<Record<ProviderId, ProviderAdapter>>;
354
- /** Lists normalized chains and source tokens that can fund Tempo. */
248
+ /** Lists normalized chains and source tokens supported by quote providers. */
355
249
  export declare function listChains(): {
356
250
  tokens: {
357
- address: "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c" | "0x55d398326f99059ff775485246999027b3197955" | "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42" | "0x6b175474e89094c44da98b954eedeac495271d0f" | "0x6c3ea9036406852006290770bedfcaba0e23a0e8" | "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" | "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "0xdac17f958d2ee523a2206206994597c13d831ec7" | "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2" | "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" | "Es9vMFrzaCERmJfrF4H2FYD4KCo3LwC1uix9YEaQ8t1v" | "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";
251
+ address: "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c" | "0x55d398326f99059ff775485246999027b3197955" | "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42" | "0x6b175474e89094c44da98b954eedeac495271d0f" | "0x6c3ea9036406852006290770bedfcaba0e23a0e8" | "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" | "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "0xdac17f958d2ee523a2206206994597c13d831ec7" | "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2";
358
252
  decimals: 6 | 18;
359
253
  metadata: {
360
254
  coingeckoId: "dai" | "euro-coin" | "paypal-usd" | "tether" | "usd-coin";
361
255
  };
362
256
  name: "Binance-Peg USD Coin" | "Dai Stablecoin" | "Euro Coin" | "PayPal USD" | "Tether USD" | "USD Coin";
363
- standard: "BEP-20" | "ERC-20" | "SPL" | "TRC-20";
257
+ standard: "BEP-20" | "ERC-20";
364
258
  symbol: "DAI" | "EURC" | "PYUSD" | "USDC" | "USDT";
365
259
  tokenKey: string;
366
260
  verified: boolean;
367
261
  }[];
368
- addressFormat: "evm" | "solana" | "tron";
369
- id: "eip155:1" | "eip155:56" | "eip155:8453" | "solana:mainnet" | "tron:mainnet";
370
- kind: "evm" | "solana" | "tron";
371
- name: "BNB Smart Chain" | "Base" | "Ethereum" | "Solana" | "Tron";
262
+ addressFormat: "evm";
263
+ id: "eip155:1" | "eip155:56" | "eip155:8453";
264
+ kind: "evm";
265
+ name: "BNB Smart Chain" | "Base" | "Ethereum";
372
266
  providerIds: {
373
- readonly bridge: 'ethereum';
374
- readonly bungee: '1';
375
- readonly lifi: '1';
376
267
  readonly relay: '1';
377
268
  } | {
378
- readonly bridge: 'base';
379
- readonly bungee: '8453';
380
- readonly lifi: '8453';
381
269
  readonly relay: '8453';
382
270
  } | {
383
- readonly bungee: '56';
384
- readonly lifi: '56';
385
271
  readonly relay: '56';
386
- } | {
387
- readonly bridge: 'solana';
388
- readonly relay: 'solana';
389
- } | {
390
- readonly bridge: 'tron';
391
- readonly relay: 'tron';
392
272
  };
393
273
  }[];
394
- /** Lists providers, optionally filtered by one provider capability. */
274
+ /** Lists funding quote providers and their deployment status. */
395
275
  export declare function listProviders(options?: listProviders.Options): {
396
- status: "configured" | "inventoryOnly" | "planned";
397
- capabilities: "fundingRoutes"[];
398
- id: "bridge" | "bungee" | "lifi" | "relay";
399
- kind: "aggregator" | "enterpriseTransfer" | "solverNetwork";
400
- name: "Bridge.xyz" | "Bungee" | "LI.FI" | "Relay";
401
- requiresApiKey: boolean;
276
+ status: "configured" | "unconfigured";
277
+ id: "relay";
278
+ kind: "solverNetwork";
279
+ name: "Relay";
280
+ requiresApiKey: false;
402
281
  }[];
403
282
  export declare namespace listProviders {
404
283
  /** Options for listing providers. */
405
284
  type Options = {
406
285
  /** Provider adapters configured for this deployment. */
407
286
  adapters?: ProviderAdapters | undefined;
408
- /** Provider capability to require. */
409
- capability?: Capability | undefined;
410
287
  };
411
288
  }
412
- /** Parses the comma-separated `include` query parameter. */
413
- export declare function parseInclude(input: string | undefined): readonly "quotes"[];
414
- /** Lists funding route candidates, enriching static inventory when adapters are configured. */
415
- export declare function listRoutes(options: listRoutes.Options): Promise<({
416
- errorCode: string | null;
417
- quality: {
418
- availableVolumeUsd: string | null | undefined;
419
- estimatedSeconds: number | null | undefined;
420
- feeBps: number | null | undefined;
421
- historicalVolumeUsd24h: string | null | undefined;
422
- instantVolumeUsd: string | null | undefined;
423
- liquiditySource: string;
424
- score: number | null | undefined;
425
- sourceDetail: string | null | undefined;
426
- tier: QualityTier | undefined;
427
- };
428
- quote: {
429
- readonly expiresAt: string | null;
430
- readonly inputAmount: string;
431
- readonly limits: {
432
- instantSourceAmount: string | null;
433
- maxSourceAmount: string | null;
434
- minSourceAmount: string | null;
435
- } | null;
436
- readonly minimumOutputAmount: string | null;
437
- readonly outputAmount: string | null;
438
- readonly outputAmountFormatted: string | null;
439
- readonly sampledAt: string;
440
- } | null;
441
- status: RouteStatus;
442
- destinationChain: {
443
- readonly addressFormat: 'evm';
444
- readonly id: 'eip155:4217';
445
- readonly kind: 'evm';
446
- readonly name: 'Tempo';
447
- };
448
- destinationToken: {
449
- address: "0x20c0000000000000000000000000000000000000" | "0x20c00000000000000000000014f22ca97301eb73" | "0x20c0000000000000000000001621e21f71cf12fb" | "0x20c0000000000000000000003554d28269e0f3c2" | "0x20c000000000000000000000b9537d11c60e8b50";
450
- decimals: 6;
451
- metadata: {};
452
- name: "Bridged EURC" | "Bridged USDC (Stargate)" | "USDT0" | "frxUSD" | "pathUSD";
453
- standard: "TIP-20";
454
- symbol: "EURC.e" | "USDC.e" | "USDT0" | "frxUSD" | "pathUSD";
455
- tokenKey: string;
456
- verified: boolean;
457
- };
458
- id: string;
459
- provider: {
460
- id: "bridge" | "bungee" | "lifi" | "relay";
461
- kind: "aggregator" | "enterpriseTransfer" | "solverNetwork";
462
- name: "Bridge.xyz" | "Bungee" | "LI.FI" | "Relay";
463
- requiresApiKey: boolean;
464
- };
465
- sourceAmount: {
466
- amount: string;
467
- formatted: string;
468
- usd: null;
469
- };
470
- sourceChain: {
471
- addressFormat: "evm" | "solana" | "tron";
472
- id: "eip155:1" | "eip155:56" | "eip155:8453" | "solana:mainnet" | "tron:mainnet";
473
- kind: "evm" | "solana" | "tron";
474
- name: "BNB Smart Chain" | "Base" | "Ethereum" | "Solana" | "Tron";
475
- providerIds: {
476
- readonly bridge: 'ethereum';
477
- readonly bungee: '1';
478
- readonly lifi: '1';
479
- readonly relay: '1';
480
- } | {
481
- readonly bridge: 'base';
482
- readonly bungee: '8453';
483
- readonly lifi: '8453';
484
- readonly relay: '8453';
485
- } | {
486
- readonly bungee: '56';
487
- readonly lifi: '56';
488
- readonly relay: '56';
489
- } | {
490
- readonly bridge: 'solana';
491
- readonly relay: 'solana';
492
- } | {
493
- readonly bridge: 'tron';
494
- readonly relay: 'tron';
495
- };
496
- };
497
- sourceToken: {
498
- address: "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c" | "0x55d398326f99059ff775485246999027b3197955" | "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42" | "0x6b175474e89094c44da98b954eedeac495271d0f" | "0x6c3ea9036406852006290770bedfcaba0e23a0e8" | "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" | "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "0xdac17f958d2ee523a2206206994597c13d831ec7" | "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2" | "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" | "Es9vMFrzaCERmJfrF4H2FYD4KCo3LwC1uix9YEaQ8t1v" | "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";
499
- decimals: 6 | 18;
500
- metadata: {
501
- coingeckoId: "dai" | "euro-coin" | "paypal-usd" | "tether" | "usd-coin";
502
- };
503
- name: "Binance-Peg USD Coin" | "Dai Stablecoin" | "Euro Coin" | "PayPal USD" | "Tether USD" | "USD Coin";
504
- standard: "BEP-20" | "ERC-20" | "SPL" | "TRC-20";
505
- symbol: "DAI" | "EURC" | "PYUSD" | "USDC" | "USDT";
506
- tokenKey: string;
507
- verified: boolean;
508
- };
509
- } | {
289
+ /** Returns successful live funding quotes from configured providers. */
290
+ export declare function listQuotes(options: listQuotes.Options): Promise<{
510
291
  readonly destinationChain: {
511
292
  readonly addressFormat: 'evm';
512
293
  readonly id: 'eip155:4217';
@@ -523,74 +304,58 @@ export declare function listRoutes(options: listRoutes.Options): Promise<({
523
304
  tokenKey: string;
524
305
  verified: boolean;
525
306
  };
526
- readonly errorCode: null;
527
307
  readonly id: string;
528
308
  readonly provider: {
529
- id: "bridge" | "bungee" | "lifi" | "relay";
530
- kind: "aggregator" | "enterpriseTransfer" | "solverNetwork";
531
- name: "Bridge.xyz" | "Bungee" | "LI.FI" | "Relay";
532
- requiresApiKey: boolean;
309
+ id: "relay";
310
+ kind: "solverNetwork";
311
+ name: "Relay";
312
+ requiresApiKey: false;
533
313
  };
534
- readonly quality: {
535
- readonly availableVolumeUsd: null;
536
- readonly estimatedSeconds: null;
537
- readonly feeBps: null;
538
- readonly historicalVolumeUsd24h: null;
539
- readonly instantVolumeUsd: null;
540
- readonly liquiditySource: 'staticInventory';
541
- readonly score: null;
542
- readonly sourceDetail: null;
543
- readonly tier: 'unknown';
544
- };
545
- readonly quote: null;
546
314
  readonly sourceAmount: {
547
315
  amount: string;
548
316
  formatted: string;
549
- usd: null;
550
317
  };
551
318
  readonly sourceChain: {
552
- addressFormat: "evm" | "solana" | "tron";
553
- id: "eip155:1" | "eip155:56" | "eip155:8453" | "solana:mainnet" | "tron:mainnet";
554
- kind: "evm" | "solana" | "tron";
555
- name: "BNB Smart Chain" | "Base" | "Ethereum" | "Solana" | "Tron";
319
+ addressFormat: "evm";
320
+ id: "eip155:1" | "eip155:56" | "eip155:8453";
321
+ kind: "evm";
322
+ name: "BNB Smart Chain" | "Base" | "Ethereum";
556
323
  providerIds: {
557
- readonly bridge: 'ethereum';
558
- readonly bungee: '1';
559
- readonly lifi: '1';
560
324
  readonly relay: '1';
561
325
  } | {
562
- readonly bridge: 'base';
563
- readonly bungee: '8453';
564
- readonly lifi: '8453';
565
326
  readonly relay: '8453';
566
327
  } | {
567
- readonly bungee: '56';
568
- readonly lifi: '56';
569
328
  readonly relay: '56';
570
- } | {
571
- readonly bridge: 'solana';
572
- readonly relay: 'solana';
573
- } | {
574
- readonly bridge: 'tron';
575
- readonly relay: 'tron';
576
329
  };
577
330
  };
578
331
  readonly sourceToken: {
579
- address: "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c" | "0x55d398326f99059ff775485246999027b3197955" | "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42" | "0x6b175474e89094c44da98b954eedeac495271d0f" | "0x6c3ea9036406852006290770bedfcaba0e23a0e8" | "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" | "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "0xdac17f958d2ee523a2206206994597c13d831ec7" | "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2" | "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" | "Es9vMFrzaCERmJfrF4H2FYD4KCo3LwC1uix9YEaQ8t1v" | "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";
332
+ address: "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c" | "0x55d398326f99059ff775485246999027b3197955" | "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42" | "0x6b175474e89094c44da98b954eedeac495271d0f" | "0x6c3ea9036406852006290770bedfcaba0e23a0e8" | "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" | "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "0xdac17f958d2ee523a2206206994597c13d831ec7" | "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2";
580
333
  decimals: 6 | 18;
581
334
  metadata: {
582
335
  coingeckoId: "dai" | "euro-coin" | "paypal-usd" | "tether" | "usd-coin";
583
336
  };
584
337
  name: "Binance-Peg USD Coin" | "Dai Stablecoin" | "Euro Coin" | "PayPal USD" | "Tether USD" | "USD Coin";
585
- standard: "BEP-20" | "ERC-20" | "SPL" | "TRC-20";
338
+ standard: "BEP-20" | "ERC-20";
586
339
  symbol: "DAI" | "EURC" | "PYUSD" | "USDC" | "USDT";
587
340
  tokenKey: string;
588
341
  verified: boolean;
589
342
  };
590
- readonly status: 'unknown';
591
- })[]>;
592
- /** Lists static funding route candidates for a normalized caller request. */
593
- export declare function listStaticRoutes(options: listStaticRoutes.Options): {
343
+ readonly quality: {
344
+ readonly estimatedSeconds?: number;
345
+ readonly liquiditySource: string;
346
+ readonly sourceDetail?: string;
347
+ readonly tier: "liquid" | "thin";
348
+ };
349
+ readonly quote: {
350
+ readonly inputAmount: string;
351
+ readonly minimumOutputAmount?: string;
352
+ readonly outputAmount: string;
353
+ readonly outputAmountFormatted: string;
354
+ readonly sampledAt: string;
355
+ };
356
+ }[]>;
357
+ /** Lists internal quote candidates for a normalized caller request. */
358
+ export declare function listQuoteCandidates(options: listQuoteCandidates.Options): {
594
359
  readonly destinationChain: {
595
360
  readonly addressFormat: 'evm';
596
361
  readonly id: 'eip155:4217';
@@ -607,79 +372,48 @@ export declare function listStaticRoutes(options: listStaticRoutes.Options): {
607
372
  tokenKey: string;
608
373
  verified: boolean;
609
374
  };
610
- readonly errorCode: null;
611
375
  readonly id: string;
612
376
  readonly provider: {
613
- id: "bridge" | "bungee" | "lifi" | "relay";
614
- kind: "aggregator" | "enterpriseTransfer" | "solverNetwork";
615
- name: "Bridge.xyz" | "Bungee" | "LI.FI" | "Relay";
616
- requiresApiKey: boolean;
377
+ id: "relay";
378
+ kind: "solverNetwork";
379
+ name: "Relay";
380
+ requiresApiKey: false;
617
381
  };
618
- readonly quality: {
619
- readonly availableVolumeUsd: null;
620
- readonly estimatedSeconds: null;
621
- readonly feeBps: null;
622
- readonly historicalVolumeUsd24h: null;
623
- readonly instantVolumeUsd: null;
624
- readonly liquiditySource: 'staticInventory';
625
- readonly score: null;
626
- readonly sourceDetail: null;
627
- readonly tier: 'unknown';
628
- };
629
- readonly quote: null;
630
382
  readonly sourceAmount: {
631
383
  amount: string;
632
384
  formatted: string;
633
- usd: null;
634
385
  };
635
386
  readonly sourceChain: {
636
- addressFormat: "evm" | "solana" | "tron";
637
- id: "eip155:1" | "eip155:56" | "eip155:8453" | "solana:mainnet" | "tron:mainnet";
638
- kind: "evm" | "solana" | "tron";
639
- name: "BNB Smart Chain" | "Base" | "Ethereum" | "Solana" | "Tron";
387
+ addressFormat: "evm";
388
+ id: "eip155:1" | "eip155:56" | "eip155:8453";
389
+ kind: "evm";
390
+ name: "BNB Smart Chain" | "Base" | "Ethereum";
640
391
  providerIds: {
641
- readonly bridge: 'ethereum';
642
- readonly bungee: '1';
643
- readonly lifi: '1';
644
392
  readonly relay: '1';
645
393
  } | {
646
- readonly bridge: 'base';
647
- readonly bungee: '8453';
648
- readonly lifi: '8453';
649
394
  readonly relay: '8453';
650
395
  } | {
651
- readonly bungee: '56';
652
- readonly lifi: '56';
653
396
  readonly relay: '56';
654
- } | {
655
- readonly bridge: 'solana';
656
- readonly relay: 'solana';
657
- } | {
658
- readonly bridge: 'tron';
659
- readonly relay: 'tron';
660
397
  };
661
398
  };
662
399
  readonly sourceToken: {
663
- address: "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c" | "0x55d398326f99059ff775485246999027b3197955" | "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42" | "0x6b175474e89094c44da98b954eedeac495271d0f" | "0x6c3ea9036406852006290770bedfcaba0e23a0e8" | "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" | "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "0xdac17f958d2ee523a2206206994597c13d831ec7" | "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2" | "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" | "Es9vMFrzaCERmJfrF4H2FYD4KCo3LwC1uix9YEaQ8t1v" | "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";
400
+ address: "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c" | "0x55d398326f99059ff775485246999027b3197955" | "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42" | "0x6b175474e89094c44da98b954eedeac495271d0f" | "0x6c3ea9036406852006290770bedfcaba0e23a0e8" | "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" | "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "0xdac17f958d2ee523a2206206994597c13d831ec7" | "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2";
664
401
  decimals: 6 | 18;
665
402
  metadata: {
666
403
  coingeckoId: "dai" | "euro-coin" | "paypal-usd" | "tether" | "usd-coin";
667
404
  };
668
405
  name: "Binance-Peg USD Coin" | "Dai Stablecoin" | "Euro Coin" | "PayPal USD" | "Tether USD" | "USD Coin";
669
- standard: "BEP-20" | "ERC-20" | "SPL" | "TRC-20";
406
+ standard: "BEP-20" | "ERC-20";
670
407
  symbol: "DAI" | "EURC" | "PYUSD" | "USDC" | "USDT";
671
408
  tokenKey: string;
672
409
  verified: boolean;
673
410
  };
674
- readonly status: 'unknown';
675
411
  }[];
676
- export declare namespace listStaticRoutes {
677
- /** Options for listing static funding routes. */
412
+ export declare namespace listQuoteCandidates {
413
+ /** Options for selecting funding quote candidates. */
678
414
  type Options = {
679
415
  /** Optional Tempo destination token symbol, address, or token key. */
680
416
  destinationToken?: string | undefined;
681
- /** Maximum number of route candidates to return. */
682
- limit: number;
683
417
  /** Optional provider id filter. */
684
418
  provider?: string | undefined;
685
419
  /** Source amount as supplied by the caller. */
@@ -692,48 +426,30 @@ export declare namespace listStaticRoutes {
692
426
  sourceToken: string;
693
427
  };
694
428
  }
695
- export declare namespace listRoutes {
696
- /** Options for listing funding routes. */
697
- type Options = listStaticRoutes.Options & {
698
- /** Provider adapters used to enrich static inventory with live data. */
429
+ export declare namespace listQuotes {
430
+ /** Options for requesting live funding quotes. */
431
+ type Options = listQuoteCandidates.Options & {
432
+ /** Provider adapters used to request live quotes. */
699
433
  adapters?: ProviderAdapters | undefined;
700
434
  /** Per-provider quote timeout in milliseconds. */
701
435
  adapterTimeoutMs?: number | undefined;
702
- /** Cache policy for provider-side inventory, quote, and liquidity lookups. */
436
+ /** Cache policy for provider-side discovery and quote lookups. */
703
437
  cache?: CachePolicy | undefined;
704
- /** Response expansions requested by the caller. */
705
- include?: readonly Include[] | undefined;
706
438
  };
707
439
  }
708
- /** Provider capability identifiers accepted by the generic provider catalog. */
709
- export type Capability = 'fundingRoutes';
710
- /** Source amount unit accepted by the funding route request. */
440
+ /** Source amount unit accepted by the funding quote request. */
711
441
  export type SourceAmountUnits = 'baseUnits' | 'decimal';
712
442
  declare function formatChain(chain: SourceChainInput): {
713
- addressFormat: "evm" | "solana" | "tron";
714
- id: "eip155:1" | "eip155:56" | "eip155:8453" | "solana:mainnet" | "tron:mainnet";
715
- kind: "evm" | "solana" | "tron";
716
- name: "BNB Smart Chain" | "Base" | "Ethereum" | "Solana" | "Tron";
443
+ addressFormat: "evm";
444
+ id: "eip155:1" | "eip155:56" | "eip155:8453";
445
+ kind: "evm";
446
+ name: "BNB Smart Chain" | "Base" | "Ethereum";
717
447
  providerIds: {
718
- readonly bridge: 'ethereum';
719
- readonly bungee: '1';
720
- readonly lifi: '1';
721
448
  readonly relay: '1';
722
449
  } | {
723
- readonly bridge: 'base';
724
- readonly bungee: '8453';
725
- readonly lifi: '8453';
726
450
  readonly relay: '8453';
727
451
  } | {
728
- readonly bungee: '56';
729
- readonly lifi: '56';
730
452
  readonly relay: '56';
731
- } | {
732
- readonly bridge: 'solana';
733
- readonly relay: 'solana';
734
- } | {
735
- readonly bridge: 'tron';
736
- readonly relay: 'tron';
737
453
  };
738
454
  };
739
455
  declare function formatDestinationToken(token: DestinationTokenInput): {
@@ -746,7 +462,7 @@ declare function formatDestinationToken(token: DestinationTokenInput): {
746
462
  tokenKey: string;
747
463
  verified: boolean;
748
464
  };
749
- declare function formatRouteCandidate(options: {
465
+ declare function formatQuoteCandidate(options: {
750
466
  destinationToken: DestinationTokenInput;
751
467
  provider: ProviderInput;
752
468
  sourceAmount: ReturnType<typeof resolveSourceAmount>;
@@ -769,88 +485,129 @@ declare function formatRouteCandidate(options: {
769
485
  tokenKey: string;
770
486
  verified: boolean;
771
487
  };
772
- readonly errorCode: null;
773
488
  readonly id: string;
774
489
  readonly provider: {
775
- id: "bridge" | "bungee" | "lifi" | "relay";
776
- kind: "aggregator" | "enterpriseTransfer" | "solverNetwork";
777
- name: "Bridge.xyz" | "Bungee" | "LI.FI" | "Relay";
778
- requiresApiKey: boolean;
490
+ id: "relay";
491
+ kind: "solverNetwork";
492
+ name: "Relay";
493
+ requiresApiKey: false;
779
494
  };
780
- readonly quality: {
781
- readonly availableVolumeUsd: null;
782
- readonly estimatedSeconds: null;
783
- readonly feeBps: null;
784
- readonly historicalVolumeUsd24h: null;
785
- readonly instantVolumeUsd: null;
786
- readonly liquiditySource: 'staticInventory';
787
- readonly score: null;
788
- readonly sourceDetail: null;
789
- readonly tier: 'unknown';
790
- };
791
- readonly quote: null;
792
495
  readonly sourceAmount: {
793
496
  amount: string;
794
497
  formatted: string;
795
- usd: null;
796
498
  };
797
499
  readonly sourceChain: {
798
- addressFormat: "evm" | "solana" | "tron";
799
- id: "eip155:1" | "eip155:56" | "eip155:8453" | "solana:mainnet" | "tron:mainnet";
800
- kind: "evm" | "solana" | "tron";
801
- name: "BNB Smart Chain" | "Base" | "Ethereum" | "Solana" | "Tron";
500
+ addressFormat: "evm";
501
+ id: "eip155:1" | "eip155:56" | "eip155:8453";
502
+ kind: "evm";
503
+ name: "BNB Smart Chain" | "Base" | "Ethereum";
802
504
  providerIds: {
803
- readonly bridge: 'ethereum';
804
- readonly bungee: '1';
805
- readonly lifi: '1';
806
505
  readonly relay: '1';
807
506
  } | {
808
- readonly bridge: 'base';
809
- readonly bungee: '8453';
810
- readonly lifi: '8453';
811
507
  readonly relay: '8453';
812
508
  } | {
813
- readonly bungee: '56';
814
- readonly lifi: '56';
815
509
  readonly relay: '56';
816
- } | {
817
- readonly bridge: 'solana';
818
- readonly relay: 'solana';
819
- } | {
820
- readonly bridge: 'tron';
821
- readonly relay: 'tron';
822
510
  };
823
511
  };
824
512
  readonly sourceToken: {
825
- address: "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c" | "0x55d398326f99059ff775485246999027b3197955" | "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42" | "0x6b175474e89094c44da98b954eedeac495271d0f" | "0x6c3ea9036406852006290770bedfcaba0e23a0e8" | "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" | "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "0xdac17f958d2ee523a2206206994597c13d831ec7" | "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2" | "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" | "Es9vMFrzaCERmJfrF4H2FYD4KCo3LwC1uix9YEaQ8t1v" | "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";
513
+ address: "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c" | "0x55d398326f99059ff775485246999027b3197955" | "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42" | "0x6b175474e89094c44da98b954eedeac495271d0f" | "0x6c3ea9036406852006290770bedfcaba0e23a0e8" | "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" | "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "0xdac17f958d2ee523a2206206994597c13d831ec7" | "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2";
826
514
  decimals: 6 | 18;
827
515
  metadata: {
828
516
  coingeckoId: "dai" | "euro-coin" | "paypal-usd" | "tether" | "usd-coin";
829
517
  };
830
518
  name: "Binance-Peg USD Coin" | "Dai Stablecoin" | "Euro Coin" | "PayPal USD" | "Tether USD" | "USD Coin";
831
- standard: "BEP-20" | "ERC-20" | "SPL" | "TRC-20";
519
+ standard: "BEP-20" | "ERC-20";
832
520
  symbol: "DAI" | "EURC" | "PYUSD" | "USDC" | "USDT";
833
521
  tokenKey: string;
834
522
  verified: boolean;
835
523
  };
836
- readonly status: 'unknown';
837
524
  };
838
525
  declare function formatSourceToken(chain: SourceChainInput, token: TokenInput): {
839
- address: "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c" | "0x55d398326f99059ff775485246999027b3197955" | "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42" | "0x6b175474e89094c44da98b954eedeac495271d0f" | "0x6c3ea9036406852006290770bedfcaba0e23a0e8" | "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" | "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "0xdac17f958d2ee523a2206206994597c13d831ec7" | "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2" | "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" | "Es9vMFrzaCERmJfrF4H2FYD4KCo3LwC1uix9YEaQ8t1v" | "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t";
526
+ address: "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c" | "0x55d398326f99059ff775485246999027b3197955" | "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42" | "0x6b175474e89094c44da98b954eedeac495271d0f" | "0x6c3ea9036406852006290770bedfcaba0e23a0e8" | "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" | "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "0xdac17f958d2ee523a2206206994597c13d831ec7" | "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2";
840
527
  decimals: 6 | 18;
841
528
  metadata: {
842
529
  coingeckoId: "dai" | "euro-coin" | "paypal-usd" | "tether" | "usd-coin";
843
530
  };
844
531
  name: "Binance-Peg USD Coin" | "Dai Stablecoin" | "Euro Coin" | "PayPal USD" | "Tether USD" | "USD Coin";
845
- standard: "BEP-20" | "ERC-20" | "SPL" | "TRC-20";
532
+ standard: "BEP-20" | "ERC-20";
846
533
  symbol: "DAI" | "EURC" | "PYUSD" | "USDC" | "USDT";
847
534
  tokenKey: string;
848
535
  verified: boolean;
849
536
  };
537
+ type SuccessfulQuoteProbe = QuoteProbeResult & {
538
+ outputAmount: string;
539
+ status: 'available' | 'thin';
540
+ };
541
+ declare function formatFundingQuote(candidate: QuoteCandidate, quote: SuccessfulQuoteProbe): {
542
+ readonly destinationChain: {
543
+ readonly addressFormat: 'evm';
544
+ readonly id: 'eip155:4217';
545
+ readonly kind: 'evm';
546
+ readonly name: 'Tempo';
547
+ };
548
+ readonly destinationToken: {
549
+ address: "0x20c0000000000000000000000000000000000000" | "0x20c00000000000000000000014f22ca97301eb73" | "0x20c0000000000000000000001621e21f71cf12fb" | "0x20c0000000000000000000003554d28269e0f3c2" | "0x20c000000000000000000000b9537d11c60e8b50";
550
+ decimals: 6;
551
+ metadata: {};
552
+ name: "Bridged EURC" | "Bridged USDC (Stargate)" | "USDT0" | "frxUSD" | "pathUSD";
553
+ standard: "TIP-20";
554
+ symbol: "EURC.e" | "USDC.e" | "USDT0" | "frxUSD" | "pathUSD";
555
+ tokenKey: string;
556
+ verified: boolean;
557
+ };
558
+ readonly id: string;
559
+ readonly provider: {
560
+ id: "relay";
561
+ kind: "solverNetwork";
562
+ name: "Relay";
563
+ requiresApiKey: false;
564
+ };
565
+ readonly sourceAmount: {
566
+ amount: string;
567
+ formatted: string;
568
+ };
569
+ readonly sourceChain: {
570
+ addressFormat: "evm";
571
+ id: "eip155:1" | "eip155:56" | "eip155:8453";
572
+ kind: "evm";
573
+ name: "BNB Smart Chain" | "Base" | "Ethereum";
574
+ providerIds: {
575
+ readonly relay: '1';
576
+ } | {
577
+ readonly relay: '8453';
578
+ } | {
579
+ readonly relay: '56';
580
+ };
581
+ };
582
+ readonly sourceToken: {
583
+ address: "0x1abaea1f7c830bd89acc67ec4af516284b1bc33c" | "0x55d398326f99059ff775485246999027b3197955" | "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42" | "0x6b175474e89094c44da98b954eedeac495271d0f" | "0x6c3ea9036406852006290770bedfcaba0e23a0e8" | "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" | "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d" | "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" | "0xdac17f958d2ee523a2206206994597c13d831ec7" | "0xfde4c96c8593536e31f229ea8f37b2ada2699bb2";
584
+ decimals: 6 | 18;
585
+ metadata: {
586
+ coingeckoId: "dai" | "euro-coin" | "paypal-usd" | "tether" | "usd-coin";
587
+ };
588
+ name: "Binance-Peg USD Coin" | "Dai Stablecoin" | "Euro Coin" | "PayPal USD" | "Tether USD" | "USD Coin";
589
+ standard: "BEP-20" | "ERC-20";
590
+ symbol: "DAI" | "EURC" | "PYUSD" | "USDC" | "USDT";
591
+ tokenKey: string;
592
+ verified: boolean;
593
+ };
594
+ readonly quality: {
595
+ readonly estimatedSeconds?: number;
596
+ readonly liquiditySource: string;
597
+ readonly sourceDetail?: string;
598
+ readonly tier: "liquid" | "thin";
599
+ };
600
+ readonly quote: {
601
+ readonly inputAmount: string;
602
+ readonly minimumOutputAmount?: string;
603
+ readonly outputAmount: string;
604
+ readonly outputAmountFormatted: string;
605
+ readonly sampledAt: string;
606
+ };
607
+ };
850
608
  declare function resolveSourceAmount(options: resolveSourceAmount.Options): {
851
609
  amount: string;
852
610
  formatted: string;
853
- usd: null;
854
611
  };
855
612
  declare namespace resolveSourceAmount {
856
613
  type Options = {
@@ -867,16 +624,16 @@ export declare class UnsupportedDestinationTokenError extends Error {
867
624
  export declare class InvalidAmountError extends Error {
868
625
  name: string;
869
626
  }
870
- /** Error thrown internally when a provider adapter exceeds its route quote timeout. */
627
+ /** Error thrown internally when a provider adapter exceeds its quote timeout. */
871
628
  export declare class ProviderAdapterTimeoutError extends Error {
872
629
  name: string;
873
630
  }
874
- /** Error thrown when the caller filters to an unknown provider. */
875
- export declare class UnsupportedProviderError extends Error {
631
+ /** Error thrown when every matching provider fails to produce a quote. */
632
+ export declare class ProviderQuoteError extends Error {
876
633
  name: string;
877
634
  }
878
- /** Error thrown when the caller requests an unsupported include expansion. */
879
- export declare class UnsupportedIncludeError extends Error {
635
+ /** Error thrown when the caller filters to an unknown provider. */
636
+ export declare class UnsupportedProviderError extends Error {
880
637
  name: string;
881
638
  }
882
639
  /** Error thrown when the caller supplies an unsupported source chain. */
@@ -884,4 +641,4 @@ export declare class UnsupportedSourceChainError extends Error {
884
641
  name: string;
885
642
  }
886
643
  export {};
887
- //# sourceMappingURL=FundingRoutes.d.ts.map
644
+ //# sourceMappingURL=FundingQuotes.d.ts.map