Skip to content

Commit

Permalink
feat: clarity 3 (#12)
Browse files Browse the repository at this point in the history
* feat: clarity 3

* refactor: remove bitcoin controller time config

* tests: fix epoch 3 tests

* chore: upgrade dependencies
  • Loading branch information
hugocaillard authored Oct 28, 2024
1 parent 14cd7ff commit 27439ec
Show file tree
Hide file tree
Showing 7 changed files with 178 additions and 155 deletions.
4 changes: 2 additions & 2 deletions Clarinet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ requirements = []

[contracts.counter]
path = 'contracts/counter.clar'
clarity_version = 2
epoch = 2.5
clarity_version = 3
epoch = 3.0

[repl.analysis]
passes = ['check_checker']
Expand Down
2 changes: 1 addition & 1 deletion contracts/counter.clar
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

(define-read-only (get-count-at-block (block uint))
(ok (at-block
(unwrap! (get-block-info? id-header-hash block) ERR_BLOCK_NOT_FOUND)
(unwrap! (get-stacks-block-info? id-header-hash block) ERR_BLOCK_NOT_FOUND)
(var-get count)
))
)
Expand Down
6 changes: 3 additions & 3 deletions deployments/default.devnet-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ plan:
- contract-publish:
contract-name: counter
expected-sender: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM
cost: 10760
cost: 10830
path: contracts/counter.clar
anchor-block-only: true
clarity-version: 2
epoch: "2.5"
clarity-version: 3
epoch: "3.0"
4 changes: 2 additions & 2 deletions deployments/default.simnet-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ plan:
contract-name: counter
emulated-sender: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM
path: contracts/counter.clar
clarity-version: 2
clarity-version: 3
- emulated-contract-call:
contract-id: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.counter
emulated-sender: ST1SJ3DTE5DN7X54YDH5D64R3BCB6A2AG2ZQ8YPD5
Expand All @@ -65,4 +65,4 @@ plan:
mstx-amount: 2222222
cost: 1000
anchor-block-only: true
epoch: "2.5"
epoch: "3.0"
Loading

0 comments on commit 27439ec

Please sign in to comment.