@hyperbridge/sdk 2.7.2 → 2.8.2
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 +524 -407
- package/dist/browser/index.js +178 -50
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +178 -48
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +3 -3
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.js +178 -50
- package/dist/node/index.js.map +1 -1
- package/dist/node/{IntentGatewayV2-MxUcNZNs.d.cts → intents-helpers-D_km9I2f.d.cts} +1943 -242
- package/dist/node/{IntentGatewayV2-MxUcNZNs.d.ts → intents-helpers-D_km9I2f.d.ts} +1943 -242
- package/dist/node/intents-helpers.cjs +124 -19
- package/dist/node/intents-helpers.cjs.map +1 -1
- package/dist/node/intents-helpers.d.cts +3 -1506
- package/dist/node/intents-helpers.d.ts +3 -1506
- package/dist/node/intents-helpers.js +122 -21
- 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 AvailableLiquiditySnapshot, t as IntentOrderStatusUpdate, u as SelectBidResult, v as ResumeIntentOrderOptions, w as CancelOrderOptions, x as CancelQuote, y as SubmitBidOptions, z as PackedUserOperation, F as FillerBid, B as Bid, D as EstimateFillOrderParams, J as FillOrderEstimate, K as OrderFeesQuote, L as ERC7821Call, M as OrderWithStatus, N as OrderStatus, Q as TokenGatewayAssetTeleportedWithStatus, U as TeleportStatus, V as DecodedOrderPlacedLog, W as DecodedPostRequestEvent, X as DecodedPostResponseEvent } from './
|
|
2
|
-
export { Y as AllStatusKey, Z as AssetTeleportedResponse, _ as AvailableLiquidityByChain, $ as BidStorageEntry, a0 as BidSubmissionResult, a1 as BlockMetadata, a2 as BytesLikeHex, a3 as CancelOptions, a4 as ChainConfig, a5 as ChainConfigData, a6 as Chains, a7 as ConfiguredAssetSymbol, a8 as Deployment, a9 as DispatchGet, aa as DispatchInfo, ab as DispatchPost, ac as Erc4626VaultConfigData, ad as ExecuteIntentOrderOptions, ae as ExecutionResult, af as FillOptions, ag as FillerConfig, ah as GetRequestResponse, ai as GetResponseByRequestIdResponse, aj as GetResponseStorageValues, ak as HostParams, al as HyperClientStatus, am as IBatchConsensusAndGetResponseMessage, an as IBatchConsensusAndPostRequestMessage, ao as IConfig, ap as IConsensusMessage, aq as IGetRequestMessage, ar as IGetResponse, as as IGetResponseMessage, at as IHyperbridgeConfig, au as IPostResponse, av as IRequestMessage, aw as ISubstrateConfig, ax as ITimeoutPostRequestMessage, ay as IntentGatewayABI, az as IntentGatewayParams, aA as IntentOrderStatus, aB as IntentOrderStatusKey, aC as IsmpRequest, aD as OrderResponse, aE as OrderStatusMetadata, aF as PaymentInfo, aG as PhantomOrderEvent, aH 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 AvailableLiquiditySnapshot, t as IntentOrderStatusUpdate, u as SelectBidResult, v as ResumeIntentOrderOptions, w as CancelOrderOptions, x as CancelQuote, y as SubmitBidOptions, z as PackedUserOperation, F as FillerBid, B as Bid, D as EstimateFillOrderParams, J as FillOrderEstimate, K as OrderFeesQuote, L as ERC7821Call, M as OrderWithStatus, N as OrderStatus, Q as TokenGatewayAssetTeleportedWithStatus, U as TeleportStatus, V as DecodedOrderPlacedLog, W as DecodedPostRequestEvent, X as DecodedPostResponseEvent } from './intents-helpers-D_km9I2f.cjs';
|
|
2
|
+
export { Y as AllStatusKey, Z as AssetTeleportedResponse, _ as AvailableLiquidityByChain, $ as BidStorageEntry, a0 as BidSubmissionResult, a1 as BlockMetadata, a2 as BytesLikeHex, a3 as CancelOptions, a4 as ChainConfig, a5 as ChainConfigData, a6 as Chains, a7 as ConfiguredAssetSymbol, a8 as Deployment, a9 as DispatchGet, aa as DispatchInfo, ab as DispatchPost, ac as Erc4626VaultConfigData, ad as ExecuteIntentOrderOptions, ae as ExecutionResult, af as FillOptions, ag as FillerConfig, ah as GetRequestResponse, ai as GetResponseByRequestIdResponse, aj as GetResponseStorageValues, ak as HostParams, al as HyperClientStatus, am as IBatchConsensusAndGetResponseMessage, an as IBatchConsensusAndPostRequestMessage, ao as IConfig, ap as IConsensusMessage, aq as IGetRequestMessage, ar as IGetResponse, as as IGetResponseMessage, at as IHyperbridgeConfig, au as IPostResponse, av as IRequestMessage, aw as ISubstrateConfig, ax as ITimeoutPostRequestMessage, ay as IntentGatewayABI, az as IntentGatewayParams, aA as IntentOrderStatus, aB as IntentOrderStatusKey, aC as IsmpRequest, aD as OrderResponse, aE as OrderStatusMetadata, aF as PaymentInfo, aG as PhantomOrderEvent, aH as PhantomOrderLeg, aI as PhantomOrderPriceSnapshot, aJ as PhantomOrderPriceSnapshotsResponse, aK as PollPhantomOrdersOptions, aL as PostRequestStatus, aM as RequestBody, aN as RequestCommitment, aO as RequestKind, aP as RequestResponse, aQ as RequestStatus, aR as RequestStatusKey, aS as SelectOptions, aT as SigningAccount, aU as StateMachineId, aV as StateMachineResponse, aW as StorageFacade, aX as TimeoutStatus, aY as TimeoutStatusKey, aZ as TokenGatewayAssetTeleportedResponse, a_ as TokenInfo, a$ as TokenPrice, b0 as TokenPricesResponse, b1 as UniswapV4PoolConfigData, b2 as chainConfigs, b3 as convertCodecToIGetRequest, b4 as convertCodecToIProof, b5 as convertIGetRequestToCodec, b6 as convertIProofToCodec, b7 as convertStateIdToStateMachineId, b8 as convertStateMachineEnumToString, b9 as convertStateMachineIdToEnum, ba as decodeAcceptedSourceChains, bb as decodeERC7821ExecuteBatch, bc as decodeUserOpScale, bd as encodeAcceptedSourceChains, be as encodeERC7821ExecuteBatch, bf as encodeISMPMessage, bg as encodeUserOpScale, bh as getChainId, bi as getConfigByStateMachineId, bj as getViemChain, bk as hyperbridgeAddress, bl as pharosAtlantic, bm as pharosMainnet, bn as polkadotAssetHubPaseo, bo as polkadotHubMainnet, bp as tronChainIds, bq as tronNile } from './intents-helpers-D_km9I2f.cjs';
|
|
3
3
|
import { ConsolaInstance } from 'consola';
|
|
4
4
|
import { GraphQLClient } from 'graphql-request';
|
|
5
5
|
import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
|
|
@@ -9,9 +9,9 @@ import { SignerOptions, SubmittableExtrinsic } from '@polkadot/api/types';
|
|
|
9
9
|
import { ISubmittableResult } from '@polkadot/types/types';
|
|
10
10
|
import { TronWeb } from 'tronweb';
|
|
11
11
|
export { Account as ViemAccount } from 'viem/accounts';
|
|
12
|
-
import '@polkadot/keyring/types';
|
|
13
12
|
import 'decimal.js';
|
|
14
13
|
import 'viem/chains';
|
|
14
|
+
import '@polkadot/keyring/types';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* The default address used as fallback when no address is provided.
|
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 AvailableLiquiditySnapshot, t as IntentOrderStatusUpdate, u as SelectBidResult, v as ResumeIntentOrderOptions, w as CancelOrderOptions, x as CancelQuote, y as SubmitBidOptions, z as PackedUserOperation, F as FillerBid, B as Bid, D as EstimateFillOrderParams, J as FillOrderEstimate, K as OrderFeesQuote, L as ERC7821Call, M as OrderWithStatus, N as OrderStatus, Q as TokenGatewayAssetTeleportedWithStatus, U as TeleportStatus, V as DecodedOrderPlacedLog, W as DecodedPostRequestEvent, X as DecodedPostResponseEvent } from './
|
|
2
|
-
export { Y as AllStatusKey, Z as AssetTeleportedResponse, _ as AvailableLiquidityByChain, $ as BidStorageEntry, a0 as BidSubmissionResult, a1 as BlockMetadata, a2 as BytesLikeHex, a3 as CancelOptions, a4 as ChainConfig, a5 as ChainConfigData, a6 as Chains, a7 as ConfiguredAssetSymbol, a8 as Deployment, a9 as DispatchGet, aa as DispatchInfo, ab as DispatchPost, ac as Erc4626VaultConfigData, ad as ExecuteIntentOrderOptions, ae as ExecutionResult, af as FillOptions, ag as FillerConfig, ah as GetRequestResponse, ai as GetResponseByRequestIdResponse, aj as GetResponseStorageValues, ak as HostParams, al as HyperClientStatus, am as IBatchConsensusAndGetResponseMessage, an as IBatchConsensusAndPostRequestMessage, ao as IConfig, ap as IConsensusMessage, aq as IGetRequestMessage, ar as IGetResponse, as as IGetResponseMessage, at as IHyperbridgeConfig, au as IPostResponse, av as IRequestMessage, aw as ISubstrateConfig, ax as ITimeoutPostRequestMessage, ay as IntentGatewayABI, az as IntentGatewayParams, aA as IntentOrderStatus, aB as IntentOrderStatusKey, aC as IsmpRequest, aD as OrderResponse, aE as OrderStatusMetadata, aF as PaymentInfo, aG as PhantomOrderEvent, aH 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 AvailableLiquiditySnapshot, t as IntentOrderStatusUpdate, u as SelectBidResult, v as ResumeIntentOrderOptions, w as CancelOrderOptions, x as CancelQuote, y as SubmitBidOptions, z as PackedUserOperation, F as FillerBid, B as Bid, D as EstimateFillOrderParams, J as FillOrderEstimate, K as OrderFeesQuote, L as ERC7821Call, M as OrderWithStatus, N as OrderStatus, Q as TokenGatewayAssetTeleportedWithStatus, U as TeleportStatus, V as DecodedOrderPlacedLog, W as DecodedPostRequestEvent, X as DecodedPostResponseEvent } from './intents-helpers-D_km9I2f.js';
|
|
2
|
+
export { Y as AllStatusKey, Z as AssetTeleportedResponse, _ as AvailableLiquidityByChain, $ as BidStorageEntry, a0 as BidSubmissionResult, a1 as BlockMetadata, a2 as BytesLikeHex, a3 as CancelOptions, a4 as ChainConfig, a5 as ChainConfigData, a6 as Chains, a7 as ConfiguredAssetSymbol, a8 as Deployment, a9 as DispatchGet, aa as DispatchInfo, ab as DispatchPost, ac as Erc4626VaultConfigData, ad as ExecuteIntentOrderOptions, ae as ExecutionResult, af as FillOptions, ag as FillerConfig, ah as GetRequestResponse, ai as GetResponseByRequestIdResponse, aj as GetResponseStorageValues, ak as HostParams, al as HyperClientStatus, am as IBatchConsensusAndGetResponseMessage, an as IBatchConsensusAndPostRequestMessage, ao as IConfig, ap as IConsensusMessage, aq as IGetRequestMessage, ar as IGetResponse, as as IGetResponseMessage, at as IHyperbridgeConfig, au as IPostResponse, av as IRequestMessage, aw as ISubstrateConfig, ax as ITimeoutPostRequestMessage, ay as IntentGatewayABI, az as IntentGatewayParams, aA as IntentOrderStatus, aB as IntentOrderStatusKey, aC as IsmpRequest, aD as OrderResponse, aE as OrderStatusMetadata, aF as PaymentInfo, aG as PhantomOrderEvent, aH as PhantomOrderLeg, aI as PhantomOrderPriceSnapshot, aJ as PhantomOrderPriceSnapshotsResponse, aK as PollPhantomOrdersOptions, aL as PostRequestStatus, aM as RequestBody, aN as RequestCommitment, aO as RequestKind, aP as RequestResponse, aQ as RequestStatus, aR as RequestStatusKey, aS as SelectOptions, aT as SigningAccount, aU as StateMachineId, aV as StateMachineResponse, aW as StorageFacade, aX as TimeoutStatus, aY as TimeoutStatusKey, aZ as TokenGatewayAssetTeleportedResponse, a_ as TokenInfo, a$ as TokenPrice, b0 as TokenPricesResponse, b1 as UniswapV4PoolConfigData, b2 as chainConfigs, b3 as convertCodecToIGetRequest, b4 as convertCodecToIProof, b5 as convertIGetRequestToCodec, b6 as convertIProofToCodec, b7 as convertStateIdToStateMachineId, b8 as convertStateMachineEnumToString, b9 as convertStateMachineIdToEnum, ba as decodeAcceptedSourceChains, bb as decodeERC7821ExecuteBatch, bc as decodeUserOpScale, bd as encodeAcceptedSourceChains, be as encodeERC7821ExecuteBatch, bf as encodeISMPMessage, bg as encodeUserOpScale, bh as getChainId, bi as getConfigByStateMachineId, bj as getViemChain, bk as hyperbridgeAddress, bl as pharosAtlantic, bm as pharosMainnet, bn as polkadotAssetHubPaseo, bo as polkadotHubMainnet, bp as tronChainIds, bq as tronNile } from './intents-helpers-D_km9I2f.js';
|
|
3
3
|
import { ConsolaInstance } from 'consola';
|
|
4
4
|
import { GraphQLClient } from 'graphql-request';
|
|
5
5
|
import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
|
|
@@ -9,9 +9,9 @@ import { SignerOptions, SubmittableExtrinsic } from '@polkadot/api/types';
|
|
|
9
9
|
import { ISubmittableResult } from '@polkadot/types/types';
|
|
10
10
|
import { TronWeb } from 'tronweb';
|
|
11
11
|
export { Account as ViemAccount } from 'viem/accounts';
|
|
12
|
-
import '@polkadot/keyring/types';
|
|
13
12
|
import 'decimal.js';
|
|
14
13
|
import 'viem/chains';
|
|
14
|
+
import '@polkadot/keyring/types';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* The default address used as fallback when no address is provided.
|
package/dist/node/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { match } from 'ts-pattern';
|
|
|
10
10
|
import { WsProvider, ApiPromise, Keyring } from '@polkadot/api';
|
|
11
11
|
import { Struct, Vector, u8, Bytes, Enum, Tuple, _void, u64, u32, Option, bool, u128 } from 'scale-ts';
|
|
12
12
|
import { keccakAsU8a, decodeAddress, keccakAsHex, xxhashAsU8a, blake2AsU8a } from '@polkadot/util-crypto';
|
|
13
|
-
import { hexToU8a, u8aToHex, u8aConcat } from '@polkadot/util';
|
|
13
|
+
import { hexToU8a, u8aToHex, u8aConcat, stringToU8a, isHex as isHex$1, u8aToString } from '@polkadot/util';
|
|
14
14
|
import PQueue from 'p-queue';
|
|
15
15
|
import { hasWindow, isNode, env } from 'std-env';
|
|
16
16
|
import mergeRace from '@async-generator/merge-race';
|
|
@@ -2688,13 +2688,26 @@ var chainConfigs = {
|
|
|
2688
2688
|
tokenDecimals: {
|
|
2689
2689
|
USDC: 6,
|
|
2690
2690
|
USDT: 6,
|
|
2691
|
-
cNGN: 6
|
|
2691
|
+
cNGN: 6,
|
|
2692
|
+
ZARP: 18,
|
|
2693
|
+
EURC: 6,
|
|
2694
|
+
XSGD: 6,
|
|
2695
|
+
TRYB: 6,
|
|
2696
|
+
USDR: 6
|
|
2692
2697
|
},
|
|
2693
2698
|
tokenStorageSlots: {
|
|
2694
2699
|
USDT: { balanceSlot: 2, allowanceSlot: 5 },
|
|
2695
2700
|
USDC: { balanceSlot: 9, allowanceSlot: 10 },
|
|
2696
2701
|
WETH: { balanceSlot: 3, allowanceSlot: 4 },
|
|
2697
|
-
DAI: { balanceSlot: 0, allowanceSlot: 0 }
|
|
2702
|
+
DAI: { balanceSlot: 0, allowanceSlot: 0 },
|
|
2703
|
+
cNGN: { balanceSlot: 201, allowanceSlot: 202 },
|
|
2704
|
+
// custom upgradeable layout
|
|
2705
|
+
ZARP: { balanceSlot: 51, allowanceSlot: 52 },
|
|
2706
|
+
EURC: { balanceSlot: 9, allowanceSlot: 10 },
|
|
2707
|
+
// Circle FiatToken layout
|
|
2708
|
+
XSGD: { balanceSlot: 7, allowanceSlot: 8 },
|
|
2709
|
+
TRYB: { balanceSlot: 9, allowanceSlot: 10 },
|
|
2710
|
+
USDR: { balanceSlot: 51, allowanceSlot: 52 }
|
|
2698
2711
|
},
|
|
2699
2712
|
addresses: {
|
|
2700
2713
|
IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
|
|
@@ -2874,13 +2887,22 @@ var chainConfigs = {
|
|
|
2874
2887
|
USDC: 6,
|
|
2875
2888
|
USDT: 6,
|
|
2876
2889
|
cNGN: 6,
|
|
2877
|
-
EXT: 18
|
|
2890
|
+
EXT: 18,
|
|
2891
|
+
ZARP: 18,
|
|
2892
|
+
EURC: 6,
|
|
2893
|
+
USDR: 6
|
|
2878
2894
|
},
|
|
2879
2895
|
tokenStorageSlots: {
|
|
2880
2896
|
USDT: { balanceSlot: 0, allowanceSlot: 1 },
|
|
2881
2897
|
USDC: { balanceSlot: 9, allowanceSlot: 10 },
|
|
2882
2898
|
WETH: { balanceSlot: 3, allowanceSlot: 4 },
|
|
2883
|
-
DAI: { balanceSlot: 0, allowanceSlot: 0 }
|
|
2899
|
+
DAI: { balanceSlot: 0, allowanceSlot: 0 },
|
|
2900
|
+
cNGN: { balanceSlot: 201, allowanceSlot: 202 },
|
|
2901
|
+
// custom upgradeable layout
|
|
2902
|
+
ZARP: { balanceSlot: 51, allowanceSlot: 52 },
|
|
2903
|
+
EURC: { balanceSlot: 9, allowanceSlot: 10 },
|
|
2904
|
+
// Circle FiatToken layout
|
|
2905
|
+
USDR: { balanceSlot: 51, allowanceSlot: 52 }
|
|
2884
2906
|
},
|
|
2885
2907
|
addresses: {
|
|
2886
2908
|
IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
|
|
@@ -2941,13 +2963,21 @@ var chainConfigs = {
|
|
|
2941
2963
|
USDC: 6,
|
|
2942
2964
|
USDT: 6,
|
|
2943
2965
|
EXT: 18,
|
|
2944
|
-
cNGN: 6
|
|
2966
|
+
cNGN: 6,
|
|
2967
|
+
ZARP: 18,
|
|
2968
|
+
XSGD: 6,
|
|
2969
|
+
USDR: 6
|
|
2945
2970
|
},
|
|
2946
2971
|
tokenStorageSlots: {
|
|
2947
2972
|
USDT: { balanceSlot: 0, allowanceSlot: 1 },
|
|
2948
2973
|
USDC: { balanceSlot: 9, allowanceSlot: 10 },
|
|
2949
2974
|
WETH: { balanceSlot: 3, allowanceSlot: 4 },
|
|
2950
|
-
DAI: { balanceSlot: 0, allowanceSlot: 0 }
|
|
2975
|
+
DAI: { balanceSlot: 0, allowanceSlot: 0 },
|
|
2976
|
+
cNGN: { balanceSlot: 201, allowanceSlot: 202 },
|
|
2977
|
+
// custom upgradeable layout
|
|
2978
|
+
ZARP: { balanceSlot: 51, allowanceSlot: 52 },
|
|
2979
|
+
XSGD: { balanceSlot: 7, allowanceSlot: 8 },
|
|
2980
|
+
USDR: { balanceSlot: 51, allowanceSlot: 52 }
|
|
2951
2981
|
},
|
|
2952
2982
|
addresses: {
|
|
2953
2983
|
IntentGateway: "0xAe041F7B0CB581876832830baeB6a2Aa2a3C9716",
|
|
@@ -3248,8 +3278,9 @@ var chainConfigs = {
|
|
|
3248
3278
|
assets: {
|
|
3249
3279
|
WETH: "0x0000000000000000000000000000000000000000",
|
|
3250
3280
|
DAI: "0x0000000000000000000000000000000000000000",
|
|
3281
|
+
// Asset Hub assets at their asset-id precompile addresses: 0x539 = 1337, 0x7c0 = 1984.
|
|
3251
3282
|
USDC: "0x0000053900000000000000000000000001200000",
|
|
3252
|
-
USDT: "
|
|
3283
|
+
USDT: "0x000007c000000000000000000000000001200000"
|
|
3253
3284
|
},
|
|
3254
3285
|
tokenDecimals: {
|
|
3255
3286
|
USDC: 6,
|
|
@@ -4841,6 +4872,24 @@ var ABI3 = [
|
|
|
4841
4872
|
internalType: "uint256"
|
|
4842
4873
|
}
|
|
4843
4874
|
]
|
|
4875
|
+
},
|
|
4876
|
+
{
|
|
4877
|
+
name: "predispatchCall",
|
|
4878
|
+
type: "bytes",
|
|
4879
|
+
indexed: false,
|
|
4880
|
+
internalType: "bytes"
|
|
4881
|
+
},
|
|
4882
|
+
{
|
|
4883
|
+
name: "outputCall",
|
|
4884
|
+
type: "bytes",
|
|
4885
|
+
indexed: false,
|
|
4886
|
+
internalType: "bytes"
|
|
4887
|
+
},
|
|
4888
|
+
{
|
|
4889
|
+
name: "graffiti",
|
|
4890
|
+
type: "bytes32",
|
|
4891
|
+
indexed: false,
|
|
4892
|
+
internalType: "bytes32"
|
|
4844
4893
|
}
|
|
4845
4894
|
],
|
|
4846
4895
|
anonymous: false
|
|
@@ -7888,15 +7937,25 @@ var IntentsCoprocessor = class _IntentsCoprocessor {
|
|
|
7888
7937
|
/**
|
|
7889
7938
|
* Signs and sends an extrinsic. Submissions are serialised through {@link submissionQueue} so
|
|
7890
7939
|
* concurrent calls never collide on the substrate account nonce — each extrinsic reaches a block
|
|
7891
|
-
* before the next is signed
|
|
7940
|
+
* (or is confirmed still pooled and returned as `pending`) before the next is signed; auto-nonce
|
|
7941
|
+
* via `system.accountNextIndex` counts pooled extrinsics, so a pending one is never re-used.
|
|
7892
7942
|
*/
|
|
7893
7943
|
async signAndSendExtrinsic(extrinsic, maxRetries = 3, timeoutMs = 3e4) {
|
|
7894
|
-
const result = await this.submissionQueue.add(
|
|
7944
|
+
const result = await this.submissionQueue.add(
|
|
7945
|
+
() => this.sendExtrinsicWithRetries(extrinsic, maxRetries, timeoutMs)
|
|
7946
|
+
);
|
|
7895
7947
|
return result ?? { success: false, error: "Submission queue returned no result" };
|
|
7896
7948
|
}
|
|
7897
7949
|
/**
|
|
7898
7950
|
* Signs and sends an extrinsic, handling status updates and errors.
|
|
7899
7951
|
* Implements retry logic with progressive tip increases for stuck transactions.
|
|
7952
|
+
*
|
|
7953
|
+
* A retry only happens when the previous attempt verifiably went nowhere. Once an attempt's
|
|
7954
|
+
* extrinsic is known to be pooled (`pending`), re-signing the same call would race our own
|
|
7955
|
+
* submission: the copy either bounces off the pool (1014, same nonce below the replacement
|
|
7956
|
+
* priority bump) or — if the original lands first, freeing the nonce — executes as a duplicate
|
|
7957
|
+
* and fails on-chain (e.g. `BidNotFound` for a retraction). Neither can succeed, so the pending
|
|
7958
|
+
* result is returned for the caller to confirm later.
|
|
7900
7959
|
*/
|
|
7901
7960
|
async sendExtrinsicWithRetries(extrinsic, maxRetries, timeoutMs) {
|
|
7902
7961
|
const keyPair = this.getKeyPair();
|
|
@@ -7907,7 +7966,7 @@ var IntentsCoprocessor = class _IntentsCoprocessor {
|
|
|
7907
7966
|
attempt++;
|
|
7908
7967
|
try {
|
|
7909
7968
|
const result = await this.sendWithTimeout(extrinsic, keyPair, currentTip, timeoutMs);
|
|
7910
|
-
if (result.success || result.error?.includes("Dispatch error")) {
|
|
7969
|
+
if (result.success || result.pending || result.error?.includes("Dispatch error")) {
|
|
7911
7970
|
return result;
|
|
7912
7971
|
}
|
|
7913
7972
|
} catch (err) {
|
|
@@ -7923,12 +7982,30 @@ var IntentsCoprocessor = class _IntentsCoprocessor {
|
|
|
7923
7982
|
};
|
|
7924
7983
|
}
|
|
7925
7984
|
/**
|
|
7926
|
-
*
|
|
7985
|
+
* Classifies a submission rejection. Codes 1013 ("already imported") and 1014 ("priority is
|
|
7986
|
+
* too low") both mean a copy of this account+nonce is already in the pool — almost always our
|
|
7987
|
+
* own earlier attempt whose watch handle didn't confirm cleanly. That extrinsic is in flight;
|
|
7988
|
+
* resubmitting can only bounce again or land a duplicate, so these are surfaced as `pending`
|
|
7989
|
+
* rather than failure.
|
|
7990
|
+
*/
|
|
7991
|
+
classifySubmissionError(err) {
|
|
7992
|
+
const code = err.code;
|
|
7993
|
+
const inFlight = code === 1013 || code === 1014 || /already imported|already in the pool|priority is too low/i.test(err.message);
|
|
7994
|
+
return { success: false, pending: inFlight || void 0, error: err.message };
|
|
7995
|
+
}
|
|
7996
|
+
/**
|
|
7997
|
+
* Sends an extrinsic with a timeout.
|
|
7998
|
+
*
|
|
7999
|
+
* A timeout is only a failure when the extrinsic never made it into the transaction pool.
|
|
8000
|
+
* Once a pool-entry status (Future/Ready/Broadcast/Retracted) has been seen, the extrinsic is
|
|
8001
|
+
* in flight and may well execute after the watch is abandoned — the result is then `pending`,
|
|
8002
|
+
* telling the caller to confirm the outcome later instead of re-signing the same call.
|
|
7927
8003
|
*/
|
|
7928
8004
|
async sendWithTimeout(extrinsic, keyPair, tip, timeoutMs) {
|
|
7929
8005
|
return new Promise((resolve) => {
|
|
7930
8006
|
let resolved = false;
|
|
7931
8007
|
let unsubscribe = null;
|
|
8008
|
+
let enteredPool = false;
|
|
7932
8009
|
const timeoutId = setTimeout(() => {
|
|
7933
8010
|
if (!resolved) {
|
|
7934
8011
|
resolved = true;
|
|
@@ -7937,12 +8014,17 @@ var IntentsCoprocessor = class _IntentsCoprocessor {
|
|
|
7937
8014
|
}
|
|
7938
8015
|
resolve({
|
|
7939
8016
|
success: false,
|
|
7940
|
-
|
|
8017
|
+
pending: enteredPool || void 0,
|
|
8018
|
+
extrinsicHash: enteredPool ? extrinsic.hash.toHex() : void 0,
|
|
8019
|
+
error: `Transaction timed out after ${timeoutMs}ms${enteredPool ? " while in the transaction pool" : ""}`
|
|
7941
8020
|
});
|
|
7942
8021
|
}
|
|
7943
8022
|
}, timeoutMs);
|
|
7944
8023
|
extrinsic.signAndSend(keyPair, { tip }, (result) => {
|
|
7945
8024
|
if (resolved) return;
|
|
8025
|
+
if (result.status.isFuture || result.status.isReady || result.status.isBroadcast || result.status.isRetracted) {
|
|
8026
|
+
enteredPool = true;
|
|
8027
|
+
}
|
|
7946
8028
|
if (result.dispatchError && (result.status.isInBlock || result.status.isFinalized)) {
|
|
7947
8029
|
resolved = true;
|
|
7948
8030
|
clearTimeout(timeoutId);
|
|
@@ -8000,7 +8082,7 @@ var IntentsCoprocessor = class _IntentsCoprocessor {
|
|
|
8000
8082
|
if (!resolved) {
|
|
8001
8083
|
resolved = true;
|
|
8002
8084
|
clearTimeout(timeoutId);
|
|
8003
|
-
resolve(
|
|
8085
|
+
resolve(this.classifySubmissionError(err));
|
|
8004
8086
|
}
|
|
8005
8087
|
});
|
|
8006
8088
|
});
|
|
@@ -8174,9 +8256,7 @@ var IntentsCoprocessor = class _IntentsCoprocessor {
|
|
|
8174
8256
|
if (!result || result.isNone) return null;
|
|
8175
8257
|
const rawHex = result.unwrap().toHex();
|
|
8176
8258
|
if (rawHex === "0x" || rawHex === "0x00") return null;
|
|
8177
|
-
const placeOrderAbi = IntentGatewayV2_default.ABI.find(
|
|
8178
|
-
(item) => item.type === "function" && item.name === "placeOrder"
|
|
8179
|
-
);
|
|
8259
|
+
const placeOrderAbi = IntentGatewayV2_default.ABI.find((item) => item.type === "function" && item.name === "placeOrder");
|
|
8180
8260
|
const orderType = placeOrderAbi?.inputs?.[0];
|
|
8181
8261
|
if (!orderType) return null;
|
|
8182
8262
|
const [decoded] = decodeAbiParameters([orderType], rawHex);
|
|
@@ -8222,14 +8302,17 @@ var IntentsCoprocessor = class _IntentsCoprocessor {
|
|
|
8222
8302
|
const orders = [];
|
|
8223
8303
|
for (const { event } of records) {
|
|
8224
8304
|
if (event.section !== "intentsCoprocessor" || event.method !== "PhantomOrderRegistered") continue;
|
|
8225
|
-
const [commitment, chain, createdAt,
|
|
8305
|
+
const [commitment, chain, createdAt, legs] = event.data;
|
|
8226
8306
|
orders.push({
|
|
8227
8307
|
commitment: commitment.toHex(),
|
|
8228
8308
|
chain: new TextDecoder().decode(hexToU8a(chain.toHex())),
|
|
8229
8309
|
createdAt: createdAt.toNumber(),
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8310
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8311
|
+
legs: legs.map((leg) => ({
|
|
8312
|
+
tokenA: leg.tokenA.toHex(),
|
|
8313
|
+
tokenB: leg.tokenB.toHex(),
|
|
8314
|
+
standardAmount: BigInt(leg.standardAmount.toString())
|
|
8315
|
+
}))
|
|
8233
8316
|
});
|
|
8234
8317
|
}
|
|
8235
8318
|
return orders;
|
|
@@ -15525,13 +15608,13 @@ function deriveCanonicalPlacedOrder(order, args) {
|
|
|
15525
15608
|
session: args.session,
|
|
15526
15609
|
predispatch: {
|
|
15527
15610
|
assets: args.predispatch.map((asset) => ({ ...asset })),
|
|
15528
|
-
call: order.predispatch.call
|
|
15611
|
+
call: args.predispatchCall ?? order.predispatch.call
|
|
15529
15612
|
},
|
|
15530
15613
|
inputs: args.inputs.map((asset) => ({ ...asset })),
|
|
15531
15614
|
output: {
|
|
15532
15615
|
beneficiary: args.beneficiary,
|
|
15533
15616
|
assets: args.outputs.map((asset) => ({ ...asset })),
|
|
15534
|
-
call: order.output.call
|
|
15617
|
+
call: args.outputCall ?? order.output.call
|
|
15535
15618
|
}
|
|
15536
15619
|
};
|
|
15537
15620
|
return { ...canonicalOrder, id: orderCommitment(canonicalOrder) };
|
|
@@ -16962,14 +17045,14 @@ var BidManager = class {
|
|
|
16962
17045
|
}
|
|
16963
17046
|
/**
|
|
16964
17047
|
* Autopilot bid selection: sorts the given bids by output value, simulates
|
|
16965
|
-
* each in order
|
|
16966
|
-
*
|
|
17048
|
+
* each in order and attempts execution. Any bid that fails simulation or
|
|
17049
|
+
* execution is skipped once so the next ranked bid can be attempted in the
|
|
17050
|
+
* same round. For consumers that do not need custom selection logic.
|
|
16967
17051
|
*
|
|
16968
17052
|
* @param order - The placed order to fill.
|
|
16969
17053
|
* @param bids - Candidate bids (from {@link buildBids}).
|
|
16970
17054
|
* @returns A {@link SelectBidResult} for the executed bid.
|
|
16971
|
-
* @throws If no valid bids exist
|
|
16972
|
-
* the UserOperation.
|
|
17055
|
+
* @throws If no valid bids exist or every bid fails simulation/execution.
|
|
16973
17056
|
*/
|
|
16974
17057
|
async selectAndExecuteBest(order, bids) {
|
|
16975
17058
|
const commitment = order.id;
|
|
@@ -16986,22 +17069,34 @@ var BidManager = class {
|
|
|
16986
17069
|
throw new Error("No valid bids found");
|
|
16987
17070
|
}
|
|
16988
17071
|
console.log(`[BidManager] Simulating ${sortedBids.length} sorted bid(s) to find a valid one`);
|
|
17072
|
+
let simulationFailures = 0;
|
|
17073
|
+
let executionFailures = 0;
|
|
16989
17074
|
for (let idx = 0; idx < sortedBids.length; idx++) {
|
|
16990
17075
|
const bid = sortedBids[idx];
|
|
16991
17076
|
console.log(`[BidManager] Simulating bid ${idx + 1}/${sortedBids.length} from solver=${bid.solverAddress}`);
|
|
16992
17077
|
try {
|
|
16993
17078
|
await bid.simulate();
|
|
16994
17079
|
} catch (err) {
|
|
17080
|
+
simulationFailures += 1;
|
|
16995
17081
|
console.warn(
|
|
16996
17082
|
`[BidManager] Bid ${idx + 1} from solver=${bid.solverAddress}: simulation FAILED: ${err instanceof Error ? err.message : String(err)}`
|
|
16997
17083
|
);
|
|
16998
17084
|
continue;
|
|
16999
17085
|
}
|
|
17000
17086
|
console.log(`[BidManager] Bid ${idx + 1} from solver=${bid.solverAddress}: simulation PASSED`);
|
|
17001
|
-
|
|
17087
|
+
try {
|
|
17088
|
+
return await bid.execute();
|
|
17089
|
+
} catch (err) {
|
|
17090
|
+
executionFailures += 1;
|
|
17091
|
+
console.warn(
|
|
17092
|
+
`[BidManager] Bid ${idx + 1} from solver=${bid.solverAddress}: execution FAILED: ${err instanceof Error ? err.message : String(err)}; trying next bid`
|
|
17093
|
+
);
|
|
17094
|
+
}
|
|
17002
17095
|
}
|
|
17003
|
-
console.error(
|
|
17004
|
-
|
|
17096
|
+
console.error(
|
|
17097
|
+
`[BidManager] No executable bids for commitment=${commitment}: ${simulationFailures} simulation failure(s), ${executionFailures} execution failure(s)`
|
|
17098
|
+
);
|
|
17099
|
+
throw new Error("No bids passed simulation and execution");
|
|
17005
17100
|
}
|
|
17006
17101
|
/**
|
|
17007
17102
|
* Sorts a list of bids for the given order by output value.
|
|
@@ -17341,6 +17436,10 @@ var BidManager = class {
|
|
|
17341
17436
|
}
|
|
17342
17437
|
};
|
|
17343
17438
|
var RELAYER_MESSAGE_GAS = 1000000n;
|
|
17439
|
+
var NO_BUNDLER_FILL_GAS_BASE = 700000n;
|
|
17440
|
+
var NO_BUNDLER_FILL_GAS_PER_OUTPUT = 150000n;
|
|
17441
|
+
var NO_BUNDLER_PAYMASTER_VERIFICATION_GAS = 250000n;
|
|
17442
|
+
var NO_BUNDLER_PAYMASTER_POST_OP_GAS = 100000n;
|
|
17344
17443
|
var GasEstimator = class {
|
|
17345
17444
|
/**
|
|
17346
17445
|
* @param ctx - Shared IntentsV2 context providing the source and destination
|
|
@@ -17374,8 +17473,10 @@ var GasEstimator = class {
|
|
|
17374
17473
|
* headroom. If the bundler is Pimlico, gas prices are refined with
|
|
17375
17474
|
* `pimlico_getUserOperationGasPrice`.
|
|
17376
17475
|
*
|
|
17377
|
-
* **Fallback path (no bundler):**
|
|
17378
|
-
*
|
|
17476
|
+
* **Fallback path (no bundler):** uses a fixed budget
|
|
17477
|
+
* ({@link NO_BUNDLER_FILL_GAS_BASE} plus {@link NO_BUNDLER_FILL_GAS_PER_OUTPUT}
|
|
17478
|
+
* per output leg) — public RPCs don't reliably support estimation with
|
|
17479
|
+
* state overrides.
|
|
17379
17480
|
*
|
|
17380
17481
|
* @param params - Parameters including the order to estimate and optional
|
|
17381
17482
|
* percentage bumps for `maxPriorityFeePerGas` and `maxFeePerGas`.
|
|
@@ -17410,14 +17511,14 @@ var GasEstimator = class {
|
|
|
17410
17511
|
}
|
|
17411
17512
|
const isSameChain = souceStateMachineId === destStateMachineId;
|
|
17412
17513
|
const [stateOverridesResult, crossChainFees] = await Promise.all([
|
|
17413
|
-
this.buildStateOverride({
|
|
17514
|
+
this.ctx.bundlerUrl ? this.buildStateOverride({
|
|
17414
17515
|
accountAddress: solverAccountAddress,
|
|
17415
17516
|
chain: destStateMachineId,
|
|
17416
17517
|
outputAssets: assetsForOverrides,
|
|
17417
17518
|
spenderAddress: intentGatewayV2Address,
|
|
17418
17519
|
intentGatewayV2Address,
|
|
17419
17520
|
entryPointAddress
|
|
17420
|
-
}),
|
|
17521
|
+
}) : Promise.resolve({ viem: [], bundler: {} }),
|
|
17421
17522
|
isSameChain ? Promise.resolve({ postRequestFee: 0n, relayerFeeInSourceFeeToken: 0n }) : this.estimateCrossChainFees(
|
|
17422
17523
|
sourceFeeToken,
|
|
17423
17524
|
destFeeToken,
|
|
@@ -17425,7 +17526,7 @@ var GasEstimator = class {
|
|
|
17425
17526
|
orderFeeGasPriceBumpPercent
|
|
17426
17527
|
)
|
|
17427
17528
|
]);
|
|
17428
|
-
const {
|
|
17529
|
+
const { bundler: bundlerStateOverrides } = stateOverridesResult;
|
|
17429
17530
|
const fillOptions = {
|
|
17430
17531
|
relayerFee: crossChainFees.postRequestFee,
|
|
17431
17532
|
// Always dispatch with the fee token (see the method docs).
|
|
@@ -17566,20 +17667,9 @@ var GasEstimator = class {
|
|
|
17566
17667
|
console.warn("Bundler gas estimation failed, using fallback values:", e);
|
|
17567
17668
|
}
|
|
17568
17669
|
} else {
|
|
17569
|
-
|
|
17570
|
-
|
|
17571
|
-
|
|
17572
|
-
address: intentGatewayV2Address,
|
|
17573
|
-
functionName: "fillOrder",
|
|
17574
|
-
args: [transformOrderForContract(order), fillOptions],
|
|
17575
|
-
account: solverAccountAddress,
|
|
17576
|
-
value: totalNativeValue,
|
|
17577
|
-
stateOverride: stateOverrides
|
|
17578
|
-
});
|
|
17579
|
-
callGasLimit = estimatedGas * 105n / 100n;
|
|
17580
|
-
} catch (e) {
|
|
17581
|
-
console.warn("fillOrder gas estimation failed, using fallback:", e);
|
|
17582
|
-
}
|
|
17670
|
+
callGasLimit = NO_BUNDLER_FILL_GAS_BASE + NO_BUNDLER_FILL_GAS_PER_OUTPUT * BigInt(order.output.assets.length);
|
|
17671
|
+
paymasterVerificationGasLimit = NO_BUNDLER_PAYMASTER_VERIFICATION_GAS;
|
|
17672
|
+
paymasterPostOpGasLimit = NO_BUNDLER_PAYMASTER_POST_OP_GAS;
|
|
17583
17673
|
}
|
|
17584
17674
|
const totalGas = callGasLimit + verificationGasLimit + preVerificationGas + paymasterVerificationGasLimit + paymasterPostOpGasLimit;
|
|
17585
17675
|
const rawTotalGasCostWei = totalGas * maxFeePerGas;
|
|
@@ -19109,6 +19199,44 @@ var IntentGateway = class _IntentGateway {
|
|
|
19109
19199
|
}
|
|
19110
19200
|
}
|
|
19111
19201
|
};
|
|
19202
|
+
var FILL_ORDER_ABI = IntentGatewayV2_default.ABI;
|
|
19203
|
+
var DECLARATION_VERSION = 1;
|
|
19204
|
+
var MAX_DECLARED_CHAINS = 255;
|
|
19205
|
+
function encodeAcceptedSourceChains(chains2) {
|
|
19206
|
+
if (chains2.length > MAX_DECLARED_CHAINS) {
|
|
19207
|
+
throw new Error(`Cannot declare more than ${MAX_DECLARED_CHAINS} source chains`);
|
|
19208
|
+
}
|
|
19209
|
+
const bytes = [DECLARATION_VERSION, chains2.length];
|
|
19210
|
+
for (const chain of chains2) {
|
|
19211
|
+
const encoded = stringToU8a(chain);
|
|
19212
|
+
if (encoded.length === 0 || encoded.length > 255) {
|
|
19213
|
+
throw new Error(`Invalid state machine id in source chain declaration: ${chain}`);
|
|
19214
|
+
}
|
|
19215
|
+
bytes.push(encoded.length, ...encoded);
|
|
19216
|
+
}
|
|
19217
|
+
return u8aToHex(new Uint8Array(bytes));
|
|
19218
|
+
}
|
|
19219
|
+
function decodeAcceptedSourceChains(paymasterAndData) {
|
|
19220
|
+
if (!paymasterAndData || !isHex$1(paymasterAndData)) return null;
|
|
19221
|
+
const bytes = hexToU8a(paymasterAndData);
|
|
19222
|
+
if (bytes.length < 2 || bytes[0] !== DECLARATION_VERSION) return null;
|
|
19223
|
+
const count = bytes[1];
|
|
19224
|
+
const chains2 = [];
|
|
19225
|
+
let offset = 2;
|
|
19226
|
+
for (let entry = 0; entry < count; entry++) {
|
|
19227
|
+
if (offset >= bytes.length) return null;
|
|
19228
|
+
const length = bytes[offset];
|
|
19229
|
+
offset += 1;
|
|
19230
|
+
if (length === 0 || offset + length > bytes.length) return null;
|
|
19231
|
+
chains2.push(u8aToString(bytes.subarray(offset, offset + length)));
|
|
19232
|
+
offset += length;
|
|
19233
|
+
}
|
|
19234
|
+
if (offset !== bytes.length) return null;
|
|
19235
|
+
return chains2;
|
|
19236
|
+
}
|
|
19237
|
+
FILL_ORDER_ABI.find(
|
|
19238
|
+
(item) => item?.type === "function" && item?.name === "fillOrder"
|
|
19239
|
+
)?.inputs?.[0];
|
|
19112
19240
|
var TokenGateway = class {
|
|
19113
19241
|
source;
|
|
19114
19242
|
dest;
|
|
@@ -23579,6 +23707,6 @@ async function teleportDot(param_) {
|
|
|
23579
23707
|
return stream;
|
|
23580
23708
|
}
|
|
23581
23709
|
|
|
23582
|
-
export { ADDRESS_ZERO2 as ADDRESS_ZERO, BundlerMethod, ChainConfigService, Chains, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, ERC20Method, ERC7821_BATCH_MODE, EvmChain, ABI as EvmHostABI, EvmLanguage, HyperClientStatus, HyperFungibleToken, HyperFungibleTokenABI, IntentGateway, ABI3 as IntentGatewayABI, IntentOrderStatus, IntentsCoprocessor, InvalidPhantomSnapshotError, IsmpClient, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, OrderStatus, OrderStatusChecker, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, PhantomSnapshotUnavailableError, PharosChain, PolkadotHubChain, REQUEST_COMMITMENTS_SLOT, REQUEST_RECEIPTS_SLOT, RESPONSE_COMMITMENTS_SLOT, RESPONSE_RECEIPTS_SLOT, RequestKind, RequestStatus, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, SubstrateChain, Swap, TESTNET_CHAINS, TeleportStatus, TimeoutStatus, TokenGateway, TronChain, USE_ETHERSCAN_CHAINS, UnsupportedIntentQuotePairError, UnsupportedIntentQuoteStrategyError, WrappedHyperFungibleTokenABI, __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, normalizeEvmAddress, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, pharosAtlantic, pharosMainnet, polkadotAssetHubPaseo, polkadotHubMainnet, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };
|
|
23710
|
+
export { ADDRESS_ZERO2 as ADDRESS_ZERO, BundlerMethod, ChainConfigService, Chains, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, ERC20Method, ERC7821_BATCH_MODE, EvmChain, ABI as EvmHostABI, EvmLanguage, HyperClientStatus, HyperFungibleToken, HyperFungibleTokenABI, IntentGateway, ABI3 as IntentGatewayABI, IntentOrderStatus, IntentsCoprocessor, InvalidPhantomSnapshotError, IsmpClient, MOCK_ADDRESS, ORDER_V2_PARAM_TYPE, OrderStatus, OrderStatusChecker, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, PhantomSnapshotUnavailableError, PharosChain, PolkadotHubChain, REQUEST_COMMITMENTS_SLOT, REQUEST_RECEIPTS_SLOT, RESPONSE_COMMITMENTS_SLOT, RESPONSE_RECEIPTS_SLOT, RequestKind, RequestStatus, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, SubstrateChain, Swap, TESTNET_CHAINS, TeleportStatus, TimeoutStatus, TokenGateway, TronChain, USE_ETHERSCAN_CHAINS, UnsupportedIntentQuotePairError, UnsupportedIntentQuoteStrategyError, WrappedHyperFungibleTokenABI, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, chainConfigs, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, convertCodecToIGetRequest, convertCodecToIProof, convertIGetRequestToCodec, convertIProofToCodec, convertStateIdToStateMachineId, convertStateMachineEnumToString, convertStateMachineIdToEnum, createEvmChain, createQueryClient, decodeAcceptedSourceChains, decodeERC7821ExecuteBatch, decodeUserOpScale, encodeAcceptedSourceChains, 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, normalizeEvmAddress, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, pharosAtlantic, pharosMainnet, polkadotAssetHubPaseo, polkadotHubMainnet, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };
|
|
23583
23711
|
//# sourceMappingURL=index.js.map
|
|
23584
23712
|
//# sourceMappingURL=index.js.map
|