Skip to content

Commit

Permalink
feat: clarity 3
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Oct 24, 2024
1 parent 14cd7ff commit 3c6f59d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 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"
6 changes: 1 addition & 5 deletions settings/Devnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ balance = 100_000_000_000_000
disable_stacks_explorer = false
disable_stacks_api = false
bitcoin_controller_block_time = 6000
# stacks_node_image_url = "localhost:5001/stacks-node:local"
# stacks_signer_image_url = "localhost:5001/stacks-signer:local"
# stacks_node_image_url = "quay.io/hirosystems/stacks-node:devnet-2.5"
# stacks_signer_image_url = "quay.io/hirosystems/stacks-signer:devnet-2.5"

# disable_bitcoin_explorer = true
# working_dir = "tmp/devnet"
Expand Down Expand Up @@ -113,7 +109,7 @@ bitcoin_controller_block_time = 6000
# epoch_2_2 = 104
# epoch_2_3 = 105
# epoch_2_4 = 106
# epoch_3_0 = 124
# epoch_3_0 = 144

# Send some stacking orders
[[devnet.pox_stacking_orders]]
Expand Down

0 comments on commit 3c6f59d

Please sign in to comment.