@hyperbridge/sdk 2.8.21 → 2.8.22
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 +5 -6
- package/dist/browser/index.js +7 -11
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +7 -11
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +6 -6
- package/dist/node/index.d.ts +6 -6
- package/dist/node/index.js +7 -11
- package/dist/node/index.js.map +1 -1
- package/dist/node/{intents-helpers-D0JcQNDm.d.cts → intents-helpers-CIvj1tbX.d.cts} +1 -2
- package/dist/node/{intents-helpers-D0JcQNDm.d.ts → intents-helpers-CIvj1tbX.d.ts} +1 -2
- package/dist/node/intents-helpers.d.cts +1 -1
- package/dist/node/intents-helpers.d.ts +1 -1
- package/package.json +1 -1
package/dist/node/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IChain, H as HexString, a as IEvmConfig, C as ChainConfigService, b as IMessage, S as StateMachineIdParams, c as StateMachineHeight, d as IIsmpMessage, e as IPostRequest, f as IGetRequest, O as Order, E as EstimateGasCallData, R as RetryConfig, g as IPolkadotHubConfig, h as IPharosConfig, i as StateMachineUpdate, P as PostRequestWithStatus, G as GetRequestWithStatus, j as ResponseCommitmentWithValues, k as RequestStatusWithMetadata, l as PostRequestTimeoutStatus, m as SubstrateChain, n as ClientConfig, o as IndexerQueryClient, A as AssetTeleported, T as Transaction, p as IProof, q as IEvmChain, r as IntentsCoprocessor, s as Chains, t as ConfiguredAssetSymbol, Q as QueryBuyAndSellRatesParams, u as IntentOrderStatusUpdate, v as SelectBidResult, w as ResumeIntentOrderOptions, x as CancelOrderOptions, y as CancelQuote, z as SubmitBidOptions, B as PackedUserOperation, F as FillerBid, D as Bid, J as EstimateFillOrderParams, K as FillOrderEstimate, L as BidPreVerificationGasParams, M as OrderFeesQuote, N as ERC7821Call, U as TokenInfo, V as OrderWithStatus, W as OrderStatus, X as FillOptions, Y as TokenGatewayAssetTeleportedWithStatus, Z as TeleportStatus, _ as DecodedOrderPlacedLog, $ as DecodedPostRequestEvent, a0 as DecodedPostResponseEvent } from './intents-helpers-
|
|
2
|
-
export { a1 as AllStatusKey, a2 as AssetTeleportedResponse, a3 as BidStorageEntry, a4 as BidSubmissionResult, a5 as BlockMetadata, a6 as BytesLikeHex, a7 as CancelOptions, a8 as ChainConfig, a9 as ChainConfigData, aa as ConfiguredAssetSymbolInput, ab as Deployment, ac as DispatchGet, ad as DispatchInfo, ae as DispatchPost, af as Erc4626VaultConfigData, ag as ExecuteIntentOrderOptions, ah as ExecutionResult, ai as FillerConfig, aj as GetRequestResponse, ak as GetResponseByRequestIdResponse, al as GetResponseStorageValues, am as HostParams, an as HyperClientStatus, ao as IBatchConsensusAndGetResponseMessage, ap as IBatchConsensusAndPostRequestMessage, aq as IConfig, ar as IConsensusMessage, as as IGetRequestMessage, at as IGetResponse, au as IGetResponseMessage, av as IHyperbridgeConfig, aw as INCLUSION_TIMEOUT_MS, ax as IPostResponse, ay as IRequestMessage, az as ISubstrateConfig, aA as ITimeoutPostRequestMessage, aB as IntentGatewayABI, aC as IntentGatewayParams, aD as IntentOrderStatus, aE as IntentOrderStatusKey, aF as IsmpRequest, aG as MAX_DECLARED_ENTRIES, aH as OrderResponse, aI as OrderStatusMetadata, aJ as PERMIT2_SPONSORSHIP_BYTES, aK as PaymentInfo, aL as PhantomBidDeclaration, aM as PhantomBidPaymasterAndData, aN as PhantomBidSponsorship, aO as PostRequestStatus, aP as RequestBody, aQ as RequestCommitment, aR as RequestKind, aS as RequestResponse, aT as RequestStatus, aU as RequestStatusKey, aV as RpcBidInfo, aW as SelectOptions, aX as SigningAccount, aY as StateMachineId, aZ as StateMachineResponse, a_ as StorageFacade, a$ as TimeoutStatus, b0 as TimeoutStatusKey, b1 as TokenGatewayAssetTeleportedResponse, b2 as TokenPrice, b3 as TokenPricesResponse, b4 as chainConfigs, b5 as convertCodecToIGetRequest, b6 as convertCodecToIProof, b7 as convertIGetRequestToCodec, b8 as convertIProofToCodec, b9 as convertStateIdToStateMachineId, ba as convertStateMachineEnumToString, bb as convertStateMachineIdToEnum, bc as decodeAcceptedSourceChains, bd as decodeERC7821ExecuteBatch, be as decodePhantomBidDeclaration, bf as decodePhantomBidPaymasterAndData, bg as decodeUserOpScale, bh as deriveHttpUrl, bi as encodeAcceptedSourceChains, bj as encodeERC7821ExecuteBatch, bk as encodeISMPMessage, bl as encodePhantomBidDeclaration, bm as encodePhantomBidPaymasterAndData, bn as encodeUserOpScale, bo as getChainId, bp as getConfigByStateMachineId, bq as getViemChain, br as hyperbridgeAddress, bs as pharosAtlantic, bt as pharosMainnet, bu as polkadotAssetHubPaseo, bv as polkadotHubMainnet, bw as poolSlug, bx as sortPoolSymbols, by as tronChainIds, bz as tronNile } from './intents-helpers-
|
|
1
|
+
import { I as IChain, H as HexString, a as IEvmConfig, C as ChainConfigService, b as IMessage, S as StateMachineIdParams, c as StateMachineHeight, d as IIsmpMessage, e as IPostRequest, f as IGetRequest, O as Order, E as EstimateGasCallData, R as RetryConfig, g as IPolkadotHubConfig, h as IPharosConfig, i as StateMachineUpdate, P as PostRequestWithStatus, G as GetRequestWithStatus, j as ResponseCommitmentWithValues, k as RequestStatusWithMetadata, l as PostRequestTimeoutStatus, m as SubstrateChain, n as ClientConfig, o as IndexerQueryClient, A as AssetTeleported, T as Transaction, p as IProof, q as IEvmChain, r as IntentsCoprocessor, s as Chains, t as ConfiguredAssetSymbol, Q as QueryBuyAndSellRatesParams, u as IntentOrderStatusUpdate, v as SelectBidResult, w as ResumeIntentOrderOptions, x as CancelOrderOptions, y as CancelQuote, z as SubmitBidOptions, B as PackedUserOperation, F as FillerBid, D as Bid, J as EstimateFillOrderParams, K as FillOrderEstimate, L as BidPreVerificationGasParams, M as OrderFeesQuote, N as ERC7821Call, U as TokenInfo, V as OrderWithStatus, W as OrderStatus, X as FillOptions, Y as TokenGatewayAssetTeleportedWithStatus, Z as TeleportStatus, _ as DecodedOrderPlacedLog, $ as DecodedPostRequestEvent, a0 as DecodedPostResponseEvent } from './intents-helpers-CIvj1tbX.cjs';
|
|
2
|
+
export { a1 as AllStatusKey, a2 as AssetTeleportedResponse, a3 as BidStorageEntry, a4 as BidSubmissionResult, a5 as BlockMetadata, a6 as BytesLikeHex, a7 as CancelOptions, a8 as ChainConfig, a9 as ChainConfigData, aa as ConfiguredAssetSymbolInput, ab as Deployment, ac as DispatchGet, ad as DispatchInfo, ae as DispatchPost, af as Erc4626VaultConfigData, ag as ExecuteIntentOrderOptions, ah as ExecutionResult, ai as FillerConfig, aj as GetRequestResponse, ak as GetResponseByRequestIdResponse, al as GetResponseStorageValues, am as HostParams, an as HyperClientStatus, ao as IBatchConsensusAndGetResponseMessage, ap as IBatchConsensusAndPostRequestMessage, aq as IConfig, ar as IConsensusMessage, as as IGetRequestMessage, at as IGetResponse, au as IGetResponseMessage, av as IHyperbridgeConfig, aw as INCLUSION_TIMEOUT_MS, ax as IPostResponse, ay as IRequestMessage, az as ISubstrateConfig, aA as ITimeoutPostRequestMessage, aB as IntentGatewayABI, aC as IntentGatewayParams, aD as IntentOrderStatus, aE as IntentOrderStatusKey, aF as IsmpRequest, aG as MAX_DECLARED_ENTRIES, aH as OrderResponse, aI as OrderStatusMetadata, aJ as PERMIT2_SPONSORSHIP_BYTES, aK as PaymentInfo, aL as PhantomBidDeclaration, aM as PhantomBidPaymasterAndData, aN as PhantomBidSponsorship, aO as PostRequestStatus, aP as RequestBody, aQ as RequestCommitment, aR as RequestKind, aS as RequestResponse, aT as RequestStatus, aU as RequestStatusKey, aV as RpcBidInfo, aW as SelectOptions, aX as SigningAccount, aY as StateMachineId, aZ as StateMachineResponse, a_ as StorageFacade, a$ as TimeoutStatus, b0 as TimeoutStatusKey, b1 as TokenGatewayAssetTeleportedResponse, b2 as TokenPrice, b3 as TokenPricesResponse, b4 as chainConfigs, b5 as convertCodecToIGetRequest, b6 as convertCodecToIProof, b7 as convertIGetRequestToCodec, b8 as convertIProofToCodec, b9 as convertStateIdToStateMachineId, ba as convertStateMachineEnumToString, bb as convertStateMachineIdToEnum, bc as decodeAcceptedSourceChains, bd as decodeERC7821ExecuteBatch, be as decodePhantomBidDeclaration, bf as decodePhantomBidPaymasterAndData, bg as decodeUserOpScale, bh as deriveHttpUrl, bi as encodeAcceptedSourceChains, bj as encodeERC7821ExecuteBatch, bk as encodeISMPMessage, bl as encodePhantomBidDeclaration, bm as encodePhantomBidPaymasterAndData, bn as encodeUserOpScale, bo as getChainId, bp as getConfigByStateMachineId, bq as getViemChain, br as hyperbridgeAddress, bs as pharosAtlantic, bt as pharosMainnet, bu as polkadotAssetHubPaseo, bv as polkadotHubMainnet, bw as poolSlug, bx as sortPoolSymbols, by as tronChainIds, bz as tronNile } from './intents-helpers-CIvj1tbX.cjs';
|
|
3
3
|
import { ConsolaInstance } from 'consola';
|
|
4
4
|
import { GraphQLClient } from 'graphql-request';
|
|
5
5
|
import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
|
|
@@ -2161,9 +2161,9 @@ declare class IntentGateway {
|
|
|
2161
2161
|
* 1. If `order.fees` is unset or zero, prices the fee on an internal copy
|
|
2162
2162
|
* via {@link quoteOrderFees}: same-chain fees are twice the fill-gas
|
|
2163
2163
|
* estimate without a gas-price bump; cross-chain order fees originating on
|
|
2164
|
-
* Ethereum price gas 50% above the live price, while other source
|
|
2165
|
-
*
|
|
2166
|
-
* with a further 5% buffer over the whole sum — strictly above the solver's
|
|
2164
|
+
* Ethereum mainnet price gas 50% above the live price, while other source
|
|
2165
|
+
* chains use 100%, before attaching (fill gas + the settlement relayer
|
|
2166
|
+
* fee) with a further 5% buffer over the whole sum — strictly above the solver's
|
|
2167
2167
|
* unpadded requirement. Direct solver estimates remain unbumped. The wei
|
|
2168
2168
|
* cost used for the `value` field receives a 2% buffer.
|
|
2169
2169
|
* 2. Yields `AWAITING_PLACE_ORDER` with `{ to, data, value, nativeFee,
|
|
@@ -2417,7 +2417,7 @@ declare class IntentGateway {
|
|
|
2417
2417
|
*
|
|
2418
2418
|
* @param order - The order to quote. `order.fees` is ignored and not mutated.
|
|
2419
2419
|
* Gas prices used to derive cross-chain `fees` receive 50% SDK-only headroom
|
|
2420
|
-
* when the source chain is Ethereum mainnet and
|
|
2420
|
+
* when the source chain is Ethereum mainnet and 100% for other source chains.
|
|
2421
2421
|
* Same-chain quotes and direct calls to {@link estimateFillOrder}, including
|
|
2422
2422
|
* Simplex solver estimates, remain unbumped.
|
|
2423
2423
|
*
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IChain, H as HexString, a as IEvmConfig, C as ChainConfigService, b as IMessage, S as StateMachineIdParams, c as StateMachineHeight, d as IIsmpMessage, e as IPostRequest, f as IGetRequest, O as Order, E as EstimateGasCallData, R as RetryConfig, g as IPolkadotHubConfig, h as IPharosConfig, i as StateMachineUpdate, P as PostRequestWithStatus, G as GetRequestWithStatus, j as ResponseCommitmentWithValues, k as RequestStatusWithMetadata, l as PostRequestTimeoutStatus, m as SubstrateChain, n as ClientConfig, o as IndexerQueryClient, A as AssetTeleported, T as Transaction, p as IProof, q as IEvmChain, r as IntentsCoprocessor, s as Chains, t as ConfiguredAssetSymbol, Q as QueryBuyAndSellRatesParams, u as IntentOrderStatusUpdate, v as SelectBidResult, w as ResumeIntentOrderOptions, x as CancelOrderOptions, y as CancelQuote, z as SubmitBidOptions, B as PackedUserOperation, F as FillerBid, D as Bid, J as EstimateFillOrderParams, K as FillOrderEstimate, L as BidPreVerificationGasParams, M as OrderFeesQuote, N as ERC7821Call, U as TokenInfo, V as OrderWithStatus, W as OrderStatus, X as FillOptions, Y as TokenGatewayAssetTeleportedWithStatus, Z as TeleportStatus, _ as DecodedOrderPlacedLog, $ as DecodedPostRequestEvent, a0 as DecodedPostResponseEvent } from './intents-helpers-
|
|
2
|
-
export { a1 as AllStatusKey, a2 as AssetTeleportedResponse, a3 as BidStorageEntry, a4 as BidSubmissionResult, a5 as BlockMetadata, a6 as BytesLikeHex, a7 as CancelOptions, a8 as ChainConfig, a9 as ChainConfigData, aa as ConfiguredAssetSymbolInput, ab as Deployment, ac as DispatchGet, ad as DispatchInfo, ae as DispatchPost, af as Erc4626VaultConfigData, ag as ExecuteIntentOrderOptions, ah as ExecutionResult, ai as FillerConfig, aj as GetRequestResponse, ak as GetResponseByRequestIdResponse, al as GetResponseStorageValues, am as HostParams, an as HyperClientStatus, ao as IBatchConsensusAndGetResponseMessage, ap as IBatchConsensusAndPostRequestMessage, aq as IConfig, ar as IConsensusMessage, as as IGetRequestMessage, at as IGetResponse, au as IGetResponseMessage, av as IHyperbridgeConfig, aw as INCLUSION_TIMEOUT_MS, ax as IPostResponse, ay as IRequestMessage, az as ISubstrateConfig, aA as ITimeoutPostRequestMessage, aB as IntentGatewayABI, aC as IntentGatewayParams, aD as IntentOrderStatus, aE as IntentOrderStatusKey, aF as IsmpRequest, aG as MAX_DECLARED_ENTRIES, aH as OrderResponse, aI as OrderStatusMetadata, aJ as PERMIT2_SPONSORSHIP_BYTES, aK as PaymentInfo, aL as PhantomBidDeclaration, aM as PhantomBidPaymasterAndData, aN as PhantomBidSponsorship, aO as PostRequestStatus, aP as RequestBody, aQ as RequestCommitment, aR as RequestKind, aS as RequestResponse, aT as RequestStatus, aU as RequestStatusKey, aV as RpcBidInfo, aW as SelectOptions, aX as SigningAccount, aY as StateMachineId, aZ as StateMachineResponse, a_ as StorageFacade, a$ as TimeoutStatus, b0 as TimeoutStatusKey, b1 as TokenGatewayAssetTeleportedResponse, b2 as TokenPrice, b3 as TokenPricesResponse, b4 as chainConfigs, b5 as convertCodecToIGetRequest, b6 as convertCodecToIProof, b7 as convertIGetRequestToCodec, b8 as convertIProofToCodec, b9 as convertStateIdToStateMachineId, ba as convertStateMachineEnumToString, bb as convertStateMachineIdToEnum, bc as decodeAcceptedSourceChains, bd as decodeERC7821ExecuteBatch, be as decodePhantomBidDeclaration, bf as decodePhantomBidPaymasterAndData, bg as decodeUserOpScale, bh as deriveHttpUrl, bi as encodeAcceptedSourceChains, bj as encodeERC7821ExecuteBatch, bk as encodeISMPMessage, bl as encodePhantomBidDeclaration, bm as encodePhantomBidPaymasterAndData, bn as encodeUserOpScale, bo as getChainId, bp as getConfigByStateMachineId, bq as getViemChain, br as hyperbridgeAddress, bs as pharosAtlantic, bt as pharosMainnet, bu as polkadotAssetHubPaseo, bv as polkadotHubMainnet, bw as poolSlug, bx as sortPoolSymbols, by as tronChainIds, bz as tronNile } from './intents-helpers-
|
|
1
|
+
import { I as IChain, H as HexString, a as IEvmConfig, C as ChainConfigService, b as IMessage, S as StateMachineIdParams, c as StateMachineHeight, d as IIsmpMessage, e as IPostRequest, f as IGetRequest, O as Order, E as EstimateGasCallData, R as RetryConfig, g as IPolkadotHubConfig, h as IPharosConfig, i as StateMachineUpdate, P as PostRequestWithStatus, G as GetRequestWithStatus, j as ResponseCommitmentWithValues, k as RequestStatusWithMetadata, l as PostRequestTimeoutStatus, m as SubstrateChain, n as ClientConfig, o as IndexerQueryClient, A as AssetTeleported, T as Transaction, p as IProof, q as IEvmChain, r as IntentsCoprocessor, s as Chains, t as ConfiguredAssetSymbol, Q as QueryBuyAndSellRatesParams, u as IntentOrderStatusUpdate, v as SelectBidResult, w as ResumeIntentOrderOptions, x as CancelOrderOptions, y as CancelQuote, z as SubmitBidOptions, B as PackedUserOperation, F as FillerBid, D as Bid, J as EstimateFillOrderParams, K as FillOrderEstimate, L as BidPreVerificationGasParams, M as OrderFeesQuote, N as ERC7821Call, U as TokenInfo, V as OrderWithStatus, W as OrderStatus, X as FillOptions, Y as TokenGatewayAssetTeleportedWithStatus, Z as TeleportStatus, _ as DecodedOrderPlacedLog, $ as DecodedPostRequestEvent, a0 as DecodedPostResponseEvent } from './intents-helpers-CIvj1tbX.js';
|
|
2
|
+
export { a1 as AllStatusKey, a2 as AssetTeleportedResponse, a3 as BidStorageEntry, a4 as BidSubmissionResult, a5 as BlockMetadata, a6 as BytesLikeHex, a7 as CancelOptions, a8 as ChainConfig, a9 as ChainConfigData, aa as ConfiguredAssetSymbolInput, ab as Deployment, ac as DispatchGet, ad as DispatchInfo, ae as DispatchPost, af as Erc4626VaultConfigData, ag as ExecuteIntentOrderOptions, ah as ExecutionResult, ai as FillerConfig, aj as GetRequestResponse, ak as GetResponseByRequestIdResponse, al as GetResponseStorageValues, am as HostParams, an as HyperClientStatus, ao as IBatchConsensusAndGetResponseMessage, ap as IBatchConsensusAndPostRequestMessage, aq as IConfig, ar as IConsensusMessage, as as IGetRequestMessage, at as IGetResponse, au as IGetResponseMessage, av as IHyperbridgeConfig, aw as INCLUSION_TIMEOUT_MS, ax as IPostResponse, ay as IRequestMessage, az as ISubstrateConfig, aA as ITimeoutPostRequestMessage, aB as IntentGatewayABI, aC as IntentGatewayParams, aD as IntentOrderStatus, aE as IntentOrderStatusKey, aF as IsmpRequest, aG as MAX_DECLARED_ENTRIES, aH as OrderResponse, aI as OrderStatusMetadata, aJ as PERMIT2_SPONSORSHIP_BYTES, aK as PaymentInfo, aL as PhantomBidDeclaration, aM as PhantomBidPaymasterAndData, aN as PhantomBidSponsorship, aO as PostRequestStatus, aP as RequestBody, aQ as RequestCommitment, aR as RequestKind, aS as RequestResponse, aT as RequestStatus, aU as RequestStatusKey, aV as RpcBidInfo, aW as SelectOptions, aX as SigningAccount, aY as StateMachineId, aZ as StateMachineResponse, a_ as StorageFacade, a$ as TimeoutStatus, b0 as TimeoutStatusKey, b1 as TokenGatewayAssetTeleportedResponse, b2 as TokenPrice, b3 as TokenPricesResponse, b4 as chainConfigs, b5 as convertCodecToIGetRequest, b6 as convertCodecToIProof, b7 as convertIGetRequestToCodec, b8 as convertIProofToCodec, b9 as convertStateIdToStateMachineId, ba as convertStateMachineEnumToString, bb as convertStateMachineIdToEnum, bc as decodeAcceptedSourceChains, bd as decodeERC7821ExecuteBatch, be as decodePhantomBidDeclaration, bf as decodePhantomBidPaymasterAndData, bg as decodeUserOpScale, bh as deriveHttpUrl, bi as encodeAcceptedSourceChains, bj as encodeERC7821ExecuteBatch, bk as encodeISMPMessage, bl as encodePhantomBidDeclaration, bm as encodePhantomBidPaymasterAndData, bn as encodeUserOpScale, bo as getChainId, bp as getConfigByStateMachineId, bq as getViemChain, br as hyperbridgeAddress, bs as pharosAtlantic, bt as pharosMainnet, bu as polkadotAssetHubPaseo, bv as polkadotHubMainnet, bw as poolSlug, bx as sortPoolSymbols, by as tronChainIds, bz as tronNile } from './intents-helpers-CIvj1tbX.js';
|
|
3
3
|
import { ConsolaInstance } from 'consola';
|
|
4
4
|
import { GraphQLClient } from 'graphql-request';
|
|
5
5
|
import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
|
|
@@ -2161,9 +2161,9 @@ declare class IntentGateway {
|
|
|
2161
2161
|
* 1. If `order.fees` is unset or zero, prices the fee on an internal copy
|
|
2162
2162
|
* via {@link quoteOrderFees}: same-chain fees are twice the fill-gas
|
|
2163
2163
|
* estimate without a gas-price bump; cross-chain order fees originating on
|
|
2164
|
-
* Ethereum price gas 50% above the live price, while other source
|
|
2165
|
-
*
|
|
2166
|
-
* with a further 5% buffer over the whole sum — strictly above the solver's
|
|
2164
|
+
* Ethereum mainnet price gas 50% above the live price, while other source
|
|
2165
|
+
* chains use 100%, before attaching (fill gas + the settlement relayer
|
|
2166
|
+
* fee) with a further 5% buffer over the whole sum — strictly above the solver's
|
|
2167
2167
|
* unpadded requirement. Direct solver estimates remain unbumped. The wei
|
|
2168
2168
|
* cost used for the `value` field receives a 2% buffer.
|
|
2169
2169
|
* 2. Yields `AWAITING_PLACE_ORDER` with `{ to, data, value, nativeFee,
|
|
@@ -2417,7 +2417,7 @@ declare class IntentGateway {
|
|
|
2417
2417
|
*
|
|
2418
2418
|
* @param order - The order to quote. `order.fees` is ignored and not mutated.
|
|
2419
2419
|
* Gas prices used to derive cross-chain `fees` receive 50% SDK-only headroom
|
|
2420
|
-
* when the source chain is Ethereum mainnet and
|
|
2420
|
+
* when the source chain is Ethereum mainnet and 100% for other source chains.
|
|
2421
2421
|
* Same-chain quotes and direct calls to {@link estimateFillOrder}, including
|
|
2422
2422
|
* Simplex solver estimates, remain unbumped.
|
|
2423
2423
|
*
|
package/dist/node/index.js
CHANGED
|
@@ -19314,17 +19314,13 @@ function formatOptional(amount) {
|
|
|
19314
19314
|
}
|
|
19315
19315
|
|
|
19316
19316
|
// src/protocols/intents/IntentGateway.ts
|
|
19317
|
-
var
|
|
19318
|
-
|
|
19319
|
-
bySourceStateMachineId: {
|
|
19320
|
-
["EVM-1" /* MAINNET */]: 50n
|
|
19321
|
-
}
|
|
19322
|
-
};
|
|
19317
|
+
var ETHEREUM_ORDER_FEE_GAS_PRICE_BUMP_PERCENT = 50n;
|
|
19318
|
+
var DEFAULT_ORDER_FEE_GAS_PRICE_BUMP_PERCENT = 100n;
|
|
19323
19319
|
function resolveOrderFeeGasPriceBump(sourceStateMachineId, isSameChain) {
|
|
19324
19320
|
if (isSameChain) {
|
|
19325
19321
|
return 0n;
|
|
19326
19322
|
}
|
|
19327
|
-
return
|
|
19323
|
+
return sourceStateMachineId === "EVM-1" /* MAINNET */ ? ETHEREUM_ORDER_FEE_GAS_PRICE_BUMP_PERCENT : DEFAULT_ORDER_FEE_GAS_PRICE_BUMP_PERCENT;
|
|
19328
19324
|
}
|
|
19329
19325
|
var IntentGateway = class _IntentGateway {
|
|
19330
19326
|
/** EVM chain on which orders are placed and escrowed. */
|
|
@@ -19499,9 +19495,9 @@ var IntentGateway = class _IntentGateway {
|
|
|
19499
19495
|
* 1. If `order.fees` is unset or zero, prices the fee on an internal copy
|
|
19500
19496
|
* via {@link quoteOrderFees}: same-chain fees are twice the fill-gas
|
|
19501
19497
|
* estimate without a gas-price bump; cross-chain order fees originating on
|
|
19502
|
-
* Ethereum price gas 50% above the live price, while other source
|
|
19503
|
-
*
|
|
19504
|
-
* with a further 5% buffer over the whole sum — strictly above the solver's
|
|
19498
|
+
* Ethereum mainnet price gas 50% above the live price, while other source
|
|
19499
|
+
* chains use 100%, before attaching (fill gas + the settlement relayer
|
|
19500
|
+
* fee) with a further 5% buffer over the whole sum — strictly above the solver's
|
|
19505
19501
|
* unpadded requirement. Direct solver estimates remain unbumped. The wei
|
|
19506
19502
|
* cost used for the `value` field receives a 2% buffer.
|
|
19507
19503
|
* 2. Yields `AWAITING_PLACE_ORDER` with `{ to, data, value, nativeFee,
|
|
@@ -19891,7 +19887,7 @@ var IntentGateway = class _IntentGateway {
|
|
|
19891
19887
|
*
|
|
19892
19888
|
* @param order - The order to quote. `order.fees` is ignored and not mutated.
|
|
19893
19889
|
* Gas prices used to derive cross-chain `fees` receive 50% SDK-only headroom
|
|
19894
|
-
* when the source chain is Ethereum mainnet and
|
|
19890
|
+
* when the source chain is Ethereum mainnet and 100% for other source chains.
|
|
19895
19891
|
* Same-chain quotes and direct calls to {@link estimateFillOrder}, including
|
|
19896
19892
|
* Simplex solver estimates, remain unbumped.
|
|
19897
19893
|
*
|