Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: mainnet execution simulation #1622

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
986be82
feat: mainnet execution simulation
hugocaillard Dec 6, 2024
e7d84b3
refactor: handle at-block
hugocaillard Jan 17, 2025
8ec9c3c
refactor: datastore http client
hugocaillard Jan 21, 2025
1c37bdc
feat: burn block remote data
hugocaillard Jan 21, 2025
252ad07
refactor: improve sync-request setup
hugocaillard Jan 22, 2025
02b25e0
feat: fetch initial remote data
hugocaillard Jan 22, 2025
2e78334
refactor: remove dead code
hugocaillard Jan 23, 2025
47725b7
refactor: organise datastore and remote data files
hugocaillard Jan 23, 2025
dd9f1ba
fix: epoch handling in session
hugocaillard Jan 23, 2025
7e52b43
feat: burn block remote data and better settings
hugocaillard Jan 27, 2025
ae3513e
refactor: remove logs
hugocaillard Jan 27, 2025
9828ed8
fix: datastore get
hugocaillard Jan 28, 2025
56e399b
fix: re-enable function access check in sdk contract calls
hugocaillard Jan 28, 2025
14bcffb
ci: fix tests
hugocaillard Jan 29, 2025
4e540e1
ci: fix tests
hugocaillard Jan 29, 2025
da27bb9
fix: burn block hash
hugocaillard Jan 29, 2025
61f716b
chore: bump beta version
hugocaillard Jan 30, 2025
d770c62
refactor: address todos and simplify datastore
hugocaillard Jan 30, 2025
6628616
feat: use mainnet constants in network simulation
hugocaillard Jan 30, 2025
942df35
refactor: perf improvement
hugocaillard Jan 31, 2025
e3ef08e
fix: at-block burn-block-height in simulation context
hugocaillard Jan 31, 2025
f2406a0
fix: advance burn chain tip
hugocaillard Jan 31, 2025
4eb776d
fix: datastore cloning
hugocaillard Feb 1, 2025
94c223c
chore: revert vitest confg change
hugocaillard Feb 1, 2025
a2b9572
fix: set block height
hugocaillard Feb 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[alias]
clarinet-install = "install --path components/clarinet-cli --locked --force"
tst = "nextest run --workspace --locked --exclude clarinet-sdk-wasm --exclude clarity-jupyter-kernel"
tst = "nextest run --workspace --no-fail-fast --locked --exclude clarinet-sdk-wasm --exclude clarity-jupyter-kernel"
cov = "llvm-cov nextest --workspace --locked --exclude clarinet-sdk-wasm --exclude clarity-jupyter-kernel --lcov --output-path lcov.info"
cov-dev = "llvm-cov nextest --workspace --locked --exclude clarinet-sdk-wasm --exclude clarity-jupyter-kernel --html"
13 changes: 8 additions & 5 deletions .github/workflows/ci-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'

- name: Setup cache keys
run: |
Expand All @@ -50,12 +50,15 @@ jobs:
- name: Install wasm-pack
run: npm install -g wasm-pack

- name: Run wasm-bindgen-test
run: wasm-pack test --node components/clarinet-sdk-wasm

- name: Build Wasm packages
run: npm run build:sdk-wasm

- name: Install npm dependencies
run: npm ci

- name: Run wasm-bindgen-test
run: wasm-pack test --node components/clarinet-sdk-wasm

- name: Upload Wasm artifacts
uses: actions/upload-artifact@v4
with:
Expand All @@ -76,7 +79,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'

- name: Download Wasm artifacts
uses: actions/download-artifact@v4
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"rust-analyzer.check.command": "clippy",
"rust-analyzer.check.workspace": true,
// rust-analyzer hack:
// manually set --workspace in extraArgs so that it's always set only one time
"rust-analyzer.check.workspace": false,
"rust-analyzer.check.extraArgs": [
"--workspace",
"--exclude=clarinet-sdk-wasm",
"--exclude=clarity-jupyter-kernel"
]
Expand Down
Loading
Loading