Skip to content

Commit 755bc86

Browse files
authored
Merge pull request #1314 from o1-labs/rename-openmina-to-mina
Rename openmina to mina
2 parents 22c7b16 + ac185d6 commit 755bc86

File tree

391 files changed

+1732
-1751
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

391 files changed

+1732
-1751
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: 13 additions & 13 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

@@ -117,7 +117,7 @@ jobs:
117117
run: make test-vrf
118118

119119
p2p-tests:
120-
timeout-minutes: 10
120+
timeout-minutes: 15
121121
runs-on: ubuntu-24.04
122122
steps:
123123
- name: Git checkout
@@ -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: openmina
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=openmina 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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
name: OpenMina Docker Build
1+
name: Mina Docker Build
22
on:
33
workflow_dispatch: {}
44
push:
5-
paths-ignore:
6-
- "*.md"
7-
- "docs/**"
85

96
env:
107
REGISTRY_NODE_IMAGE: openmina/openmina
118
REGISTRY_FRONTEND_IMAGE: openmina/frontend
129

1310
jobs:
14-
build-openmina-node-image:
11+
build-mina-node-image:
1512
timeout-minutes: 40
1613
strategy:
1714
matrix:
@@ -63,7 +60,7 @@ jobs:
6360
retention-days: 1
6461

6562
# Frontend
66-
build-openmina-frontend-image:
63+
build-mina-frontend-image:
6764
timeout-minutes: 5
6865
strategy:
6966
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

ARCHITECTURE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub enum P2pAction {
2424
```
2525

2626
link to the definition of the node("root") action:
27-
[openmina_node::Action](node/src/action.rs).
27+
[mina_node::Action](node/src/action.rs).
2828

2929
## Enabling Condition
3030

@@ -99,7 +99,7 @@ type Reducer<State, Action> = fn(&mut State, &Action);
9999
```
100100

101101
Main reducer function that gets called on every action:
102-
[openmina_node::reducer](node/src/reducer.rs).
102+
[mina_node::reducer](node/src/reducer.rs).
103103

104104
## Effects(side-effects)
105105

@@ -120,7 +120,7 @@ type Effects<State, Service, Action> = fn(&mut Store<State, Service, Action>, &A
120120
```
121121

122122
Main effects function that gets called on every action:
123-
[openmina_node::effects](node/src/effects.rs).
123+
[mina_node::effects](node/src/effects.rs).
124124

125125
## Service
126126

@@ -135,7 +135,7 @@ in another thread.
135135

136136
## State
137137

138-
Our global state. [openmina_node::State](node/src/state.rs)
138+
Our global state. [mina_node::State](node/src/state.rs)
139139

140140
## Store
141141

@@ -216,8 +216,8 @@ There are 2 types of effects:
216216
For example, we could receive rpc request on p2p layer to send our current
217217
best tip. Since [p2p](p2p/) is in a separate crate, it's not even possible to
218218
answer that rpc there, as in that crate, we only have partial view (p2p part)
219-
of the state. But we do have that access in [openmina-node](node/) crate, so
220-
we write effects to respond to that rpc
219+
of the state. But we do have that access in [mina-node](node/) crate, so we
220+
write effects to respond to that rpc
221221
[in there](https://github.com/openmina/openmina/blob/f6bde2138157dcdacd4baa0cd07c22506dc2a7c0/node/src/p2p/p2p_effects.rs#L517).
222222

223223
Examples of the flow:

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6969
- **Website**: (temporary) new design, for a first release and rename OpenMina
7070
to "the Mina Russt node"
7171
([#1312](https://github.com/o1-labs/openmina/pull/1312)).
72+
- **Codebase**: rename `openmina` to `mina`, the project being officially
73+
called for now "the Mina Rust node"
74+
([#1314](https://github.com/o1-labs/openmina/pull/1312)).
7275

7376
### Fixed
7477

0 commit comments

Comments
 (0)