@hyperbridge/sdk 2.2.3 → 2.3.1
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 +129 -24
- package/dist/browser/index.js +539 -111
- package/dist/browser/index.js.map +1 -1
- package/dist/node/IntentGatewayV2-SB851bZs.d.cts +5750 -0
- package/dist/node/IntentGatewayV2-SB851bZs.d.ts +5750 -0
- package/dist/node/index.cjs +539 -109
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +1500 -5743
- package/dist/node/index.d.ts +1500 -5743
- package/dist/node/index.js +539 -111
- package/dist/node/index.js.map +1 -1
- package/dist/node/intents-helpers.cjs +2084 -0
- package/dist/node/intents-helpers.cjs.map +1 -0
- package/dist/node/intents-helpers.d.cts +1469 -0
- package/dist/node/intents-helpers.d.ts +1469 -0
- package/dist/node/intents-helpers.js +2072 -0
- package/dist/node/intents-helpers.js.map +1 -0
- package/package.json +16 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -57,9 +57,9 @@ declare const _default: {
|
|
|
57
57
|
readonly name: "nonce";
|
|
58
58
|
readonly type: "uint64";
|
|
59
59
|
}, {
|
|
60
|
-
readonly internalType: "
|
|
60
|
+
readonly internalType: "bytes";
|
|
61
61
|
readonly name: "from";
|
|
62
|
-
readonly type: "
|
|
62
|
+
readonly type: "bytes";
|
|
63
63
|
}, {
|
|
64
64
|
readonly internalType: "uint64";
|
|
65
65
|
readonly name: "timeoutTimestamp";
|
|
@@ -154,9 +154,9 @@ declare const _default: {
|
|
|
154
154
|
readonly name: "nonce";
|
|
155
155
|
readonly type: "uint64";
|
|
156
156
|
}, {
|
|
157
|
-
readonly internalType: "
|
|
157
|
+
readonly internalType: "bytes";
|
|
158
158
|
readonly name: "from";
|
|
159
|
-
readonly type: "
|
|
159
|
+
readonly type: "bytes";
|
|
160
160
|
}, {
|
|
161
161
|
readonly internalType: "uint64";
|
|
162
162
|
readonly name: "timeoutTimestamp";
|
|
@@ -1142,9 +1142,16 @@ declare class EvmChain implements IChain {
|
|
|
1142
1142
|
queryProof(message: IMessage, counterparty: string, at?: bigint): Promise<HexString>;
|
|
1143
1143
|
/**
|
|
1144
1144
|
* Query and return the encoded storage proof for the provided keys at the given height.
|
|
1145
|
+
*
|
|
1146
|
+
* Keys may be either:
|
|
1147
|
+
* - 32-byte storage slots — read from `address` (or the host contract when omitted), or
|
|
1148
|
+
* - 52-byte cross-chain GET keys encoded as `address(20) || slot(32)`, where the target
|
|
1149
|
+
* contract is embedded in the key. These may span multiple contracts.
|
|
1150
|
+
*
|
|
1145
1151
|
* @param {bigint} at - The block height at which to query the storage proof.
|
|
1146
1152
|
* @param {HexString[]} keys - The keys for which to query the storage proof.
|
|
1147
|
-
* @param {HexString} address - Optional contract address
|
|
1153
|
+
* @param {HexString} address - Optional contract address; forces all keys to be read as slots
|
|
1154
|
+
* of this contract. Omit to let 52-byte keys carry their own contract address.
|
|
1148
1155
|
* @returns {Promise<HexString>} The encoded storage proof.
|
|
1149
1156
|
*/
|
|
1150
1157
|
queryStateProof(at: bigint, keys: HexString[], address?: HexString): Promise<HexString>;
|
|
@@ -1638,6 +1645,30 @@ declare class SubstrateChain implements IChain {
|
|
|
1638
1645
|
* @returns {Promise<HexString | undefined>} The relayer address responsible for delivering the request.
|
|
1639
1646
|
*/
|
|
1640
1647
|
queryRequestReceipt(commitment: HexString): Promise<HexString | undefined>;
|
|
1648
|
+
/**
|
|
1649
|
+
* Returns the storage key for a response receipt in the child trie.
|
|
1650
|
+
* A response receipt is keyed by the originating *request* commitment.
|
|
1651
|
+
* @param {HexString} key - The request commitment (0x-prefixed H256 hex string)
|
|
1652
|
+
* @returns {HexString} The storage key as a hex string
|
|
1653
|
+
*/
|
|
1654
|
+
responseReceiptKey(key: HexString): HexString;
|
|
1655
|
+
/**
|
|
1656
|
+
* Queries the response receipt for a request commitment. For a GET, Hyperbridge
|
|
1657
|
+
* produces the response as it processes the request, so the presence of a response
|
|
1658
|
+
* receipt indicates the request has already been delivered and handled.
|
|
1659
|
+
* @param {HexString} commitment - The originating request commitment to query.
|
|
1660
|
+
* @returns {Promise<HexString | undefined>} The receipt data if present, otherwise undefined.
|
|
1661
|
+
*/
|
|
1662
|
+
queryResponseReceipt(commitment: HexString): Promise<HexString | undefined>;
|
|
1663
|
+
/**
|
|
1664
|
+
* Queries the state-machine commitment Hyperbridge holds for a counterparty chain at an
|
|
1665
|
+
* exact height — the `BoundedStateCommitments` map that `state_machine_commitment` (and thus
|
|
1666
|
+
* proof verification) reads. Returns the committed `stateRoot`, or undefined if Hyperbridge
|
|
1667
|
+
* has not finalized that chain at exactly that height.
|
|
1668
|
+
* @param {StateMachineHeight} height - The counterparty state machine id + height.
|
|
1669
|
+
* @returns {Promise<HexString | undefined>} The committed state root, or undefined if absent.
|
|
1670
|
+
*/
|
|
1671
|
+
queryStateMachineCommitment(height: StateMachineHeight): Promise<HexString | undefined>;
|
|
1641
1672
|
/**
|
|
1642
1673
|
* Returns the current timestamp of the chain.
|
|
1643
1674
|
* @returns {Promise<bigint>} The current timestamp.
|
|
@@ -1822,6 +1853,14 @@ declare function encodeUserOpScale(userOp: PackedUserOperation): HexString;
|
|
|
1822
1853
|
* @returns The decoded PackedUserOperation
|
|
1823
1854
|
*/
|
|
1824
1855
|
declare function decodeUserOpScale(hex: HexString): PackedUserOperation;
|
|
1856
|
+
interface PhantomOrderEvent {
|
|
1857
|
+
commitment: HexString;
|
|
1858
|
+
chain: string;
|
|
1859
|
+
createdAt: number;
|
|
1860
|
+
tokenA: HexString;
|
|
1861
|
+
tokenB: HexString;
|
|
1862
|
+
standardAmount: bigint;
|
|
1863
|
+
}
|
|
1825
1864
|
/**
|
|
1826
1865
|
* Service for interacting with Hyperbridge's pallet-intents coprocessor.
|
|
1827
1866
|
* Handles bid submission and retrieval for the IntentGatewayV2 protocol.
|
|
@@ -1834,6 +1873,7 @@ declare class IntentsCoprocessor {
|
|
|
1834
1873
|
private ownsConnection;
|
|
1835
1874
|
/** Cached result of whether the node exposes intents_* RPC methods */
|
|
1836
1875
|
private hasIntentsRpc;
|
|
1876
|
+
private submissionQueue;
|
|
1837
1877
|
/**
|
|
1838
1878
|
* Creates and connects an IntentsCoprocessor to a Hyperbridge node.
|
|
1839
1879
|
* This creates and manages its own API connection.
|
|
@@ -1865,15 +1905,21 @@ declare class IntentsCoprocessor {
|
|
|
1865
1905
|
*/
|
|
1866
1906
|
disconnect(): Promise<void>;
|
|
1867
1907
|
/**
|
|
1868
|
-
* Creates a Substrate keypair from the configured private key
|
|
1869
|
-
* Supports
|
|
1908
|
+
* Creates a Substrate keypair from the configured private key.
|
|
1909
|
+
* Supports hex seed (with or without 0x), mnemonic phrases, and URI derivation paths (//Alice).
|
|
1870
1910
|
*/
|
|
1871
1911
|
getKeyPair(): KeyringPair;
|
|
1872
1912
|
/**
|
|
1873
|
-
* Signs and sends an extrinsic
|
|
1874
|
-
*
|
|
1913
|
+
* Signs and sends an extrinsic. Submissions are serialised through {@link submissionQueue} so
|
|
1914
|
+
* concurrent calls never collide on the substrate account nonce — each extrinsic reaches a block
|
|
1915
|
+
* before the next is signed.
|
|
1875
1916
|
*/
|
|
1876
1917
|
private signAndSendExtrinsic;
|
|
1918
|
+
/**
|
|
1919
|
+
* Signs and sends an extrinsic, handling status updates and errors.
|
|
1920
|
+
* Implements retry logic with progressive tip increases for stuck transactions.
|
|
1921
|
+
*/
|
|
1922
|
+
private sendExtrinsicWithRetries;
|
|
1877
1923
|
/**
|
|
1878
1924
|
* Sends an extrinsic with a timeout
|
|
1879
1925
|
*/
|
|
@@ -1895,6 +1941,27 @@ declare class IntentsCoprocessor {
|
|
|
1895
1941
|
* @returns BidSubmissionResult with success status and block/extrinsic hash
|
|
1896
1942
|
*/
|
|
1897
1943
|
retractBid(commitment: HexString): Promise<BidSubmissionResult>;
|
|
1944
|
+
/**
|
|
1945
|
+
* Places a new bid and retracts a previous one in a single transaction via utility.batch.
|
|
1946
|
+
*
|
|
1947
|
+
* The new bid is the primary operation, so `placeBid` MUST run first. `utility.batch` is
|
|
1948
|
+
* non-atomic: a failing call interrupts the batch (via a BatchInterrupted event) without
|
|
1949
|
+
* reverting the calls that already succeeded. Placing first guarantees the new bid lands even
|
|
1950
|
+
* when the retraction then fails — which it routinely does, because a previous commitment's bid
|
|
1951
|
+
* may already be gone (or was itself never placed), making `retractBid` return `BidNotFound`.
|
|
1952
|
+
*
|
|
1953
|
+
* Ordering retraction first (the previous behaviour) caused a self-sustaining cascade: a
|
|
1954
|
+
* `BidNotFound` on the leading retract skipped the trailing `placeBid`, so the current bid never
|
|
1955
|
+
* landed, so the *next* interval's retract of that never-placed commitment also failed, and so
|
|
1956
|
+
* on — silently, because the batch extrinsic itself reports success. The deposit reclaim is
|
|
1957
|
+
* best-effort; landing the bid is not.
|
|
1958
|
+
*
|
|
1959
|
+
* @param retractCommitment - The order commitment of the bid to retract (bytes32)
|
|
1960
|
+
* @param bidCommitment - The order commitment of the new bid (bytes32)
|
|
1961
|
+
* @param userOp - The encoded PackedUserOperation as hex string
|
|
1962
|
+
* @returns BidSubmissionResult with success status and block/extrinsic hash
|
|
1963
|
+
*/
|
|
1964
|
+
submitBidWithRetraction(retractCommitment: HexString, bidCommitment: HexString, userOp: HexString): Promise<BidSubmissionResult>;
|
|
1898
1965
|
/**
|
|
1899
1966
|
* Fetches all bid storage entries for a given order commitment.
|
|
1900
1967
|
* Returns the on-chain data only (filler addresses and deposits).
|
|
@@ -1928,6 +1995,21 @@ declare class IntentsCoprocessor {
|
|
|
1928
1995
|
private decodeBid;
|
|
1929
1996
|
/** Builds offchain storage key: "intents::bid::" + commitment + filler */
|
|
1930
1997
|
private buildOffchainBidKey;
|
|
1998
|
+
/**
|
|
1999
|
+
* Fetches the ABI-encoded phantom order from offchain storage and decodes it
|
|
2000
|
+
* into an `Order` object. The pallet writes the order bytes under the key
|
|
2001
|
+
* `intents::phantom::order::<commitment>` when it calls `on_initialize`.
|
|
2002
|
+
*
|
|
2003
|
+
* Returns `null` if the key is absent (e.g. the node is not an offchain worker
|
|
2004
|
+
* or the commitment has expired and been cleared).
|
|
2005
|
+
*/
|
|
2006
|
+
fetchPhantomOrder(commitment: HexString): Promise<Order | null>;
|
|
2007
|
+
/**
|
|
2008
|
+
* Subscribes to PhantomOrderRegistered events from the intents coprocessor pallet.
|
|
2009
|
+
* Calls the callback for each new phantom order as blocks arrive.
|
|
2010
|
+
* Returns an unsubscribe function to stop the subscription.
|
|
2011
|
+
*/
|
|
2012
|
+
subscribePhantomOrders(callback: (event: PhantomOrderEvent) => void): Promise<() => void>;
|
|
1931
2013
|
}
|
|
1932
2014
|
|
|
1933
2015
|
/**
|
|
@@ -3105,6 +3187,10 @@ interface DispatchGet {
|
|
|
3105
3187
|
* Context for the request
|
|
3106
3188
|
*/
|
|
3107
3189
|
context: HexString;
|
|
3190
|
+
/**
|
|
3191
|
+
* Who pays for this request?
|
|
3192
|
+
*/
|
|
3193
|
+
payer: HexString;
|
|
3108
3194
|
}
|
|
3109
3195
|
interface StateMachineHeight {
|
|
3110
3196
|
id: {
|
|
@@ -3702,6 +3788,20 @@ declare class GetRequestClient {
|
|
|
3702
3788
|
*/
|
|
3703
3789
|
getRequestStatusStream(hash: HexString): AsyncGenerator<RequestStatusWithMetadata, void>;
|
|
3704
3790
|
private streamInternal;
|
|
3791
|
+
/**
|
|
3792
|
+
* Self-delivers a GET request to Hyperbridge — the request→Hyperbridge hop that would
|
|
3793
|
+
* otherwise require an external relayer.
|
|
3794
|
+
*
|
|
3795
|
+
* Mirrors the relayer path (and {@link OrderCanceller}): prove the request commitment on
|
|
3796
|
+
* the source chain at the Hyperbridge-finalized source height, prove the requested keys on
|
|
3797
|
+
* the destination chain at the request's height, wait out the source challenge period, then
|
|
3798
|
+
* submit an unsigned `GetRequest` message. Source and destination may each be EVM or
|
|
3799
|
+
* substrate — proofs are built via the chain-agnostic {@link IChain} methods.
|
|
3800
|
+
*
|
|
3801
|
+
* Idempotent: returns early if Hyperbridge already holds the response receipt. The caller
|
|
3802
|
+
* wraps this best-effort, so a failure leaves the stream observing as before.
|
|
3803
|
+
*/
|
|
3804
|
+
private deliverToHyperbridge;
|
|
3705
3805
|
/**
|
|
3706
3806
|
* Snapshot helper: returns the `HYPERBRIDGE_FINALIZED` event with source-chain
|
|
3707
3807
|
* calldata if prerequisites are met, or `undefined` if we're still waiting
|
|
@@ -5066,24 +5166,13 @@ declare class OrderStatusChecker {
|
|
|
5066
5166
|
isOrderRefunded(order: Order): Promise<boolean>;
|
|
5067
5167
|
}
|
|
5068
5168
|
|
|
5169
|
+
declare function encodeERC7821ExecuteBatch(calls: ERC7821Call[]): HexString;
|
|
5170
|
+
declare function decodeERC7821ExecuteBatch(callData: HexString): ERC7821Call[] | null;
|
|
5171
|
+
|
|
5069
5172
|
type ContractOrder = Omit<Order, "id" | "source" | "destination"> & {
|
|
5070
5173
|
source: HexString;
|
|
5071
5174
|
destination: HexString;
|
|
5072
5175
|
};
|
|
5073
|
-
/**
|
|
5074
|
-
* Encodes a list of calls into ERC-7821 `execute` function calldata using
|
|
5075
|
-
* single-batch mode.
|
|
5076
|
-
*
|
|
5077
|
-
* This is a standalone utility that can be used outside of the
|
|
5078
|
-
* `IntentGatewayV2` class — for example, by filler strategies that need to
|
|
5079
|
-
* build custom batch calldata for combined swap-and-fill operations before
|
|
5080
|
-
* submitting a UserOperation.
|
|
5081
|
-
*
|
|
5082
|
-
* @param calls - Ordered list of calls to batch; each specifies a target
|
|
5083
|
-
* address, ETH value, and calldata.
|
|
5084
|
-
* @returns ABI-encoded calldata for the ERC-7821 `execute(bytes32,bytes)` function.
|
|
5085
|
-
*/
|
|
5086
|
-
declare function encodeERC7821ExecuteBatch(calls: ERC7821Call[]): HexString;
|
|
5087
5176
|
/**
|
|
5088
5177
|
* Fetches a Merkle/state proof for the given ISMP request commitment on the
|
|
5089
5178
|
* source chain.
|
|
@@ -6171,6 +6260,10 @@ declare const ABI$1: readonly [{
|
|
|
6171
6260
|
readonly name: "context";
|
|
6172
6261
|
readonly type: "bytes";
|
|
6173
6262
|
readonly internalType: "bytes";
|
|
6263
|
+
}, {
|
|
6264
|
+
readonly name: "payer";
|
|
6265
|
+
readonly type: "address";
|
|
6266
|
+
readonly internalType: "address";
|
|
6174
6267
|
}];
|
|
6175
6268
|
}];
|
|
6176
6269
|
readonly outputs: readonly [{
|
|
@@ -6866,6 +6959,10 @@ declare const ABI: readonly [{
|
|
|
6866
6959
|
readonly name: "context";
|
|
6867
6960
|
readonly type: "bytes";
|
|
6868
6961
|
readonly internalType: "bytes";
|
|
6962
|
+
}, {
|
|
6963
|
+
readonly name: "payer";
|
|
6964
|
+
readonly type: "address";
|
|
6965
|
+
readonly internalType: "address";
|
|
6869
6966
|
}];
|
|
6870
6967
|
}];
|
|
6871
6968
|
readonly outputs: readonly [{
|
|
@@ -8825,6 +8922,10 @@ declare const HyperFungibleTokenABI: readonly [{
|
|
|
8825
8922
|
readonly name: "context";
|
|
8826
8923
|
readonly type: "bytes";
|
|
8827
8924
|
readonly internalType: "bytes";
|
|
8925
|
+
}, {
|
|
8926
|
+
readonly name: "payer";
|
|
8927
|
+
readonly type: "address";
|
|
8928
|
+
readonly internalType: "address";
|
|
8828
8929
|
}];
|
|
8829
8930
|
}];
|
|
8830
8931
|
readonly outputs: readonly [{
|
|
@@ -9689,6 +9790,10 @@ declare const WrappedHyperFungibleTokenABI: readonly [{
|
|
|
9689
9790
|
readonly name: "context";
|
|
9690
9791
|
readonly type: "bytes";
|
|
9691
9792
|
readonly internalType: "bytes";
|
|
9793
|
+
}, {
|
|
9794
|
+
readonly name: "payer";
|
|
9795
|
+
readonly type: "address";
|
|
9796
|
+
readonly internalType: "address";
|
|
9692
9797
|
}];
|
|
9693
9798
|
}];
|
|
9694
9799
|
readonly outputs: readonly [{
|
|
@@ -10166,4 +10271,4 @@ declare function teleport(teleport_param: {
|
|
|
10166
10271
|
extrinsics?: Array<SubmittableExtrinsic<"promise", ISubmittableResult>>;
|
|
10167
10272
|
}): Promise<ReadableStream<HyperbridgeTxEvents>>;
|
|
10168
10273
|
|
|
10169
|
-
export { ADDRESS_ZERO, type AllStatusKey, type AssetTeleported, type AssetTeleportedResponse, type Bid, type BidStorageEntry, type BidSubmissionResult, type BlockMetadata, type BridgeParams, type BridgeStep, type BundlerGasEstimate, BundlerMethod, type BytesLikeHex, type CancelEvent, type CancelOptions, type CancelOrderOptions, type CancelQuote, type ChainConfig, type ChainConfigData, ChainConfigService, Chains, type ClientConfig, type ConfiguredAssetSymbol, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, type DecodedOrderPlacedLog, type DecodedPostRequestEvent, type DecodedPostResponseEvent, type Deployment, type DispatchGet, type DispatchInfo, type DispatchPost, ERC20Method, type ERC7821Call, ERC7821_BATCH_MODE, type EstimateFillOrderParams, type EstimateGasCallData, EvmChain, type EvmChainParams, ABI as EvmHostABI, EvmLanguage, type ExecuteIntentOrderOptions, type ExecutionResult, type FillOptions, type FillOrderEstimate, type FillerBid, type FillerConfig, type GetRequestResponse, type GetRequestWithStatus, type GetResponseByRequestIdResponse, type GetResponseStorageValues, type HexString, type HostParams, HyperClientStatus, HyperFungibleToken, HyperFungibleTokenABI, type HyperbridgeTxEvents, type IBatchConsensusAndGetResponseMessage, type IBatchConsensusAndPostRequestMessage, type IChain, type IConfig, type IConsensusMessage, type IEvmChain, type IEvmConfig, type IGetRequest, type IGetRequestMessage, type IGetResponse, type IGetResponseMessage, type IHyperbridgeConfig, type IIsmpMessage, type IMessage, type IPharosConfig, type IPolkadotHubConfig, type IPostRequest, type IPostResponse, type IProof, type IRequestMessage, type ISubstrateConfig, type ITimeoutPostRequestMessage, type IndexerQueryClient, IntentGateway, ABI$1 as IntentGatewayABI, type IntentGatewayContext, type IntentGatewayParams, IntentOrderStatus, type IntentOrderStatusKey, type IntentOrderStatusUpdate, type IntentQuoteStrategy, type IntentQuoteToken, type IntentQuoteTradeType, IntentsCoprocessor, IsmpClient, type IsmpRequest, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, type Order, type OrderResponse, OrderStatus, OrderStatusChecker, type OrderStatusMetadata, type OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, type PackedUserOperation, type Params, type PaymentInfo, PharosChain, type PharosChainParams, PolkadotHubChain, type PolkadotHubChainParams, type PostRequestStatus, type PostRequestTimeoutStatus, type PostRequestWithStatus, type QuoteIntentParams, type QuoteIntentResult, type QuoteNativeResult, type QuoteResult, type QuoteUniswapParams, type QuoteUniswapResult, REQUEST_COMMITMENTS_SLOT, REQUEST_RECEIPTS_SLOT, RESPONSE_COMMITMENTS_SLOT, RESPONSE_RECEIPTS_SLOT, type RequestBody, type RequestCommitment, RequestKind, type RequestResponse, RequestStatus, type RequestStatusKey, type RequestStatusWithMetadata, type ResponseCommitmentWithValues, type ResumeIntentOrderOptions, type RetryConfig, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, type SelectBidResult, type SelectOptions, type SigningAccount, type StateMachineHeight, type StateMachineId, type StateMachineIdParams, type StateMachineResponse, type StateMachineUpdate, type StorageFacade, type SubmitBidOptions, SubstrateChain, Swap, TESTNET_CHAINS, type TeleportParams, TeleportStatus, TimeoutStatus, type TimeoutStatusKey, TokenGateway, type TokenGatewayAssetTeleportedResponse, type TokenGatewayAssetTeleportedWithStatus, type TokenInfo, type TokenPrice, type TokenPricesResponse, type Transaction, TronChain, type TronChainParams, USE_ETHERSCAN_CHAINS, type UniswapProtocol, type UniswapQuote, type UniswapQuoteToken, type UniswapTradeType, type UniswapV4IntentQuoteMetadata, type UniswapV4IntentQuoteOptions, type UniswapV4PoolConfigData, type UniswapV4PoolKey, UnsupportedIntentQuotePairError, UnsupportedIntentQuoteStrategyError, WrappedHyperFungibleTokenABI, type XcmGatewayParams, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, chainConfigs, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, convertCodecToIGetRequest, convertCodecToIProof, convertIGetRequestToCodec, convertIProofToCodec, convertStateIdToStateMachineId, convertStateMachineEnumToString, convertStateMachineIdToEnum, createEvmChain, createQueryClient, decodeUserOpScale, encodeERC7821ExecuteBatch, encodeISMPMessage, encodeStateMachineId, encodeUserOpScale, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getChainId, getConfigByStateMachineId, getContractCallInput, getContractCallInputs, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, getViemChain, hexToString, hyperbridgeAddress, maxBigInt, normalizeAddressForEvmBytes32, normalizeAddressForStateMachine, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, pharosAtlantic, pharosMainnet, polkadotAssetHubPaseo, polkadotHubMainnet, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };
|
|
10274
|
+
export { ADDRESS_ZERO, type AllStatusKey, type AssetTeleported, type AssetTeleportedResponse, type Bid, type BidStorageEntry, type BidSubmissionResult, type BlockMetadata, type BridgeParams, type BridgeStep, type BundlerGasEstimate, BundlerMethod, type BytesLikeHex, type CancelEvent, type CancelOptions, type CancelOrderOptions, type CancelQuote, type ChainConfig, type ChainConfigData, ChainConfigService, Chains, type ClientConfig, type ConfiguredAssetSymbol, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, type DecodedOrderPlacedLog, type DecodedPostRequestEvent, type DecodedPostResponseEvent, type Deployment, type DispatchGet, type DispatchInfo, type DispatchPost, ERC20Method, type ERC7821Call, ERC7821_BATCH_MODE, type EstimateFillOrderParams, type EstimateGasCallData, EvmChain, type EvmChainParams, ABI as EvmHostABI, EvmLanguage, type ExecuteIntentOrderOptions, type ExecutionResult, type FillOptions, type FillOrderEstimate, type FillerBid, type FillerConfig, type GetRequestResponse, type GetRequestWithStatus, type GetResponseByRequestIdResponse, type GetResponseStorageValues, type HexString, type HostParams, HyperClientStatus, HyperFungibleToken, HyperFungibleTokenABI, type HyperbridgeTxEvents, type IBatchConsensusAndGetResponseMessage, type IBatchConsensusAndPostRequestMessage, type IChain, type IConfig, type IConsensusMessage, type IEvmChain, type IEvmConfig, type IGetRequest, type IGetRequestMessage, type IGetResponse, type IGetResponseMessage, type IHyperbridgeConfig, type IIsmpMessage, type IMessage, type IPharosConfig, type IPolkadotHubConfig, type IPostRequest, type IPostResponse, type IProof, type IRequestMessage, type ISubstrateConfig, type ITimeoutPostRequestMessage, type IndexerQueryClient, IntentGateway, ABI$1 as IntentGatewayABI, type IntentGatewayContext, type IntentGatewayParams, IntentOrderStatus, type IntentOrderStatusKey, type IntentOrderStatusUpdate, type IntentQuoteStrategy, type IntentQuoteToken, type IntentQuoteTradeType, IntentsCoprocessor, IsmpClient, type IsmpRequest, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, type Order, type OrderResponse, OrderStatus, OrderStatusChecker, type OrderStatusMetadata, type OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, type PackedUserOperation, type Params, type PaymentInfo, type PhantomOrderEvent, PharosChain, type PharosChainParams, PolkadotHubChain, type PolkadotHubChainParams, type PostRequestStatus, type PostRequestTimeoutStatus, type PostRequestWithStatus, type QuoteIntentParams, type QuoteIntentResult, type QuoteNativeResult, type QuoteResult, type QuoteUniswapParams, type QuoteUniswapResult, REQUEST_COMMITMENTS_SLOT, REQUEST_RECEIPTS_SLOT, RESPONSE_COMMITMENTS_SLOT, RESPONSE_RECEIPTS_SLOT, type RequestBody, type RequestCommitment, RequestKind, type RequestResponse, RequestStatus, type RequestStatusKey, type RequestStatusWithMetadata, type ResponseCommitmentWithValues, type ResumeIntentOrderOptions, type RetryConfig, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, type SelectBidResult, type SelectOptions, type SigningAccount, type StateMachineHeight, type StateMachineId, type StateMachineIdParams, type StateMachineResponse, type StateMachineUpdate, type StorageFacade, type SubmitBidOptions, SubstrateChain, Swap, TESTNET_CHAINS, type TeleportParams, TeleportStatus, TimeoutStatus, type TimeoutStatusKey, TokenGateway, type TokenGatewayAssetTeleportedResponse, type TokenGatewayAssetTeleportedWithStatus, type TokenInfo, type TokenPrice, type TokenPricesResponse, type Transaction, TronChain, type TronChainParams, USE_ETHERSCAN_CHAINS, type UniswapProtocol, type UniswapQuote, type UniswapQuoteToken, type UniswapTradeType, type UniswapV4IntentQuoteMetadata, type UniswapV4IntentQuoteOptions, type UniswapV4PoolConfigData, type UniswapV4PoolKey, UnsupportedIntentQuotePairError, UnsupportedIntentQuoteStrategyError, WrappedHyperFungibleTokenABI, type XcmGatewayParams, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, chainConfigs, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, convertCodecToIGetRequest, convertCodecToIProof, convertIGetRequestToCodec, convertIProofToCodec, convertStateIdToStateMachineId, convertStateMachineEnumToString, convertStateMachineIdToEnum, createEvmChain, createQueryClient, decodeERC7821ExecuteBatch, decodeUserOpScale, encodeERC7821ExecuteBatch, encodeISMPMessage, encodeStateMachineId, encodeUserOpScale, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getChainId, getConfigByStateMachineId, getContractCallInput, getContractCallInputs, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, getViemChain, hexToString, hyperbridgeAddress, maxBigInt, normalizeAddressForEvmBytes32, normalizeAddressForStateMachine, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, pharosAtlantic, pharosMainnet, polkadotAssetHubPaseo, polkadotHubMainnet, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };
|