mirror of
https://github.com/alexgo-io/clarity-codegen.git
synced 2026-05-01 03:12:33 +08:00
feat: support @stacks/transaction v6 post condition types
This commit is contained in:
@@ -2,9 +2,10 @@ import {
|
|||||||
AnchorMode,
|
AnchorMode,
|
||||||
type ClarityValue,
|
type ClarityValue,
|
||||||
type FungiblePostCondition,
|
type FungiblePostCondition,
|
||||||
type PostCondition,
|
type FungiblePostConditionWire,
|
||||||
PostConditionMode,
|
PostConditionMode,
|
||||||
type StxPostCondition,
|
type StxPostCondition,
|
||||||
|
type STXPostConditionWire,
|
||||||
} from "@stacks/transactions";
|
} from "@stacks/transactions";
|
||||||
import type { StringOnly } from "../utils/helpers";
|
import type { StringOnly } from "../utils/helpers";
|
||||||
import type {
|
import type {
|
||||||
@@ -13,6 +14,12 @@ import type {
|
|||||||
ParameterObjOfDescriptor,
|
ParameterObjOfDescriptor,
|
||||||
} from "./contractBase";
|
} from "./contractBase";
|
||||||
|
|
||||||
|
type PostCondition =
|
||||||
|
| FungiblePostCondition
|
||||||
|
| StxPostCondition
|
||||||
|
| FungiblePostConditionWire
|
||||||
|
| STXPostConditionWire;
|
||||||
|
|
||||||
export interface ContractCallOptions {
|
export interface ContractCallOptions {
|
||||||
contractAddress: string;
|
contractAddress: string;
|
||||||
contractName: string;
|
contractName: string;
|
||||||
@@ -35,7 +42,7 @@ export type ComposeTxOptionsFn<Contracts extends ContractBaseType> = <
|
|||||||
: never,
|
: never,
|
||||||
options?: {
|
options?: {
|
||||||
deployerAddress?: string;
|
deployerAddress?: string;
|
||||||
postConditions?: (FungiblePostCondition | StxPostCondition)[];
|
postConditions?: PostCondition[];
|
||||||
}
|
}
|
||||||
) => ContractCallOptions;
|
) => ContractCallOptions;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user