@hyperbridge/sdk 2.0.0 → 2.0.1

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.
@@ -1055,6 +1055,14 @@ declare function postRequestCommitment(post: IPostRequest): {
1055
1055
  declare function bytes32ToBytes20(bytes32Address: string): HexString;
1056
1056
  declare function bytes20ToBytes32(bytes20Address: string): HexString;
1057
1057
  declare function hexToString(hex: string): string;
1058
+ declare function normalizeStateMachineId(stateMachineId: string): string;
1059
+ declare function normalizeEvmChainId(chainId: number | string): {
1060
+ chainId: number;
1061
+ stateMachineId: string;
1062
+ };
1063
+ declare function encodeStateMachineId(stateMachineId: string): HexString;
1064
+ declare function normalizeAddressForEvmBytes32(address: string): HexString;
1065
+ declare function normalizeAddressForStateMachine(address: string, stateMachineId: string): HexString;
1058
1066
  /**
1059
1067
  * Retries a promise-returning operation with exponential backoff.
1060
1068
  * This function will attempt to execute the operation up to maxRetries times,
@@ -1958,6 +1966,8 @@ interface IEvmChain extends IChain {
1958
1966
 
1959
1967
  type EstimateGasCallData = ContractFunctionArgs<typeof _default.ABI, "nonpayable" | "payable", "handlePostRequests">;
1960
1968
  type HexString = `0x${string}`;
1969
+ type StateMachineId = string;
1970
+ type BytesLikeHex = HexString;
1961
1971
  interface IConfig {
1962
1972
  source: IEvmConfig | ISubstrateConfig | IPolkadotHubConfig | IPharosConfig;
1963
1973
  dest: IEvmConfig | ISubstrateConfig | IPolkadotHubConfig | IPharosConfig;
@@ -2412,10 +2422,13 @@ interface ChainConfig {
2412
2422
  */
2413
2423
  interface TokenInfo {
2414
2424
  /**
2415
- * The address of the ERC20 token
2416
- * address(0) is used as a sentinel for the native token
2425
+ * The token identifier as either:
2426
+ * - a standard 20-byte EVM address (`0xabc...`)
2427
+ * - an already padded 32-byte value (`0x000...abc...`)
2428
+ *
2429
+ * `address(0)` / `bytes32(0)` is used as a sentinel for the native token.
2417
2430
  */
2418
- token: HexString;
2431
+ token: BytesLikeHex;
2419
2432
  /**
2420
2433
  * The amount of the token
2421
2434
  */
@@ -2934,7 +2947,8 @@ interface StorageFacade {
2934
2947
  delete(key: string): Promise<void>;
2935
2948
  }
2936
2949
  interface PaymentInfo {
2937
- beneficiary: HexString;
2950
+ /** Accepts a standard 20-byte address; the SDK pads to bytes32 internally when needed. */
2951
+ beneficiary: BytesLikeHex;
2938
2952
  assets: TokenInfo[];
2939
2953
  call: HexString;
2940
2954
  }
@@ -2945,8 +2959,10 @@ interface DispatchInfo {
2945
2959
  interface Order {
2946
2960
  id?: string;
2947
2961
  user: HexString;
2948
- source: HexString;
2949
- destination: HexString;
2962
+ /** Accepts either `"EVM-1"` style IDs or their hex-encoded form. */
2963
+ source: StateMachineId;
2964
+ /** Accepts either `"EVM-42161"` style IDs or their hex-encoded form. */
2965
+ destination: StateMachineId;
2950
2966
  deadline: bigint;
2951
2967
  nonce: bigint;
2952
2968
  fees: bigint;
@@ -2955,6 +2971,10 @@ interface Order {
2955
2971
  inputs: TokenInfo[];
2956
2972
  output: PaymentInfo;
2957
2973
  }
2974
+ interface CancelOrderOptions {
2975
+ /** Where to initiate the cancel from. Defaults to `"source"`. */
2976
+ from?: "source" | "destination";
2977
+ }
2958
2978
  interface FillOptions {
2959
2979
  relayerFee: bigint;
2960
2980
  nativeDispatchFee: bigint;
@@ -3598,9 +3618,89 @@ declare function queryGetRequest(params: {
3598
3618
  queryClient: IndexerQueryClient;
3599
3619
  }): Promise<GetRequestWithStatus | undefined>;
3600
3620
 
3621
+ type UniswapProtocol = "v2" | "v3" | "v4";
3622
+ type UniswapTradeType = "EXACT_INPUT" | "EXACT_OUTPUT";
3623
+ /**
3624
+ * Token metadata required for Uniswap quoting.
3625
+ */
3626
+ interface UniswapQuoteToken {
3627
+ /** Token contract address. Use ADDRESS_ZERO for the native asset. */
3628
+ address: HexString;
3629
+ /** Token decimals used by the integrating app when formatting quote amounts. */
3630
+ decimals: number;
3631
+ /** Optional display symbol, returned unchanged in quote responses. */
3632
+ symbol?: string;
3633
+ /** EVM chain ID where this token exists. */
3634
+ chainId: number;
3635
+ }
3636
+ /**
3637
+ * Parameters for quoting a Uniswap swap through the SDK.
3638
+ *
3639
+ * Provide `amountIn` when `tradeType` is `EXACT_INPUT`, or `amountOut` when
3640
+ * `tradeType` is `EXACT_OUTPUT`. RPC clients are derived from SDK chain config.
3641
+ */
3642
+ interface QuoteUniswapParams {
3643
+ /** Numeric EVM chain ID or state machine ID, for example `8453` or `EVM-8453`. */
3644
+ chainId: number | string;
3645
+ /** Token the user pays with. */
3646
+ tokenIn: UniswapQuoteToken;
3647
+ /** Token the user receives. */
3648
+ tokenOut: UniswapQuoteToken;
3649
+ /** Exact input amount, required for `EXACT_INPUT`. */
3650
+ amountIn?: bigint;
3651
+ /** Exact output amount, required for `EXACT_OUTPUT`. */
3652
+ amountOut?: bigint;
3653
+ /** Whether to quote by fixed input or fixed output. */
3654
+ tradeType: UniswapTradeType;
3655
+ /** Protocols to check. Defaults to all supported protocols: v2, v3, and v4. */
3656
+ protocols?: UniswapProtocol[];
3657
+ /** Slippage tolerance in basis points, only used when `recipient` is provided. */
3658
+ slippageBps?: number;
3659
+ /** Optional recipient. When set, executable transaction calldata is included. */
3660
+ recipient?: HexString;
3661
+ }
3662
+ /**
3663
+ * Normalized quote returned by every Uniswap protocol adapter.
3664
+ */
3665
+ interface UniswapQuote {
3666
+ /** Protocol that produced this quote. */
3667
+ protocol: UniswapProtocol;
3668
+ /** Quote direction used to calculate the amounts. */
3669
+ tradeType: UniswapTradeType;
3670
+ /** Numeric EVM chain ID. */
3671
+ chainId: number;
3672
+ /** Token the user pays with. */
3673
+ tokenIn: UniswapQuoteToken;
3674
+ /** Token the user receives. */
3675
+ tokenOut: UniswapQuoteToken;
3676
+ /** Input amount required for this quote. */
3677
+ amountIn: bigint;
3678
+ /** Output amount returned by this quote. */
3679
+ amountOut: bigint;
3680
+ /** Winning fee tier for concentrated-liquidity protocols. */
3681
+ fee?: number;
3682
+ /** Token path used by the quote. */
3683
+ route: {
3684
+ tokens: HexString[];
3685
+ };
3686
+ /** Executable transactions, included only when `recipient` is supplied. */
3687
+ transactions?: Transaction[];
3688
+ }
3689
+ /**
3690
+ * Quote result containing the best quote and all successful protocol candidates.
3691
+ */
3692
+ interface QuoteUniswapResult {
3693
+ /** Best quote by highest output for exact input, or lowest input for exact output. */
3694
+ bestQuote: UniswapQuote | null;
3695
+ /** All successful protocol quotes considered by the SDK. */
3696
+ quotes: UniswapQuote[];
3697
+ }
3698
+
3601
3699
  declare class Swap {
3602
3700
  private chainConfigService;
3701
+ private uniswapQuoteEngine;
3603
3702
  constructor();
3703
+ quoteUniswap(params: QuoteUniswapParams): Promise<QuoteUniswapResult>;
3604
3704
  /**
3605
3705
  * Gets V2 quote for exact output swap.
3606
3706
  */
@@ -3750,6 +3850,7 @@ declare class Swap {
3750
3850
  */
3751
3851
  private getTickSpacing;
3752
3852
  }
3853
+ declare function quoteUniswap(params: QuoteUniswapParams): Promise<QuoteUniswapResult>;
3753
3854
 
3754
3855
  type StorageDriverKey = "node" | "localstorage" | "indexeddb" | "memory";
3755
3856
  interface CancellationStorageOptions {
@@ -4195,11 +4296,13 @@ declare class IntentGateway {
4195
4296
  * Delegates to {@link OrderCanceller.quoteCancelOrder}.
4196
4297
  *
4197
4298
  * @param order - The order to quote cancellation for.
4198
- * @param fromDest - If `true`, quotes the destination-initiated cancellation fee.
4299
+ * @param options - Choose the initiation side. Defaults to source-side cancellation.
4199
4300
  * @returns `{ nativeValue }` — native token amount (wei) to send as `value`;
4200
4301
  * `{ relayerFee }` — relayer incentive denominated in the chain's fee token.
4201
4302
  */
4202
- quoteCancelOrder(order: Order, fromDest?: boolean): Promise<CancelQuote>;
4303
+ quoteCancelOrder(order: Order, options?: CancelOrderOptions): Promise<CancelQuote>;
4304
+ quoteCancelOrderFromSource(order: Order): Promise<CancelQuote>;
4305
+ quoteCancelOrderFromDest(order: Order): Promise<CancelQuote>;
4203
4306
  /**
4204
4307
  * Async generator that cancels an order and streams status events until
4205
4308
  * cancellation is complete.
@@ -4208,11 +4311,12 @@ declare class IntentGateway {
4208
4311
  *
4209
4312
  * @param order - The order to cancel.
4210
4313
  * @param indexerClient - Indexer client used for ISMP request status streaming.
4211
- * @param fromDest - If `true`, initiates cancellation from the destination chain.
4212
- * Defaults to `false` (source-side cancellation).
4314
+ * @param options - Choose the initiation side. Defaults to source-side cancellation.
4213
4315
  * @yields {@link CancelEvent} objects describing each cancellation stage.
4214
4316
  */
4215
- cancelOrder(order: Order, indexerClient: IsmpClient, fromDest?: boolean): AsyncGenerator<CancelEvent>;
4317
+ cancelOrder(order: Order, indexerClient: IsmpClient, options?: CancelOrderOptions): AsyncGenerator<CancelEvent>;
4318
+ cancelOrderFromSource(order: Order, indexerClient: IsmpClient): AsyncGenerator<CancelEvent>;
4319
+ cancelOrderFromDest(order: Order, indexerClient: IsmpClient): AsyncGenerator<CancelEvent>;
4216
4320
  /**
4217
4321
  * Constructs a signed `PackedUserOperation` for a solver to submit as a bid.
4218
4322
  *
@@ -4371,6 +4475,10 @@ declare class OrderStatusChecker {
4371
4475
  isOrderRefunded(order: Order): Promise<boolean>;
4372
4476
  }
4373
4477
 
4478
+ type ContractOrder = Omit<Order, "id" | "source" | "destination"> & {
4479
+ source: HexString;
4480
+ destination: HexString;
4481
+ };
4374
4482
  /**
4375
4483
  * Encodes a list of calls into ERC-7821 `execute` function calldata using
4376
4484
  * single-batch mode.
@@ -4409,8 +4517,8 @@ declare function fetchSourceProof(commitment: HexString, source: IEvmChain, sour
4409
4517
  * - `id` is removed (not part of the on-chain struct).
4410
4518
  * - `source` and `destination` are hex-encoded if currently plain string
4411
4519
  * state-machine IDs.
4412
- * - `inputs[i].token`, `output.beneficiary`, `output.assets[i].token`, and
4413
- * `predispatch.assets[i].token` are left-padded from 20-byte addresses to
4520
+ * - `user`, `inputs[i].token`, `output.beneficiary`, `output.assets[i].token`,
4521
+ * and `predispatch.assets[i].token` are left-padded from 20-byte addresses to
4414
4522
  * 32-byte values (`0x000…addr`) via {@link bytes20ToBytes32}, matching the
4415
4523
  * `bytes32(uint256(uint160(addr)))` encoding the contract uses when casting
4416
4524
  * these fields back to `address`. Values already at 32 bytes are unchanged.
@@ -4418,7 +4526,7 @@ declare function fetchSourceProof(commitment: HexString, source: IEvmChain, sour
4418
4526
  * @param order - The SDK-level order to transform.
4419
4527
  * @returns A contract-compatible order struct without `id`.
4420
4528
  */
4421
- declare function transformOrderForContract(order: Order): Omit<Order, "id">;
4529
+ declare function transformOrderForContract(order: Order): ContractOrder;
4422
4530
  /**
4423
4531
  * Calculates the commitment hash for an order by ABI-encoding the
4424
4532
  * contract-normalised form of the order and hashing it.
@@ -8027,7 +8135,7 @@ interface TeleportParams {
8027
8135
  assetId: HexString;
8028
8136
  /** Redeem ERC20 on the destination? */
8029
8137
  redeem: boolean;
8030
- /** Recipient address */
8138
+ /** Recipient address. For EVM destinations, plain 20-byte addresses are accepted and padded internally. */
8031
8139
  to: HexString;
8032
8140
  /** Recipient state machine */
8033
8141
  dest: string | Uint8Array;
@@ -8668,4 +8776,4 @@ declare const getChainId: (stateMachineId: string) => number | undefined;
8668
8776
  declare const getViemChain: (chainId: number) => Chain | undefined;
8669
8777
  declare const hyperbridgeAddress = "";
8670
8778
 
8671
- export { ADDRESS_ZERO, type AllStatusKey, type AssetTeleported, type AssetTeleportedResponse, type BidStorageEntry, type BidSubmissionResult, type BlockMetadata, type BundlerGasEstimate, BundlerMethod, type CancelEvent, type CancelOptions, type CancelQuote, type ChainConfig, type ChainConfigData, ChainConfigService, Chains, type ClientConfig, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, type DecodedOrderPlacedLog, type DecodedPostRequestEvent, type DecodedPostResponseEvent, type DispatchGet, type DispatchInfo, type DispatchPost, ERC20Method, type ERC7821Call, ERC7821_BATCH_MODE, type EstimateFillOrderParams, type EstimateGasCallData, EvmChain, type EvmChainParams, ABI as EvmHostABI, EvmLanguage, type ExecuteIntentOrderOptions, type ExecutionResult, type FillOptions, type FillOrderEstimate, type FillerBid, type FillerConfig, type GetRequestResponse, type GetRequestWithStatus, type GetResponseByRequestIdResponse, type GetResponseStorageValues, type HexString, type HostParams, HyperClientStatus, type HyperbridgeTxEvents, type IBatchConsensusAndGetResponseMessage, type IBatchConsensusAndPostRequestMessage, type IChain, type IConfig, type IConsensusMessage, type IEvmChain, type IEvmConfig, type IGetRequest, type IGetRequestMessage, type IGetResponse, type IGetResponseMessage, type IHyperbridgeConfig, type IIsmpMessage, type IMessage, type IPharosConfig, type IPolkadotHubConfig, type IPostRequest, type IPostResponse, type IProof, type IRequestMessage, type ISubstrateConfig, type ITimeoutPostRequestMessage, type IndexerQueryClient, IntentGateway, type IntentGatewayContext, type IntentGatewayParams, ABI$1 as IntentGatewayV2ABI, IntentOrderStatus, type IntentOrderStatusKey, type IntentOrderStatusUpdate, IntentsCoprocessor, IsmpClient, type IsmpRequest, MOCK_ADDRESS, type NewDeployment, ORDER_V2_PARAM_TYPE, type Order, type OrderResponse, OrderStatus, OrderStatusChecker, type OrderStatusMetadata, type OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, type PackedUserOperation, type Params, type PaymentInfo, PharosChain, type PharosChainParams, PolkadotHubChain, type PolkadotHubChainParams, type PostRequestStatus, type PostRequestTimeoutStatus, type PostRequestWithStatus, type QuoteNativeResult, REQUEST_COMMITMENTS_SLOT, REQUEST_RECEIPTS_SLOT, RESPONSE_COMMITMENTS_SLOT, RESPONSE_RECEIPTS_SLOT, type RequestBody, type RequestCommitment, RequestKind, type RequestResponse, RequestStatus, type RequestStatusKey, type RequestStatusWithMetadata, type ResponseCommitmentWithValues, type ResumeIntentOrderOptions, type RetryConfig, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, type SelectBidResult, type SelectOptions, type SigningAccount, type StateMachineHeight, type StateMachineIdParams, type StateMachineResponse, type StateMachineUpdate, type StorageFacade, type SubmitBidOptions, SubstrateChain, Swap, TESTNET_CHAINS, type TeleportParams, TeleportStatus, TimeoutStatus, type TimeoutStatusKey, TokenGateway, type TokenGatewayAssetTeleportedResponse, type TokenGatewayAssetTeleportedWithStatus, type TokenInfo, type TokenPrice, type TokenPricesResponse, type Transaction, TronChain, type TronChainParams, USE_ETHERSCAN_CHAINS, type XcmGatewayParams, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, chainConfigs, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, convertCodecToIGetRequest, convertCodecToIProof, convertIGetRequestToCodec, convertIProofToCodec, convertStateIdToStateMachineId, convertStateMachineEnumToString, convertStateMachineIdToEnum, createEvmChain, createQueryClient, decodeUserOpScale, encodeERC7821ExecuteBatch, encodeISMPMessage, encodeUserOpScale, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getChainId, getConfigByStateMachineId, getContractCallInput, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, getViemChain, hexToString, hyperbridgeAddress, maxBigInt, orderCommitment, parseStateMachineId, pharosAtlantic, pharosMainnet, polkadotAssetHubPaseo, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };
8779
+ export { ADDRESS_ZERO, type AllStatusKey, type AssetTeleported, type AssetTeleportedResponse, type BidStorageEntry, type BidSubmissionResult, type BlockMetadata, type BundlerGasEstimate, BundlerMethod, type BytesLikeHex, type CancelEvent, type CancelOptions, type CancelOrderOptions, type CancelQuote, type ChainConfig, type ChainConfigData, ChainConfigService, Chains, type ClientConfig, CryptoUtils, DEFAULT_ADDRESS, DEFAULT_GRAFFITI, DOMAIN_TYPEHASH, DUMMY_PRIVATE_KEY, type DecodedOrderPlacedLog, type DecodedPostRequestEvent, type DecodedPostResponseEvent, type DispatchGet, type DispatchInfo, type DispatchPost, ERC20Method, type ERC7821Call, ERC7821_BATCH_MODE, type EstimateFillOrderParams, type EstimateGasCallData, EvmChain, type EvmChainParams, ABI as EvmHostABI, EvmLanguage, type ExecuteIntentOrderOptions, type ExecutionResult, type FillOptions, type FillOrderEstimate, type FillerBid, type FillerConfig, type GetRequestResponse, type GetRequestWithStatus, type GetResponseByRequestIdResponse, type GetResponseStorageValues, type HexString, type HostParams, HyperClientStatus, type HyperbridgeTxEvents, type IBatchConsensusAndGetResponseMessage, type IBatchConsensusAndPostRequestMessage, type IChain, type IConfig, type IConsensusMessage, type IEvmChain, type IEvmConfig, type IGetRequest, type IGetRequestMessage, type IGetResponse, type IGetResponseMessage, type IHyperbridgeConfig, type IIsmpMessage, type IMessage, type IPharosConfig, type IPolkadotHubConfig, type IPostRequest, type IPostResponse, type IProof, type IRequestMessage, type ISubstrateConfig, type ITimeoutPostRequestMessage, type IndexerQueryClient, IntentGateway, type IntentGatewayContext, type IntentGatewayParams, ABI$1 as IntentGatewayV2ABI, IntentOrderStatus, type IntentOrderStatusKey, type IntentOrderStatusUpdate, IntentsCoprocessor, IsmpClient, type IsmpRequest, MOCK_ADDRESS, type NewDeployment, ORDER_V2_PARAM_TYPE, type Order, type OrderResponse, OrderStatus, OrderStatusChecker, type OrderStatusMetadata, type OrderWithStatus, PACKED_USEROP_TYPEHASH, PLACE_ORDER_SELECTOR, type PackedUserOperation, type Params, type PaymentInfo, PharosChain, type PharosChainParams, PolkadotHubChain, type PolkadotHubChainParams, type PostRequestStatus, type PostRequestTimeoutStatus, type PostRequestWithStatus, type QuoteNativeResult, type QuoteUniswapParams, type QuoteUniswapResult, REQUEST_COMMITMENTS_SLOT, REQUEST_RECEIPTS_SLOT, RESPONSE_COMMITMENTS_SLOT, RESPONSE_RECEIPTS_SLOT, type RequestBody, type RequestCommitment, RequestKind, type RequestResponse, RequestStatus, type RequestStatusKey, type RequestStatusWithMetadata, type ResponseCommitmentWithValues, type ResumeIntentOrderOptions, type RetryConfig, SELECT_SOLVER_TYPEHASH, STATE_COMMITMENTS_SLOT, type SelectBidResult, type SelectOptions, type SigningAccount, type StateMachineHeight, type StateMachineId, type StateMachineIdParams, type StateMachineResponse, type StateMachineUpdate, type StorageFacade, type SubmitBidOptions, SubstrateChain, Swap, TESTNET_CHAINS, type TeleportParams, TeleportStatus, TimeoutStatus, type TimeoutStatusKey, TokenGateway, type TokenGatewayAssetTeleportedResponse, type TokenGatewayAssetTeleportedWithStatus, type TokenInfo, type TokenPrice, type TokenPricesResponse, type Transaction, TronChain, type TronChainParams, USE_ETHERSCAN_CHAINS, type UniswapProtocol, type UniswapQuote, type UniswapQuoteToken, type UniswapTradeType, type XcmGatewayParams, __test, adjustDecimals, bytes20ToBytes32, bytes32ToBytes20, calculateAllowanceMappingLocation, calculateBalanceMappingLocation, chainConfigs, constructRedeemEscrowRequestBody, constructRefundEscrowRequestBody, convertCodecToIGetRequest, convertCodecToIProof, convertIGetRequestToCodec, convertIProofToCodec, convertStateIdToStateMachineId, convertStateMachineEnumToString, convertStateMachineIdToEnum, createEvmChain, createQueryClient, decodeUserOpScale, encodeERC7821ExecuteBatch, encodeISMPMessage, encodeStateMachineId, encodeUserOpScale, encodeWithdrawalRequest, estimateGasForPost, fetchPrice, fetchSourceProof, generateRootWithProof, getChainId, getConfigByStateMachineId, getContractCallInput, getGasPriceFromEtherscan, getOrFetchStorageSlot, getOrderPlacedFromTx, getPostRequestEventFromTx, getPostResponseEventFromTx, getRequestCommitment, getStateCommitmentFieldSlot, getStateCommitmentSlot, getStorageSlot, getViemChain, hexToString, hyperbridgeAddress, maxBigInt, normalizeAddressForEvmBytes32, normalizeAddressForStateMachine, normalizeEvmChainId, normalizeStateMachineId, orderCommitment, parseStateMachineId, pharosAtlantic, pharosMainnet, polkadotAssetHubPaseo, postRequestCommitment, queryAssetTeleported, queryGetRequest, queryPostRequest, quoteUniswap, requestCommitmentKey, responseCommitmentKey, retryPromise, teleport, teleportDot, transformOrderForContract, tronChainIds, tronNile };