Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM mcr.microsoft.com/devcontainers/javascript-node

# Midnight binaries and tools download URLs
# Source: https://docs.midnight.network/relnotes/overview
ARG COMPACT_TOOLCHAIN_VERSION=0.25.0
ARG COMPACT_TOOLCHAIN_VERSION=0.26.0
ARG COMPACT_VSCODE_VERSION=0.2.13
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"

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"build": {
"dockerfile": "Dockerfile"
},
"postCreateCommand": "code --install-extension /tmp/compact.vsix && compact update 0.25.0"
}
"postCreateCommand": "code --install-extension /tmp/compact.vsix && compact update 0.26.0"
}
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/01_bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ body:
label: Version
description: What version of Compact are you running?
options:
- 0.25.0 (Default)
- 0.26.0 (Default)
default: 0
validations:
required: true
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- OpenZeppelin Compact Simulator (#247)

### Changed

- Bump compact compiler to v0.25.0 (#233)
- Bump compact compiler to v0.26.0 (#279)
- Upgrade @midnight-ntwrk/compact-runtime ^0.8.1 -> ^0.9.0 (#279)
- Move @openzeppelin-compact/compact to its own package in the package/compact dir (#247)
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Generic badge](https://img.shields.io/badge/Compact%20Compiler-0.25.0-1abc9c.svg)](https://docs.midnight.network/relnotes/compact)
[![Generic badge](https://img.shields.io/badge/Compact%20Compiler-0.26.0-1abc9c.svg)](https://docs.midnight.network/relnotes/compact/minokawa-0-18-26-0)
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)

# OpenZeppelin Contracts for Compact
Expand All @@ -20,8 +20,8 @@ Follow Midnight's [Compact Developer Tools installation guide](https://docs.midn
```bash
$ compact compile --version

Compactc version: 0.25.0
0.25.0
Compactc version: 0.26.0
0.26.0
```

### Installation
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Follow Midnight's {compact-dev-tools} installation guide and confirm that `compa
```bash
$ compact compile --version

Compactc version: 0.25.0
0.25.0
Compactc version: 0.26.0
0.26.0
```

=== Installation
Expand Down
6 changes: 3 additions & 3 deletions packages/compact/src/Builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const execAsync = promisify(exec);
* ```
* ℹ [COMPILE] Found 2 .compact file(s) to compile
* ✔ [COMPILE] [1/2] Compiled AccessControl.compact
* Compactc version: 0.25.0
* Compactc version: 0.26.0
* ✔ [COMPILE] [2/2] Compiled MockAccessControl.compact
* Compactc version: 0.25.0
* Compactc version: 0.26.0
* ✔ [BUILD] [1/3] Compiling TypeScript
* ✔ [BUILD] [2/3] Copying artifacts
* ✔ [BUILD] [3/3] Copying and cleaning .compact files
Expand All @@ -41,7 +41,7 @@ const execAsync = promisify(exec);
* ```
* ℹ [COMPILE] Found 2 .compact file(s) to compile
* ✖ [COMPILE] [1/2] Failed AccessControl.compact
* Compactc version: 0.25.0
* Compactc version: 0.26.0
* Error: Expected ';' at line 5 in AccessControl.compact
* ```
*
Expand Down
26 changes: 13 additions & 13 deletions packages/compact/src/Compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export type ExecFunction = (
* @example
* ```typescript
* const validator = new EnvironmentValidator();
* await validator.validate('0.25.0');
* await validator.validate('0.26.0');
* const version = await validator.getDevToolsVersion();
* ```
*/
Expand Down Expand Up @@ -100,7 +100,7 @@ export class EnvironmentValidator {
* @throws {Error} If the CLI is not available or command fails
* @example
* ```typescript
* const toolchainVersion = await validator.getToolchainVersion('0.25.0');
* const toolchainVersion = await validator.getToolchainVersion('0.26.0');
* console.log(`Toolchain: ${toolchainVersion}`);
* ```
*/
Expand All @@ -122,7 +122,7 @@ export class EnvironmentValidator {
* @example
* ```typescript
* try {
* await validator.validate('0.25.0');
* await validator.validate('0.26.0');
* console.log('Environment validated successfully');
* } catch (error) {
* if (error instanceof CompactCliNotFoundError) {
Expand Down Expand Up @@ -215,7 +215,7 @@ export class FileDiscovery {
* const result = await compiler.compileFile(
* 'contracts/Token.compact',
* '--skip-zk --verbose',
* '0.25.0'
* '0.26.0'
* );
* console.log('Compilation output:', result.stdout);
* ```
Expand Down Expand Up @@ -247,7 +247,7 @@ export class CompilerService {
* const result = await compiler.compileFile(
* 'security/AccessControl.compact',
* '--skip-zk',
* '0.25.0'
* '0.26.0'
* );
* console.log('Success:', result.stdout);
* } catch (error) {
Expand Down Expand Up @@ -296,7 +296,7 @@ export class CompilerService {
* @class UIService
* @example
* ```typescript
* UIService.displayEnvInfo('compact 0.1.0', 'Compactc 0.25.0', 'security');
* UIService.displayEnvInfo('compact 0.1.0', 'Compactc 0.26.0', 'security');
* UIService.printOutput('Compilation successful', chalk.green);
* ```
*/
Expand Down Expand Up @@ -333,9 +333,9 @@ export const UIService = {
* ```typescript
* UIService.displayEnvInfo(
* 'compact 0.1.0',
* 'Compactc version: 0.25.0',
* 'Compactc version: 0.26.0',
* 'security',
* '0.25.0'
* '0.26.0'
* );
* ```
*/
Expand Down Expand Up @@ -419,7 +419,7 @@ export const UIService = {
* @example
* ```typescript
* // Basic usage
* const compiler = new CompactCompiler('--skip-zk', 'security', '0.25.0');
* const compiler = new CompactCompiler('--skip-zk', 'security', '0.26.0');
* await compiler.compile();
*
* // Factory method usage
Expand Down Expand Up @@ -452,7 +452,7 @@ export class CompactCompiler {
*
* @param flags - Space-separated compiler flags (e.g., '--skip-zk --verbose')
* @param targetDir - Optional subdirectory within src/ to compile (e.g., 'security', 'token')
* @param version - Optional toolchain version to use (e.g., '0.25.0')
* @param version - Optional toolchain version to use (e.g., '0.26.0')
* @param execFn - Optional custom exec function for dependency injection
* @example
* ```typescript
Expand All @@ -463,7 +463,7 @@ export class CompactCompiler {
* const compiler = new CompactCompiler('', 'security');
*
* // Compile with specific version
* const compiler = new CompactCompiler('--skip-zk', undefined, '0.25.0');
* const compiler = new CompactCompiler('--skip-zk', undefined, '0.26.0');
*
* // For testing with custom exec function
* const mockExec = vi.fn();
Expand Down Expand Up @@ -500,11 +500,11 @@ export class CompactCompiler {
* @throws {Error} If --dir flag is provided without a directory name
* @example
* ```typescript
* // Parse command line: compact-compiler --dir security --skip-zk +0.25.0
* // Parse command line: compact-compiler --dir security --skip-zk +0.26.0
* const compiler = CompactCompiler.fromArgs([
* '--dir', 'security',
* '--skip-zk',
* '+0.25.0'
* '+0.26.0'
* ]);
*
* // With environment variable
Expand Down
2 changes: 1 addition & 1 deletion packages/compact/src/runBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { CompactBuilder } from './Builder.js';
* ℹ [COMPILE] COMPACTC_PATH: /path/to/compactc/compactc
* ℹ [COMPILE] Found 1 .compact file(s) to compile
* ✔ [COMPILE] [1/1] Compiled Foo.compact
* Compactc version: 0.25.0
* Compactc version: 0.26.0
* ✔ [BUILD] [1/3] Compiling TypeScript
* ✔ [BUILD] [2/3] Copying artifacts
* ✔ [BUILD] [3/3] Copying and cleaning .compact files
Expand Down
6 changes: 3 additions & 3 deletions packages/compact/src/runCompiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
*
* @example Version specification
* ```bash
* npx compact-compiler --dir security --skip-zk +0.25.0
* npx compact-compiler --dir security --skip-zk +0.26.0
* ```
*/
async function runCompiler(): Promise<void> {
Expand Down Expand Up @@ -179,7 +179,7 @@ function showUsageHelp(): void {
);
console.log(
chalk.yellow(
' +<version> Use specific toolchain version (e.g., +0.25.0)',
' +<version> Use specific toolchain version (e.g., +0.26.0)',
),
);
console.log(chalk.yellow('\nExamples:'));
Expand All @@ -205,7 +205,7 @@ function showUsageHelp(): void {
);
console.log(
chalk.yellow(
' compact-compiler --skip-zk +0.25.0 # Use specific version',
' compact-compiler --skip-zk +0.26.0 # Use specific version',
),
);
console.log(chalk.yellow('\nTurbo integration:'));
Expand Down
Loading
Loading