/** * @typedef {import('./types.js').MessageObj} MessageObj * @typedef {import('./types.js').PartialMessageObj} PartialMessageObj */ /** * Message validation schema */ export const MessageSchema: z.ZodObject<{ version: z.ZodDefault>; nonce: z.ZodDefault; gasLimit: z.ZodDefault; gasFeeCap: z.ZodDefault; gasPremium: z.ZodDefault; method: z.ZodDefault; to: z.ZodString; from: z.ZodString; value: z.ZodString; params: z.ZodDefault; }, z.core.$strip>; export namespace Schemas { export { MessageSchema as message }; export { MessageSchemaPartial as messagePartial }; } /** * Filecoin Message class */ export class Message { /** * Create message from Lotus message * * @param {import('./types').LotusMessage} json */ static fromLotus(json: import("./types").LotusMessage): Message; /** * * @param {PartialMessageObj} msg */ constructor(msg: PartialMessageObj); version: 0; to: string; from: string; nonce: number; value: string; gasLimit: number; gasFeeCap: string; gasPremium: string; method: number; params: string; /** * Convert message to Lotus message */ toLotus(): { Version: 0; To: string; From: string; Nonce: number; Value: string; GasLimit: number; GasFeeCap: string; GasPremium: string; Method: number; Params: string; }; /** * Prepare message for signing with nonce and gas estimation * * @param {import('./rpc.js').RPC} rpc */ prepare(rpc: import("./rpc.js").RPC): Promise; /** * Serialize message using dag-cbor */ serialize(): Uint8Array; /** * CID bytes of the filecoin message */ cidBytes(): Uint8Array; #private; } export type MessageObj = import("./types.js").MessageObj; export type PartialMessageObj = import("./types.js").PartialMessageObj; import * as z from 'zod'; declare const MessageSchemaPartial: z.ZodObject<{ version: z.ZodOptional>>; nonce: z.ZodOptional>; gasLimit: z.ZodOptional>; gasFeeCap: z.ZodOptional>; gasPremium: z.ZodOptional>; method: z.ZodOptional>; to: z.ZodString; from: z.ZodString; value: z.ZodString; params: z.ZodOptional>; }, z.core.$strip>; export {}; //# sourceMappingURL=message.d.ts.map