feat: support @stacks/transaction v6 post condition types

This commit is contained in:
c4605
2025-03-14 12:38:42 +01:00
parent 2bb2b67fe4
commit 8a51d4e314

View File

@@ -2,9 +2,10 @@ import {
AnchorMode,
type ClarityValue,
type FungiblePostCondition,
type PostCondition,
type FungiblePostConditionWire,
PostConditionMode,
type StxPostCondition,
type STXPostConditionWire,
} from "@stacks/transactions";
import type { StringOnly } from "../utils/helpers";
import type {
@@ -13,6 +14,12 @@ import type {
ParameterObjOfDescriptor,
} from "./contractBase";
type PostCondition =
| FungiblePostCondition
| StxPostCondition
| FungiblePostConditionWire
| STXPostConditionWire;
export interface ContractCallOptions {
contractAddress: string;
contractName: string;
@@ -35,7 +42,7 @@ export type ComposeTxOptionsFn<Contracts extends ContractBaseType> = <
: never,
options?: {
deployerAddress?: string;
postConditions?: (FungiblePostCondition | StxPostCondition)[];
postConditions?: PostCondition[];
}
) => ContractCallOptions;