Skip to content

Commit d3283ae

Browse files
committed
fixup! Rename openmina to mina
1 parent 34f7eaa commit d3283ae

File tree

39 files changed

+167
-185
lines changed

39 files changed

+167
-185
lines changed

.github/actions/setup-build-deps/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Setup Build Dependencies'
2-
description: 'Install system dependencies required for building OpenMina'
2+
description: 'Install system dependencies required for building Mina'
33
inputs:
44
include-sqlite:
55
description: 'Include SQLite3 in the installation'

.github/actions/setup-circuits/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Download Circuit Files'
2-
description: 'Download required circuit files for OpenMina'
2+
description: 'Download required circuit files for Mina'
33
runs:
44
using: 'composite'
55
steps:

.github/actions/setup-container-deps/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Setup Container Dependencies'
2-
description: 'Install libssl3t64 in container for OpenMina binaries'
2+
description: 'Install libssl3t64 in container for Mina binaries'
33
runs:
44
using: 'composite'
55
steps:

.github/workflows/ci.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Openmina CI
1+
name: Mina CI
22
on:
33
push:
44
branches: [ main, develop ]
@@ -15,7 +15,7 @@ on:
1515
env:
1616
CARGO_TERM_COLOR: always
1717
RUST_BACKTRACE: full
18-
OPENMINA_PANIC_ON_BUG: true
18+
MINA_PANIC_ON_BUG: true
1919
CARGO_INCREMENTAL: 1
2020
RUSTFLAGS: "-C overflow-checks=off -C debug-assertions=off"
2121

@@ -165,7 +165,7 @@ jobs:
165165
uses: actions/upload-artifact@v4
166166
with:
167167
name: bin-${{ github.sha }}
168-
path: target/release/openmina
168+
path: target/release/mina
169169
retention-days: 7
170170

171171
build-wasm:
@@ -331,7 +331,7 @@ jobs:
331331
options: --volume debugger_data:/tmp/db
332332
env:
333333
# to allow local addrs discovery
334-
OPENMINA_DISCOVERY_FILTER_ADDR: false
334+
MINA_DISCOVERY_FILTER_ADDR: false
335335
# to allow connection with replayer
336336
# TODO: remove when replayer supports identify
337337
KEEP_CONNECTION_WITH_UNKNOWN_STREAM: true
@@ -417,7 +417,7 @@ jobs:
417417
image: gcr.io/o1labs-192920/mina-daemon:3.2.0-beta2-939b08d-noble-devnet
418418
env:
419419
# to allow local addrs discovery
420-
OPENMINA_DISCOVERY_FILTER_ADDR: false
420+
MINA_DISCOVERY_FILTER_ADDR: false
421421
strategy:
422422
matrix:
423423
test: [record_replay, webrtc_record_replay]
@@ -450,7 +450,7 @@ jobs:
450450
needs: [ build, build-tests ]
451451
runs-on: ubuntu-24.04
452452
env:
453-
OPENMINA_HOME: data
453+
MINA_HOME: data
454454
BPF_ALIAS: /coda/0.0.1/29936104443aaf264a7f0192ac64b1c7173198c1ed404c1bcff5e562e05eb7f6-0.0.0.0
455455

456456
services:
@@ -479,7 +479,7 @@ jobs:
479479

480480
- name: Fix permissions
481481
run: |
482-
chmod +x bootstrap openmina
482+
chmod +x bootstrap mina
483483
484484
# TODO: use curl
485485
- name: Wait for the debugger
@@ -488,13 +488,13 @@ jobs:
488488
489489
- name: Bootstrap node
490490
env:
491-
OPENMINA_COMMAND: mina
491+
MINA_COMMAND: mina
492492
NO_PEER_DISCOVERY: "true"
493-
OUT_PATH: ${{ env.OPENMINA_HOME }}/logs/bootstrap_output
493+
OUT_PATH: ${{ env.MINA_HOME }}/logs/bootstrap_output
494494
RECORD: state-with-input-actions
495495
run: |
496496
mkdir -p $OUT_PATH
497-
PATH=$PATH:$(pwd) OPENMINA_COMMAND=mina NO_PEER_DISCOVERY=true ./bootstrap --nocapture || {
497+
PATH=$PATH:$(pwd) MINA_COMMAND=mina NO_PEER_DISCOVERY=true ./bootstrap --nocapture || {
498498
echo "::group::Stderr"
499499
cat $OUT_PATH.stderr
500500
echo "::endgroup::"
@@ -505,15 +505,15 @@ jobs:
505505
uses: actions/upload-artifact@v4
506506
with:
507507
name: bootstrap-logs-${{ github.sha }}
508-
path: ${{ env.OPENMINA_HOME }}/logs/*
508+
path: ${{ env.MINA_HOME }}/logs/*
509509
retention-days: 7
510510
if: ${{ failure() }}
511511

512512
- name: Upload record
513513
uses: actions/upload-artifact@v4
514514
with:
515515
name: bootstrap-record-${{ github.sha }}
516-
path: ${{ env.OPENMINA_HOME }}/recorder/*
516+
path: ${{ env.MINA_HOME }}/recorder/*
517517
retention-days: 7
518518
if: ${{ failure() }}
519519

.github/workflows/doc-commands.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,20 @@ jobs:
4747
- name: Verify generated key file
4848
run: |
4949
echo "Verifying generated key file exists and has correct permissions..."
50-
if [ ! -f "./openmina-workdir/producer-key" ]; then
50+
if [ ! -f "./mina-workdir/producer-key" ]; then
5151
echo "❌ Producer key file was not generated"
5252
exit 1
5353
fi
5454
5555
# Check file permissions (should be 600)
56-
PERMS=$(stat -c "%a" "./openmina-workdir/producer-key")
56+
PERMS=$(stat -c "%a" "./mina-workdir/producer-key")
5757
if [ "$PERMS" != "600" ]; then
5858
echo "❌ Producer key file has incorrect permissions: $PERMS (expected: 600)"
5959
exit 1
6060
fi
6161
6262
# Check file is not empty
63-
if [ ! -s "./openmina-workdir/producer-key" ]; then
63+
if [ ! -s "./mina-workdir/producer-key" ]; then
6464
echo "❌ Producer key file is empty"
6565
exit 1
6666
fi
@@ -72,7 +72,7 @@ jobs:
7272
echo "Testing that generated key can be used by run-block-producer target..."
7373
# Run with --help to avoid actually starting the producer but verify
7474
# key validation passes
75-
timeout 30s make run-block-producer NETWORK=devnet COINBASE_RECEIVER=$(cat ./openmina-workdir/producer-key.pub) || {
75+
timeout 30s make run-block-producer NETWORK=devnet COINBASE_RECEIVER=$(cat ./mina-workdir/producer-key.pub) || {
7676
EXIT_CODE=$?
7777
if [ $EXIT_CODE -eq 124 ]; then
7878
echo "✅ Command started successfully (timed out as expected)"
@@ -87,34 +87,34 @@ jobs:
8787
- name: Test generate-block-producer-key with custom filename
8888
run: |
8989
echo "Testing generate-block-producer-key with custom PRODUCER_KEY_FILENAME..."
90-
make generate-block-producer-key PRODUCER_KEY_FILENAME=./openmina-workdir/custom-producer-key
90+
make generate-block-producer-key PRODUCER_KEY_FILENAME=./mina-workdir/custom-producer-key
9191
9292
# Verify custom private key file exists
93-
if [ ! -f "./openmina-workdir/custom-producer-key" ]; then
93+
if [ ! -f "./mina-workdir/custom-producer-key" ]; then
9494
echo "❌ Custom producer key file was not generated"
9595
exit 1
9696
fi
9797
9898
# Verify custom public key file exists
99-
if [ ! -f "./openmina-workdir/custom-producer-key.pub" ]; then
99+
if [ ! -f "./mina-workdir/custom-producer-key.pub" ]; then
100100
echo "❌ Custom producer public key file was not generated"
101101
exit 1
102102
fi
103103
104104
# Check file permissions (should be 600 for private key)
105-
PERMS=$(stat -c "%a" "./openmina-workdir/custom-producer-key")
105+
PERMS=$(stat -c "%a" "./mina-workdir/custom-producer-key")
106106
if [ "$PERMS" != "600" ]; then
107107
echo "❌ Custom producer key file has incorrect permissions: $PERMS (expected: 600)"
108108
exit 1
109109
fi
110110
111111
# Check both files are not empty
112-
if [ ! -s "./openmina-workdir/custom-producer-key" ]; then
112+
if [ ! -s "./mina-workdir/custom-producer-key" ]; then
113113
echo "❌ Custom producer key file is empty"
114114
exit 1
115115
fi
116116
117-
if [ ! -s "./openmina-workdir/custom-producer-key.pub" ]; then
117+
if [ ! -s "./mina-workdir/custom-producer-key.pub" ]; then
118118
echo "❌ Custom producer public key file is empty"
119119
exit 1
120120
fi
@@ -132,7 +132,7 @@ jobs:
132132
fi
133133
134134
# Try to generate keys again with custom filename (should fail)
135-
if make generate-block-producer-key PRODUCER_KEY_FILENAME=./openmina-workdir/custom-producer-key 2>/dev/null; then
135+
if make generate-block-producer-key PRODUCER_KEY_FILENAME=./mina-workdir/custom-producer-key 2>/dev/null; then
136136
echo "❌ Command should have failed when custom keys already exist"
137137
exit 1
138138
fi

.github/workflows/docker.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: OpenMina Docker Build
1+
name: Mina Docker Build
22
on:
33
workflow_dispatch: {}
44
push:
@@ -11,7 +11,7 @@ env:
1111
REGISTRY_FRONTEND_IMAGE: openmina/frontend
1212

1313
jobs:
14-
build-openmina-node-image:
14+
build-mina-node-image:
1515
timeout-minutes: 40
1616
strategy:
1717
matrix:
@@ -63,7 +63,7 @@ jobs:
6363
retention-days: 1
6464

6565
# Frontend
66-
build-openmina-frontend-image:
66+
build-mina-frontend-image:
6767
timeout-minutes: 5
6868
strategy:
6969
matrix:

.github/workflows/docs.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,14 @@ jobs:
161161
- name: Create versioned documentation archive
162162
run: |
163163
cd website/build
164-
tar -czf "../../openmina-docs-${{ steps.version.outputs.version }}.tar.gz" .
164+
tar -czf "../../mina-docs-${{ steps.version.outputs.version }}.tar.gz" .
165165
cd ../..
166-
zip -r "openmina-docs-${{ steps.version.outputs.version }}.zip" website/build
166+
zip -r "mina-docs-${{ steps.version.outputs.version }}.zip" website/build
167167
168168
- name: Upload versioned documentation as release asset
169169
uses: actions/upload-artifact@v4
170170
with:
171171
name: versioned-docs-${{ steps.version.outputs.version }}
172172
path: |
173-
openmina-docs-${{ steps.version.outputs.version }}.tar.gz
174-
openmina-docs-${{ steps.version.outputs.version }}.zip
173+
mina-docs-${{ steps.version.outputs.version }}.tar.gz
174+
mina-docs-${{ steps.version.outputs.version }}.zip

.github/workflows/release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Create versioned directory and package files
1717
run: |
18-
release_dir="openmina-${{ github.ref_name }}-docker-compose"
18+
release_dir="mina-${{ github.ref_name }}-docker-compose"
1919
mkdir -p "$release_dir"
2020
cp -r docker-compose.* README.md "$release_dir/"
2121
zip -r "${release_dir}.zip" "$release_dir"
@@ -38,8 +38,8 @@ jobs:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
with:
4040
upload_url: ${{ steps.create_release.outputs.upload_url }}
41-
asset_name: "openmina-${{ github.ref_name }}-docker-compose.zip"
42-
asset_path: "openmina-${{ github.ref_name }}-docker-compose.zip"
41+
asset_name: "mina-${{ github.ref_name }}-docker-compose.zip"
42+
asset_path: "mina-${{ github.ref_name }}-docker-compose.zip"
4343
asset_content_type: application/zip
4444

4545
- name: Upload the tarball as a release asset
@@ -48,6 +48,6 @@ jobs:
4848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4949
with:
5050
upload_url: ${{ steps.create_release.outputs.upload_url }}
51-
asset_name: "openmina-${{ github.ref_name }}-docker-compose.tar.gz"
52-
asset_path: "openmina-${{ github.ref_name }}-docker-compose.tar.gz"
51+
asset_name: "mina-${{ github.ref_name }}-docker-compose.tar.gz"
52+
asset_path: "mina-${{ github.ref_name }}-docker-compose.tar.gz"
5353
asset_content_type: application/gzip

CLAUDE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# OpenMina Codebase Navigation Guide
1+
# Mina Codebase Navigation Guide
22

3-
This file helps understand and navigate the OpenMina codebase structure.
3+
This file helps understand and navigate the Mina codebase structure.
44

55
## Project Overview
66

7-
OpenMina is a Rust implementation of the Mina Protocol, a lightweight blockchain
7+
Mina is a Rust implementation of the Mina Protocol, a lightweight blockchain
88
using zero-knowledge proofs. It follows a Redux-style state machine architecture
99
for predictable, debuggable behavior.
1010

@@ -127,7 +127,7 @@ Each component directory contains a `summary.md` file documenting:
127127

128128
## Documentation Website
129129

130-
OpenMina includes a comprehensive documentation website built with Docusaurus:
130+
Mina includes a comprehensive documentation website built with Docusaurus:
131131

132132
### Quick Access
133133

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ PG_HOST ?= localhost
1515
PG_PORT ?= 5432
1616

1717
# Block producer configuration
18-
PRODUCER_KEY_FILENAME ?= ./openmina-workdir/producer-key
18+
PRODUCER_KEY_FILENAME ?= ./mina-workdir/producer-key
1919
COINBASE_RECEIVER ?=
20-
OPENMINA_LIBP2P_EXTERNAL_IP ?=
21-
OPENMINA_LIBP2P_PORT ?= 8302
20+
MINA_LIBP2P_EXTERNAL_IP ?=
21+
MINA_LIBP2P_PORT ?= 8302
2222

2323
# Utilities
2424
NETWORK ?= devnet
@@ -91,7 +91,7 @@ build-wasm: ## Build WebAssembly node
9191
# Update ./.gitignore accordingly if the out-dir is changed
9292
@wasm-bindgen --keep-debug --web \
9393
--out-dir pkg \
94-
target/wasm32-unknown-unknown/release/openmina_node_web.wasm
94+
target/wasm32-unknown-unknown/release/mina_node_web.wasm
9595

9696
.PHONY: check
9797
check: ## Check code for compilation errors
@@ -339,7 +339,7 @@ run-node: build-release ## Run a basic node (NETWORK=devnet, VERBOSITY=info)
339339
# Postgres related targets + archive node
340340
.PHONY: run-archive
341341
run-archive: build-release ## Run an archive node with local storage
342-
OPENMINA_ARCHIVE_ADDRESS=$(OPENMINA_ARCHIVE_ADDRESS) \
342+
MINA_ARCHIVE_ADDRESS=$(MINA_ARCHIVE_ADDRESS) \
343343
cargo run --bin mina \
344344
--release -- \
345345
node \
@@ -361,8 +361,8 @@ run-block-producer: build-release ## Run a block producer node on $(NETWORK) net
361361
node \
362362
--producer-key $(PRODUCER_KEY_FILENAME) \
363363
$(if $(COINBASE_RECEIVER),--coinbase-receiver $(COINBASE_RECEIVER)) \
364-
$(if $(OPENMINA_LIBP2P_EXTERNAL_IP),--libp2p-external-ip $(OPENMINA_LIBP2P_EXTERNAL_IP)) \
365-
$(if $(OPENMINA_LIBP2P_PORT),--libp2p-port $(OPENMINA_LIBP2P_PORT)) \
364+
$(if $(MINA_LIBP2P_EXTERNAL_IP),--libp2p-external-ip $(MINA_LIBP2P_EXTERNAL_IP)) \
365+
$(if $(MINA_LIBP2P_PORT),--libp2p-port $(MINA_LIBP2P_PORT)) \
366366
--network $(NETWORK)
367367

368368

@@ -377,7 +377,7 @@ generate-block-producer-key: build-release ## Generate a new block producer key
377377
echo "Or remove the existing key first to regenerate it."; \
378378
exit 1; \
379379
fi
380-
@mkdir -p openmina-workdir
380+
@mkdir -p mina-workdir
381381
@echo "Generating new encrypted block producer key..."
382382
@OUTPUT=$$($(if $(MINA_PRIVKEY_PASS),MINA_PRIVKEY_PASS="$(MINA_PRIVKEY_PASS)") cargo run --release --package=cli --bin mina -- misc mina-encrypted-key --file $(PRODUCER_KEY_FILENAME)); \
383383
PUBLIC_KEY=$$(echo "$$OUTPUT" | grep "public key:" | cut -d' ' -f3); \

0 commit comments

Comments
 (0)