@hyperbridge/sdk 2.8.8 → 2.8.11
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 +610 -83
- package/dist/browser/index.js +999 -155
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +1004 -151
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +8 -5
- package/dist/node/index.d.ts +8 -5
- package/dist/node/index.js +999 -155
- package/dist/node/index.js.map +1 -1
- package/dist/node/{intents-helpers-BCsIHRts.d.cts → intents-helpers-BRegx4yZ.d.cts} +1368 -451
- package/dist/node/{intents-helpers-BCsIHRts.d.ts → intents-helpers-BRegx4yZ.d.ts} +1368 -451
- package/dist/node/intents-helpers.cjs +378 -118
- package/dist/node/intents-helpers.cjs.map +1 -1
- package/dist/node/intents-helpers.d.cts +2 -1
- package/dist/node/intents-helpers.d.ts +2 -1
- package/dist/node/intents-helpers.js +374 -120
- package/dist/node/intents-helpers.js.map +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, u as AvailableLiquidity, Q as QueryBuyAndSellRatesParams, B as BuyAndSellRates, v as IntentOrderStatusUpdate, w as SelectBidResult, x as ResumeIntentOrderOptions, y as CancelOrderOptions, z as CancelQuote, D as SubmitBidOptions, F as PackedUserOperation, J as FillerBid, K as Bid, L as EstimateFillOrderParams, M as FillOrderEstimate, N as OrderFeesQuote, U as ERC7821Call, V as OrderWithStatus, W as OrderStatus, X as TokenGatewayAssetTeleportedWithStatus, Y as TeleportStatus, Z as DecodedOrderPlacedLog, _ as DecodedPostRequestEvent, $ as DecodedPostResponseEvent } from './intents-helpers-
|
|
2
|
-
export { a0 as AllStatusKey, a1 as AssetTeleportedResponse, a2 as BidStorageEntry, a3 as BidSubmissionResult, a4 as BlockMetadata, a5 as BytesLikeHex, a6 as
|
|
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, u as AvailableLiquidity, Q as QueryBuyAndSellRatesParams, B as BuyAndSellRates, v as IntentOrderStatusUpdate, w as SelectBidResult, x as ResumeIntentOrderOptions, y as CancelOrderOptions, z as CancelQuote, D as SubmitBidOptions, F as PackedUserOperation, J as FillerBid, K as Bid, L as EstimateFillOrderParams, M as FillOrderEstimate, N as OrderFeesQuote, U as ERC7821Call, V as OrderWithStatus, W as OrderStatus, X as TokenGatewayAssetTeleportedWithStatus, Y as TeleportStatus, Z as DecodedOrderPlacedLog, _ as DecodedPostRequestEvent, $ as DecodedPostResponseEvent } from './intents-helpers-BRegx4yZ.cjs';
|
|
2
|
+
export { a0 as AllStatusKey, a1 as AssetTeleportedResponse, a2 as BidStorageEntry, a3 as BidSubmissionResult, a4 as BlockMetadata, a5 as BytesLikeHex, a6 as CHAINS_WITHOUT_VALID_UNTIL, 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 FILL_ORDER_V1_ABI, aj as FillOptions, ak as FillOptionsVersion, al as FillerConfig, am as GetRequestResponse, an as GetResponseByRequestIdResponse, ao as GetResponseStorageValues, ap as HostParams, aq as HyperClientStatus, ar as IBatchConsensusAndGetResponseMessage, as as IBatchConsensusAndPostRequestMessage, at as IConfig, au as IConsensusMessage, av as IGetRequestMessage, aw as IGetResponse, ax as IGetResponseMessage, ay as IHyperbridgeConfig, az as INCLUSION_TIMEOUT_MS, aA as IPostResponse, aB as IRequestMessage, aC as ISubstrateConfig, aD as ITimeoutPostRequestMessage, aE as IntentGatewayABI, aF as IntentGatewayParams, aG as IntentOrderStatus, aH as IntentOrderStatusKey, aI as IsmpRequest, aJ as LEGACY_FILL_OPTIONS_IMPLEMENTATIONS, aK as LiquiditySlice, aL as OrderResponse, aM as OrderStatusMetadata, aN as PHANTOM_QUOTE_HAIRCUT_BPS, aO as PaymentInfo, aP as PhantomBid, aQ as PhantomBidBatchResult, aR as PhantomBidDeclaration, aS as PhantomBidOutcome, aT as PhantomOrderEvent, aU as PhantomOrderLeg, aV as PhantomOrderPriceSnapshot, aW as PhantomOrderPriceSnapshotsResponse, aX as PhantomTimings, aY as PollPhantomOrdersOptions, aZ as PostRequestStatus, a_ as RequestBody, a$ as RequestCommitment, b0 as RequestKind, b1 as RequestResponse, b2 as RequestStatus, b3 as RequestStatusKey, b4 as SelectOptions, b5 as SigningAccount, b6 as StateMachineId, b7 as StateMachineResponse, b8 as StorageFacade, b9 as TimeoutStatus, ba as TimeoutStatusKey, bb as TokenGatewayAssetTeleportedResponse, bc as TokenInfo, bd as TokenPrice, be as TokenPricesResponse, bf as UNISWAP_QUOTE_HAIRCUT_BPS, bg as UniswapV4PoolConfigData, bh as applyPhantomQuoteHaircut, bi as applyUniswapQuoteHaircut, bj as chainConfigs, bk as convertCodecToIGetRequest, bl as convertCodecToIProof, bm as convertIGetRequestToCodec, bn as convertIProofToCodec, bo as convertStateIdToStateMachineId, bp as convertStateMachineEnumToString, bq as convertStateMachineIdToEnum, br as decodeAcceptedSourceChains, bs as decodeERC7821ExecuteBatch, bt as decodeFillOrder, bu as decodePhantomBidDeclaration, bv as decodeUserOpScale, bw as deriveHttpUrl, bx as encodeAcceptedSourceChains, by as encodeERC7821ExecuteBatch, bz as encodeFillOrder, bA as encodeISMPMessage, bB as encodePhantomBidDeclaration, bC as encodeUserOpScale, bD as getChainId, bE as getConfigByStateMachineId, bF as getFillOptionsVersion, bG as getViemChain, bH as hyperbridgeAddress, bI as pharosAtlantic, bJ as pharosMainnet, bK as polkadotAssetHubPaseo, bL as polkadotHubMainnet, bM as poolSlug, bN as resetFillOptionsVersionCache, bO as sortPoolSymbols, bP as tronChainIds, bQ as tronNile } from './intents-helpers-BRegx4yZ.cjs';
|
|
3
3
|
import { ConsolaInstance } from 'consola';
|
|
4
4
|
import { GraphQLClient } from 'graphql-request';
|
|
5
5
|
import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
|
|
@@ -12,6 +12,7 @@ export { Account as ViemAccount } from 'viem/accounts';
|
|
|
12
12
|
import 'decimal.js';
|
|
13
13
|
import 'viem/chains';
|
|
14
14
|
import '@polkadot/keyring/types';
|
|
15
|
+
import '@polkadot/types/interfaces';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* The default address used as fallback when no address is provided.
|
|
@@ -1955,8 +1956,9 @@ declare class IntentGateway {
|
|
|
1955
1956
|
* **Yield/receive protocol:**
|
|
1956
1957
|
* 1. If `order.fees` is unset or zero, prices the fee on an internal copy
|
|
1957
1958
|
* via {@link quoteOrderFees}: same-chain fees are twice the fill-gas
|
|
1958
|
-
* estimate without a gas-price bump; cross-chain
|
|
1959
|
-
*
|
|
1959
|
+
* estimate without a gas-price bump; cross-chain order fees originating on
|
|
1960
|
+
* Ethereum price gas 50% above the live price, while other source chains use
|
|
1961
|
+
* 10%, before attaching (fill gas + the settlement relayer fee)
|
|
1960
1962
|
* with a further 5% buffer over the whole sum — strictly above the solver's
|
|
1961
1963
|
* unpadded requirement. Direct solver estimates remain unbumped. The wei
|
|
1962
1964
|
* cost used for the `value` field receives a 2% buffer.
|
|
@@ -2192,7 +2194,8 @@ declare class IntentGateway {
|
|
|
2192
2194
|
* transaction (check the native balance).
|
|
2193
2195
|
*
|
|
2194
2196
|
* @param order - The order to quote. `order.fees` is ignored and not mutated.
|
|
2195
|
-
* Gas prices used to derive cross-chain `fees` receive
|
|
2197
|
+
* Gas prices used to derive cross-chain `fees` receive 50% SDK-only headroom
|
|
2198
|
+
* when the source chain is Ethereum mainnet and 10% for other source chains.
|
|
2196
2199
|
* Same-chain quotes and direct calls to {@link estimateFillOrder}, including
|
|
2197
2200
|
* Simplex solver estimates, remain unbumped.
|
|
2198
2201
|
*
|
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, u as AvailableLiquidity, Q as QueryBuyAndSellRatesParams, B as BuyAndSellRates, v as IntentOrderStatusUpdate, w as SelectBidResult, x as ResumeIntentOrderOptions, y as CancelOrderOptions, z as CancelQuote, D as SubmitBidOptions, F as PackedUserOperation, J as FillerBid, K as Bid, L as EstimateFillOrderParams, M as FillOrderEstimate, N as OrderFeesQuote, U as ERC7821Call, V as OrderWithStatus, W as OrderStatus, X as TokenGatewayAssetTeleportedWithStatus, Y as TeleportStatus, Z as DecodedOrderPlacedLog, _ as DecodedPostRequestEvent, $ as DecodedPostResponseEvent } from './intents-helpers-
|
|
2
|
-
export { a0 as AllStatusKey, a1 as AssetTeleportedResponse, a2 as BidStorageEntry, a3 as BidSubmissionResult, a4 as BlockMetadata, a5 as BytesLikeHex, a6 as
|
|
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, u as AvailableLiquidity, Q as QueryBuyAndSellRatesParams, B as BuyAndSellRates, v as IntentOrderStatusUpdate, w as SelectBidResult, x as ResumeIntentOrderOptions, y as CancelOrderOptions, z as CancelQuote, D as SubmitBidOptions, F as PackedUserOperation, J as FillerBid, K as Bid, L as EstimateFillOrderParams, M as FillOrderEstimate, N as OrderFeesQuote, U as ERC7821Call, V as OrderWithStatus, W as OrderStatus, X as TokenGatewayAssetTeleportedWithStatus, Y as TeleportStatus, Z as DecodedOrderPlacedLog, _ as DecodedPostRequestEvent, $ as DecodedPostResponseEvent } from './intents-helpers-BRegx4yZ.js';
|
|
2
|
+
export { a0 as AllStatusKey, a1 as AssetTeleportedResponse, a2 as BidStorageEntry, a3 as BidSubmissionResult, a4 as BlockMetadata, a5 as BytesLikeHex, a6 as CHAINS_WITHOUT_VALID_UNTIL, 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 FILL_ORDER_V1_ABI, aj as FillOptions, ak as FillOptionsVersion, al as FillerConfig, am as GetRequestResponse, an as GetResponseByRequestIdResponse, ao as GetResponseStorageValues, ap as HostParams, aq as HyperClientStatus, ar as IBatchConsensusAndGetResponseMessage, as as IBatchConsensusAndPostRequestMessage, at as IConfig, au as IConsensusMessage, av as IGetRequestMessage, aw as IGetResponse, ax as IGetResponseMessage, ay as IHyperbridgeConfig, az as INCLUSION_TIMEOUT_MS, aA as IPostResponse, aB as IRequestMessage, aC as ISubstrateConfig, aD as ITimeoutPostRequestMessage, aE as IntentGatewayABI, aF as IntentGatewayParams, aG as IntentOrderStatus, aH as IntentOrderStatusKey, aI as IsmpRequest, aJ as LEGACY_FILL_OPTIONS_IMPLEMENTATIONS, aK as LiquiditySlice, aL as OrderResponse, aM as OrderStatusMetadata, aN as PHANTOM_QUOTE_HAIRCUT_BPS, aO as PaymentInfo, aP as PhantomBid, aQ as PhantomBidBatchResult, aR as PhantomBidDeclaration, aS as PhantomBidOutcome, aT as PhantomOrderEvent, aU as PhantomOrderLeg, aV as PhantomOrderPriceSnapshot, aW as PhantomOrderPriceSnapshotsResponse, aX as PhantomTimings, aY as PollPhantomOrdersOptions, aZ as PostRequestStatus, a_ as RequestBody, a$ as RequestCommitment, b0 as RequestKind, b1 as RequestResponse, b2 as RequestStatus, b3 as RequestStatusKey, b4 as SelectOptions, b5 as SigningAccount, b6 as StateMachineId, b7 as StateMachineResponse, b8 as StorageFacade, b9 as TimeoutStatus, ba as TimeoutStatusKey, bb as TokenGatewayAssetTeleportedResponse, bc as TokenInfo, bd as TokenPrice, be as TokenPricesResponse, bf as UNISWAP_QUOTE_HAIRCUT_BPS, bg as UniswapV4PoolConfigData, bh as applyPhantomQuoteHaircut, bi as applyUniswapQuoteHaircut, bj as chainConfigs, bk as convertCodecToIGetRequest, bl as convertCodecToIProof, bm as convertIGetRequestToCodec, bn as convertIProofToCodec, bo as convertStateIdToStateMachineId, bp as convertStateMachineEnumToString, bq as convertStateMachineIdToEnum, br as decodeAcceptedSourceChains, bs as decodeERC7821ExecuteBatch, bt as decodeFillOrder, bu as decodePhantomBidDeclaration, bv as decodeUserOpScale, bw as deriveHttpUrl, bx as encodeAcceptedSourceChains, by as encodeERC7821ExecuteBatch, bz as encodeFillOrder, bA as encodeISMPMessage, bB as encodePhantomBidDeclaration, bC as encodeUserOpScale, bD as getChainId, bE as getConfigByStateMachineId, bF as getFillOptionsVersion, bG as getViemChain, bH as hyperbridgeAddress, bI as pharosAtlantic, bJ as pharosMainnet, bK as polkadotAssetHubPaseo, bL as polkadotHubMainnet, bM as poolSlug, bN as resetFillOptionsVersionCache, bO as sortPoolSymbols, bP as tronChainIds, bQ as tronNile } from './intents-helpers-BRegx4yZ.js';
|
|
3
3
|
import { ConsolaInstance } from 'consola';
|
|
4
4
|
import { GraphQLClient } from 'graphql-request';
|
|
5
5
|
import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
|
|
@@ -12,6 +12,7 @@ export { Account as ViemAccount } from 'viem/accounts';
|
|
|
12
12
|
import 'decimal.js';
|
|
13
13
|
import 'viem/chains';
|
|
14
14
|
import '@polkadot/keyring/types';
|
|
15
|
+
import '@polkadot/types/interfaces';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* The default address used as fallback when no address is provided.
|
|
@@ -1955,8 +1956,9 @@ declare class IntentGateway {
|
|
|
1955
1956
|
* **Yield/receive protocol:**
|
|
1956
1957
|
* 1. If `order.fees` is unset or zero, prices the fee on an internal copy
|
|
1957
1958
|
* via {@link quoteOrderFees}: same-chain fees are twice the fill-gas
|
|
1958
|
-
* estimate without a gas-price bump; cross-chain
|
|
1959
|
-
*
|
|
1959
|
+
* estimate without a gas-price bump; cross-chain order fees originating on
|
|
1960
|
+
* Ethereum price gas 50% above the live price, while other source chains use
|
|
1961
|
+
* 10%, before attaching (fill gas + the settlement relayer fee)
|
|
1960
1962
|
* with a further 5% buffer over the whole sum — strictly above the solver's
|
|
1961
1963
|
* unpadded requirement. Direct solver estimates remain unbumped. The wei
|
|
1962
1964
|
* cost used for the `value` field receives a 2% buffer.
|
|
@@ -2192,7 +2194,8 @@ declare class IntentGateway {
|
|
|
2192
2194
|
* transaction (check the native balance).
|
|
2193
2195
|
*
|
|
2194
2196
|
* @param order - The order to quote. `order.fees` is ignored and not mutated.
|
|
2195
|
-
* Gas prices used to derive cross-chain `fees` receive
|
|
2197
|
+
* Gas prices used to derive cross-chain `fees` receive 50% SDK-only headroom
|
|
2198
|
+
* when the source chain is Ethereum mainnet and 10% for other source chains.
|
|
2196
2199
|
* Same-chain quotes and direct calls to {@link estimateFillOrder}, including
|
|
2197
2200
|
* Simplex solver estimates, remain unbumped.
|
|
2198
2201
|
*
|