@rednevsky/stacks-process-audit-log-sdk
v0.1.2
Published
TypeScript SDK for the process-audit-log Clarity contract on Stacks.
Maintainers
Readme
@rednevsky/stacks-process-audit-log-sdk
TypeScript SDK for interacting with the process-audit-log Clarity contract.
Install
npm install @rednevsky/stacks-process-audit-log-sdk @stacks/transactionsUsage
import {
CONTRACT_NAME,
getContractId,
buildLogStepArgs,
fetchContractInfo,
} from "@rednevsky/stacks-process-audit-log-sdk";
const contract = {
contractAddress: "ST000000000000000000002AMW42H",
contractName: CONTRACT_NAME,
};
const contractId = getContractId(contract);
const functionArgs = buildLogStepArgs({
workflowId: "wf-001",
stepName: "review",
details: "Security review started",
});
const info = await fetchContractInfo(contract, "testnet", "ST1...");Use functionArgs with wallet request flows (stx_callContract) or makeContractCall.
