@hyperbridge/sdk 2.8.0 → 2.8.3

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.
@@ -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 './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';
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-CxCDx-hH.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 PhantomBid, aH as PhantomBidBatchResult, aI as PhantomBidDeclaration, aJ as PhantomBidOutcome, aK as PhantomOrderEvent, aL as PhantomOrderLeg, aM as PhantomOrderPriceSnapshot, aN as PhantomOrderPriceSnapshotsResponse, aO as PollPhantomOrdersOptions, aP as PostRequestStatus, aQ as RequestBody, aR as RequestCommitment, aS as RequestKind, aT as RequestResponse, aU as RequestStatus, aV as RequestStatusKey, aW as SelectOptions, aX as SigningAccount, aY as StateMachineId, aZ as StateMachineResponse, a_ as StorageFacade, a$ as TimeoutStatus, b0 as TimeoutStatusKey, b1 as TokenGatewayAssetTeleportedResponse, b2 as TokenInfo, b3 as TokenPrice, b4 as TokenPricesResponse, b5 as UniswapV4PoolConfigData, b6 as chainConfigs, b7 as convertCodecToIGetRequest, b8 as convertCodecToIProof, b9 as convertIGetRequestToCodec, ba as convertIProofToCodec, bb as convertStateIdToStateMachineId, bc as convertStateMachineEnumToString, bd as convertStateMachineIdToEnum, be as decodeAcceptedSourceChains, bf as decodeERC7821ExecuteBatch, bg as decodePhantomBidDeclaration, bh as decodeUserOpScale, bi as deriveHttpUrl, bj as encodeAcceptedSourceChains, bk as encodeERC7821ExecuteBatch, bl as encodeISMPMessage, bm as encodePhantomBidDeclaration, bn as encodeUserOpScale, bo as getChainId, bp as getConfigByStateMachineId, bq as getViemChain, br as hyperbridgeAddress, bs as pharosAtlantic, bt as pharosMainnet, bu as polkadotAssetHubPaseo, bv as polkadotHubMainnet, bw as tronChainIds, bx as tronNile } from './intents-helpers-CxCDx-hH.cjs';
3
3
  import { ConsolaInstance } from 'consola';
4
4
  import { GraphQLClient } from 'graphql-request';
5
5
  import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
@@ -2437,6 +2437,12 @@ declare class CryptoUtils {
2437
2437
  * signing infrastructure (hardware wallets, MPC/TEE policy engines) instead
2438
2438
  * of an opaque 32-byte digest.
2439
2439
  *
2440
+ * The payload must be a standard self-describing `eth_signTypedData_v4`
2441
+ * payload — `EIP712Domain` listed in `types`, `chainId` as a JSON number —
2442
+ * because some signing backends (e.g. MPC Vault) hash it server-side from
2443
+ * the JSON rather than locally via viem. viem ignores both details when
2444
+ * hashing, so the digest is unchanged for local signers.
2445
+ *
2440
2446
  * @param userOp - The packed UserOperation to sign (signature field ignored).
2441
2447
  * @param entryPoint - Address of the EntryPoint v0.8 contract.
2442
2448
  * @param chainId - Chain ID of the network on which the operation will execute.
@@ -2450,10 +2456,44 @@ declare class CryptoUtils {
2450
2456
  verifyingContract: `0x${string}`;
2451
2457
  };
2452
2458
  types: {
2453
- PackedUserOperation: {
2454
- name: string;
2455
- type: string;
2456
- }[];
2459
+ readonly EIP712Domain: readonly [{
2460
+ readonly name: "name";
2461
+ readonly type: "string";
2462
+ }, {
2463
+ readonly name: "version";
2464
+ readonly type: "string";
2465
+ }, {
2466
+ readonly name: "chainId";
2467
+ readonly type: "uint256";
2468
+ }, {
2469
+ readonly name: "verifyingContract";
2470
+ readonly type: "address";
2471
+ }];
2472
+ readonly PackedUserOperation: readonly [{
2473
+ readonly name: "sender";
2474
+ readonly type: "address";
2475
+ }, {
2476
+ readonly name: "nonce";
2477
+ readonly type: "uint256";
2478
+ }, {
2479
+ readonly name: "initCode";
2480
+ readonly type: "bytes";
2481
+ }, {
2482
+ readonly name: "callData";
2483
+ readonly type: "bytes";
2484
+ }, {
2485
+ readonly name: "accountGasLimits";
2486
+ readonly type: "bytes32";
2487
+ }, {
2488
+ readonly name: "preVerificationGas";
2489
+ readonly type: "uint256";
2490
+ }, {
2491
+ readonly name: "gasFees";
2492
+ readonly type: "bytes32";
2493
+ }, {
2494
+ readonly name: "paymasterAndData";
2495
+ readonly type: "bytes";
2496
+ }];
2457
2497
  };
2458
2498
  primaryType: "PackedUserOperation";
2459
2499
  message: {
@@ -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 './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';
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-CxCDx-hH.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 PhantomBid, aH as PhantomBidBatchResult, aI as PhantomBidDeclaration, aJ as PhantomBidOutcome, aK as PhantomOrderEvent, aL as PhantomOrderLeg, aM as PhantomOrderPriceSnapshot, aN as PhantomOrderPriceSnapshotsResponse, aO as PollPhantomOrdersOptions, aP as PostRequestStatus, aQ as RequestBody, aR as RequestCommitment, aS as RequestKind, aT as RequestResponse, aU as RequestStatus, aV as RequestStatusKey, aW as SelectOptions, aX as SigningAccount, aY as StateMachineId, aZ as StateMachineResponse, a_ as StorageFacade, a$ as TimeoutStatus, b0 as TimeoutStatusKey, b1 as TokenGatewayAssetTeleportedResponse, b2 as TokenInfo, b3 as TokenPrice, b4 as TokenPricesResponse, b5 as UniswapV4PoolConfigData, b6 as chainConfigs, b7 as convertCodecToIGetRequest, b8 as convertCodecToIProof, b9 as convertIGetRequestToCodec, ba as convertIProofToCodec, bb as convertStateIdToStateMachineId, bc as convertStateMachineEnumToString, bd as convertStateMachineIdToEnum, be as decodeAcceptedSourceChains, bf as decodeERC7821ExecuteBatch, bg as decodePhantomBidDeclaration, bh as decodeUserOpScale, bi as deriveHttpUrl, bj as encodeAcceptedSourceChains, bk as encodeERC7821ExecuteBatch, bl as encodeISMPMessage, bm as encodePhantomBidDeclaration, bn as encodeUserOpScale, bo as getChainId, bp as getConfigByStateMachineId, bq as getViemChain, br as hyperbridgeAddress, bs as pharosAtlantic, bt as pharosMainnet, bu as polkadotAssetHubPaseo, bv as polkadotHubMainnet, bw as tronChainIds, bx as tronNile } from './intents-helpers-CxCDx-hH.js';
3
3
  import { ConsolaInstance } from 'consola';
4
4
  import { GraphQLClient } from 'graphql-request';
5
5
  import { PublicClient, TransactionReceipt, Hex, Address } from 'viem';
@@ -2437,6 +2437,12 @@ declare class CryptoUtils {
2437
2437
  * signing infrastructure (hardware wallets, MPC/TEE policy engines) instead
2438
2438
  * of an opaque 32-byte digest.
2439
2439
  *
2440
+ * The payload must be a standard self-describing `eth_signTypedData_v4`
2441
+ * payload — `EIP712Domain` listed in `types`, `chainId` as a JSON number —
2442
+ * because some signing backends (e.g. MPC Vault) hash it server-side from
2443
+ * the JSON rather than locally via viem. viem ignores both details when
2444
+ * hashing, so the digest is unchanged for local signers.
2445
+ *
2440
2446
  * @param userOp - The packed UserOperation to sign (signature field ignored).
2441
2447
  * @param entryPoint - Address of the EntryPoint v0.8 contract.
2442
2448
  * @param chainId - Chain ID of the network on which the operation will execute.
@@ -2450,10 +2456,44 @@ declare class CryptoUtils {
2450
2456
  verifyingContract: `0x${string}`;
2451
2457
  };
2452
2458
  types: {
2453
- PackedUserOperation: {
2454
- name: string;
2455
- type: string;
2456
- }[];
2459
+ readonly EIP712Domain: readonly [{
2460
+ readonly name: "name";
2461
+ readonly type: "string";
2462
+ }, {
2463
+ readonly name: "version";
2464
+ readonly type: "string";
2465
+ }, {
2466
+ readonly name: "chainId";
2467
+ readonly type: "uint256";
2468
+ }, {
2469
+ readonly name: "verifyingContract";
2470
+ readonly type: "address";
2471
+ }];
2472
+ readonly PackedUserOperation: readonly [{
2473
+ readonly name: "sender";
2474
+ readonly type: "address";
2475
+ }, {
2476
+ readonly name: "nonce";
2477
+ readonly type: "uint256";
2478
+ }, {
2479
+ readonly name: "initCode";
2480
+ readonly type: "bytes";
2481
+ }, {
2482
+ readonly name: "callData";
2483
+ readonly type: "bytes";
2484
+ }, {
2485
+ readonly name: "accountGasLimits";
2486
+ readonly type: "bytes32";
2487
+ }, {
2488
+ readonly name: "preVerificationGas";
2489
+ readonly type: "uint256";
2490
+ }, {
2491
+ readonly name: "gasFees";
2492
+ readonly type: "bytes32";
2493
+ }, {
2494
+ readonly name: "paymasterAndData";
2495
+ readonly type: "bytes";
2496
+ }];
2457
2497
  };
2458
2498
  primaryType: "PackedUserOperation";
2459
2499
  message: {