import { BigNumber, PopulatedTransaction } from 'ethers'; import { z } from 'zod'; import { InterchainAccountRouter } from '@hyperlane-xyz/core'; import { Address, CallData } from '@hyperlane-xyz/utils'; import { HyperlaneAddressesMap, HyperlaneContracts, HyperlaneContractsMap } from '../../contracts/types.js'; import { MultiProvider } from '../../providers/MultiProvider.js'; import { CallData as SdkCallData } from '../../providers/transactions/types.js'; import { RouterApp } from '../../router/RouterApps.js'; import { ChainMap, ChainName } from '../../types.js'; import { InterchainAccountFactories } from './contracts.js'; import { AccountConfig, GetCallRemoteSettings } from './types.js'; export declare class InterchainAccount extends RouterApp { knownAccounts: Record; constructor(contractsMap: HyperlaneContractsMap, multiProvider: MultiProvider); remoteChains(chainName: string): Promise; router(contracts: HyperlaneContracts): InterchainAccountRouter; static fromAddressesMap(addressesMap: HyperlaneAddressesMap, multiProvider: MultiProvider): InterchainAccount; getAccount(destinationChain: ChainName, config: AccountConfig): Promise
; deployAccount(destinationChain: ChainName, config: AccountConfig): Promise
; protected getOrDeployAccount(deployIfNotExists: boolean, destinationChain: ChainName, config: AccountConfig): Promise
; /** * Encode the ICA message body for handle() call estimation. * Mirrors solidity/contracts/middleware/libs/InterchainAccountMessage.sol#encode */ encodeIcaMessageBody(owner: string, ism: string, calls: { to: string; value: BigNumber; data: string; }[], salt?: string): string; /** * Estimate gas for ICA handle() execution on destination chain. */ estimateIcaHandleGas({ origin, destination, innerCalls, config, }: { origin: string; destination: string; innerCalls: SdkCallData[]; config: AccountConfig; }): Promise; getCallRemote({ chain, destination, innerCalls, config, hookMetadata, }: GetCallRemoteSettings): Promise; private extractGasLimitFromMetadata; callRemote({ chain, destination, innerCalls, config, hookMetadata, }: GetCallRemoteSettings): Promise; } export declare function buildInterchainAccountApp(multiProvider: MultiProvider, chain: ChainName, config: AccountConfig, coreAddressesByChain: ChainMap>): Promise; export declare function deployInterchainAccount(multiProvider: MultiProvider, chain: ChainName, config: AccountConfig, coreAddressesByChain: ChainMap>): Promise
; export declare function encodeIcaCalls(calls: CallData[], salt: string): string; export type RawCallData = { to: string; value?: string | number; data: string; }; export declare function normalizeCalls(calls: RawCallData[]): CallData[]; export declare function commitmentFromIcaCalls(calls: CallData[], salt: string): string; export declare const PostCallsSchema: z.ZodObject<{ calls: z.ZodArray; }, "strip", z.ZodTypeAny, { to: string; data: string; value?: string | undefined; }, { to: string; data: string; value?: string | undefined; }>, "many">; relayers: z.ZodArray; salt: z.ZodString; commitmentDispatchTx: z.ZodString; originDomain: z.ZodNumber; }, "strip", z.ZodTypeAny, { calls: { to: string; data: string; value?: string | undefined; }[]; relayers: string[]; salt: string; commitmentDispatchTx: string; originDomain: number; }, { calls: { to: string; data: string; value?: string | undefined; }[]; relayers: string[]; salt: string; commitmentDispatchTx: string; originDomain: number; }>; export type PostCallsType = z.infer; export declare function shareCallsWithPrivateRelayer(serverUrl: string, payload: PostCallsType): Promise; //# sourceMappingURL=InterchainAccount.d.ts.map