@gear-js/api
Version:
A JavaScript library that provides functionality to connect GEAR Component APIs.
24 lines (23 loc) • 1.01 kB
TypeScript
import type { SubmittableExtrinsic } from '@polkadot/api/types';
import type { ISubmittableResult } from '@polkadot/types/types';
import type { GearApi } from '../../GearApi';
import type { HexString } from '../../types';
/**
* Transaction building utilities for Gear-Ethereum bridge operations.
*
* This class provides methods to create extrinsics for bridge transactions
* that can be signed and submitted to the network.
*/
export declare class GearEthBridgeTransactions {
private _api;
constructor(_api: GearApi);
/**
* Extrinsic that inserts message in a bridging queue,
* updating queue merkle root at the end of the block.
*
* @param destination - The Ethereum address to send the message to
* @param payload - The message payload data
* @returns A submittable extrinsic that can be signed and sent
*/
sendEthMessage(destination: HexString | Uint8Array, payload: HexString | Uint8Array): SubmittableExtrinsic<'promise', ISubmittableResult>;
}