@avalanche-sdk/interchain
Version:
Interchain package for handling ICM/ICTT messages
31 lines • 1.34 kB
TypeScript
import { pvmSerial } from "@avalabs/avalanchejs";
/**
* Parses a Warp AddressedCall payload from a hex string.
*
* @param addressedCallPayloadHex - The hex string representing the AddressedCall payload.
* @returns The parsed AddressedCall instance. {@link AddressedCall}
*/
export declare function parseAddressedCallPayload(addressedCallPayloadHex: string): AddressedCall;
/**
* Creates a new AddressedCall from values.
*
* @param sourceAddress - The source address (EVM or Bech32 format).
* @param payloadHex - The payload as a hex string.
* @returns A new AddressedCall instance. {@link AddressedCall}
*/
export declare function newAddressedCallPayload(sourceAddress: string, payloadHex: string): AddressedCall;
/**
* AddressedCall class provides utility methods to build
* and parse AddressedCall payloads from hex strings or values, and
* access its properties.
*/
export declare class AddressedCall extends pvmSerial.warp.AddressedCallPayloads.AddressedCall {
static fromHex(addressedCallPayloadHex: string): AddressedCall;
static fromValues(sourceAddress: string, payloadHex: string): AddressedCall;
toHex(): string;
/**
* Do not use this method directly.
*/
static fromBytes(_bytes: never, _codec: never): [AddressedCall, Uint8Array];
}
//# sourceMappingURL=addressedCallPayload.d.ts.map