UNPKG

@hyperlane-xyz/sdk

Version:

The official SDK for the Hyperlane Network

19 lines 960 B
import { Annotated, ProtocolType } from '@hyperlane-xyz/utils'; import { ProtocolTypedProvider, ProtocolTypedReceipt, ProtocolTypedTransaction } from '../../ProviderType.js'; import { TxSubmitterType } from './TxSubmitterTypes.js'; export interface TxSubmitterInterface<TProtocol extends ProtocolType, TSubmitterType extends string = TxSubmitterType> { /** * Defines the type of tx submitter. */ txSubmitterType: TSubmitterType; /** * The provider to use for transaction submission. */ provider?: ProtocolTypedProvider<TProtocol>['provider']; /** * Should execute all transactions and return their receipts. * @param txs The array of transactions to execute */ submit(...txs: Annotated<ProtocolTypedTransaction<TProtocol>['transaction']>[]): Promise<ProtocolTypedReceipt<TProtocol>['receipt'] | ProtocolTypedReceipt<TProtocol>['receipt'][] | void>; } //# sourceMappingURL=TxSubmitterInterface.d.ts.map