import { Chain, Client, Transport } from "viem"; import { GetRegistrationJustificationParams, GetRegistrationJustificationReturnType } from "./types/getRegistrationJustification.js"; export declare const sendWarpMessageEventAbi: { readonly name: "SendWarpMessage"; readonly type: "event"; readonly inputs: readonly [{ readonly type: "address"; readonly name: "sourceAddress"; readonly indexed: true; }, { readonly type: "bytes32"; readonly name: "unsignedMessageID"; readonly indexed: true; }, { readonly type: "bytes"; readonly name: "message"; }]; }; /** * Retrieves the registration justification for the given validation ID Hex and subnet ID. * * If the validation ID corresponds to a bootstrap validator, the justification bytes * produced by `ConvertSubnetToL1Tx` are returned. * * Otherwise, the function searches the Warp logs on the chain where the validator * manager is deployed to locate the RegisterL1ValidatorMessage for the specified validation ID. * * @param client - The AvalancheCoreClient instance. * @param params - The GetRegistrationJustificationParams instance. * @returns The GetRegistrationJustificationReturnType instance. * * @example * ```ts * import { createAvalancheClient } from "@avalanche-sdk/client"; * import { getRegistrationJustification } from "@avalanche-sdk/client/methods/public"; * import { defineChain } from "@avalanche-sdk/client/chains"; * import { utils } from "@avalanche-sdk/client/utils"; * * const chainConfig = defineChain({ * id: 28098, * name: "Rough Complexity Chain", * rpcUrls: { * default: { * http: [ * "https://base-url-to-your-rpc/ext/bc/28zXo5erueBemgxPjLom6Vhsm6oVyftLtfQSt61fd62SghoXrz/rpc", * ], * }, * }, * }); * * const publicClient = createAvalancheClient({ * chain: chainConfig, * transport: { * type: "http", * }, * }); * * const validationIDHex = utils.bufferToHex( * utils.base58check.decode( * "TEwxg8JzAUsqFibtYkaiiYH9G1h5ZfX56zYURXpyaPRCSppC4" * ) * ); * * const justification = await getRegistrationJustification(publicClient, { * validationIDHex, * subnetIDStr: "2DN6PTi2uXNCzzNz1p2ckGcW2eqTfpt2kv2a1h7EV36hYV3XRJ", * maxBootstrapValidators: 200, * chunkSize: 200, * maxChunks: 100, * }); * * console.log("justification", JSON.stringify(justification, null, 2)); * ``` */ export declare function getRegistrationJustification(client: Client, params: GetRegistrationJustificationParams): Promise; //# sourceMappingURL=getRegistrationJustification.d.ts.map