@hyperbridge/sdk 2.8.16 → 2.8.18
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/browser/index.d.ts +144 -67
- package/dist/browser/index.js +150 -87
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +149 -87
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +141 -64
- package/dist/node/index.d.ts +141 -64
- package/dist/node/index.js +150 -87
- package/dist/node/index.js.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -18837,20 +18837,27 @@ var ROUTE_LIQUIDITY_QUERY = `
|
|
|
18837
18837
|
query RouteLiquidity($route: RouteInput!) {
|
|
18838
18838
|
books { id base quote }
|
|
18839
18839
|
routeLiquidity(route: $route) {
|
|
18840
|
-
route bestRate depthIn depthOut availableLiquidity maxFillableIn orderCount solverCount
|
|
18840
|
+
route bestRate slippageBps depthIn depthOut availableLiquidity maxFillableIn orderCount solverCount
|
|
18841
18841
|
}
|
|
18842
18842
|
}`;
|
|
18843
18843
|
var QUOTE_QUERY = `
|
|
18844
18844
|
query Quote($route: RouteInput!, $amountIn: BigInt!) {
|
|
18845
18845
|
quote(route: $route, amountIn: $amountIn) {
|
|
18846
|
-
route side amountIn
|
|
18847
|
-
fills { orderRate amountOut
|
|
18846
|
+
route side amountIn slippageBps fillable maxFillableIn
|
|
18847
|
+
fills { advertisedSize orderRate amountIn amountOut }
|
|
18848
|
+
}
|
|
18849
|
+
}`;
|
|
18850
|
+
var QUOTE_PESSIMISTIC_QUERY = `
|
|
18851
|
+
query QuotePessimistic($route: RouteInput!, $amountIn: BigInt!) {
|
|
18852
|
+
quotePessimistic(route: $route, amountIn: $amountIn) {
|
|
18853
|
+
route side amountIn amountOut rate priceBucket slippageBps fillable maxFillableIn
|
|
18848
18854
|
}
|
|
18849
18855
|
}`;
|
|
18850
18856
|
var ORDERBOOK_QUERIES = {
|
|
18851
18857
|
topOfBook: TOP_OF_BOOK_QUERY,
|
|
18852
18858
|
routeLiquidity: ROUTE_LIQUIDITY_QUERY,
|
|
18853
|
-
quote: QUOTE_QUERY
|
|
18859
|
+
quote: QUOTE_QUERY,
|
|
18860
|
+
quotePessimistic: QUOTE_PESSIMISTIC_QUERY
|
|
18854
18861
|
};
|
|
18855
18862
|
var HyperFxOrderbook = class {
|
|
18856
18863
|
client;
|
|
@@ -18879,8 +18886,9 @@ var HyperFxOrderbook = class {
|
|
|
18879
18886
|
return {
|
|
18880
18887
|
route: raw.route,
|
|
18881
18888
|
book,
|
|
18882
|
-
side: book.base
|
|
18883
|
-
bestRate:
|
|
18889
|
+
side: sameSymbol(book.base, route.tokenIn) ? "BID" : "ASK",
|
|
18890
|
+
bestRate: optionalBigInt(raw.bestRate),
|
|
18891
|
+
slippageBps: raw.slippageBps,
|
|
18884
18892
|
depthIn: BigInt(raw.depthIn),
|
|
18885
18893
|
depthOut: BigInt(raw.depthOut),
|
|
18886
18894
|
availableLiquidity: BigInt(raw.availableLiquidity),
|
|
@@ -18889,7 +18897,10 @@ var HyperFxOrderbook = class {
|
|
|
18889
18897
|
solverCount: raw.solverCount
|
|
18890
18898
|
};
|
|
18891
18899
|
}
|
|
18892
|
-
/**
|
|
18900
|
+
/**
|
|
18901
|
+
* The optimistic quote for `amountIn` (1e18 tokenIn) on a route: the route's orders, best price
|
|
18902
|
+
* first, each taking what it can at its own price. The fills' `amountOut`s sum to the output.
|
|
18903
|
+
*/
|
|
18893
18904
|
async quote(route, amountIn) {
|
|
18894
18905
|
const { quote: raw } = await this.request(QUOTE_QUERY, {
|
|
18895
18906
|
route,
|
|
@@ -18899,18 +18910,39 @@ var HyperFxOrderbook = class {
|
|
|
18899
18910
|
route: raw.route,
|
|
18900
18911
|
side: raw.side,
|
|
18901
18912
|
amountIn: BigInt(raw.amountIn),
|
|
18902
|
-
|
|
18903
|
-
rate: raw.rate === null ? null : BigInt(raw.rate),
|
|
18913
|
+
slippageBps: raw.slippageBps,
|
|
18904
18914
|
fillable: raw.fillable,
|
|
18905
|
-
depth: BigInt(raw.depth),
|
|
18906
18915
|
maxFillableIn: BigInt(raw.maxFillableIn),
|
|
18907
18916
|
fills: raw.fills.map((fill) => ({
|
|
18917
|
+
advertisedSize: BigInt(fill.advertisedSize),
|
|
18908
18918
|
orderRate: BigInt(fill.orderRate),
|
|
18909
|
-
|
|
18910
|
-
|
|
18919
|
+
amountIn: BigInt(fill.amountIn),
|
|
18920
|
+
amountOut: BigInt(fill.amountOut)
|
|
18911
18921
|
}))
|
|
18912
18922
|
};
|
|
18913
18923
|
}
|
|
18924
|
+
/**
|
|
18925
|
+
* The pessimistic quote for `amountIn` (1e18 tokenIn) on a route: one price, from the first level
|
|
18926
|
+
* deep enough to fill the whole trade by itself, at which every order in it fills; the route's
|
|
18927
|
+
* worst price when no one level can but its levels together can.
|
|
18928
|
+
*/
|
|
18929
|
+
async quotePessimistic(route, amountIn) {
|
|
18930
|
+
const { quotePessimistic: raw } = await this.request(
|
|
18931
|
+
QUOTE_PESSIMISTIC_QUERY,
|
|
18932
|
+
{ route, amountIn: amountIn.toString() }
|
|
18933
|
+
);
|
|
18934
|
+
return {
|
|
18935
|
+
route: raw.route,
|
|
18936
|
+
side: raw.side,
|
|
18937
|
+
amountIn: BigInt(raw.amountIn),
|
|
18938
|
+
amountOut: BigInt(raw.amountOut),
|
|
18939
|
+
rate: optionalBigInt(raw.rate),
|
|
18940
|
+
priceBucket: optionalBigInt(raw.priceBucket),
|
|
18941
|
+
slippageBps: raw.slippageBps,
|
|
18942
|
+
fillable: raw.fillable,
|
|
18943
|
+
maxFillableIn: BigInt(raw.maxFillableIn)
|
|
18944
|
+
};
|
|
18945
|
+
}
|
|
18914
18946
|
async request(query, variables) {
|
|
18915
18947
|
try {
|
|
18916
18948
|
return await this.client.request(query, variables);
|
|
@@ -18924,13 +18956,19 @@ function describeError(error) {
|
|
|
18924
18956
|
if (graphqlErrors?.length) return graphqlErrors.map((e) => e.message).join("; ");
|
|
18925
18957
|
return error instanceof Error ? error.message : String(error);
|
|
18926
18958
|
}
|
|
18959
|
+
function sameSymbol(a, b) {
|
|
18960
|
+
return a.toLowerCase() === b.toLowerCase();
|
|
18961
|
+
}
|
|
18927
18962
|
function findBook(books, tokenA, tokenB) {
|
|
18928
18963
|
const book = books.find(
|
|
18929
|
-
(b) => b.base
|
|
18964
|
+
(b) => sameSymbol(b.base, tokenA) && sameSymbol(b.quote, tokenB) || sameSymbol(b.base, tokenB) && sameSymbol(b.quote, tokenA)
|
|
18930
18965
|
);
|
|
18931
18966
|
if (!book) throw new OrderbookRequestError(`no book trades ${tokenA} for ${tokenB}`);
|
|
18932
18967
|
return book;
|
|
18933
18968
|
}
|
|
18969
|
+
function optionalBigInt(value) {
|
|
18970
|
+
return value === null ? null : BigInt(value);
|
|
18971
|
+
}
|
|
18934
18972
|
function parseRate(raw) {
|
|
18935
18973
|
return {
|
|
18936
18974
|
side: raw.side,
|
|
@@ -18972,18 +19010,6 @@ var OrderbookQuoteNotConvergedError = class extends Error {
|
|
|
18972
19010
|
rounds;
|
|
18973
19011
|
lastAmountIn;
|
|
18974
19012
|
};
|
|
18975
|
-
var InsufficientOrderbookLiquidityError = class extends Error {
|
|
18976
|
-
constructor(route, maxFillableIn) {
|
|
18977
|
-
super(
|
|
18978
|
-
`The HyperFX orderbook cannot fill ${route.tokenIn} -> ${route.tokenOut} on ${route.sourceChain} -> ${route.destinationChain}; max fillable input is ${maxFillableIn} raw units`
|
|
18979
|
-
);
|
|
18980
|
-
this.route = route;
|
|
18981
|
-
this.maxFillableIn = maxFillableIn;
|
|
18982
|
-
this.name = "InsufficientOrderbookLiquidityError";
|
|
18983
|
-
}
|
|
18984
|
-
route;
|
|
18985
|
-
maxFillableIn;
|
|
18986
|
-
};
|
|
18987
19013
|
|
|
18988
19014
|
// src/protocols/intents/orderbook/market.ts
|
|
18989
19015
|
var MAX_EXACT_OUTPUT_ROUNDS = 16;
|
|
@@ -18995,26 +19021,67 @@ var OrderbookMarket = class {
|
|
|
18995
19021
|
configService;
|
|
18996
19022
|
orderbook;
|
|
18997
19023
|
async quoteIntent(params, sourceChain, destinationChain) {
|
|
19024
|
+
const orderbook = this.orderbook();
|
|
19025
|
+
if (!params.optimistic) {
|
|
19026
|
+
const { quote: quote2, tokenIn: tokenIn2, tokenOut: tokenOut2 } = await this.priceIntent(
|
|
19027
|
+
params,
|
|
19028
|
+
sourceChain,
|
|
19029
|
+
destinationChain,
|
|
19030
|
+
(route, amountIn) => orderbook.quotePessimistic(route, amountIn),
|
|
19031
|
+
levelQuoteTotals
|
|
19032
|
+
);
|
|
19033
|
+
return {
|
|
19034
|
+
route: quote2.route,
|
|
19035
|
+
side: quote2.side,
|
|
19036
|
+
amountIn: fromOrderbookAmount(quote2.amountIn, tokenIn2.decimals),
|
|
19037
|
+
amountOut: fromOrderbookAmount(quote2.amountOut, tokenOut2.decimals),
|
|
19038
|
+
rate: quote2.rate,
|
|
19039
|
+
priceBucket: quote2.priceBucket,
|
|
19040
|
+
slippageBps: quote2.slippageBps,
|
|
19041
|
+
fillable: quote2.fillable,
|
|
19042
|
+
maxFillableIn: fromOrderbookAmount(quote2.maxFillableIn, tokenIn2.decimals)
|
|
19043
|
+
};
|
|
19044
|
+
}
|
|
19045
|
+
const { quote, tokenIn, tokenOut } = await this.priceIntent(
|
|
19046
|
+
params,
|
|
19047
|
+
sourceChain,
|
|
19048
|
+
destinationChain,
|
|
19049
|
+
(route, amountIn) => orderbook.quote(route, amountIn),
|
|
19050
|
+
swapQuoteTotals
|
|
19051
|
+
);
|
|
19052
|
+
return {
|
|
19053
|
+
route: quote.route,
|
|
19054
|
+
side: quote.side,
|
|
19055
|
+
amountIn: fromOrderbookAmount(quote.amountIn, tokenIn.decimals),
|
|
19056
|
+
slippageBps: quote.slippageBps,
|
|
19057
|
+
fillable: quote.fillable,
|
|
19058
|
+
maxFillableIn: fromOrderbookAmount(quote.maxFillableIn, tokenIn.decimals),
|
|
19059
|
+
legs: quote.fills.map((fill) => ({
|
|
19060
|
+
advertisedSize: fromOrderbookAmount(fill.advertisedSize, tokenOut.decimals),
|
|
19061
|
+
orderRate: fill.orderRate,
|
|
19062
|
+
amountIn: fromOrderbookAmount(fill.amountIn, tokenIn.decimals),
|
|
19063
|
+
amountOut: fromOrderbookAmount(fill.amountOut, tokenOut.decimals)
|
|
19064
|
+
}))
|
|
19065
|
+
};
|
|
19066
|
+
}
|
|
19067
|
+
/**
|
|
19068
|
+
* The orderbook's quote for an exact input, or for the input found to deliver
|
|
19069
|
+
* an exact output, with the assets it trades. A route that cannot fill the
|
|
19070
|
+
* trade answers with an unfillable quote rather than an error.
|
|
19071
|
+
*/
|
|
19072
|
+
async priceIntent(params, sourceChain, destinationChain, price, totals) {
|
|
18998
19073
|
validateQuoteParams(params);
|
|
18999
19074
|
const tokenIn = this.assetByAddress(sourceChain, params.tokenIn);
|
|
19000
19075
|
const tokenOut = this.assetByAddress(destinationChain, params.tokenOut);
|
|
19001
19076
|
const route = toRoute(tokenIn, tokenOut);
|
|
19002
19077
|
if (params.amountIn !== void 0) {
|
|
19003
|
-
const quote2 = await
|
|
19004
|
-
|
|
19005
|
-
|
|
19006
|
-
return buildQuote("EXACT_INPUT", params.amountIn, amountOut2, quote2, tokenIn, tokenOut);
|
|
19078
|
+
const quote2 = await price(route, toOrderbookAmount(params.amountIn, tokenIn.decimals));
|
|
19079
|
+
totals(quote2);
|
|
19080
|
+
return { quote: quote2, tokenIn, tokenOut };
|
|
19007
19081
|
}
|
|
19008
|
-
const
|
|
19009
|
-
const quote = await this.quoteExactOutput(route,
|
|
19010
|
-
return
|
|
19011
|
-
"EXACT_OUTPUT",
|
|
19012
|
-
fromOrderbookAmount(quote.amountIn, tokenIn.decimals),
|
|
19013
|
-
amountOut,
|
|
19014
|
-
quote,
|
|
19015
|
-
tokenIn,
|
|
19016
|
-
tokenOut
|
|
19017
|
-
);
|
|
19082
|
+
const targetOut = toOrderbookAmount(params.amountOut, tokenOut.decimals);
|
|
19083
|
+
const quote = await this.quoteExactOutput(route, targetOut, tokenIn, price, totals);
|
|
19084
|
+
return { quote, tokenIn, tokenOut };
|
|
19018
19085
|
}
|
|
19019
19086
|
async availableLiquidity(params, sourceChain, destinationChain) {
|
|
19020
19087
|
const tokenIn = this.assetByAddress(sourceChain, params.tokenIn);
|
|
@@ -19067,22 +19134,29 @@ var OrderbookMarket = class {
|
|
|
19067
19134
|
}
|
|
19068
19135
|
/**
|
|
19069
19136
|
* The orderbook only quotes an input amount, so an output is priced by
|
|
19070
|
-
* guessing the input from the best rate
|
|
19071
|
-
*
|
|
19137
|
+
* guessing the input from the best rate, then keeping the part of each quote
|
|
19138
|
+
* filled better than its worst rate and re-pricing the rest of `targetOut` at
|
|
19139
|
+
* the input-to-output ratio that part filled at, until a quote delivers it.
|
|
19140
|
+
* That ratio is the orderbook's own, with the protocol fee already taken off.
|
|
19141
|
+
*
|
|
19142
|
+
* An output the route cannot deliver is answered by quoting an input past its
|
|
19143
|
+
* `maxFillableIn`, which the orderbook serves as unfillable: the smallest such
|
|
19144
|
+
* input guessed from the best rate, or one raw unit when no order serves it.
|
|
19072
19145
|
*/
|
|
19073
|
-
async quoteExactOutput(route, targetOut, tokenIn) {
|
|
19074
|
-
const
|
|
19075
|
-
const liquidity = await orderbook.routeLiquidity(route);
|
|
19076
|
-
if (liquidity.bestRate === null) throw this.insufficient(route, 0n, tokenIn);
|
|
19146
|
+
async quoteExactOutput(route, targetOut, tokenIn, price, totals) {
|
|
19147
|
+
const liquidity = await this.orderbook().routeLiquidity(route);
|
|
19077
19148
|
const inputUnit = toOrderbookAmount(1n, tokenIn.decimals);
|
|
19078
|
-
let amountIn = roundUpTo(requiredInput(liquidity.side, targetOut, liquidity.bestRate), inputUnit);
|
|
19149
|
+
let amountIn = liquidity.bestRate === null ? inputUnit : roundUpTo(requiredInput(liquidity.side, targetOut, liquidity.bestRate), inputUnit);
|
|
19079
19150
|
let lastAmountIn = amountIn;
|
|
19080
19151
|
for (let round = 0; round < MAX_EXACT_OUTPUT_ROUNDS; round++) {
|
|
19081
|
-
|
|
19082
|
-
const quote =
|
|
19083
|
-
if (quote.fillable && quote.amountOut >= targetOut) return
|
|
19152
|
+
const served = await price(route, amountIn);
|
|
19153
|
+
const quote = totals(served);
|
|
19154
|
+
if (quote.fillable && quote.amountOut >= targetOut) return served;
|
|
19155
|
+
if (!quote.fillable && amountIn > liquidity.maxFillableIn) return served;
|
|
19084
19156
|
lastAmountIn = amountIn;
|
|
19085
|
-
const
|
|
19157
|
+
const betterIn = quote.amountIn - quote.worstIn;
|
|
19158
|
+
const betterOut = quote.amountOut - quote.worstOut;
|
|
19159
|
+
const next = quote.fillable && quote.worstOut > 0n ? betterIn + roundUpTo(divCeil((targetOut - betterOut) * quote.worstIn, quote.worstOut), inputUnit) : amountIn;
|
|
19086
19160
|
amountIn = next > amountIn ? next : amountIn + inputUnit;
|
|
19087
19161
|
}
|
|
19088
19162
|
throw new OrderbookQuoteNotConvergedError(
|
|
@@ -19091,9 +19165,6 @@ var OrderbookMarket = class {
|
|
|
19091
19165
|
fromOrderbookAmount(lastAmountIn, tokenIn.decimals)
|
|
19092
19166
|
);
|
|
19093
19167
|
}
|
|
19094
|
-
insufficient(route, maxFillableIn, tokenIn) {
|
|
19095
|
-
return new InsufficientOrderbookLiquidityError(route, fromOrderbookAmount(maxFillableIn, tokenIn.decimals));
|
|
19096
|
-
}
|
|
19097
19168
|
assetByAddress(chain, address) {
|
|
19098
19169
|
const resolvedChain = resolveChain(chain);
|
|
19099
19170
|
return withDecimals(
|
|
@@ -19138,24 +19209,32 @@ function toRoute(tokenIn, tokenOut) {
|
|
|
19138
19209
|
function requiredInput(side, amountOut, rate) {
|
|
19139
19210
|
return side === "BID" ? divCeil(amountOut * ORDERBOOK_SCALE, rate) : divCeil(amountOut * rate, ORDERBOOK_SCALE);
|
|
19140
19211
|
}
|
|
19141
|
-
function
|
|
19142
|
-
|
|
19143
|
-
|
|
19212
|
+
function swapQuoteTotals(quote) {
|
|
19213
|
+
const worstFill = quote.fills.at(-1);
|
|
19214
|
+
if (quote.fillable && !worstFill)
|
|
19215
|
+
throw new OrderbookRequestError("the orderbook served a fillable quote with no fills");
|
|
19144
19216
|
return {
|
|
19145
|
-
|
|
19146
|
-
amountIn,
|
|
19147
|
-
amountOut,
|
|
19148
|
-
|
|
19149
|
-
|
|
19150
|
-
|
|
19151
|
-
|
|
19152
|
-
|
|
19153
|
-
|
|
19154
|
-
|
|
19155
|
-
|
|
19156
|
-
|
|
19157
|
-
|
|
19158
|
-
|
|
19217
|
+
side: quote.side,
|
|
19218
|
+
amountIn: quote.amountIn,
|
|
19219
|
+
amountOut: quote.fills.reduce((total, fill) => total + fill.amountOut, 0n),
|
|
19220
|
+
fillable: quote.fillable,
|
|
19221
|
+
maxFillableIn: quote.maxFillableIn,
|
|
19222
|
+
worstIn: worstFill?.amountIn ?? 0n,
|
|
19223
|
+
worstOut: worstFill?.amountOut ?? 0n
|
|
19224
|
+
};
|
|
19225
|
+
}
|
|
19226
|
+
function levelQuoteTotals(quote) {
|
|
19227
|
+
if (quote.fillable && quote.rate === null) {
|
|
19228
|
+
throw new OrderbookRequestError("the orderbook served a fillable quote with no rate");
|
|
19229
|
+
}
|
|
19230
|
+
return {
|
|
19231
|
+
side: quote.side,
|
|
19232
|
+
amountIn: quote.amountIn,
|
|
19233
|
+
amountOut: quote.amountOut,
|
|
19234
|
+
fillable: quote.fillable,
|
|
19235
|
+
maxFillableIn: quote.maxFillableIn,
|
|
19236
|
+
worstIn: quote.amountIn,
|
|
19237
|
+
worstOut: quote.amountOut
|
|
19159
19238
|
};
|
|
19160
19239
|
}
|
|
19161
19240
|
function toOrderbookAmount(amount, decimals) {
|
|
@@ -19319,22 +19398,6 @@ var IntentGateway = class _IntentGateway {
|
|
|
19319
19398
|
this.orderbook = typeof orderbook === "string" ? new HyperFxOrderbook(orderbook) : orderbook;
|
|
19320
19399
|
return this;
|
|
19321
19400
|
}
|
|
19322
|
-
/**
|
|
19323
|
-
* Quotes an intent between this gateway's source and destination chains from
|
|
19324
|
-
* the HyperFX orderbook. Provide exactly one of `amountIn` or `amountOut`, in
|
|
19325
|
-
* raw token units.
|
|
19326
|
-
*
|
|
19327
|
-
* An exact-input quote is the orderbook's clearing price for `amountIn`,
|
|
19328
|
-
* which may combine several solvers' orders. An exact-output quote finds the
|
|
19329
|
-
* smallest input whose clearing price delivers `amountOut`. A cross-chain
|
|
19330
|
-
* route only counts orders whose solvers accept the source chain.
|
|
19331
|
-
*
|
|
19332
|
-
* The orderbook's rates already carry the gateway protocol fee, so the
|
|
19333
|
-
* returned amounts can be placed as the order's inputs and outputs directly.
|
|
19334
|
-
*
|
|
19335
|
-
* @throws {InsufficientOrderbookLiquidityError} When the route cannot fill the amount.
|
|
19336
|
-
* @throws {OrderbookRequestError} When the orderbook is unreachable or trades no book for the pair.
|
|
19337
|
-
*/
|
|
19338
19401
|
async quoteIntent(params) {
|
|
19339
19402
|
return this.market.quoteIntent(params, this.source.config.stateMachineId, this.dest.config.stateMachineId);
|
|
19340
19403
|
}
|
|
@@ -24631,6 +24694,6 @@ async function teleportDot(param_) {
|
|
|
24631
24694
|
return stream;
|
|
24632
24695
|
}
|
|
24633
24696
|
|
|
24634
|
-
export { ADDRESS_ZERO2 as ADDRESS_ZERO, BundlerMethod, CONTRACT_VERSION_ABI, ChainConfigService, Chains, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, ERC20Method, ERC7821_BATCH_MODE, EvmChain, ABI as EvmHostABI, EvmLanguage, FILL_ORDER_SELECTOR, HyperClientStatus, HyperFungibleToken, HyperFungibleTokenABI, HyperFxOrderbook, INCLUSION_TIMEOUT_MS,
|
|
24697
|
+
export { ADDRESS_ZERO2 as ADDRESS_ZERO, BundlerMethod, CONTRACT_VERSION_ABI, ChainConfigService, Chains, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, ERC20Method, ERC7821_BATCH_MODE, EvmChain, ABI as EvmHostABI, EvmLanguage, FILL_ORDER_SELECTOR, HyperClientStatus, HyperFungibleToken, HyperFungibleTokenABI, HyperFxOrderbook, INCLUSION_TIMEOUT_MS, IntentGateway, ABI3 as IntentGatewayABI, IntentOrderStatus, IntentsCoprocessor, IsmpClient, MAX_DECLARED_ENTRIES, MOCK_ADDRESS, ORDERBOOK_DECIMALS, ORDERBOOK_QUERIES, ORDERBOOK_URLS, ORDER_V2_PARAM_TYPE, OrderStatus, OrderStatusChecker, OrderbookQuoteNotConvergedError, OrderbookRequestError, PACKED_USEROP_TYPEHASH, PERMIT2_SPONSORSHIP_BYTES, PLACE_ORDER_SELECTOR, PharosChain, PolkadotHubChain, REQUEST_COMMITMENTS_SLOT, REQUEST_RECEIPTS_SLOT, RESPONSE_COMMITMENTS_SLOT, RESPONSE_RECEIPTS_SLOT, RequestKind, RequestStatus, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, SUPPORTED_INTENTS_VERSION, SubstrateChain, Swap, TESTNET_CHAINS, TeleportStatus, TimeoutStatus, TokenGateway, TronChain, USE_ETHERSCAN_CHAINS, UnsupportedLiquidityAssetError, UnsupportedLiquidityChainError, WrappedHyperFungibleTokenABI, __test, adjustDecimals, assertGatewayRelease, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, chainConfigs, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, convertCodecToIGetRequest, convertCodecToIProof, convertIGetRequestToCodec, convertIProofToCodec, convertStateIdToStateMachineId, convertStateMachineEnumToString, convertStateMachineIdToEnum, createEvmChain, createQueryClient, decodeAcceptedSourceChains, decodeERC7821ExecuteBatch, decodeFillOrder, decodePhantomBidDeclaration, decodePhantomBidPaymasterAndData, decodeUserOpScale, deriveHttpUrl, encodeAcceptedSourceChains, encodeERC7821ExecuteBatch, encodeFillOrder, encodeISMPMessage, encodePhantomBidDeclaration, encodePhantomBidPaymasterAndData, encodeStateMachineId, encodeUserOpScale, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getChainId, getConfigByStateMachineId, getContractCallInput, getContractCallInputs, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, getViemChain, hexToString, hyperbridgeAddress, isCanonicalEvmToken, maxBigInt, normalizeAddressForEvmBytes32, normalizeAddressForStateMachine, normalizeEvmAddress, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, orderbookUrlFor, parseStateMachineId, pharosAtlantic, pharosMainnet, polkadotAssetHubPaseo, polkadotHubMainnet, poolSlug, postRequestCommitment, previewRateFill, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, readLegEscrow, readLegPartialFill, requestCommitmentKey, responseCommitmentKey, retryPromise, sortPoolSymbols, supportsRateFills, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };
|
|
24635
24698
|
//# sourceMappingURL=index.js.map
|
|
24636
24699
|
//# sourceMappingURL=index.js.map
|