diff --git a/.changeset/sweet-pumas-knock.md b/.changeset/sweet-pumas-knock.md new file mode 100644 index 00000000..90c6ce7a --- /dev/null +++ b/.changeset/sweet-pumas-knock.md @@ -0,0 +1,6 @@ +--- +'@stacks/connect-react': minor +'@stacks/connect': minor +--- + +Add `clarityVersion` to contract deploys. diff --git a/packages/connect/src/types/transactions.ts b/packages/connect/src/types/transactions.ts index 9e76075e..2f1e41da 100644 --- a/packages/connect/src/types/transactions.ts +++ b/packages/connect/src/types/transactions.ts @@ -134,6 +134,13 @@ export interface ContractCallPayload extends ContractCallBase { export interface ContractDeployBase extends TxBase { contractName: string; codeBody: string; + /** + * Optional integer value to specify the Clarity version to use for this contract. + * Current live Clarity versions are: `1`, `2`, and `3`. + * + * ⚠︎ Warning: Wallets may not support this parameter yet and typically default to the latest Clarity version. + */ + clarityVersion?: number; } export type ContractDeployRegularOptions = ContractDeployBase & RegularOptionsBase;