@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/node/index.js
CHANGED
|
@@ -18777,20 +18777,27 @@ var ROUTE_LIQUIDITY_QUERY = `
|
|
|
18777
18777
|
query RouteLiquidity($route: RouteInput!) {
|
|
18778
18778
|
books { id base quote }
|
|
18779
18779
|
routeLiquidity(route: $route) {
|
|
18780
|
-
route bestRate depthIn depthOut availableLiquidity maxFillableIn orderCount solverCount
|
|
18780
|
+
route bestRate slippageBps depthIn depthOut availableLiquidity maxFillableIn orderCount solverCount
|
|
18781
18781
|
}
|
|
18782
18782
|
}`;
|
|
18783
18783
|
var QUOTE_QUERY = `
|
|
18784
18784
|
query Quote($route: RouteInput!, $amountIn: BigInt!) {
|
|
18785
18785
|
quote(route: $route, amountIn: $amountIn) {
|
|
18786
|
-
route side amountIn
|
|
18787
|
-
fills { orderRate amountOut
|
|
18786
|
+
route side amountIn slippageBps fillable maxFillableIn
|
|
18787
|
+
fills { advertisedSize orderRate amountIn amountOut }
|
|
18788
|
+
}
|
|
18789
|
+
}`;
|
|
18790
|
+
var QUOTE_PESSIMISTIC_QUERY = `
|
|
18791
|
+
query QuotePessimistic($route: RouteInput!, $amountIn: BigInt!) {
|
|
18792
|
+
quotePessimistic(route: $route, amountIn: $amountIn) {
|
|
18793
|
+
route side amountIn amountOut rate priceBucket slippageBps fillable maxFillableIn
|
|
18788
18794
|
}
|
|
18789
18795
|
}`;
|
|
18790
18796
|
var ORDERBOOK_QUERIES = {
|
|
18791
18797
|
topOfBook: TOP_OF_BOOK_QUERY,
|
|
18792
18798
|
routeLiquidity: ROUTE_LIQUIDITY_QUERY,
|
|
18793
|
-
quote: QUOTE_QUERY
|
|
18799
|
+
quote: QUOTE_QUERY,
|
|
18800
|
+
quotePessimistic: QUOTE_PESSIMISTIC_QUERY
|
|
18794
18801
|
};
|
|
18795
18802
|
var HyperFxOrderbook = class {
|
|
18796
18803
|
client;
|
|
@@ -18819,8 +18826,9 @@ var HyperFxOrderbook = class {
|
|
|
18819
18826
|
return {
|
|
18820
18827
|
route: raw.route,
|
|
18821
18828
|
book,
|
|
18822
|
-
side: book.base
|
|
18823
|
-
bestRate:
|
|
18829
|
+
side: sameSymbol(book.base, route.tokenIn) ? "BID" : "ASK",
|
|
18830
|
+
bestRate: optionalBigInt(raw.bestRate),
|
|
18831
|
+
slippageBps: raw.slippageBps,
|
|
18824
18832
|
depthIn: BigInt(raw.depthIn),
|
|
18825
18833
|
depthOut: BigInt(raw.depthOut),
|
|
18826
18834
|
availableLiquidity: BigInt(raw.availableLiquidity),
|
|
@@ -18829,7 +18837,10 @@ var HyperFxOrderbook = class {
|
|
|
18829
18837
|
solverCount: raw.solverCount
|
|
18830
18838
|
};
|
|
18831
18839
|
}
|
|
18832
|
-
/**
|
|
18840
|
+
/**
|
|
18841
|
+
* The optimistic quote for `amountIn` (1e18 tokenIn) on a route: the route's orders, best price
|
|
18842
|
+
* first, each taking what it can at its own price. The fills' `amountOut`s sum to the output.
|
|
18843
|
+
*/
|
|
18833
18844
|
async quote(route, amountIn) {
|
|
18834
18845
|
const { quote: raw } = await this.request(QUOTE_QUERY, {
|
|
18835
18846
|
route,
|
|
@@ -18839,18 +18850,39 @@ var HyperFxOrderbook = class {
|
|
|
18839
18850
|
route: raw.route,
|
|
18840
18851
|
side: raw.side,
|
|
18841
18852
|
amountIn: BigInt(raw.amountIn),
|
|
18842
|
-
|
|
18843
|
-
rate: raw.rate === null ? null : BigInt(raw.rate),
|
|
18853
|
+
slippageBps: raw.slippageBps,
|
|
18844
18854
|
fillable: raw.fillable,
|
|
18845
|
-
depth: BigInt(raw.depth),
|
|
18846
18855
|
maxFillableIn: BigInt(raw.maxFillableIn),
|
|
18847
18856
|
fills: raw.fills.map((fill) => ({
|
|
18857
|
+
advertisedSize: BigInt(fill.advertisedSize),
|
|
18848
18858
|
orderRate: BigInt(fill.orderRate),
|
|
18849
|
-
|
|
18850
|
-
|
|
18859
|
+
amountIn: BigInt(fill.amountIn),
|
|
18860
|
+
amountOut: BigInt(fill.amountOut)
|
|
18851
18861
|
}))
|
|
18852
18862
|
};
|
|
18853
18863
|
}
|
|
18864
|
+
/**
|
|
18865
|
+
* The pessimistic quote for `amountIn` (1e18 tokenIn) on a route: one price, from the first level
|
|
18866
|
+
* deep enough to fill the whole trade by itself, at which every order in it fills; the route's
|
|
18867
|
+
* worst price when no one level can but its levels together can.
|
|
18868
|
+
*/
|
|
18869
|
+
async quotePessimistic(route, amountIn) {
|
|
18870
|
+
const { quotePessimistic: raw } = await this.request(
|
|
18871
|
+
QUOTE_PESSIMISTIC_QUERY,
|
|
18872
|
+
{ route, amountIn: amountIn.toString() }
|
|
18873
|
+
);
|
|
18874
|
+
return {
|
|
18875
|
+
route: raw.route,
|
|
18876
|
+
side: raw.side,
|
|
18877
|
+
amountIn: BigInt(raw.amountIn),
|
|
18878
|
+
amountOut: BigInt(raw.amountOut),
|
|
18879
|
+
rate: optionalBigInt(raw.rate),
|
|
18880
|
+
priceBucket: optionalBigInt(raw.priceBucket),
|
|
18881
|
+
slippageBps: raw.slippageBps,
|
|
18882
|
+
fillable: raw.fillable,
|
|
18883
|
+
maxFillableIn: BigInt(raw.maxFillableIn)
|
|
18884
|
+
};
|
|
18885
|
+
}
|
|
18854
18886
|
async request(query, variables) {
|
|
18855
18887
|
try {
|
|
18856
18888
|
return await this.client.request(query, variables);
|
|
@@ -18864,13 +18896,19 @@ function describeError(error) {
|
|
|
18864
18896
|
if (graphqlErrors?.length) return graphqlErrors.map((e) => e.message).join("; ");
|
|
18865
18897
|
return error instanceof Error ? error.message : String(error);
|
|
18866
18898
|
}
|
|
18899
|
+
function sameSymbol(a, b) {
|
|
18900
|
+
return a.toLowerCase() === b.toLowerCase();
|
|
18901
|
+
}
|
|
18867
18902
|
function findBook(books, tokenA, tokenB) {
|
|
18868
18903
|
const book = books.find(
|
|
18869
|
-
(b) => b.base
|
|
18904
|
+
(b) => sameSymbol(b.base, tokenA) && sameSymbol(b.quote, tokenB) || sameSymbol(b.base, tokenB) && sameSymbol(b.quote, tokenA)
|
|
18870
18905
|
);
|
|
18871
18906
|
if (!book) throw new OrderbookRequestError(`no book trades ${tokenA} for ${tokenB}`);
|
|
18872
18907
|
return book;
|
|
18873
18908
|
}
|
|
18909
|
+
function optionalBigInt(value) {
|
|
18910
|
+
return value === null ? null : BigInt(value);
|
|
18911
|
+
}
|
|
18874
18912
|
function parseRate(raw) {
|
|
18875
18913
|
return {
|
|
18876
18914
|
side: raw.side,
|
|
@@ -18912,18 +18950,6 @@ var OrderbookQuoteNotConvergedError = class extends Error {
|
|
|
18912
18950
|
rounds;
|
|
18913
18951
|
lastAmountIn;
|
|
18914
18952
|
};
|
|
18915
|
-
var InsufficientOrderbookLiquidityError = class extends Error {
|
|
18916
|
-
constructor(route, maxFillableIn) {
|
|
18917
|
-
super(
|
|
18918
|
-
`The HyperFX orderbook cannot fill ${route.tokenIn} -> ${route.tokenOut} on ${route.sourceChain} -> ${route.destinationChain}; max fillable input is ${maxFillableIn} raw units`
|
|
18919
|
-
);
|
|
18920
|
-
this.route = route;
|
|
18921
|
-
this.maxFillableIn = maxFillableIn;
|
|
18922
|
-
this.name = "InsufficientOrderbookLiquidityError";
|
|
18923
|
-
}
|
|
18924
|
-
route;
|
|
18925
|
-
maxFillableIn;
|
|
18926
|
-
};
|
|
18927
18953
|
|
|
18928
18954
|
// src/protocols/intents/orderbook/market.ts
|
|
18929
18955
|
var MAX_EXACT_OUTPUT_ROUNDS = 16;
|
|
@@ -18935,26 +18961,67 @@ var OrderbookMarket = class {
|
|
|
18935
18961
|
configService;
|
|
18936
18962
|
orderbook;
|
|
18937
18963
|
async quoteIntent(params, sourceChain, destinationChain) {
|
|
18964
|
+
const orderbook = this.orderbook();
|
|
18965
|
+
if (!params.optimistic) {
|
|
18966
|
+
const { quote: quote2, tokenIn: tokenIn2, tokenOut: tokenOut2 } = await this.priceIntent(
|
|
18967
|
+
params,
|
|
18968
|
+
sourceChain,
|
|
18969
|
+
destinationChain,
|
|
18970
|
+
(route, amountIn) => orderbook.quotePessimistic(route, amountIn),
|
|
18971
|
+
levelQuoteTotals
|
|
18972
|
+
);
|
|
18973
|
+
return {
|
|
18974
|
+
route: quote2.route,
|
|
18975
|
+
side: quote2.side,
|
|
18976
|
+
amountIn: fromOrderbookAmount(quote2.amountIn, tokenIn2.decimals),
|
|
18977
|
+
amountOut: fromOrderbookAmount(quote2.amountOut, tokenOut2.decimals),
|
|
18978
|
+
rate: quote2.rate,
|
|
18979
|
+
priceBucket: quote2.priceBucket,
|
|
18980
|
+
slippageBps: quote2.slippageBps,
|
|
18981
|
+
fillable: quote2.fillable,
|
|
18982
|
+
maxFillableIn: fromOrderbookAmount(quote2.maxFillableIn, tokenIn2.decimals)
|
|
18983
|
+
};
|
|
18984
|
+
}
|
|
18985
|
+
const { quote, tokenIn, tokenOut } = await this.priceIntent(
|
|
18986
|
+
params,
|
|
18987
|
+
sourceChain,
|
|
18988
|
+
destinationChain,
|
|
18989
|
+
(route, amountIn) => orderbook.quote(route, amountIn),
|
|
18990
|
+
swapQuoteTotals
|
|
18991
|
+
);
|
|
18992
|
+
return {
|
|
18993
|
+
route: quote.route,
|
|
18994
|
+
side: quote.side,
|
|
18995
|
+
amountIn: fromOrderbookAmount(quote.amountIn, tokenIn.decimals),
|
|
18996
|
+
slippageBps: quote.slippageBps,
|
|
18997
|
+
fillable: quote.fillable,
|
|
18998
|
+
maxFillableIn: fromOrderbookAmount(quote.maxFillableIn, tokenIn.decimals),
|
|
18999
|
+
legs: quote.fills.map((fill) => ({
|
|
19000
|
+
advertisedSize: fromOrderbookAmount(fill.advertisedSize, tokenOut.decimals),
|
|
19001
|
+
orderRate: fill.orderRate,
|
|
19002
|
+
amountIn: fromOrderbookAmount(fill.amountIn, tokenIn.decimals),
|
|
19003
|
+
amountOut: fromOrderbookAmount(fill.amountOut, tokenOut.decimals)
|
|
19004
|
+
}))
|
|
19005
|
+
};
|
|
19006
|
+
}
|
|
19007
|
+
/**
|
|
19008
|
+
* The orderbook's quote for an exact input, or for the input found to deliver
|
|
19009
|
+
* an exact output, with the assets it trades. A route that cannot fill the
|
|
19010
|
+
* trade answers with an unfillable quote rather than an error.
|
|
19011
|
+
*/
|
|
19012
|
+
async priceIntent(params, sourceChain, destinationChain, price, totals) {
|
|
18938
19013
|
validateQuoteParams(params);
|
|
18939
19014
|
const tokenIn = this.assetByAddress(sourceChain, params.tokenIn);
|
|
18940
19015
|
const tokenOut = this.assetByAddress(destinationChain, params.tokenOut);
|
|
18941
19016
|
const route = toRoute(tokenIn, tokenOut);
|
|
18942
19017
|
if (params.amountIn !== void 0) {
|
|
18943
|
-
const quote2 = await
|
|
18944
|
-
|
|
18945
|
-
|
|
18946
|
-
return buildQuote("EXACT_INPUT", params.amountIn, amountOut2, quote2, tokenIn, tokenOut);
|
|
19018
|
+
const quote2 = await price(route, toOrderbookAmount(params.amountIn, tokenIn.decimals));
|
|
19019
|
+
totals(quote2);
|
|
19020
|
+
return { quote: quote2, tokenIn, tokenOut };
|
|
18947
19021
|
}
|
|
18948
|
-
const
|
|
18949
|
-
const quote = await this.quoteExactOutput(route,
|
|
18950
|
-
return
|
|
18951
|
-
"EXACT_OUTPUT",
|
|
18952
|
-
fromOrderbookAmount(quote.amountIn, tokenIn.decimals),
|
|
18953
|
-
amountOut,
|
|
18954
|
-
quote,
|
|
18955
|
-
tokenIn,
|
|
18956
|
-
tokenOut
|
|
18957
|
-
);
|
|
19022
|
+
const targetOut = toOrderbookAmount(params.amountOut, tokenOut.decimals);
|
|
19023
|
+
const quote = await this.quoteExactOutput(route, targetOut, tokenIn, price, totals);
|
|
19024
|
+
return { quote, tokenIn, tokenOut };
|
|
18958
19025
|
}
|
|
18959
19026
|
async availableLiquidity(params, sourceChain, destinationChain) {
|
|
18960
19027
|
const tokenIn = this.assetByAddress(sourceChain, params.tokenIn);
|
|
@@ -19007,22 +19074,29 @@ var OrderbookMarket = class {
|
|
|
19007
19074
|
}
|
|
19008
19075
|
/**
|
|
19009
19076
|
* The orderbook only quotes an input amount, so an output is priced by
|
|
19010
|
-
* guessing the input from the best rate
|
|
19011
|
-
*
|
|
19077
|
+
* guessing the input from the best rate, then keeping the part of each quote
|
|
19078
|
+
* filled better than its worst rate and re-pricing the rest of `targetOut` at
|
|
19079
|
+
* the input-to-output ratio that part filled at, until a quote delivers it.
|
|
19080
|
+
* That ratio is the orderbook's own, with the protocol fee already taken off.
|
|
19081
|
+
*
|
|
19082
|
+
* An output the route cannot deliver is answered by quoting an input past its
|
|
19083
|
+
* `maxFillableIn`, which the orderbook serves as unfillable: the smallest such
|
|
19084
|
+
* input guessed from the best rate, or one raw unit when no order serves it.
|
|
19012
19085
|
*/
|
|
19013
|
-
async quoteExactOutput(route, targetOut, tokenIn) {
|
|
19014
|
-
const
|
|
19015
|
-
const liquidity = await orderbook.routeLiquidity(route);
|
|
19016
|
-
if (liquidity.bestRate === null) throw this.insufficient(route, 0n, tokenIn);
|
|
19086
|
+
async quoteExactOutput(route, targetOut, tokenIn, price, totals) {
|
|
19087
|
+
const liquidity = await this.orderbook().routeLiquidity(route);
|
|
19017
19088
|
const inputUnit = toOrderbookAmount(1n, tokenIn.decimals);
|
|
19018
|
-
let amountIn = roundUpTo(requiredInput(liquidity.side, targetOut, liquidity.bestRate), inputUnit);
|
|
19089
|
+
let amountIn = liquidity.bestRate === null ? inputUnit : roundUpTo(requiredInput(liquidity.side, targetOut, liquidity.bestRate), inputUnit);
|
|
19019
19090
|
let lastAmountIn = amountIn;
|
|
19020
19091
|
for (let round = 0; round < MAX_EXACT_OUTPUT_ROUNDS; round++) {
|
|
19021
|
-
|
|
19022
|
-
const quote =
|
|
19023
|
-
if (quote.fillable && quote.amountOut >= targetOut) return
|
|
19092
|
+
const served = await price(route, amountIn);
|
|
19093
|
+
const quote = totals(served);
|
|
19094
|
+
if (quote.fillable && quote.amountOut >= targetOut) return served;
|
|
19095
|
+
if (!quote.fillable && amountIn > liquidity.maxFillableIn) return served;
|
|
19024
19096
|
lastAmountIn = amountIn;
|
|
19025
|
-
const
|
|
19097
|
+
const betterIn = quote.amountIn - quote.worstIn;
|
|
19098
|
+
const betterOut = quote.amountOut - quote.worstOut;
|
|
19099
|
+
const next = quote.fillable && quote.worstOut > 0n ? betterIn + roundUpTo(divCeil((targetOut - betterOut) * quote.worstIn, quote.worstOut), inputUnit) : amountIn;
|
|
19026
19100
|
amountIn = next > amountIn ? next : amountIn + inputUnit;
|
|
19027
19101
|
}
|
|
19028
19102
|
throw new OrderbookQuoteNotConvergedError(
|
|
@@ -19031,9 +19105,6 @@ var OrderbookMarket = class {
|
|
|
19031
19105
|
fromOrderbookAmount(lastAmountIn, tokenIn.decimals)
|
|
19032
19106
|
);
|
|
19033
19107
|
}
|
|
19034
|
-
insufficient(route, maxFillableIn, tokenIn) {
|
|
19035
|
-
return new InsufficientOrderbookLiquidityError(route, fromOrderbookAmount(maxFillableIn, tokenIn.decimals));
|
|
19036
|
-
}
|
|
19037
19108
|
assetByAddress(chain, address) {
|
|
19038
19109
|
const resolvedChain = resolveChain(chain);
|
|
19039
19110
|
return withDecimals(
|
|
@@ -19078,24 +19149,32 @@ function toRoute(tokenIn, tokenOut) {
|
|
|
19078
19149
|
function requiredInput(side, amountOut, rate) {
|
|
19079
19150
|
return side === "BID" ? divCeil(amountOut * ORDERBOOK_SCALE, rate) : divCeil(amountOut * rate, ORDERBOOK_SCALE);
|
|
19080
19151
|
}
|
|
19081
|
-
function
|
|
19082
|
-
|
|
19083
|
-
|
|
19152
|
+
function swapQuoteTotals(quote) {
|
|
19153
|
+
const worstFill = quote.fills.at(-1);
|
|
19154
|
+
if (quote.fillable && !worstFill)
|
|
19155
|
+
throw new OrderbookRequestError("the orderbook served a fillable quote with no fills");
|
|
19084
19156
|
return {
|
|
19085
|
-
|
|
19086
|
-
amountIn,
|
|
19087
|
-
amountOut,
|
|
19088
|
-
|
|
19089
|
-
|
|
19090
|
-
|
|
19091
|
-
|
|
19092
|
-
|
|
19093
|
-
|
|
19094
|
-
|
|
19095
|
-
|
|
19096
|
-
|
|
19097
|
-
|
|
19098
|
-
|
|
19157
|
+
side: quote.side,
|
|
19158
|
+
amountIn: quote.amountIn,
|
|
19159
|
+
amountOut: quote.fills.reduce((total, fill) => total + fill.amountOut, 0n),
|
|
19160
|
+
fillable: quote.fillable,
|
|
19161
|
+
maxFillableIn: quote.maxFillableIn,
|
|
19162
|
+
worstIn: worstFill?.amountIn ?? 0n,
|
|
19163
|
+
worstOut: worstFill?.amountOut ?? 0n
|
|
19164
|
+
};
|
|
19165
|
+
}
|
|
19166
|
+
function levelQuoteTotals(quote) {
|
|
19167
|
+
if (quote.fillable && quote.rate === null) {
|
|
19168
|
+
throw new OrderbookRequestError("the orderbook served a fillable quote with no rate");
|
|
19169
|
+
}
|
|
19170
|
+
return {
|
|
19171
|
+
side: quote.side,
|
|
19172
|
+
amountIn: quote.amountIn,
|
|
19173
|
+
amountOut: quote.amountOut,
|
|
19174
|
+
fillable: quote.fillable,
|
|
19175
|
+
maxFillableIn: quote.maxFillableIn,
|
|
19176
|
+
worstIn: quote.amountIn,
|
|
19177
|
+
worstOut: quote.amountOut
|
|
19099
19178
|
};
|
|
19100
19179
|
}
|
|
19101
19180
|
function toOrderbookAmount(amount, decimals) {
|
|
@@ -19259,22 +19338,6 @@ var IntentGateway = class _IntentGateway {
|
|
|
19259
19338
|
this.orderbook = typeof orderbook === "string" ? new HyperFxOrderbook(orderbook) : orderbook;
|
|
19260
19339
|
return this;
|
|
19261
19340
|
}
|
|
19262
|
-
/**
|
|
19263
|
-
* Quotes an intent between this gateway's source and destination chains from
|
|
19264
|
-
* the HyperFX orderbook. Provide exactly one of `amountIn` or `amountOut`, in
|
|
19265
|
-
* raw token units.
|
|
19266
|
-
*
|
|
19267
|
-
* An exact-input quote is the orderbook's clearing price for `amountIn`,
|
|
19268
|
-
* which may combine several solvers' orders. An exact-output quote finds the
|
|
19269
|
-
* smallest input whose clearing price delivers `amountOut`. A cross-chain
|
|
19270
|
-
* route only counts orders whose solvers accept the source chain.
|
|
19271
|
-
*
|
|
19272
|
-
* The orderbook's rates already carry the gateway protocol fee, so the
|
|
19273
|
-
* returned amounts can be placed as the order's inputs and outputs directly.
|
|
19274
|
-
*
|
|
19275
|
-
* @throws {InsufficientOrderbookLiquidityError} When the route cannot fill the amount.
|
|
19276
|
-
* @throws {OrderbookRequestError} When the orderbook is unreachable or trades no book for the pair.
|
|
19277
|
-
*/
|
|
19278
19341
|
async quoteIntent(params) {
|
|
19279
19342
|
return this.market.quoteIntent(params, this.source.config.stateMachineId, this.dest.config.stateMachineId);
|
|
19280
19343
|
}
|
|
@@ -24571,6 +24634,6 @@ async function teleportDot(param_) {
|
|
|
24571
24634
|
return stream;
|
|
24572
24635
|
}
|
|
24573
24636
|
|
|
24574
|
-
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,
|
|
24637
|
+
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 };
|
|
24575
24638
|
//# sourceMappingURL=index.js.map
|
|
24576
24639
|
//# sourceMappingURL=index.js.map
|