mirror of
https://github.com/alexgo-io/clarity-codegen.git
synced 2026-01-12 22:22:01 +08:00
feat: export ContractCallOptions type
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import {
|
||||
AnchorMode,
|
||||
ContractCallOptions,
|
||||
ClarityValue,
|
||||
FungiblePostCondition,
|
||||
PostCondition,
|
||||
PostConditionMode,
|
||||
STXPostCondition,
|
||||
} from "@stacks/transactions";
|
||||
@@ -12,6 +13,16 @@ import {
|
||||
ParameterObjOfDescriptor,
|
||||
} from "./contractBase";
|
||||
|
||||
export interface ContractCallOptions {
|
||||
contractAddress: string;
|
||||
contractName: string;
|
||||
functionName: string;
|
||||
functionArgs: ClarityValue[];
|
||||
anchorMode: AnchorMode;
|
||||
postConditionMode: PostConditionMode;
|
||||
postConditions?: PostCondition[];
|
||||
}
|
||||
|
||||
export type ComposeTxOptionsFn<Contracts extends ContractBaseType> = <
|
||||
T extends StringOnly<keyof Contracts>,
|
||||
F extends StringOnly<keyof Contracts[T]>,
|
||||
|
||||
Reference in New Issue
Block a user