@avalanche-sdk/interchain
Version:
Interchain package for handling ICM/ICTT messages
31 lines • 1.67 kB
TypeScript
import { pvmSerial } from "@avalabs/avalanchejs";
/**
* Parses a L1ValidatorRegistrationMessage (AddressedCall payload) from a hex string.
*
* @param l1ValidatorRegistrationMessageHex - The hex string representing the L1ValidatorRegistrationMessage.
* @returns The parsed L1ValidatorRegistrationMessage instance. {@link L1ValidatorRegistrationMessage}
*/
export declare function parseL1ValidatorRegistrationMessage(l1ValidatorRegistrationMessageHex: string): L1ValidatorRegistrationMessage;
/**
* Creates a new L1ValidatorRegistrationMessage from values.
*
* @param validationId - The validation ID (base58check encoded).
* @param registered - The registration status as a boolean.
* @returns A new L1ValidatorRegistrationMessage instance. {@link L1ValidatorRegistrationMessage}
*/
export declare function newL1ValidatorRegistrationMessage(validationId: string, registered: boolean): L1ValidatorRegistrationMessage;
/**
* L1ValidatorRegistrationMessage class provides utility methods to build
* and parse L1ValidatorRegistrationMessage from hex strings or values, and
* access its properties.
*/
export declare class L1ValidatorRegistrationMessage extends pvmSerial.warp.AddressedCallPayloads.L1ValidatorRegistrationMessage {
static fromHex(l1ValidatorRegistrationMessageHex: string): L1ValidatorRegistrationMessage;
static fromValues(validationId: string, registered: boolean): L1ValidatorRegistrationMessage;
toHex(): string;
/**
* Do not use this method directly.
*/
static fromBytes(_bytes: never, _codec: never): [L1ValidatorRegistrationMessage, Uint8Array];
}
//# sourceMappingURL=l1ValidatorRegistrationMessage.d.ts.map