Skip to content

Commit 336a622

Browse files
authored
build: upgrade Compact toolchain to 0.31.0 and Midnight packages (OpenZeppelin#597)
1 parent 9e76742 commit 336a622

11 files changed

Lines changed: 38 additions & 32 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM mcr.microsoft.com/devcontainers/javascript-node
33

44
# Midnight binaries and tools download URLs
55
# Source: https://docs.midnight.network/relnotes/overview
6-
ARG COMPACT_TOOLCHAIN_VERSION=0.29.0
6+
ARG COMPACT_TOOLCHAIN_VERSION=0.31.0
77
ARG COMPACT_VSCODE_VERSION=0.2.13
88
ARG COMPACT_VSCODE_URL="https://raw.githubusercontent.com/midnight-ntwrk/releases/gh-pages/artifacts/vscode-extension/compact-${COMPACT_VSCODE_VERSION}/compact-${COMPACT_VSCODE_VERSION}.vsix"
99

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"build": {
44
"dockerfile": "Dockerfile"
55
},
6-
"postCreateCommand": "code --install-extension /tmp/compact.vsix && compact update 0.29.0"
6+
"postCreateCommand": "code --install-extension /tmp/compact.vsix && compact update 0.31.0"
77
}

.github/ISSUE_TEMPLATE/01_bug_report.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ body:
9393
label: Version
9494
description: What version of Compact are you running?
9595
options:
96-
- 0.29.0 (Default)
96+
- 0.31.0 (Default)
97+
- 0.30.0
98+
- 0.29.0
9799
default: 0
98100
validations:
99101
required: true

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ runs:
3636
if: ${{ inputs.skip-compact != 'true' }}
3737
uses: midnightntwrk/setup-compact-action@836895c8fffbbea6bd986af2b17e8941ff29d1f8 # v1
3838
with:
39-
compact-version: "0.29.0"
39+
compact-version: "0.31.0"

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Setup Compact Compiler
3636
uses: midnightntwrk/setup-compact-action@836895c8fffbbea6bd986af2b17e8941ff29d1f8 # v1
3737
with:
38-
compact-version: "0.29.0"
38+
compact-version: "0.31.0"
3939

4040
- name: Build contracts
4141
run: yarn build

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Multisig contract suite under `contracts/src/multisig/`: configurable M-of-N `Signer` / `SignerManager` registry, `ProposalManager`, stateful `ShieldedTreasury` and `ShieldedTreasuryStateless`, `UnshieldedTreasury`, `Forwarder` + `ForwarderPrivate` modules with per-recipient presets, and the `ShieldedMultiSig` / `ShieldedMultiSigV2` presets. Signature verification is stubbed pending ECDSA + Keccak primitives (#475). (#378, #424, #526)
1313

14+
### Changed
15+
16+
- Upgrade the Compact toolchain and Midnight dependencies: compiler `0.29.0``0.31.0`, `@midnight-ntwrk/compact-runtime` `0.14.0``0.16.0`, `@midnight-ntwrk/ledger-v7` `7.0.3``@midnight-ntwrk/ledger-v8` `8.1.0`, and `@openzeppelin/compact-simulator` `^0.0.1``^0.1.0`.
17+
1418
## 0.2.0 (2026-06-12)
1519

1620
### Changed

contracts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@openzeppelin/compact-cli": "^0.0.2"
4747
},
4848
"devDependencies": {
49-
"@openzeppelin/compact-simulator": "^0.0.1",
49+
"@openzeppelin/compact-simulator": "^0.1.0",
5050
"@tsconfig/node24": "^24.0.4",
5151
"@types/node": "25.9.3",
5252
"@vitest/coverage-v8": "^4.1.8",

contracts/src/archive/test/utils/address.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
convertFieldToBytes,
33
encodeCoinPublicKey,
44
} from '@midnight-ntwrk/compact-runtime';
5-
import { encodeContractAddress } from '@midnight-ntwrk/ledger-v7';
5+
import { encodeContractAddress } from '@midnight-ntwrk/ledger-v8';
66
import type * as Compact from '../../../../artifacts/MockShieldedToken/contract/index.js';
77

88
const PREFIX_ADDRESS = '0200';

contracts/test-utils/address.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
encodeCoinPublicKey,
55
isContractAddress,
66
} from '@midnight-ntwrk/compact-runtime';
7-
import { encodeContractAddress } from '@midnight-ntwrk/ledger-v7';
7+
import { encodeContractAddress } from '@midnight-ntwrk/ledger-v8';
88

99
type ZswapCoinPublicKey = { bytes: Uint8Array };
1010

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
"glob": "~10.5.0"
2828
},
2929
"dependencies": {
30-
"@midnight-ntwrk/compact-runtime": "0.14.0"
30+
"@midnight-ntwrk/compact-runtime": "0.16.0"
3131
},
3232
"devDependencies": {
3333
"@biomejs/biome": "^2.5.0",
34-
"@midnight-ntwrk/ledger-v7": "7.0.3",
34+
"@midnight-ntwrk/ledger-v8": "8.1.0",
3535
"@midnight-ntwrk/zswap": "^4.0.0",
3636
"@types/node": "25.9.3",
3737
"ts-node": "^10.9.2",

0 commit comments

Comments
 (0)