UNPKG

@hyperlane-xyz/sdk

Version:

The official SDK for the Hyperlane Network

22 lines 1.29 kB
import { Contract, PopulatedTransaction } from 'ethers'; import { Address, Domain } from '@hyperlane-xyz/utils'; import type { MultiProviderAdapter } from '../../providers/MultiProviderAdapter.js'; import { ChainName } from '../../types.js'; import { EvmTokenAdapter } from './EvmTokenAdapter.js'; import { IHypTokenAdapter, InterchainGasQuote, QuoteTransferRemoteParams, TransferRemoteParams } from './ITokenAdapter.js'; export declare class M0PortalTokenAdapter extends EvmTokenAdapter implements IHypTokenAdapter<PopulatedTransaction> { private readonly portalAddress; readonly portalContract: Contract; constructor(multiProvider: MultiProviderAdapter, chainName: ChainName, portalAddress: Address, mTokenAddress: Address); getMinimumTransferAmount(_recipient: Address): Promise<bigint>; getDomains(): Promise<Domain[]>; getRouterAddress(_domain: Domain): Promise<Buffer>; getAllRouters(): Promise<Array<{ domain: Domain; address: Buffer; }>>; getBridgedSupply(): Promise<bigint | undefined>; quoteTransferRemoteGas({ destination, }: QuoteTransferRemoteParams): Promise<InterchainGasQuote>; populateTransferRemoteTx(params: TransferRemoteParams): Promise<PopulatedTransaction>; } //# sourceMappingURL=M0PortalTokenAdapter.d.ts.map