@hyperbridge/sdk 2.3.3 → 2.4.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 +151 -33
- package/dist/browser/index.js +402 -117
- package/dist/browser/index.js.map +1 -1
- package/dist/node/{IntentGatewayV2-SB851bZs.d.cts → IntentGatewayV2-PzbhFn_7.d.cts} +39 -1
- package/dist/node/{IntentGatewayV2-SB851bZs.d.ts → IntentGatewayV2-PzbhFn_7.d.ts} +39 -1
- package/dist/node/index.cjs +403 -116
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +115 -35
- package/dist/node/index.d.ts +115 -35
- package/dist/node/index.js +402 -117
- package/dist/node/index.js.map +1 -1
- 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.map +1 -1
- package/package.json +1 -1
|
@@ -988,6 +988,16 @@ declare class ChainConfigService {
|
|
|
988
988
|
};
|
|
989
989
|
getDaiAsset(chain: string): HexString;
|
|
990
990
|
getAssetAddress(chain: string, symbol: ConfiguredAssetSymbol): HexString | undefined;
|
|
991
|
+
/**
|
|
992
|
+
* Resolves configured token metadata from an address on a specific chain.
|
|
993
|
+
* This is used by SDK helpers that accept token addresses rather than caller-
|
|
994
|
+
* supplied symbols or decimals.
|
|
995
|
+
*/
|
|
996
|
+
getAssetMetadataByAddress(chain: string, address: HexString): {
|
|
997
|
+
symbol: ConfiguredAssetSymbol;
|
|
998
|
+
address: HexString;
|
|
999
|
+
decimals?: number;
|
|
1000
|
+
} | undefined;
|
|
991
1001
|
getUsdtAsset(chain: string): HexString;
|
|
992
1002
|
getUsdcAsset(chain: string): HexString;
|
|
993
1003
|
getUsdcDecimals(chain: string): number;
|
|
@@ -2578,6 +2588,34 @@ interface OrderResponse {
|
|
|
2578
2588
|
}>;
|
|
2579
2589
|
};
|
|
2580
2590
|
}
|
|
2591
|
+
interface PhantomOrderPriceSnapshot {
|
|
2592
|
+
commitment: HexString;
|
|
2593
|
+
tokenA: HexString;
|
|
2594
|
+
tokenB: HexString;
|
|
2595
|
+
standardAmount: bigint;
|
|
2596
|
+
blockNumber: bigint;
|
|
2597
|
+
medianPrice: bigint;
|
|
2598
|
+
lowestPrice?: bigint;
|
|
2599
|
+
highestPrice?: bigint;
|
|
2600
|
+
bidCount: number;
|
|
2601
|
+
snapshotTime: Date;
|
|
2602
|
+
}
|
|
2603
|
+
interface PhantomOrderPriceSnapshotsResponse {
|
|
2604
|
+
phantomOrderPriceSnapshots: {
|
|
2605
|
+
nodes: Array<{
|
|
2606
|
+
commitment: string;
|
|
2607
|
+
tokenA: string;
|
|
2608
|
+
tokenB: string;
|
|
2609
|
+
standardAmount: string;
|
|
2610
|
+
blockNumber: string;
|
|
2611
|
+
medianPrice: string | null;
|
|
2612
|
+
lowestPrice: string | null;
|
|
2613
|
+
highestPrice: string | null;
|
|
2614
|
+
bidCount: number;
|
|
2615
|
+
snapshotTime: string;
|
|
2616
|
+
}>;
|
|
2617
|
+
};
|
|
2618
|
+
}
|
|
2581
2619
|
interface TokenPrice {
|
|
2582
2620
|
symbol: string;
|
|
2583
2621
|
address?: string;
|
|
@@ -5747,4 +5785,4 @@ declare const _default: {
|
|
|
5747
5785
|
}];
|
|
5748
5786
|
};
|
|
5749
5787
|
|
|
5750
|
-
export { type BytesLikeHex as $, type AssetTeleported as A, type Bid as B, ChainConfigService as C, type FillOrderEstimate as D, type EstimateGasCallData as E, type FillerBid as F, type GetRequestWithStatus as G, type HexString as H, type IChain as I, type ERC7821Call as J, type OrderWithStatus as K, OrderStatus as L, type TokenGatewayAssetTeleportedWithStatus as M, TeleportStatus as N, type Order as O, type PostRequestWithStatus as P, type DecodedOrderPlacedLog as Q, type RetryConfig as R, type StateMachineIdParams as S, type Transaction as T, type DecodedPostRequestEvent as U, type DecodedPostResponseEvent as V, type AllStatusKey as W, type AssetTeleportedResponse as X, type BidStorageEntry as Y, type BidSubmissionResult as Z, type BlockMetadata as _, type IEvmConfig as a,
|
|
5788
|
+
export { type BytesLikeHex as $, type AssetTeleported as A, type Bid as B, ChainConfigService as C, type FillOrderEstimate as D, type EstimateGasCallData as E, type FillerBid as F, type GetRequestWithStatus as G, type HexString as H, type IChain as I, type ERC7821Call as J, type OrderWithStatus as K, OrderStatus as L, type TokenGatewayAssetTeleportedWithStatus as M, TeleportStatus as N, type Order as O, type PostRequestWithStatus as P, type DecodedOrderPlacedLog as Q, type RetryConfig as R, type StateMachineIdParams as S, type Transaction as T, type DecodedPostRequestEvent as U, type DecodedPostResponseEvent as V, type AllStatusKey as W, type AssetTeleportedResponse as X, type BidStorageEntry as Y, type BidSubmissionResult as Z, type BlockMetadata as _, type IEvmConfig as a, convertIGetRequestToCodec as a$, type CancelOptions as a0, type ChainConfig as a1, type ChainConfigData as a2, Chains as a3, type ConfiguredAssetSymbol as a4, type Deployment as a5, type DispatchGet as a6, type DispatchInfo as a7, type DispatchPost as a8, type ExecuteIntentOrderOptions as a9, type OrderStatusMetadata as aA, type PaymentInfo as aB, type PhantomOrderEvent as aC, type PhantomOrderPriceSnapshot as aD, type PhantomOrderPriceSnapshotsResponse as aE, type PostRequestStatus as aF, type RequestBody as aG, type RequestCommitment as aH, RequestKind as aI, type RequestResponse as aJ, RequestStatus as aK, type RequestStatusKey as aL, type SelectOptions as aM, type SigningAccount as aN, type StateMachineId as aO, type StateMachineResponse as aP, type StorageFacade as aQ, TimeoutStatus as aR, type TimeoutStatusKey as aS, type TokenGatewayAssetTeleportedResponse as aT, type TokenInfo as aU, type TokenPrice as aV, type TokenPricesResponse as aW, type UniswapV4PoolConfigData as aX, chainConfigs as aY, convertCodecToIGetRequest as aZ, convertCodecToIProof as a_, type ExecutionResult as aa, type FillOptions as ab, type FillerConfig as ac, type GetRequestResponse as ad, type GetResponseByRequestIdResponse as ae, type GetResponseStorageValues as af, type HostParams as ag, HyperClientStatus as ah, type IBatchConsensusAndGetResponseMessage as ai, type IBatchConsensusAndPostRequestMessage as aj, type IConfig as ak, type IConsensusMessage as al, type IGetRequestMessage as am, type IGetResponse as an, type IGetResponseMessage as ao, type IHyperbridgeConfig as ap, type IPostResponse as aq, type IRequestMessage as ar, type ISubstrateConfig as as, type ITimeoutPostRequestMessage as at, ABI as au, type IntentGatewayParams as av, IntentOrderStatus as aw, type IntentOrderStatusKey as ax, type IsmpRequest as ay, type OrderResponse as az, type IMessage as b, convertIProofToCodec as b0, convertStateIdToStateMachineId as b1, convertStateMachineEnumToString as b2, convertStateMachineIdToEnum as b3, decodeERC7821ExecuteBatch as b4, decodeUserOpScale as b5, encodeERC7821ExecuteBatch as b6, encodeISMPMessage as b7, encodeUserOpScale as b8, getChainId as b9, getConfigByStateMachineId as ba, getViemChain as bb, hyperbridgeAddress as bc, pharosAtlantic as bd, pharosMainnet as be, polkadotAssetHubPaseo as bf, polkadotHubMainnet as bg, tronChainIds as bh, tronNile as bi, _default as bj, type StateMachineHeight as c, type IIsmpMessage as d, type IPostRequest as e, type IGetRequest as f, type IPolkadotHubConfig as g, type IPharosConfig as h, type StateMachineUpdate as i, type ResponseCommitmentWithValues as j, type RequestStatusWithMetadata as k, type PostRequestTimeoutStatus as l, SubstrateChain as m, type ClientConfig as n, type IndexerQueryClient as o, type IProof as p, type IEvmChain as q, IntentsCoprocessor as r, type IntentOrderStatusUpdate as s, type SelectBidResult as t, type ResumeIntentOrderOptions as u, type CancelOrderOptions as v, type CancelQuote as w, type SubmitBidOptions as x, type PackedUserOperation as y, type EstimateFillOrderParams as z };
|
|
@@ -988,6 +988,16 @@ declare class ChainConfigService {
|
|
|
988
988
|
};
|
|
989
989
|
getDaiAsset(chain: string): HexString;
|
|
990
990
|
getAssetAddress(chain: string, symbol: ConfiguredAssetSymbol): HexString | undefined;
|
|
991
|
+
/**
|
|
992
|
+
* Resolves configured token metadata from an address on a specific chain.
|
|
993
|
+
* This is used by SDK helpers that accept token addresses rather than caller-
|
|
994
|
+
* supplied symbols or decimals.
|
|
995
|
+
*/
|
|
996
|
+
getAssetMetadataByAddress(chain: string, address: HexString): {
|
|
997
|
+
symbol: ConfiguredAssetSymbol;
|
|
998
|
+
address: HexString;
|
|
999
|
+
decimals?: number;
|
|
1000
|
+
} | undefined;
|
|
991
1001
|
getUsdtAsset(chain: string): HexString;
|
|
992
1002
|
getUsdcAsset(chain: string): HexString;
|
|
993
1003
|
getUsdcDecimals(chain: string): number;
|
|
@@ -2578,6 +2588,34 @@ interface OrderResponse {
|
|
|
2578
2588
|
}>;
|
|
2579
2589
|
};
|
|
2580
2590
|
}
|
|
2591
|
+
interface PhantomOrderPriceSnapshot {
|
|
2592
|
+
commitment: HexString;
|
|
2593
|
+
tokenA: HexString;
|
|
2594
|
+
tokenB: HexString;
|
|
2595
|
+
standardAmount: bigint;
|
|
2596
|
+
blockNumber: bigint;
|
|
2597
|
+
medianPrice: bigint;
|
|
2598
|
+
lowestPrice?: bigint;
|
|
2599
|
+
highestPrice?: bigint;
|
|
2600
|
+
bidCount: number;
|
|
2601
|
+
snapshotTime: Date;
|
|
2602
|
+
}
|
|
2603
|
+
interface PhantomOrderPriceSnapshotsResponse {
|
|
2604
|
+
phantomOrderPriceSnapshots: {
|
|
2605
|
+
nodes: Array<{
|
|
2606
|
+
commitment: string;
|
|
2607
|
+
tokenA: string;
|
|
2608
|
+
tokenB: string;
|
|
2609
|
+
standardAmount: string;
|
|
2610
|
+
blockNumber: string;
|
|
2611
|
+
medianPrice: string | null;
|
|
2612
|
+
lowestPrice: string | null;
|
|
2613
|
+
highestPrice: string | null;
|
|
2614
|
+
bidCount: number;
|
|
2615
|
+
snapshotTime: string;
|
|
2616
|
+
}>;
|
|
2617
|
+
};
|
|
2618
|
+
}
|
|
2581
2619
|
interface TokenPrice {
|
|
2582
2620
|
symbol: string;
|
|
2583
2621
|
address?: string;
|
|
@@ -5747,4 +5785,4 @@ declare const _default: {
|
|
|
5747
5785
|
}];
|
|
5748
5786
|
};
|
|
5749
5787
|
|
|
5750
|
-
export { type BytesLikeHex as $, type AssetTeleported as A, type Bid as B, ChainConfigService as C, type FillOrderEstimate as D, type EstimateGasCallData as E, type FillerBid as F, type GetRequestWithStatus as G, type HexString as H, type IChain as I, type ERC7821Call as J, type OrderWithStatus as K, OrderStatus as L, type TokenGatewayAssetTeleportedWithStatus as M, TeleportStatus as N, type Order as O, type PostRequestWithStatus as P, type DecodedOrderPlacedLog as Q, type RetryConfig as R, type StateMachineIdParams as S, type Transaction as T, type DecodedPostRequestEvent as U, type DecodedPostResponseEvent as V, type AllStatusKey as W, type AssetTeleportedResponse as X, type BidStorageEntry as Y, type BidSubmissionResult as Z, type BlockMetadata as _, type IEvmConfig as a,
|
|
5788
|
+
export { type BytesLikeHex as $, type AssetTeleported as A, type Bid as B, ChainConfigService as C, type FillOrderEstimate as D, type EstimateGasCallData as E, type FillerBid as F, type GetRequestWithStatus as G, type HexString as H, type IChain as I, type ERC7821Call as J, type OrderWithStatus as K, OrderStatus as L, type TokenGatewayAssetTeleportedWithStatus as M, TeleportStatus as N, type Order as O, type PostRequestWithStatus as P, type DecodedOrderPlacedLog as Q, type RetryConfig as R, type StateMachineIdParams as S, type Transaction as T, type DecodedPostRequestEvent as U, type DecodedPostResponseEvent as V, type AllStatusKey as W, type AssetTeleportedResponse as X, type BidStorageEntry as Y, type BidSubmissionResult as Z, type BlockMetadata as _, type IEvmConfig as a, convertIGetRequestToCodec as a$, type CancelOptions as a0, type ChainConfig as a1, type ChainConfigData as a2, Chains as a3, type ConfiguredAssetSymbol as a4, type Deployment as a5, type DispatchGet as a6, type DispatchInfo as a7, type DispatchPost as a8, type ExecuteIntentOrderOptions as a9, type OrderStatusMetadata as aA, type PaymentInfo as aB, type PhantomOrderEvent as aC, type PhantomOrderPriceSnapshot as aD, type PhantomOrderPriceSnapshotsResponse as aE, type PostRequestStatus as aF, type RequestBody as aG, type RequestCommitment as aH, RequestKind as aI, type RequestResponse as aJ, RequestStatus as aK, type RequestStatusKey as aL, type SelectOptions as aM, type SigningAccount as aN, type StateMachineId as aO, type StateMachineResponse as aP, type StorageFacade as aQ, TimeoutStatus as aR, type TimeoutStatusKey as aS, type TokenGatewayAssetTeleportedResponse as aT, type TokenInfo as aU, type TokenPrice as aV, type TokenPricesResponse as aW, type UniswapV4PoolConfigData as aX, chainConfigs as aY, convertCodecToIGetRequest as aZ, convertCodecToIProof as a_, type ExecutionResult as aa, type FillOptions as ab, type FillerConfig as ac, type GetRequestResponse as ad, type GetResponseByRequestIdResponse as ae, type GetResponseStorageValues as af, type HostParams as ag, HyperClientStatus as ah, type IBatchConsensusAndGetResponseMessage as ai, type IBatchConsensusAndPostRequestMessage as aj, type IConfig as ak, type IConsensusMessage as al, type IGetRequestMessage as am, type IGetResponse as an, type IGetResponseMessage as ao, type IHyperbridgeConfig as ap, type IPostResponse as aq, type IRequestMessage as ar, type ISubstrateConfig as as, type ITimeoutPostRequestMessage as at, ABI as au, type IntentGatewayParams as av, IntentOrderStatus as aw, type IntentOrderStatusKey as ax, type IsmpRequest as ay, type OrderResponse as az, type IMessage as b, convertIProofToCodec as b0, convertStateIdToStateMachineId as b1, convertStateMachineEnumToString as b2, convertStateMachineIdToEnum as b3, decodeERC7821ExecuteBatch as b4, decodeUserOpScale as b5, encodeERC7821ExecuteBatch as b6, encodeISMPMessage as b7, encodeUserOpScale as b8, getChainId as b9, getConfigByStateMachineId as ba, getViemChain as bb, hyperbridgeAddress as bc, pharosAtlantic as bd, pharosMainnet as be, polkadotAssetHubPaseo as bf, polkadotHubMainnet as bg, tronChainIds as bh, tronNile as bi, _default as bj, type StateMachineHeight as c, type IIsmpMessage as d, type IPostRequest as e, type IGetRequest as f, type IPolkadotHubConfig as g, type IPharosConfig as h, type StateMachineUpdate as i, type ResponseCommitmentWithValues as j, type RequestStatusWithMetadata as k, type PostRequestTimeoutStatus as l, SubstrateChain as m, type ClientConfig as n, type IndexerQueryClient as o, type IProof as p, type IEvmChain as q, IntentsCoprocessor as r, type IntentOrderStatusUpdate as s, type SelectBidResult as t, type ResumeIntentOrderOptions as u, type CancelOrderOptions as v, type CancelQuote as w, type SubmitBidOptions as x, type PackedUserOperation as y, type EstimateFillOrderParams as z };
|