@avalanche-sdk/interchain
Version:
Interchain package for handling ICM/ICTT messages
22 lines • 810 B
TypeScript
import { pvmSerial } from "@avalabs/avalanchejs";
/**
* Parses a Warp signed message from a hex string.
*
* @param warpMsgHex - The hex string representing the signed message.
* @returns The parsed WarpSignedMessage instance. {@link WarpMessage}
*/
export declare function parseWarpMessage(warpMsgHex: string): WarpMessage;
/**
* WarpSignedMessage class provides utility methods to build
* and parse signed warp message from hex strings or values, and
* access its properties.
*/
export declare class WarpMessage extends pvmSerial.warp.WarpMessage {
static fromHex(warpMsgHex: string): WarpMessage;
toHex(): string;
/**
* Do not use this method directly.
*/
static fromBytes(_bytes: never, _codec: never): [WarpMessage, Uint8Array];
}
//# sourceMappingURL=warpMessage.d.ts.map