Skip to content

Commit 7906fa2

Browse files
committed
feat: basic clarigen setup
1 parent 3c68635 commit 7906fa2

File tree

7 files changed

+5072
-25
lines changed

7 files changed

+5072
-25
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
clarinet = "./Clarinet.toml"
2+
3+
# Set where you'd like TypeScript types output.
4+
[types]
5+
output = "tests/clarigen-types.ts"
6+
7+
# `types.after` - script to run after TypeScript types are generated.
8+
after = "npx -y prettier -w ./tests/clarigen-types.ts"
9+
10+
watch_folders = [
11+
"../../stackslib/src/chainstate/stacks/boot"
12+
]
13+
14+
# Set where you'd like generated contract docs
15+
# Generate docs by running `clarigen docs`
16+
[docs]
17+
output = "docs"
18+
19+
# `docs.after` - script to run after docs are generated.
20+
after = "npx -y prettier -w ./docs"

contrib/core-contract-tests/Clarinet.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ clarity_version = 2
3434
epoch = 2.4
3535
depends_on = []
3636

37+
[contracts.sip-031]
38+
path = "../../stackslib/src/chainstate/stacks/boot/sip-031.clar"
39+
clarity_version = 3
40+
epoch = 3.0
41+
depends_on = []
42+
3743
[contracts.bns_test]
3844
path = "./tests/bns_test.clar"
3945
clarity_version = 2

contrib/core-contract-tests/deployments/default.simnet-plan.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,11 @@ plan:
8585
path: "../../stackslib/src/chainstate/stacks/boot/signers-voting.clar"
8686
clarity-version: 2
8787
epoch: "2.4"
88+
- id: 1
89+
transactions:
90+
- emulated-contract-publish:
91+
contract-name: sip-031
92+
emulated-sender: ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM
93+
path: "../../stackslib/src/chainstate/stacks/boot/sip-031.clar"
94+
clarity-version: 3
95+
epoch: "3.0"

0 commit comments

Comments
 (0)