@hyperbridge/sdk 2.7.2 → 2.8.0
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 +463 -405
- package/dist/browser/index.js +67 -8
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +67 -6
- 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 +67 -8
- package/dist/node/index.js.map +1 -1
- package/dist/node/{IntentGatewayV2-MxUcNZNs.d.cts → intents-helpers-gyGREuyu.d.cts} +1868 -235
- package/dist/node/{IntentGatewayV2-MxUcNZNs.d.ts → intents-helpers-gyGREuyu.d.ts} +1868 -235
- package/dist/node/intents-helpers.cjs +113 -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 +111 -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-gyGREuyu.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-gyGREuyu.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-gyGREuyu.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-gyGREuyu.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';
|
|
@@ -4841,6 +4841,24 @@ var ABI3 = [
|
|
|
4841
4841
|
internalType: "uint256"
|
|
4842
4842
|
}
|
|
4843
4843
|
]
|
|
4844
|
+
},
|
|
4845
|
+
{
|
|
4846
|
+
name: "predispatchCall",
|
|
4847
|
+
type: "bytes",
|
|
4848
|
+
indexed: false,
|
|
4849
|
+
internalType: "bytes"
|
|
4850
|
+
},
|
|
4851
|
+
{
|
|
4852
|
+
name: "outputCall",
|
|
4853
|
+
type: "bytes",
|
|
4854
|
+
indexed: false,
|
|
4855
|
+
internalType: "bytes"
|
|
4856
|
+
},
|
|
4857
|
+
{
|
|
4858
|
+
name: "graffiti",
|
|
4859
|
+
type: "bytes32",
|
|
4860
|
+
indexed: false,
|
|
4861
|
+
internalType: "bytes32"
|
|
4844
4862
|
}
|
|
4845
4863
|
],
|
|
4846
4864
|
anonymous: false
|
|
@@ -8222,14 +8240,17 @@ var IntentsCoprocessor = class _IntentsCoprocessor {
|
|
|
8222
8240
|
const orders = [];
|
|
8223
8241
|
for (const { event } of records) {
|
|
8224
8242
|
if (event.section !== "intentsCoprocessor" || event.method !== "PhantomOrderRegistered") continue;
|
|
8225
|
-
const [commitment, chain, createdAt,
|
|
8243
|
+
const [commitment, chain, createdAt, legs] = event.data;
|
|
8226
8244
|
orders.push({
|
|
8227
8245
|
commitment: commitment.toHex(),
|
|
8228
8246
|
chain: new TextDecoder().decode(hexToU8a(chain.toHex())),
|
|
8229
8247
|
createdAt: createdAt.toNumber(),
|
|
8230
|
-
|
|
8231
|
-
|
|
8232
|
-
|
|
8248
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8249
|
+
legs: legs.map((leg) => ({
|
|
8250
|
+
tokenA: leg.tokenA.toHex(),
|
|
8251
|
+
tokenB: leg.tokenB.toHex(),
|
|
8252
|
+
standardAmount: BigInt(leg.standardAmount.toString())
|
|
8253
|
+
}))
|
|
8233
8254
|
});
|
|
8234
8255
|
}
|
|
8235
8256
|
return orders;
|
|
@@ -15525,13 +15546,13 @@ function deriveCanonicalPlacedOrder(order, args) {
|
|
|
15525
15546
|
session: args.session,
|
|
15526
15547
|
predispatch: {
|
|
15527
15548
|
assets: args.predispatch.map((asset) => ({ ...asset })),
|
|
15528
|
-
call: order.predispatch.call
|
|
15549
|
+
call: args.predispatchCall ?? order.predispatch.call
|
|
15529
15550
|
},
|
|
15530
15551
|
inputs: args.inputs.map((asset) => ({ ...asset })),
|
|
15531
15552
|
output: {
|
|
15532
15553
|
beneficiary: args.beneficiary,
|
|
15533
15554
|
assets: args.outputs.map((asset) => ({ ...asset })),
|
|
15534
|
-
call: order.output.call
|
|
15555
|
+
call: args.outputCall ?? order.output.call
|
|
15535
15556
|
}
|
|
15536
15557
|
};
|
|
15537
15558
|
return { ...canonicalOrder, id: orderCommitment(canonicalOrder) };
|
|
@@ -19109,6 +19130,44 @@ var IntentGateway = class _IntentGateway {
|
|
|
19109
19130
|
}
|
|
19110
19131
|
}
|
|
19111
19132
|
};
|
|
19133
|
+
var FILL_ORDER_ABI = IntentGatewayV2_default.ABI;
|
|
19134
|
+
var DECLARATION_VERSION = 1;
|
|
19135
|
+
var MAX_DECLARED_CHAINS = 255;
|
|
19136
|
+
function encodeAcceptedSourceChains(chains2) {
|
|
19137
|
+
if (chains2.length > MAX_DECLARED_CHAINS) {
|
|
19138
|
+
throw new Error(`Cannot declare more than ${MAX_DECLARED_CHAINS} source chains`);
|
|
19139
|
+
}
|
|
19140
|
+
const bytes = [DECLARATION_VERSION, chains2.length];
|
|
19141
|
+
for (const chain of chains2) {
|
|
19142
|
+
const encoded = stringToU8a(chain);
|
|
19143
|
+
if (encoded.length === 0 || encoded.length > 255) {
|
|
19144
|
+
throw new Error(`Invalid state machine id in source chain declaration: ${chain}`);
|
|
19145
|
+
}
|
|
19146
|
+
bytes.push(encoded.length, ...encoded);
|
|
19147
|
+
}
|
|
19148
|
+
return u8aToHex(new Uint8Array(bytes));
|
|
19149
|
+
}
|
|
19150
|
+
function decodeAcceptedSourceChains(paymasterAndData) {
|
|
19151
|
+
if (!paymasterAndData || !isHex$1(paymasterAndData)) return null;
|
|
19152
|
+
const bytes = hexToU8a(paymasterAndData);
|
|
19153
|
+
if (bytes.length < 2 || bytes[0] !== DECLARATION_VERSION) return null;
|
|
19154
|
+
const count = bytes[1];
|
|
19155
|
+
const chains2 = [];
|
|
19156
|
+
let offset = 2;
|
|
19157
|
+
for (let entry = 0; entry < count; entry++) {
|
|
19158
|
+
if (offset >= bytes.length) return null;
|
|
19159
|
+
const length = bytes[offset];
|
|
19160
|
+
offset += 1;
|
|
19161
|
+
if (length === 0 || offset + length > bytes.length) return null;
|
|
19162
|
+
chains2.push(u8aToString(bytes.subarray(offset, offset + length)));
|
|
19163
|
+
offset += length;
|
|
19164
|
+
}
|
|
19165
|
+
if (offset !== bytes.length) return null;
|
|
19166
|
+
return chains2;
|
|
19167
|
+
}
|
|
19168
|
+
FILL_ORDER_ABI.find(
|
|
19169
|
+
(item) => item?.type === "function" && item?.name === "fillOrder"
|
|
19170
|
+
)?.inputs?.[0];
|
|
19112
19171
|
var TokenGateway = class {
|
|
19113
19172
|
source;
|
|
19114
19173
|
dest;
|
|
@@ -23579,6 +23638,6 @@ async function teleportDot(param_) {
|
|
|
23579
23638
|
return stream;
|
|
23580
23639
|
}
|
|
23581
23640
|
|
|
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 };
|
|
23641
|
+
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
23642
|
//# sourceMappingURL=index.js.map
|
|
23584
23643
|
//# sourceMappingURL=index.js.map
|