@0xfacet/sdk
Version:
A toolkit for Facet blockchain integration.
15 lines (14 loc) • 834 B
TypeScript
import { Address, Hex } from "viem";
/**
* Computes a hash for a Facet transaction.
*
* @param l1TransactionHash - The hash of the L1 transaction
* @param from - The address sending the transaction
* @param to - The recipient address of the transaction
* @param value - The amount of FCT to send with the transaction
* @param data - The calldata for the transaction
* @param gasLimit - The maximum amount of gas the transaction can use
* @param mint - The amount of FCT mint in the transaction. This value is here only to preserve the function signature. It is not used in the hash computation.
* @returns A keccak256 hash of the encoded transaction
*/
export declare const computeFacetTransactionHash: (sourceHash: Hex, from: Address, to: Address | null, value: bigint, data: Hex, gasLimit: bigint, mint?: bigint) => Hex;