tapimo 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts +2491 -2861
- package/dist/App.d.ts.map +1 -1
- package/dist/admin/apps/verified-tokens.d.ts +57 -57
- package/dist/apps/data/App.d.ts +2354 -2724
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/FundingRouteProviders.d.ts +3 -110
- package/dist/apps/data/FundingRouteProviders.d.ts.map +1 -1
- package/dist/apps/data/FundingRouteProviders.js +1 -302
- package/dist/apps/data/FundingRouteProviders.js.map +1 -1
- package/dist/apps/data/routes/exchanges.d.ts +455 -455
- package/dist/apps/data/routes/fee-amm.d.ts +92 -92
- package/dist/apps/data/routes/funding.d.ts +138 -730
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +7 -241
- package/dist/apps/data/routes/funding.js.map +1 -1
- package/dist/apps/data/routes/tokenlist.d.ts +12 -12
- package/dist/apps/data/routes/transactions.d.ts +281 -281
- package/dist/apps/data/routes/transfers.d.ts +58 -58
- package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
- package/dist/apps/management/App.d.ts +855 -855
- package/dist/apps/management/routes/api-keys.d.ts +40 -40
- package/dist/apps/management/routes/billing.d.ts +207 -207
- package/dist/apps/management/routes/me.d.ts +6 -6
- package/dist/apps/management/routes/members.d.ts +30 -30
- package/dist/apps/management/routes/orgs.d.ts +92 -92
- package/dist/apps/management/routes/projects.d.ts +28 -28
- package/dist/apps/management/routes/usage.d.ts +24 -24
- package/dist/apps/mcp.d.ts.map +1 -1
- package/dist/apps/mcp.js +3 -1
- package/dist/apps/mcp.js.map +1 -1
- package/dist/cloudflare.d.ts +2 -0
- package/dist/cloudflare.d.ts.map +1 -1
- package/dist/cloudflare.js +4 -0
- package/dist/cloudflare.js.map +1 -1
- package/dist/internal/Auth.d.ts +33 -22
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +40 -11
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/Errors.d.ts +6 -0
- package/dist/internal/Errors.d.ts.map +1 -0
- package/dist/internal/Errors.js +16 -0
- package/dist/internal/Errors.js.map +1 -0
- package/dist/internal/FundingRoutes.d.ts +15 -213
- package/dist/internal/FundingRoutes.d.ts.map +1 -1
- package/dist/internal/FundingRoutes.js +1 -72
- package/dist/internal/FundingRoutes.js.map +1 -1
- package/dist/internal/Store.d.ts +61 -16
- package/dist/internal/Store.d.ts.map +1 -1
- package/dist/internal/Store.js +72 -17
- package/dist/internal/Store.js.map +1 -1
- package/dist/internal/Viem.d.ts +1 -1
- package/dist/internal/index.d.ts +27 -0
- package/dist/internal/index.d.ts.map +1 -0
- package/dist/internal/index.js +27 -0
- package/dist/internal/index.js.map +1 -0
- package/package.json +8 -3
- package/src/App.test.ts +60 -4
- package/src/Client.test-d.ts +0 -47
- package/src/apps/data/FundingRouteProviders.test.ts +37 -297
- package/src/apps/data/FundingRouteProviders.ts +3 -435
- package/src/apps/data/routes/funding.test.ts +7 -109
- package/src/apps/data/routes/funding.ts +8 -323
- package/src/apps/data/routes/indexer.test.ts +2 -2
- package/src/apps/data/routes/webhooks.test.ts +2 -2
- package/src/apps/mcp.test.ts +55 -14
- package/src/apps/mcp.ts +3 -1
- package/src/cloudflare.ts +5 -0
- package/src/internal/Auth.test.ts +397 -16
- package/src/internal/Auth.ts +76 -32
- package/src/internal/FundingRoutes.test.ts +8 -34
- package/src/internal/FundingRoutes.ts +1 -174
- package/src/internal/Log.test.ts +4 -4
- package/src/internal/Store.test-d.ts +15 -0
- package/src/internal/Store.test.ts +153 -2
- package/src/internal/Store.ts +157 -41
- package/src/internal/index.test.ts +34 -0
- package/src/internal/index.ts +26 -0
|
@@ -76,116 +76,6 @@ export declare namespace schema {
|
|
|
76
76
|
outputAmountFormatted: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
77
77
|
sampledAt: z.ZodMiniISODateTime;
|
|
78
78
|
}, z.core.$strip>;
|
|
79
|
-
/** Token reference attached to a normalized quote fee. */
|
|
80
|
-
const QuoteFeeToken: z.ZodMiniObject<{
|
|
81
|
-
address: z.ZodMiniString<string>;
|
|
82
|
-
chainId: z.ZodMiniString<string>;
|
|
83
|
-
decimals: z.ZodMiniNumber<number>;
|
|
84
|
-
symbol: z.ZodMiniString<string>;
|
|
85
|
-
}, z.core.$strip>;
|
|
86
|
-
/** Normalized fee summary for an explicit funding quote. */
|
|
87
|
-
const QuoteFee: z.ZodMiniObject<{
|
|
88
|
-
amount: z.ZodMiniString<string>;
|
|
89
|
-
amountUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
90
|
-
bps: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
91
|
-
token: z.ZodMiniObject<{
|
|
92
|
-
address: z.ZodMiniString<string>;
|
|
93
|
-
chainId: z.ZodMiniString<string>;
|
|
94
|
-
decimals: z.ZodMiniNumber<number>;
|
|
95
|
-
symbol: z.ZodMiniString<string>;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
}, z.core.$strip>;
|
|
98
|
-
/** Explicit depositor-specific quote for one curated funding route. */
|
|
99
|
-
const FundingQuote: z.ZodMiniObject<{
|
|
100
|
-
destinationChain: z.ZodMiniObject<{
|
|
101
|
-
addressFormat: z.ZodMiniEnum<{
|
|
102
|
-
evm: "evm";
|
|
103
|
-
solana: "solana";
|
|
104
|
-
tron: "tron";
|
|
105
|
-
}>;
|
|
106
|
-
id: z.ZodMiniString<string>;
|
|
107
|
-
kind: z.ZodMiniEnum<{
|
|
108
|
-
evm: "evm";
|
|
109
|
-
solana: "solana";
|
|
110
|
-
tron: "tron";
|
|
111
|
-
}>;
|
|
112
|
-
name: z.ZodMiniString<string>;
|
|
113
|
-
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
114
|
-
}, z.core.$strip>;
|
|
115
|
-
destinationToken: z.ZodMiniObject<{
|
|
116
|
-
address: z.ZodMiniString<string>;
|
|
117
|
-
decimals: z.ZodMiniNumber<number>;
|
|
118
|
-
metadata: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
119
|
-
name: z.ZodMiniString<string>;
|
|
120
|
-
standard: z.ZodMiniString<string>;
|
|
121
|
-
symbol: z.ZodMiniString<string>;
|
|
122
|
-
tokenKey: z.ZodMiniString<string>;
|
|
123
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
124
|
-
}, z.core.$strip>;
|
|
125
|
-
estimatedSeconds: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
126
|
-
expiresAt: z.ZodMiniISODateTime;
|
|
127
|
-
fees: z.ZodMiniObject<{
|
|
128
|
-
total: z.ZodMiniObject<{
|
|
129
|
-
amount: z.ZodMiniString<string>;
|
|
130
|
-
amountUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
131
|
-
bps: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
132
|
-
token: z.ZodMiniObject<{
|
|
133
|
-
address: z.ZodMiniString<string>;
|
|
134
|
-
chainId: z.ZodMiniString<string>;
|
|
135
|
-
decimals: z.ZodMiniNumber<number>;
|
|
136
|
-
symbol: z.ZodMiniString<string>;
|
|
137
|
-
}, z.core.$strip>;
|
|
138
|
-
}, z.core.$strip>;
|
|
139
|
-
totalMax: z.ZodMiniObject<{
|
|
140
|
-
amount: z.ZodMiniString<string>;
|
|
141
|
-
amountUsd: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
142
|
-
bps: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
143
|
-
token: z.ZodMiniObject<{
|
|
144
|
-
address: z.ZodMiniString<string>;
|
|
145
|
-
chainId: z.ZodMiniString<string>;
|
|
146
|
-
decimals: z.ZodMiniNumber<number>;
|
|
147
|
-
symbol: z.ZodMiniString<string>;
|
|
148
|
-
}, z.core.$strip>;
|
|
149
|
-
}, z.core.$strip>;
|
|
150
|
-
}, z.core.$strip>;
|
|
151
|
-
inputAmount: z.ZodMiniString<string>;
|
|
152
|
-
minimumOutputAmount: z.ZodMiniString<string>;
|
|
153
|
-
outputAmount: z.ZodMiniString<string>;
|
|
154
|
-
outputAmountFormatted: z.ZodMiniString<string>;
|
|
155
|
-
provider: z.ZodMiniObject<{
|
|
156
|
-
id: z.ZodMiniString<string>;
|
|
157
|
-
kind: z.ZodMiniString<string>;
|
|
158
|
-
name: z.ZodMiniString<string>;
|
|
159
|
-
requiresApiKey: z.ZodMiniBoolean<boolean>;
|
|
160
|
-
}, z.core.$strip>;
|
|
161
|
-
routeId: z.ZodMiniString<string>;
|
|
162
|
-
sampledAt: z.ZodMiniISODateTime;
|
|
163
|
-
sourceChain: z.ZodMiniObject<{
|
|
164
|
-
addressFormat: z.ZodMiniEnum<{
|
|
165
|
-
evm: "evm";
|
|
166
|
-
solana: "solana";
|
|
167
|
-
tron: "tron";
|
|
168
|
-
}>;
|
|
169
|
-
id: z.ZodMiniString<string>;
|
|
170
|
-
kind: z.ZodMiniEnum<{
|
|
171
|
-
evm: "evm";
|
|
172
|
-
solana: "solana";
|
|
173
|
-
tron: "tron";
|
|
174
|
-
}>;
|
|
175
|
-
name: z.ZodMiniString<string>;
|
|
176
|
-
providerIds: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
177
|
-
}, z.core.$strip>;
|
|
178
|
-
sourceToken: z.ZodMiniObject<{
|
|
179
|
-
address: z.ZodMiniString<string>;
|
|
180
|
-
decimals: z.ZodMiniNumber<number>;
|
|
181
|
-
metadata: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
|
|
182
|
-
name: z.ZodMiniString<string>;
|
|
183
|
-
standard: z.ZodMiniString<string>;
|
|
184
|
-
symbol: z.ZodMiniString<string>;
|
|
185
|
-
tokenKey: z.ZodMiniString<string>;
|
|
186
|
-
verified: z.ZodMiniBoolean<boolean>;
|
|
187
|
-
}, z.core.$strip>;
|
|
188
|
-
}, z.core.$strip>;
|
|
189
79
|
/** Static or live funding route candidate. */
|
|
190
80
|
const RouteCandidate: z.ZodMiniObject<{
|
|
191
81
|
destinationChain: z.ZodMiniObject<{
|
|
@@ -452,114 +342,6 @@ export declare namespace schema {
|
|
|
452
342
|
}, z.core.$strip>>;
|
|
453
343
|
}, z.core.$strip>;
|
|
454
344
|
}
|
|
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
345
|
/** Schemas for the listFundingChains operation. */
|
|
564
346
|
namespace listFundingChains {
|
|
565
347
|
/** Non-paginated source-chain inventory. */
|
|
@@ -622,92 +404,9 @@ export declare namespace schema {
|
|
|
622
404
|
export declare function funding(options?: funding.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
623
405
|
"/v1/funding/routes": {
|
|
624
406
|
$get: {
|
|
625
|
-
output:
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
addressFormat: "evm" | "solana" | "tron";
|
|
629
|
-
id: string;
|
|
630
|
-
kind: "evm" | "solana" | "tron";
|
|
631
|
-
name: string;
|
|
632
|
-
providerIds?: {
|
|
633
|
-
[x: string]: string;
|
|
634
|
-
} | undefined;
|
|
635
|
-
};
|
|
636
|
-
destinationToken: {
|
|
637
|
-
address: string;
|
|
638
|
-
decimals: number;
|
|
639
|
-
metadata: {
|
|
640
|
-
[x: string]: string;
|
|
641
|
-
};
|
|
642
|
-
name: string;
|
|
643
|
-
standard: string;
|
|
644
|
-
symbol: string;
|
|
645
|
-
tokenKey: string;
|
|
646
|
-
verified: boolean;
|
|
647
|
-
};
|
|
648
|
-
errorCode: string | null;
|
|
649
|
-
id: string;
|
|
650
|
-
provider: {
|
|
651
|
-
id: string;
|
|
652
|
-
kind: string;
|
|
653
|
-
name: string;
|
|
654
|
-
requiresApiKey: boolean;
|
|
655
|
-
};
|
|
656
|
-
quality: {
|
|
657
|
-
availableVolumeUsd: string | null;
|
|
658
|
-
estimatedSeconds: number | null;
|
|
659
|
-
feeBps: number | null;
|
|
660
|
-
historicalVolumeUsd24h: string | null;
|
|
661
|
-
instantVolumeUsd: string | null;
|
|
662
|
-
liquiditySource: string;
|
|
663
|
-
score: number | null;
|
|
664
|
-
sourceDetail: string | null;
|
|
665
|
-
tier: "error" | "liquid" | "thin" | "unavailable" | "unknown";
|
|
666
|
-
};
|
|
667
|
-
quote: {
|
|
668
|
-
expiresAt: string | null;
|
|
669
|
-
inputAmount: string;
|
|
670
|
-
limits: {
|
|
671
|
-
instantSourceAmount: string | null;
|
|
672
|
-
maxSourceAmount: string | null;
|
|
673
|
-
minSourceAmount: string | null;
|
|
674
|
-
} | null;
|
|
675
|
-
minimumOutputAmount: string | null;
|
|
676
|
-
outputAmount: string | null;
|
|
677
|
-
outputAmountFormatted: string | null;
|
|
678
|
-
sampledAt: string;
|
|
679
|
-
} | null;
|
|
680
|
-
sourceAmount: {
|
|
681
|
-
amount: string;
|
|
682
|
-
formatted: string;
|
|
683
|
-
usd: string | null;
|
|
684
|
-
};
|
|
685
|
-
sourceChain: {
|
|
686
|
-
addressFormat: "evm" | "solana" | "tron";
|
|
687
|
-
id: string;
|
|
688
|
-
kind: "evm" | "solana" | "tron";
|
|
689
|
-
name: string;
|
|
690
|
-
providerIds?: {
|
|
691
|
-
[x: string]: string;
|
|
692
|
-
} | undefined;
|
|
693
|
-
};
|
|
694
|
-
sourceToken: {
|
|
695
|
-
address: string;
|
|
696
|
-
decimals: number;
|
|
697
|
-
metadata: {
|
|
698
|
-
[x: string]: string;
|
|
699
|
-
};
|
|
700
|
-
name: string;
|
|
701
|
-
standard: string;
|
|
702
|
-
symbol: string;
|
|
703
|
-
tokenKey: string;
|
|
704
|
-
verified: boolean;
|
|
705
|
-
};
|
|
706
|
-
status: "available" | "error" | "thin" | "unavailable" | "unknown";
|
|
707
|
-
}[];
|
|
708
|
-
};
|
|
709
|
-
outputFormat: "json";
|
|
710
|
-
status: 200;
|
|
407
|
+
output: null;
|
|
408
|
+
outputFormat: "body";
|
|
409
|
+
status: 402;
|
|
711
410
|
input: {
|
|
712
411
|
query: {
|
|
713
412
|
destinationToken?: string | string[];
|
|
@@ -746,14 +445,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
746
445
|
} | {
|
|
747
446
|
output: {
|
|
748
447
|
error: {
|
|
749
|
-
code: "
|
|
448
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
750
449
|
details?: readonly Response.error.Detail[] | undefined;
|
|
751
450
|
message: string;
|
|
752
451
|
};
|
|
753
452
|
requestId: string;
|
|
754
453
|
};
|
|
755
454
|
outputFormat: "json";
|
|
756
|
-
status:
|
|
455
|
+
status: 401;
|
|
757
456
|
input: {
|
|
758
457
|
query: {
|
|
759
458
|
destinationToken?: string | string[];
|
|
@@ -769,30 +468,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
769
468
|
} | {
|
|
770
469
|
output: {
|
|
771
470
|
error: {
|
|
772
|
-
code: "
|
|
471
|
+
code: "api_key_forbidden";
|
|
773
472
|
details?: readonly Response.error.Detail[] | undefined;
|
|
774
473
|
message: string;
|
|
775
474
|
};
|
|
776
475
|
requestId: string;
|
|
777
476
|
};
|
|
778
477
|
outputFormat: "json";
|
|
779
|
-
status:
|
|
780
|
-
input: {
|
|
781
|
-
query: {
|
|
782
|
-
destinationToken?: string | string[];
|
|
783
|
-
include?: string | string[];
|
|
784
|
-
limit?: string | string[];
|
|
785
|
-
provider?: string | string[];
|
|
786
|
-
sourceAmount: string | string[];
|
|
787
|
-
sourceAmountUnits?: string | string[];
|
|
788
|
-
sourceChain: string | string[];
|
|
789
|
-
sourceToken: string | string[];
|
|
790
|
-
};
|
|
791
|
-
};
|
|
792
|
-
} | {
|
|
793
|
-
output: null;
|
|
794
|
-
outputFormat: "body";
|
|
795
|
-
status: 402;
|
|
478
|
+
status: 403;
|
|
796
479
|
input: {
|
|
797
480
|
query: {
|
|
798
481
|
destinationToken?: string | string[];
|
|
@@ -808,14 +491,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
808
491
|
} | {
|
|
809
492
|
output: {
|
|
810
493
|
error: {
|
|
811
|
-
code: "
|
|
494
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
812
495
|
details?: readonly Response.error.Detail[] | undefined;
|
|
813
496
|
message: string;
|
|
814
497
|
};
|
|
815
498
|
requestId: string;
|
|
816
499
|
};
|
|
817
500
|
outputFormat: "json";
|
|
818
|
-
status:
|
|
501
|
+
status: 429;
|
|
819
502
|
input: {
|
|
820
503
|
query: {
|
|
821
504
|
destinationToken?: string | string[];
|
|
@@ -831,14 +514,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
831
514
|
} | {
|
|
832
515
|
output: {
|
|
833
516
|
error: {
|
|
834
|
-
code: "
|
|
517
|
+
code: "query_invalid";
|
|
835
518
|
details?: readonly Response.error.Detail[] | undefined;
|
|
836
519
|
message: string;
|
|
837
520
|
};
|
|
838
521
|
requestId: string;
|
|
839
522
|
};
|
|
840
523
|
outputFormat: "json";
|
|
841
|
-
status:
|
|
524
|
+
status: 400;
|
|
842
525
|
input: {
|
|
843
526
|
query: {
|
|
844
527
|
destinationToken?: string | string[];
|
|
@@ -851,107 +534,114 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
851
534
|
sourceToken: string | string[];
|
|
852
535
|
};
|
|
853
536
|
};
|
|
854
|
-
}
|
|
855
|
-
};
|
|
856
|
-
} & {
|
|
857
|
-
"/v1/funding/routes/quote": {
|
|
858
|
-
$post: {
|
|
537
|
+
} | {
|
|
859
538
|
output: {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
destinationToken: {
|
|
870
|
-
address: string;
|
|
871
|
-
decimals: number;
|
|
872
|
-
metadata: {
|
|
873
|
-
[x: string]: string;
|
|
539
|
+
data: {
|
|
540
|
+
destinationChain: {
|
|
541
|
+
addressFormat: "evm" | "solana" | "tron";
|
|
542
|
+
id: string;
|
|
543
|
+
kind: "evm" | "solana" | "tron";
|
|
544
|
+
name: string;
|
|
545
|
+
providerIds?: {
|
|
546
|
+
[x: string]: string;
|
|
547
|
+
} | undefined;
|
|
874
548
|
};
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
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;
|
|
549
|
+
destinationToken: {
|
|
550
|
+
address: string;
|
|
551
|
+
decimals: number;
|
|
552
|
+
metadata: {
|
|
553
|
+
[x: string]: string;
|
|
893
554
|
};
|
|
555
|
+
name: string;
|
|
556
|
+
standard: string;
|
|
557
|
+
symbol: string;
|
|
558
|
+
tokenKey: string;
|
|
559
|
+
verified: boolean;
|
|
560
|
+
};
|
|
561
|
+
errorCode: string | null;
|
|
562
|
+
id: string;
|
|
563
|
+
provider: {
|
|
564
|
+
id: string;
|
|
565
|
+
kind: string;
|
|
566
|
+
name: string;
|
|
567
|
+
requiresApiKey: boolean;
|
|
568
|
+
};
|
|
569
|
+
quality: {
|
|
570
|
+
availableVolumeUsd: string | null;
|
|
571
|
+
estimatedSeconds: number | null;
|
|
572
|
+
feeBps: number | null;
|
|
573
|
+
historicalVolumeUsd24h: string | null;
|
|
574
|
+
instantVolumeUsd: string | null;
|
|
575
|
+
liquiditySource: string;
|
|
576
|
+
score: number | null;
|
|
577
|
+
sourceDetail: string | null;
|
|
578
|
+
tier: "error" | "liquid" | "thin" | "unavailable" | "unknown";
|
|
894
579
|
};
|
|
895
|
-
|
|
580
|
+
quote: {
|
|
581
|
+
expiresAt: string | null;
|
|
582
|
+
inputAmount: string;
|
|
583
|
+
limits: {
|
|
584
|
+
instantSourceAmount: string | null;
|
|
585
|
+
maxSourceAmount: string | null;
|
|
586
|
+
minSourceAmount: string | null;
|
|
587
|
+
} | null;
|
|
588
|
+
minimumOutputAmount: string | null;
|
|
589
|
+
outputAmount: string | null;
|
|
590
|
+
outputAmountFormatted: string | null;
|
|
591
|
+
sampledAt: string;
|
|
592
|
+
} | null;
|
|
593
|
+
sourceAmount: {
|
|
896
594
|
amount: string;
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
token: {
|
|
900
|
-
address: string;
|
|
901
|
-
chainId: string;
|
|
902
|
-
decimals: number;
|
|
903
|
-
symbol: string;
|
|
904
|
-
};
|
|
595
|
+
formatted: string;
|
|
596
|
+
usd: string | null;
|
|
905
597
|
};
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
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;
|
|
598
|
+
sourceChain: {
|
|
599
|
+
addressFormat: "evm" | "solana" | "tron";
|
|
600
|
+
id: string;
|
|
601
|
+
kind: "evm" | "solana" | "tron";
|
|
602
|
+
name: string;
|
|
603
|
+
providerIds?: {
|
|
604
|
+
[x: string]: string;
|
|
605
|
+
} | undefined;
|
|
933
606
|
};
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
607
|
+
sourceToken: {
|
|
608
|
+
address: string;
|
|
609
|
+
decimals: number;
|
|
610
|
+
metadata: {
|
|
611
|
+
[x: string]: string;
|
|
612
|
+
};
|
|
613
|
+
name: string;
|
|
614
|
+
standard: string;
|
|
615
|
+
symbol: string;
|
|
616
|
+
tokenKey: string;
|
|
617
|
+
verified: boolean;
|
|
618
|
+
};
|
|
619
|
+
status: "available" | "error" | "thin" | "unavailable" | "unknown";
|
|
620
|
+
}[];
|
|
940
621
|
};
|
|
941
622
|
outputFormat: "json";
|
|
942
623
|
status: 200;
|
|
943
624
|
input: {
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
sourceAmount: string;
|
|
950
|
-
sourceAmountUnits?:
|
|
951
|
-
sourceChain: string;
|
|
952
|
-
sourceToken: string;
|
|
625
|
+
query: {
|
|
626
|
+
destinationToken?: string | string[];
|
|
627
|
+
include?: string | string[];
|
|
628
|
+
limit?: string | string[];
|
|
629
|
+
provider?: string | string[];
|
|
630
|
+
sourceAmount: string | string[];
|
|
631
|
+
sourceAmountUnits?: string | string[];
|
|
632
|
+
sourceChain: string | string[];
|
|
633
|
+
sourceToken: string | string[];
|
|
953
634
|
};
|
|
954
635
|
};
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
} & {
|
|
639
|
+
"/v1/funding/chains": {
|
|
640
|
+
$get: {
|
|
641
|
+
output: null;
|
|
642
|
+
outputFormat: "body";
|
|
643
|
+
status: 402;
|
|
644
|
+
input: {};
|
|
955
645
|
} | {
|
|
956
646
|
output: {
|
|
957
647
|
error: {
|
|
@@ -963,41 +653,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
963
653
|
};
|
|
964
654
|
outputFormat: "json";
|
|
965
655
|
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
|
-
};
|
|
656
|
+
input: {};
|
|
1001
657
|
} | {
|
|
1002
658
|
output: {
|
|
1003
659
|
error: {
|
|
@@ -1009,34 +665,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
1009
665
|
};
|
|
1010
666
|
outputFormat: "json";
|
|
1011
667
|
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
|
-
};
|
|
668
|
+
input: {};
|
|
1040
669
|
} | {
|
|
1041
670
|
output: {
|
|
1042
671
|
error: {
|
|
@@ -1048,64 +677,7 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
1048
677
|
};
|
|
1049
678
|
outputFormat: "json";
|
|
1050
679
|
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
|
-
};
|
|
680
|
+
input: {};
|
|
1109
681
|
} | {
|
|
1110
682
|
output: {
|
|
1111
683
|
error: {
|
|
@@ -1117,115 +689,8 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
1117
689
|
};
|
|
1118
690
|
outputFormat: "json";
|
|
1119
691
|
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
|
-
} | {
|
|
1133
|
-
output: {
|
|
1134
|
-
error: {
|
|
1135
|
-
code: "provider_unconfigured";
|
|
1136
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1137
|
-
message: string;
|
|
1138
|
-
};
|
|
1139
|
-
requestId: string;
|
|
1140
|
-
};
|
|
1141
|
-
outputFormat: "json";
|
|
1142
|
-
status: 501;
|
|
1143
|
-
input: {
|
|
1144
|
-
json: {
|
|
1145
|
-
depositor: `0x${string}`;
|
|
1146
|
-
destinationToken?: string | undefined;
|
|
1147
|
-
provider: "across";
|
|
1148
|
-
recipient?: `0x${string}` | undefined;
|
|
1149
|
-
sourceAmount: string;
|
|
1150
|
-
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1151
|
-
sourceChain: string;
|
|
1152
|
-
sourceToken: string;
|
|
1153
|
-
};
|
|
1154
|
-
};
|
|
1155
|
-
} | {
|
|
1156
|
-
output: {
|
|
1157
|
-
error: {
|
|
1158
|
-
code: "provider_rate_limited";
|
|
1159
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1160
|
-
message: string;
|
|
1161
|
-
};
|
|
1162
|
-
requestId: string;
|
|
1163
|
-
};
|
|
1164
|
-
outputFormat: "json";
|
|
1165
|
-
status: 502;
|
|
1166
|
-
input: {
|
|
1167
|
-
json: {
|
|
1168
|
-
depositor: `0x${string}`;
|
|
1169
|
-
destinationToken?: string | undefined;
|
|
1170
|
-
provider: "across";
|
|
1171
|
-
recipient?: `0x${string}` | undefined;
|
|
1172
|
-
sourceAmount: string;
|
|
1173
|
-
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1174
|
-
sourceChain: string;
|
|
1175
|
-
sourceToken: string;
|
|
1176
|
-
};
|
|
1177
|
-
};
|
|
1178
|
-
} | {
|
|
1179
|
-
output: {
|
|
1180
|
-
error: {
|
|
1181
|
-
code: "provider_timeout";
|
|
1182
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1183
|
-
message: string;
|
|
1184
|
-
};
|
|
1185
|
-
requestId: string;
|
|
1186
|
-
};
|
|
1187
|
-
outputFormat: "json";
|
|
1188
|
-
status: 502;
|
|
1189
|
-
input: {
|
|
1190
|
-
json: {
|
|
1191
|
-
depositor: `0x${string}`;
|
|
1192
|
-
destinationToken?: string | undefined;
|
|
1193
|
-
provider: "across";
|
|
1194
|
-
recipient?: `0x${string}` | undefined;
|
|
1195
|
-
sourceAmount: string;
|
|
1196
|
-
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1197
|
-
sourceChain: string;
|
|
1198
|
-
sourceToken: string;
|
|
1199
|
-
};
|
|
1200
|
-
};
|
|
692
|
+
input: {};
|
|
1201
693
|
} | {
|
|
1202
|
-
output: {
|
|
1203
|
-
error: {
|
|
1204
|
-
code: "provider_error";
|
|
1205
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1206
|
-
message: string;
|
|
1207
|
-
};
|
|
1208
|
-
requestId: string;
|
|
1209
|
-
};
|
|
1210
|
-
outputFormat: "json";
|
|
1211
|
-
status: 502;
|
|
1212
|
-
input: {
|
|
1213
|
-
json: {
|
|
1214
|
-
depositor: `0x${string}`;
|
|
1215
|
-
destinationToken?: string | undefined;
|
|
1216
|
-
provider: "across";
|
|
1217
|
-
recipient?: `0x${string}` | undefined;
|
|
1218
|
-
sourceAmount: string;
|
|
1219
|
-
sourceAmountUnits?: "baseUnits" | "decimal" | undefined;
|
|
1220
|
-
sourceChain: string;
|
|
1221
|
-
sourceToken: string;
|
|
1222
|
-
};
|
|
1223
|
-
};
|
|
1224
|
-
};
|
|
1225
|
-
};
|
|
1226
|
-
} & {
|
|
1227
|
-
"/v1/funding/chains": {
|
|
1228
|
-
$get: {
|
|
1229
694
|
output: {
|
|
1230
695
|
data: {
|
|
1231
696
|
addressFormat: "evm" | "solana" | "tron";
|
|
@@ -1252,76 +717,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
1252
717
|
outputFormat: "json";
|
|
1253
718
|
status: 200;
|
|
1254
719
|
input: {};
|
|
1255
|
-
} | {
|
|
1256
|
-
output: {
|
|
1257
|
-
error: {
|
|
1258
|
-
code: "api_key_malformed";
|
|
1259
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1260
|
-
message: string;
|
|
1261
|
-
};
|
|
1262
|
-
requestId: string;
|
|
1263
|
-
};
|
|
1264
|
-
outputFormat: "json";
|
|
1265
|
-
status: 400;
|
|
1266
|
-
input: {};
|
|
1267
|
-
} | {
|
|
1268
|
-
output: {
|
|
1269
|
-
error: {
|
|
1270
|
-
code: "api_key_invalid" | "api_key_missing";
|
|
1271
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1272
|
-
message: string;
|
|
1273
|
-
};
|
|
1274
|
-
requestId: string;
|
|
1275
|
-
};
|
|
1276
|
-
outputFormat: "json";
|
|
1277
|
-
status: 401;
|
|
1278
|
-
input: {};
|
|
1279
|
-
} | {
|
|
1280
|
-
output: null;
|
|
1281
|
-
outputFormat: "body";
|
|
1282
|
-
status: 402;
|
|
1283
|
-
input: {};
|
|
1284
|
-
} | {
|
|
1285
|
-
output: {
|
|
1286
|
-
error: {
|
|
1287
|
-
code: "api_key_forbidden";
|
|
1288
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1289
|
-
message: string;
|
|
1290
|
-
};
|
|
1291
|
-
requestId: string;
|
|
1292
|
-
};
|
|
1293
|
-
outputFormat: "json";
|
|
1294
|
-
status: 403;
|
|
1295
|
-
input: {};
|
|
1296
|
-
} | {
|
|
1297
|
-
output: {
|
|
1298
|
-
error: {
|
|
1299
|
-
code: "payment_required" | "rate_limit_exceeded";
|
|
1300
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1301
|
-
message: string;
|
|
1302
|
-
};
|
|
1303
|
-
requestId: string;
|
|
1304
|
-
};
|
|
1305
|
-
outputFormat: "json";
|
|
1306
|
-
status: 429;
|
|
1307
|
-
input: {};
|
|
1308
720
|
};
|
|
1309
721
|
};
|
|
1310
722
|
} & {
|
|
1311
723
|
"/v1/providers": {
|
|
1312
724
|
$get: {
|
|
1313
|
-
output:
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
id: string;
|
|
1317
|
-
kind: string;
|
|
1318
|
-
name: string;
|
|
1319
|
-
requiresApiKey: boolean;
|
|
1320
|
-
status: "configured" | "inventoryOnly" | "planned";
|
|
1321
|
-
}[];
|
|
1322
|
-
};
|
|
1323
|
-
outputFormat: "json";
|
|
1324
|
-
status: 200;
|
|
725
|
+
output: null;
|
|
726
|
+
outputFormat: "body";
|
|
727
|
+
status: 402;
|
|
1325
728
|
input: {
|
|
1326
729
|
query?: {
|
|
1327
730
|
capability?: string | string[];
|
|
@@ -1346,14 +749,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
1346
749
|
} | {
|
|
1347
750
|
output: {
|
|
1348
751
|
error: {
|
|
1349
|
-
code: "
|
|
752
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1350
753
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1351
754
|
message: string;
|
|
1352
755
|
};
|
|
1353
756
|
requestId: string;
|
|
1354
757
|
};
|
|
1355
758
|
outputFormat: "json";
|
|
1356
|
-
status:
|
|
759
|
+
status: 401;
|
|
1357
760
|
input: {
|
|
1358
761
|
query?: {
|
|
1359
762
|
capability?: string | string[];
|
|
@@ -1362,23 +765,30 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
1362
765
|
} | {
|
|
1363
766
|
output: {
|
|
1364
767
|
error: {
|
|
1365
|
-
code: "
|
|
768
|
+
code: "api_key_forbidden";
|
|
1366
769
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1367
770
|
message: string;
|
|
1368
771
|
};
|
|
1369
772
|
requestId: string;
|
|
1370
773
|
};
|
|
1371
774
|
outputFormat: "json";
|
|
1372
|
-
status:
|
|
775
|
+
status: 403;
|
|
1373
776
|
input: {
|
|
1374
777
|
query?: {
|
|
1375
778
|
capability?: string | string[];
|
|
1376
779
|
} | undefined;
|
|
1377
780
|
};
|
|
1378
781
|
} | {
|
|
1379
|
-
output:
|
|
1380
|
-
|
|
1381
|
-
|
|
782
|
+
output: {
|
|
783
|
+
error: {
|
|
784
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
785
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
786
|
+
message: string;
|
|
787
|
+
};
|
|
788
|
+
requestId: string;
|
|
789
|
+
};
|
|
790
|
+
outputFormat: "json";
|
|
791
|
+
status: 429;
|
|
1382
792
|
input: {
|
|
1383
793
|
query?: {
|
|
1384
794
|
capability?: string | string[];
|
|
@@ -1387,14 +797,14 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
1387
797
|
} | {
|
|
1388
798
|
output: {
|
|
1389
799
|
error: {
|
|
1390
|
-
code: "
|
|
800
|
+
code: "query_invalid";
|
|
1391
801
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1392
802
|
message: string;
|
|
1393
803
|
};
|
|
1394
804
|
requestId: string;
|
|
1395
805
|
};
|
|
1396
806
|
outputFormat: "json";
|
|
1397
|
-
status:
|
|
807
|
+
status: 400;
|
|
1398
808
|
input: {
|
|
1399
809
|
query?: {
|
|
1400
810
|
capability?: string | string[];
|
|
@@ -1402,15 +812,17 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
1402
812
|
};
|
|
1403
813
|
} | {
|
|
1404
814
|
output: {
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
815
|
+
data: {
|
|
816
|
+
capabilities: "fundingRoutes"[];
|
|
817
|
+
id: string;
|
|
818
|
+
kind: string;
|
|
819
|
+
name: string;
|
|
820
|
+
requiresApiKey: boolean;
|
|
821
|
+
status: "configured" | "inventoryOnly" | "planned";
|
|
822
|
+
}[];
|
|
1411
823
|
};
|
|
1412
824
|
outputFormat: "json";
|
|
1413
|
-
status:
|
|
825
|
+
status: 200;
|
|
1414
826
|
input: {
|
|
1415
827
|
query?: {
|
|
1416
828
|
capability?: string | string[];
|
|
@@ -1422,14 +834,10 @@ export declare function funding(options?: funding.Options): import("hono/hono-ba
|
|
|
1422
834
|
export declare namespace funding {
|
|
1423
835
|
/** Options for funding route discovery. */
|
|
1424
836
|
type Options = {
|
|
1425
|
-
/** Across explicit quote capability. */
|
|
1426
|
-
acrossQuote?: FundingRoutes.ProviderQuote | undefined;
|
|
1427
837
|
/** Provider adapters used to enrich static inventory with live data. */
|
|
1428
838
|
adapters?: FundingRoutes.ProviderAdapters | undefined;
|
|
1429
839
|
/** Per-provider quote timeout in milliseconds. */
|
|
1430
840
|
adapterTimeoutMs?: number | undefined;
|
|
1431
|
-
/** Timeout for depositor-specific provider quotes. */
|
|
1432
|
-
quoteTimeoutMs?: number | undefined;
|
|
1433
841
|
};
|
|
1434
842
|
}
|
|
1435
843
|
//# sourceMappingURL=funding.d.ts.map
|