@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.
- package/dist/browser/index.d.ts +298 -17
- package/dist/browser/index.js +496 -113
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +497 -111
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +46 -6
- package/dist/node/index.d.ts +46 -6
- package/dist/node/index.js +496 -113
- package/dist/node/index.js.map +1 -1
- package/dist/node/{intents-helpers-gyGREuyu.d.cts → intents-helpers-CxCDx-hH.d.cts} +300 -19
- package/dist/node/{intents-helpers-gyGREuyu.d.ts → intents-helpers-CxCDx-hH.d.ts} +300 -19
- package/dist/node/intents-helpers.cjs +406 -50
- package/dist/node/intents-helpers.cjs.map +1 -1
- package/dist/node/intents-helpers.d.cts +1 -1
- package/dist/node/intents-helpers.d.ts +1 -1
- package/dist/node/intents-helpers.js +405 -51
- 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 './intents-helpers-
|
|
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
|
|
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
|
-
|
|
2454
|
-
name:
|
|
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: {
|
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 './intents-helpers-
|
|
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
|
|
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
|
-
|
|
2454
|
-
name:
|
|
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: {
|