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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../src/apps/data/App.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM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AC5B,wCAAwC;IACxC,KAAK,OAAO,GAAG;QACb,oJAAoJ;QACpJ,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,SAAS,CAAA;QAClC,+DAA+D;QAC/D,cAAc,CAAC,EAAE,IAAI,CAAC,OAAO,GAAG,SAAS,CAAA;QACzC,yFAAyF;QACzF,aAAa,CAAC,EAAE,OAAO,CAAC,OAAO,GAAG,SAAS,CAAA;QAC3C,+IAA+I;QAC/I,GAAG,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,SAAS,CAAA;QACpC,2JAA2J;QAC3J,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAA;QACjD,iCAAiC;QACjC,IAAI,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,GAAG,SAAS,CAAA;QACtC,sKAAsK;QACtK,cAAc,CAAC,EAAE,cAAc,GAAG,KAAK,GAAG,SAAS,CAAA;QACnD,4LAA4L;QAC5L,OAAO,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA;KACtC,CAAA;IAED,4CAA4C;IAC5C,KAAK,cAAc,GAAG;QACpB;;;;WAIG;QACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAC/B,CAAA;IAED,qCAAqC;IACrC,KAAK,OAAO,GAAG;QACb;;;;WAIG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KACjC,CAAA;CACF"}
|
|
@@ -2,94 +2,17 @@ import * as FundingRoutes from '../../internal/FundingRoutes.js';
|
|
|
2
2
|
type Fetch = typeof globalThis.fetch;
|
|
3
3
|
/** Creates the live funding route adapters configured for this deployment. */
|
|
4
4
|
export declare function createAdapters(options?: createAdapters.Options): {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
relay: FundingRoutes.ProviderAdapter;
|
|
6
|
+
} | {
|
|
7
|
+
relay?: never;
|
|
7
8
|
};
|
|
8
9
|
export declare namespace createAdapters {
|
|
9
10
|
/** Provider adapter factory options. Omit a provider to keep its routes static. */
|
|
10
11
|
type Options = {
|
|
11
|
-
/** Across discovery adapter options. */
|
|
12
|
-
across?: across.Options | false | undefined;
|
|
13
12
|
/** Relay quote adapter options. */
|
|
14
13
|
relay?: relay.Options | false | undefined;
|
|
15
14
|
};
|
|
16
15
|
}
|
|
17
|
-
/** Creates an Across discovery adapter backed by `/suggested-fees`. */
|
|
18
|
-
export declare function across(options: across.Options): FundingRoutes.ProviderAdapter;
|
|
19
|
-
/** Builds the authenticated Across `/swap/approval` request for an exact-input quote. */
|
|
20
|
-
export declare function createAcrossQuoteRequest(options: createAcrossQuoteRequest.Options): {
|
|
21
|
-
headers: {
|
|
22
|
-
Authorization: string;
|
|
23
|
-
};
|
|
24
|
-
url: URL;
|
|
25
|
-
};
|
|
26
|
-
export declare namespace createAcrossQuoteRequest {
|
|
27
|
-
/** Inputs required to construct an Across exact-input quote request. */
|
|
28
|
-
type Options = {
|
|
29
|
-
/** Across API key sent as a bearer token. */
|
|
30
|
-
apiKey: string;
|
|
31
|
-
/** Optional Across API base URL. */
|
|
32
|
-
baseUrl?: string | undefined;
|
|
33
|
-
/** Address that would submit the source transaction. */
|
|
34
|
-
depositor: string;
|
|
35
|
-
/** Across integrator id sent as the required query parameter. */
|
|
36
|
-
integratorId: string;
|
|
37
|
-
/** Optional destination recipient. */
|
|
38
|
-
recipient?: string | undefined;
|
|
39
|
-
/** Curated route selected for the quote. */
|
|
40
|
-
route: FundingRoutes.RouteCandidate;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
/** Creates an explicit Across quote adapter backed by `/swap/approval`. */
|
|
44
|
-
export declare function acrossQuote(options: acrossQuote.Options): FundingRoutes.ProviderQuote;
|
|
45
|
-
export declare namespace acrossQuote {
|
|
46
|
-
/** Across Swap API adapter options. */
|
|
47
|
-
type Options = {
|
|
48
|
-
/** Across API key sent as a bearer token. */
|
|
49
|
-
apiKey: string;
|
|
50
|
-
/** Optional Across API base URL. */
|
|
51
|
-
baseUrl?: string | undefined;
|
|
52
|
-
/** Across integrator id sent as the required query parameter. */
|
|
53
|
-
integratorId: string;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
/** Returns bounded Across quote failure details suitable for structured request logs. */
|
|
57
|
-
export declare function acrossQuoteFailure(options: acrossQuoteFailure.Options): acrossQuoteFailure.Result;
|
|
58
|
-
export declare namespace acrossQuoteFailure {
|
|
59
|
-
/** Inputs used to classify an Across quote failure. */
|
|
60
|
-
type Options = {
|
|
61
|
-
/** Error thrown by the Across quote boundary. */
|
|
62
|
-
cause: unknown;
|
|
63
|
-
};
|
|
64
|
-
/** Bounded diagnostic fields, or undefined when the thrown value is not an error. */
|
|
65
|
-
type Result = {
|
|
66
|
-
/** Stable provider error code, when one is safe to retain. */
|
|
67
|
-
code?: string | undefined;
|
|
68
|
-
/** Failure boundary that rejected the provider request. */
|
|
69
|
-
failure: 'http' | 'network' | 'payload' | 'unknown';
|
|
70
|
-
/** Provider identifier. */
|
|
71
|
-
id: 'across';
|
|
72
|
-
/** Across operation identifier. */
|
|
73
|
-
operation: 'swap/approval';
|
|
74
|
-
/** Upstream HTTP status, when a response was received. */
|
|
75
|
-
status?: number | undefined;
|
|
76
|
-
} | undefined;
|
|
77
|
-
}
|
|
78
|
-
export declare namespace across {
|
|
79
|
-
/** Across API adapter options. */
|
|
80
|
-
type Options = {
|
|
81
|
-
/** Override for tests or non-production Across environments. */
|
|
82
|
-
baseUrl?: string | undefined;
|
|
83
|
-
/** Fetch implementation override for tests. */
|
|
84
|
-
fetch?: Fetch | undefined;
|
|
85
|
-
/** Across API key sent as a bearer token. */
|
|
86
|
-
apiKey: string;
|
|
87
|
-
/** Across integrator id sent as the required query parameter. */
|
|
88
|
-
integratorId: string;
|
|
89
|
-
/** Clock override for deterministic tests. */
|
|
90
|
-
now?: (() => Date) | undefined;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
16
|
/** Creates a Relay quote adapter backed by `/chains/liquidity` and `/quote/v2`. */
|
|
94
17
|
export declare function relay(options: relay.Options): FundingRoutes.ProviderAdapter;
|
|
95
18
|
export declare namespace relay {
|
|
@@ -109,35 +32,5 @@ export declare namespace relay {
|
|
|
109
32
|
now?: (() => Date) | undefined;
|
|
110
33
|
};
|
|
111
34
|
}
|
|
112
|
-
/** Maps an Across HTTP error into the stable funding-provider error contract. */
|
|
113
|
-
export declare function mapAcrossQuoteError(options: mapAcrossQuoteError.Options): FundingRoutes.ProviderQuoteUnavailableError | FundingRoutes.ProviderRateLimitError | ProviderResponseError;
|
|
114
|
-
export declare namespace mapAcrossQuoteError {
|
|
115
|
-
/** Across HTTP error response to classify. */
|
|
116
|
-
type Options = {
|
|
117
|
-
/** Parsed response body returned by Across. */
|
|
118
|
-
body: unknown;
|
|
119
|
-
/** Across HTTP response status. */
|
|
120
|
-
status: number;
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
/** Validates and normalizes an Across quote payload against its curated route. */
|
|
124
|
-
export declare function parseAcrossQuote(options: parseAcrossQuote.Options): FundingRoutes.ProviderQuoteResult;
|
|
125
|
-
export declare namespace parseAcrossQuote {
|
|
126
|
-
/** Inputs required to validate and normalize an Across quote payload. */
|
|
127
|
-
type Options = {
|
|
128
|
-
/** Untrusted JSON body returned by Across. */
|
|
129
|
-
body: unknown;
|
|
130
|
-
/** Timestamp when Tempo sampled the response. */
|
|
131
|
-
now: Date;
|
|
132
|
-
/** Curated route the response must match. */
|
|
133
|
-
route: FundingRoutes.RouteCandidate;
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
declare class ProviderResponseError extends Error {
|
|
137
|
-
readonly status: number;
|
|
138
|
-
readonly body: unknown;
|
|
139
|
-
name: string;
|
|
140
|
-
constructor(status: number, body: unknown);
|
|
141
|
-
}
|
|
142
35
|
export {};
|
|
143
36
|
//# sourceMappingURL=FundingRouteProviders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FundingRouteProviders.d.ts","sourceRoot":"","sources":["../../../src/apps/data/FundingRouteProviders.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FundingRouteProviders.d.ts","sourceRoot":"","sources":["../../../src/apps/data/FundingRouteProviders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,iCAAiC,CAAA;AAEhE,KAAK,KAAK,GAAG,OAAO,UAAU,CAAC,KAAK,CAAA;AAMpC,8EAA8E;AAC9E,wBAAgB,cAAc,CAAC,OAAO,GAAE,cAAc,CAAC,OAAY;;;;EAIlE;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,mFAAmF;IACnF,KAAK,OAAO,GAAG;QACb,mCAAmC;QACnC,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA;KAC1C,CAAA;CACF;AAED,mFAAmF;AACnF,wBAAgB,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,OAAO,GAAG,aAAa,CAAC,eAAe,CAkD3E;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,mCAAmC;IACnC,KAAK,OAAO,GAAG;QACb,0DAA0D;QAC1D,WAAW,EAAE,MAAM,CAAA;QACnB,8DAA8D;QAC9D,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QACrC,qDAAqD;QACrD,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QAC3B,wDAAwD;QACxD,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QAC5B,+CAA+C;QAC/C,KAAK,CAAC,EAAE,KAAK,GAAG,SAAS,CAAA;QACzB,8CAA8C;QAC9C,GAAG,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;KAC/B,CAAA;CACF"}
|
|
@@ -1,157 +1,9 @@
|
|
|
1
|
-
import * as z from 'zod/mini';
|
|
2
1
|
import * as FundingRoutes from '../../internal/FundingRoutes.js';
|
|
3
2
|
const defaultFetch = (input, init) => globalThis.fetch(input, init);
|
|
4
|
-
const defaultAcrossBaseUrl = 'https://app.across.to/api';
|
|
5
3
|
const defaultRelayBaseUrl = 'https://api.relay.link';
|
|
6
|
-
var schema;
|
|
7
|
-
(function (schema) {
|
|
8
|
-
const DecimalString = z.string().check(z.regex(/^\d+(\.\d+)?$/));
|
|
9
|
-
const IntegerString = z.string().check(z.regex(/^\d+$/));
|
|
10
|
-
const AcrossToken = z.object({
|
|
11
|
-
address: z.string(),
|
|
12
|
-
chainId: z.number().check(z.int(), z.nonnegative()),
|
|
13
|
-
decimals: z.number().check(z.int(), z.nonnegative()),
|
|
14
|
-
symbol: z.string(),
|
|
15
|
-
});
|
|
16
|
-
const AcrossFee = z.object({
|
|
17
|
-
amount: IntegerString,
|
|
18
|
-
amountUsd: DecimalString,
|
|
19
|
-
pct: IntegerString,
|
|
20
|
-
token: AcrossToken,
|
|
21
|
-
});
|
|
22
|
-
schema.AcrossQuote = z.object({
|
|
23
|
-
amountType: z.literal('exactInput'),
|
|
24
|
-
expectedFillTime: z.number().check(z.int(), z.nonnegative()),
|
|
25
|
-
expectedOutputAmount: IntegerString,
|
|
26
|
-
fees: z.object({
|
|
27
|
-
total: AcrossFee,
|
|
28
|
-
totalMax: AcrossFee,
|
|
29
|
-
}),
|
|
30
|
-
inputAmount: IntegerString,
|
|
31
|
-
inputToken: AcrossToken,
|
|
32
|
-
minOutputAmount: IntegerString,
|
|
33
|
-
outputToken: AcrossToken,
|
|
34
|
-
quoteExpiryTimestamp: z.number().check(z.int(), z.nonnegative()),
|
|
35
|
-
});
|
|
36
|
-
})(schema || (schema = {}));
|
|
37
4
|
/** Creates the live funding route adapters configured for this deployment. */
|
|
38
5
|
export function createAdapters(options = {}) {
|
|
39
|
-
return {
|
|
40
|
-
...(options.across ? { across: across(options.across) } : {}),
|
|
41
|
-
...(options.relay ? { relay: relay(options.relay) } : {}),
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
/** Creates an Across discovery adapter backed by `/suggested-fees`. */
|
|
45
|
-
export function across(options) {
|
|
46
|
-
const baseUrl = normalizeBaseUrl(options.baseUrl ?? defaultAcrossBaseUrl);
|
|
47
|
-
const fetcher = options.fetch ?? defaultFetch;
|
|
48
|
-
const now = options.now ?? (() => new Date());
|
|
49
|
-
return {
|
|
50
|
-
async probeQuote({ route }, signal) {
|
|
51
|
-
const sourceChainId = providerChainId(route.sourceChain, 'across');
|
|
52
|
-
const destinationChainId = eip155ChainId(route.destinationChain);
|
|
53
|
-
const url = new URL(`${baseUrl}/suggested-fees`);
|
|
54
|
-
url.search = new URLSearchParams({
|
|
55
|
-
allowUnmatchedDecimals: 'true',
|
|
56
|
-
amount: route.sourceAmount.amount,
|
|
57
|
-
destinationChainId,
|
|
58
|
-
inputToken: route.sourceToken.address,
|
|
59
|
-
integratorId: options.integratorId,
|
|
60
|
-
originChainId: sourceChainId,
|
|
61
|
-
outputToken: route.destinationToken.address,
|
|
62
|
-
}).toString();
|
|
63
|
-
try {
|
|
64
|
-
const body = await requestJson(url, {
|
|
65
|
-
fetcher,
|
|
66
|
-
headers: { Authorization: `Bearer ${options.apiKey}` },
|
|
67
|
-
signal,
|
|
68
|
-
});
|
|
69
|
-
return formatAcrossResult(route, body, now());
|
|
70
|
-
}
|
|
71
|
-
catch (cause) {
|
|
72
|
-
const unavailable = providerUnavailable(cause, ['AMOUNT_TOO_HIGH', 'AMOUNT_TOO_LOW']);
|
|
73
|
-
if (!unavailable)
|
|
74
|
-
throw cause;
|
|
75
|
-
return unavailableResult({
|
|
76
|
-
detail: 'across:suggested-fees',
|
|
77
|
-
message: unavailable,
|
|
78
|
-
now: now(),
|
|
79
|
-
source: 'providerLimit',
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
/** Builds the authenticated Across `/swap/approval` request for an exact-input quote. */
|
|
86
|
-
export function createAcrossQuoteRequest(options) {
|
|
87
|
-
assertAcrossIntegratorId(options.integratorId);
|
|
88
|
-
const baseUrl = normalizeBaseUrl(options.baseUrl ?? defaultAcrossBaseUrl);
|
|
89
|
-
const sourceChainId = providerChainId(options.route.sourceChain, 'across');
|
|
90
|
-
const destinationChainId = eip155ChainId(options.route.destinationChain);
|
|
91
|
-
const url = new URL(`${baseUrl}/swap/approval`);
|
|
92
|
-
url.search = new URLSearchParams({
|
|
93
|
-
amount: options.route.sourceAmount.amount,
|
|
94
|
-
depositor: options.depositor,
|
|
95
|
-
destinationChainId,
|
|
96
|
-
inputToken: options.route.sourceToken.address,
|
|
97
|
-
integratorId: options.integratorId,
|
|
98
|
-
originChainId: sourceChainId,
|
|
99
|
-
outputToken: options.route.destinationToken.address,
|
|
100
|
-
skipOriginTxEstimation: 'true',
|
|
101
|
-
strictTradeType: 'true',
|
|
102
|
-
tradeType: 'exactInput',
|
|
103
|
-
}).toString();
|
|
104
|
-
if (options.recipient !== undefined)
|
|
105
|
-
url.searchParams.set('recipient', options.recipient);
|
|
106
|
-
return { headers: { Authorization: `Bearer ${options.apiKey}` }, url };
|
|
107
|
-
}
|
|
108
|
-
/** Creates an explicit Across quote adapter backed by `/swap/approval`. */
|
|
109
|
-
export function acrossQuote(options) {
|
|
110
|
-
assertAcrossIntegratorId(options.integratorId);
|
|
111
|
-
return async ({ depositor, recipient, route }, signal) => {
|
|
112
|
-
const request = createAcrossQuoteRequest({
|
|
113
|
-
apiKey: options.apiKey,
|
|
114
|
-
baseUrl: options.baseUrl,
|
|
115
|
-
depositor,
|
|
116
|
-
integratorId: options.integratorId,
|
|
117
|
-
recipient,
|
|
118
|
-
route,
|
|
119
|
-
});
|
|
120
|
-
try {
|
|
121
|
-
const body = await requestJson(request.url, {
|
|
122
|
-
fetcher: defaultFetch,
|
|
123
|
-
headers: request.headers,
|
|
124
|
-
signal,
|
|
125
|
-
});
|
|
126
|
-
return parseAcrossQuote({ body, now: new Date(), route });
|
|
127
|
-
}
|
|
128
|
-
catch (cause) {
|
|
129
|
-
if (!(cause instanceof ProviderResponseError))
|
|
130
|
-
throw cause;
|
|
131
|
-
throw mapAcrossQuoteError({ body: cause.body, status: cause.status });
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
/** Returns bounded Across quote failure details suitable for structured request logs. */
|
|
136
|
-
export function acrossQuoteFailure(options) {
|
|
137
|
-
const { cause } = options;
|
|
138
|
-
const base = { id: 'across', operation: 'swap/approval' };
|
|
139
|
-
if (cause instanceof ProviderResponseError) {
|
|
140
|
-
const code = providerErrorCode(cause.body);
|
|
141
|
-
return {
|
|
142
|
-
...(code === undefined ? {} : { code }),
|
|
143
|
-
failure: 'http',
|
|
144
|
-
...base,
|
|
145
|
-
status: cause.status,
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
if (cause instanceof ProviderPayloadError)
|
|
149
|
-
return { failure: 'payload', ...base };
|
|
150
|
-
if (cause instanceof TypeError)
|
|
151
|
-
return { failure: 'network', ...base };
|
|
152
|
-
if (cause instanceof Error)
|
|
153
|
-
return { failure: 'unknown', ...base };
|
|
154
|
-
return undefined;
|
|
6
|
+
return (options.relay ? { relay: relay(options.relay) } : {});
|
|
155
7
|
}
|
|
156
8
|
/** Creates a Relay quote adapter backed by `/chains/liquidity` and `/quote/v2`. */
|
|
157
9
|
export function relay(options) {
|
|
@@ -203,104 +55,6 @@ export function relay(options) {
|
|
|
203
55
|
},
|
|
204
56
|
};
|
|
205
57
|
}
|
|
206
|
-
/** Maps an Across HTTP error into the stable funding-provider error contract. */
|
|
207
|
-
export function mapAcrossQuoteError(options) {
|
|
208
|
-
if (options.status === 429)
|
|
209
|
-
return new FundingRoutes.ProviderRateLimitError();
|
|
210
|
-
const cause = new ProviderResponseError(options.status, options.body);
|
|
211
|
-
const unavailable = providerUnavailable(cause, [
|
|
212
|
-
'AMOUNT_TOO_HIGH',
|
|
213
|
-
'AMOUNT_TOO_LOW',
|
|
214
|
-
'INSUFFICIENT_LIQUIDITY',
|
|
215
|
-
'NO_QUOTES',
|
|
216
|
-
'NO_ROUTE',
|
|
217
|
-
'UNSUPPORTED_ROUTE',
|
|
218
|
-
]);
|
|
219
|
-
if (unavailable)
|
|
220
|
-
return new FundingRoutes.ProviderQuoteUnavailableError();
|
|
221
|
-
return cause;
|
|
222
|
-
}
|
|
223
|
-
/** Validates and normalizes an Across quote payload against its curated route. */
|
|
224
|
-
export function parseAcrossQuote(options) {
|
|
225
|
-
const parsed = schema.AcrossQuote.safeParse(options.body);
|
|
226
|
-
if (!parsed.success)
|
|
227
|
-
throw new ProviderPayloadError();
|
|
228
|
-
const response = parsed.data;
|
|
229
|
-
const total = response.fees.total;
|
|
230
|
-
const totalMax = response.fees.totalMax;
|
|
231
|
-
if (response.inputAmount !== options.route.sourceAmount.amount ||
|
|
232
|
-
response.inputToken.address.toLowerCase() !== options.route.sourceToken.address.toLowerCase() ||
|
|
233
|
-
response.inputToken.chainId !== Number(eip155ChainId(options.route.sourceChain)) ||
|
|
234
|
-
response.inputToken.decimals !== options.route.sourceToken.decimals ||
|
|
235
|
-
response.outputToken.address.toLowerCase() !==
|
|
236
|
-
options.route.destinationToken.address.toLowerCase() ||
|
|
237
|
-
response.outputToken.chainId !== Number(eip155ChainId(options.route.destinationChain)) ||
|
|
238
|
-
response.outputToken.decimals !== options.route.destinationToken.decimals ||
|
|
239
|
-
BigInt(response.expectedOutputAmount) <= 0n ||
|
|
240
|
-
BigInt(response.minOutputAmount) <= 0n ||
|
|
241
|
-
BigInt(response.minOutputAmount) > BigInt(response.expectedOutputAmount) ||
|
|
242
|
-
response.quoteExpiryTimestamp * 1_000 <= options.now.getTime() ||
|
|
243
|
-
!matchesFeeToken(total.token, options.route) ||
|
|
244
|
-
!matchesFeeToken(totalMax.token, options.route) ||
|
|
245
|
-
BigInt(totalMax.amount) < BigInt(total.amount) ||
|
|
246
|
-
BigInt(totalMax.pct) < BigInt(total.pct))
|
|
247
|
-
throw new ProviderPayloadError();
|
|
248
|
-
return {
|
|
249
|
-
estimatedSeconds: response.expectedFillTime,
|
|
250
|
-
expiresAt: isoFromUnixSeconds(String(response.quoteExpiryTimestamp)),
|
|
251
|
-
fees: {
|
|
252
|
-
total: formatAcrossFee(response.fees.total),
|
|
253
|
-
totalMax: formatAcrossFee(response.fees.totalMax),
|
|
254
|
-
},
|
|
255
|
-
minimumOutputAmount: response.minOutputAmount,
|
|
256
|
-
outputAmount: response.expectedOutputAmount,
|
|
257
|
-
sampledAt: options.now.toISOString(),
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
function formatAcrossResult(route, body, now) {
|
|
261
|
-
const response = record(body);
|
|
262
|
-
const timestamp = integerString(response['timestamp']);
|
|
263
|
-
const sampledAt = timestamp ? isoFromUnixSeconds(timestamp) : now.toISOString();
|
|
264
|
-
const limits = acrossLimits(response['limits']);
|
|
265
|
-
const amountStatus = statusFromLimits(route.sourceAmount.amount, limits);
|
|
266
|
-
const status = response['isAmountTooLow'] === true ? 'unavailable' : amountStatus.status;
|
|
267
|
-
const tier = response['isAmountTooLow'] === true ? 'unavailable' : amountStatus.tier;
|
|
268
|
-
const outputAmount = decimalString(response['outputAmount']);
|
|
269
|
-
return {
|
|
270
|
-
expiresAt: timestamp ? isoFromUnixSeconds((BigInt(timestamp) + 600n).toString()) : null,
|
|
271
|
-
limits,
|
|
272
|
-
outputAmount,
|
|
273
|
-
outputAmountFormatted: outputAmount
|
|
274
|
-
? decimalFromBaseUnits(outputAmount, route.destinationToken.decimals)
|
|
275
|
-
: null,
|
|
276
|
-
quality: {
|
|
277
|
-
availableVolumeUsd: stablecoinUsdCapacity(route, limits?.maxSourceAmount),
|
|
278
|
-
estimatedSeconds: nonnegativeInteger(response['estimatedFillTimeSec']),
|
|
279
|
-
feeBps: scaledPctToBps(nestedString(response['totalRelayFee'], 'pct') ?? decimalString(response['relayFeePct'])),
|
|
280
|
-
historicalVolumeUsd24h: null,
|
|
281
|
-
instantVolumeUsd: stablecoinUsdCapacity(route, limits?.instantSourceAmount),
|
|
282
|
-
liquiditySource: 'providerLimit',
|
|
283
|
-
score: scoreFor(tier),
|
|
284
|
-
sourceDetail: 'across:suggested-fees',
|
|
285
|
-
tier,
|
|
286
|
-
},
|
|
287
|
-
sampledAt,
|
|
288
|
-
status,
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
function formatAcrossFee(fee) {
|
|
292
|
-
return {
|
|
293
|
-
amount: fee.amount,
|
|
294
|
-
amountUsd: fee.amountUsd,
|
|
295
|
-
bps: scaledPctToBps(fee.pct),
|
|
296
|
-
token: {
|
|
297
|
-
address: fee.token.address,
|
|
298
|
-
chainId: `eip155:${fee.token.chainId}`,
|
|
299
|
-
decimals: fee.token.decimals,
|
|
300
|
-
symbol: fee.token.symbol,
|
|
301
|
-
},
|
|
302
|
-
};
|
|
303
|
-
}
|
|
304
58
|
function formatRelayResult(route, quote, liquidity, now) {
|
|
305
59
|
const details = record(record(quote)['details']);
|
|
306
60
|
const currencyOut = record(details['currencyOut']);
|
|
@@ -357,26 +111,6 @@ function unavailableResult(options) {
|
|
|
357
111
|
status: 'unavailable',
|
|
358
112
|
};
|
|
359
113
|
}
|
|
360
|
-
function acrossLimits(input) {
|
|
361
|
-
const limits = record(input);
|
|
362
|
-
const minSourceAmount = decimalString(limits['minDeposit']);
|
|
363
|
-
const maxSourceAmount = decimalString(limits['maxDeposit']);
|
|
364
|
-
const instantSourceAmount = decimalString(limits['maxDepositInstant']) ?? decimalString(limits['recommendedDepositInstant']);
|
|
365
|
-
return minSourceAmount || maxSourceAmount || instantSourceAmount
|
|
366
|
-
? { instantSourceAmount, maxSourceAmount, minSourceAmount }
|
|
367
|
-
: null;
|
|
368
|
-
}
|
|
369
|
-
function statusFromLimits(amount, limits) {
|
|
370
|
-
if (!limits)
|
|
371
|
-
return { status: 'available', tier: 'liquid' };
|
|
372
|
-
if (limits.minSourceAmount && compareIntegerStrings(amount, limits.minSourceAmount) < 0)
|
|
373
|
-
return { status: 'unavailable', tier: 'unavailable' };
|
|
374
|
-
if (limits.maxSourceAmount && compareIntegerStrings(amount, limits.maxSourceAmount) > 0)
|
|
375
|
-
return { status: 'unavailable', tier: 'unavailable' };
|
|
376
|
-
if (limits.instantSourceAmount && compareIntegerStrings(amount, limits.instantSourceAmount) > 0)
|
|
377
|
-
return { status: 'thin', tier: 'thin' };
|
|
378
|
-
return { status: 'available', tier: 'liquid' };
|
|
379
|
-
}
|
|
380
114
|
function relayLiquidity(input, route) {
|
|
381
115
|
const response = record(input);
|
|
382
116
|
const rows = Array.isArray(response['liquidity']) ? response['liquidity'] : [];
|
|
@@ -430,12 +164,6 @@ class ProviderResponseError extends Error {
|
|
|
430
164
|
this.body = body;
|
|
431
165
|
}
|
|
432
166
|
}
|
|
433
|
-
class ProviderPayloadError extends Error {
|
|
434
|
-
name = 'FundingRouteProviders.ProviderPayloadError';
|
|
435
|
-
}
|
|
436
|
-
class ProviderConfigurationError extends Error {
|
|
437
|
-
name = 'FundingRouteProviders.ProviderConfigurationError';
|
|
438
|
-
}
|
|
439
167
|
function providerChainId(routeChain, provider) {
|
|
440
168
|
const providerIds = routeChain.providerIds;
|
|
441
169
|
const id = providerIds?.[provider];
|
|
@@ -454,15 +182,6 @@ function eip155ChainId(chain) {
|
|
|
454
182
|
class UnsupportedProviderRouteError extends Error {
|
|
455
183
|
name = 'FundingRouteProviders.UnsupportedProviderRouteError';
|
|
456
184
|
}
|
|
457
|
-
function assertAcrossIntegratorId(integratorId) {
|
|
458
|
-
if (!/^0x[\da-fA-F]{4}$/.test(integratorId))
|
|
459
|
-
throw new ProviderConfigurationError();
|
|
460
|
-
}
|
|
461
|
-
function matchesFeeToken(token, route) {
|
|
462
|
-
return (token.address.toLowerCase() === route.sourceToken.address.toLowerCase() &&
|
|
463
|
-
token.chainId === Number(eip155ChainId(route.sourceChain)) &&
|
|
464
|
-
token.decimals === route.sourceToken.decimals);
|
|
465
|
-
}
|
|
466
185
|
function normalizeBaseUrl(input) {
|
|
467
186
|
return input.replace(/\/+$/, '');
|
|
468
187
|
}
|
|
@@ -498,9 +217,6 @@ function integerString(input) {
|
|
|
498
217
|
return String(input);
|
|
499
218
|
return undefined;
|
|
500
219
|
}
|
|
501
|
-
function nestedString(input, key) {
|
|
502
|
-
return decimalString(record(input)[key]);
|
|
503
|
-
}
|
|
504
220
|
function nonnegativeInteger(input) {
|
|
505
221
|
if (typeof input === 'number' && Number.isSafeInteger(input) && input >= 0)
|
|
506
222
|
return input;
|
|
@@ -517,23 +233,6 @@ function decimalFromBaseUnits(baseUnits, decimals) {
|
|
|
517
233
|
function compareIntegerStrings(left, right) {
|
|
518
234
|
return BigInt(left) === BigInt(right) ? 0 : BigInt(left) > BigInt(right) ? 1 : -1;
|
|
519
235
|
}
|
|
520
|
-
function isoFromUnixSeconds(input) {
|
|
521
|
-
return new Date(Number(input) * 1_000).toISOString();
|
|
522
|
-
}
|
|
523
|
-
function stablecoinUsdCapacity(route, baseUnits) {
|
|
524
|
-
if (!baseUnits || !isDollarStablecoin(route.sourceToken.symbol))
|
|
525
|
-
return null;
|
|
526
|
-
return decimalFromBaseUnits(baseUnits, route.sourceToken.decimals);
|
|
527
|
-
}
|
|
528
|
-
function isDollarStablecoin(symbol) {
|
|
529
|
-
return ['DAI', 'FRXUSD', 'PYUSD', 'USDC', 'USDC.E', 'USDT', 'USDT0'].includes(symbol.toUpperCase());
|
|
530
|
-
}
|
|
531
|
-
function scaledPctToBps(input) {
|
|
532
|
-
if (!input || !/^\d+$/.test(input))
|
|
533
|
-
return null;
|
|
534
|
-
const denominator = 1000000000000000000n;
|
|
535
|
-
return Number((BigInt(input) * 10000n + denominator / 2n) / denominator);
|
|
536
|
-
}
|
|
537
236
|
function scoreFor(tier) {
|
|
538
237
|
if (tier === 'liquid')
|
|
539
238
|
return 90;
|