Skip to content

Commit

Permalink
feat: add clarity version to contract deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Nov 6, 2024
1 parent 1c66353 commit 0631e6e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/sweet-pumas-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@stacks/connect-react': minor
'@stacks/connect': minor
---

Add `clarityVersion` to contract deploys.
7 changes: 7 additions & 0 deletions packages/connect/src/types/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0631e6e

Please sign in to comment.