Skip to content

Commit 90d5645

Browse files
committed
Rename openmina to mina(-rust)
1 parent d5ea93d commit 90d5645

File tree

11 files changed

+47
-47
lines changed

11 files changed

+47
-47
lines changed

macros/src/action_event.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Derives `[openmina_core::ActionEvent]` trait implementation for action.
1+
Derives `[mina_core::ActionEvent]` trait implementation for action.
22

33
### Action containers
44

55
For action containers, it simply delegates to inner actions.
66

77
```rust
8-
# use openmina_core::ActionEvent;
8+
# use mina_core::ActionEvent;
99
#
1010
#[derive(ActionEvent)]
1111
enum ActionContainer {
@@ -36,8 +36,8 @@ impl ActionEvent for Action1 {
3636
where T: ActionContext
3737
{
3838
match self {
39-
Action1::Init => openmina_core::action_debug!(context),
40-
Action1::Done => openmina_core::action_debug!(context),
39+
Action1::Init => mina_core::action_debug!(context),
40+
Action1::Done => mina_core::action_debug!(context),
4141
}
4242
}
4343
}
@@ -50,7 +50,7 @@ overriden by using `#[action_event(level = ...)]` attribute. Also, actions that
5050
names ends with `Error` or `Warn` will be traced with `warn` level.
5151

5252
```rust
53-
#[derive(openmina_core::ActionEvent)]
53+
#[derive(mina_core::ActionEvent)]
5454
#[action_event(level = trace)]
5555
pub enum Action {
5656
ActionDefaultLevel,
@@ -62,17 +62,17 @@ pub enum Action {
6262
```
6363

6464
```rust
65-
impl openmina_core::ActionEvent for Action {
65+
impl mina_core::ActionEvent for Action {
6666
fn action_event<T>(&self, context: &T)
6767
where
68-
T: openmina_core::log::EventContext,
68+
T: mina_core::log::EventContext,
6969
{
7070
#[allow(unused_variables)]
7171
match self {
72-
Action::ActionDefaultLevel => openmina_core::action_trace!(context),
73-
Action::ActionOverrideLevel => openmina_core::action_warn!(context),
74-
Action::ActionWithError => openmina_core::action_warn!(context),
75-
Action::ActionWithWarn => openmina_core::action_warn!(context),
72+
Action::ActionDefaultLevel => mina_core::action_trace!(context),
73+
Action::ActionOverrideLevel => mina_core::action_warn!(context),
74+
Action::ActionWithError => mina_core::action_warn!(context),
75+
Action::ActionWithWarn => mina_core::action_warn!(context),
7676
}
7777
}
7878
}
@@ -84,7 +84,7 @@ If an action has doc-comment, its first line will be used for `summary` field of
8484
tracing events for the action.
8585

8686
```rust
87-
#[derive(openmina_core::ActionEvent)]
87+
#[derive(mina_core::ActionEvent)]
8888
pub enum Action {
8989
Unit,
9090
/// documentation
@@ -98,15 +98,15 @@ pub enum Action {
9898
```
9999

100100
```rust
101-
impl openmina_core::ActionEvent for Action {
101+
impl mina_core::ActionEvent for Action {
102102
fn action_event<T>(&self, context: &T)
103103
where
104-
T: openmina_core::log::EventContext,
104+
T: mina_core::log::EventContext,
105105
{
106106
match self {
107-
Action::Unit => openmina_core::action_debug!(context),
108-
Action::UnitWithDoc => openmina_core::action_debug!(context, summary = "documentation"),
109-
Action::UnitWithMultilineDoc => openmina_core::action_debug!(context, summary = "Multiline documentation"),
107+
Action::Unit => mina_core::action_debug!(context),
108+
Action::UnitWithDoc => mina_core::action_debug!(context, summary = "documentation"),
109+
Action::UnitWithMultilineDoc => mina_core::action_debug!(context, summary = "Multiline documentation"),
110110
}
111111
}
112112
}
@@ -118,7 +118,7 @@ Certain fields can be added to the tracing event, using
118118
`#[action_event(fields(...))]` attribute.
119119

120120
```rust
121-
#[derive(openmina_core::ActionEvent)]
121+
#[derive(mina_core::ActionEvent)]
122122
pub enum Action {
123123
NoFields { f1: bool },
124124
#[action_event(fields(f1))]
@@ -133,17 +133,17 @@ pub enum Action {
133133
```
134134

135135
```rust
136-
impl openmina_core::ActionEvent for Action {
136+
impl mina_core::ActionEvent for Action {
137137
fn action_event<T>(&self, context: &T)
138138
where
139-
T: openmina_core::log::EventContext,
139+
T: mina_core::log::EventContext,
140140
{
141141
match self {
142-
Action::NoFields { f1 } => openmina_core::action_debug!(context),
143-
Action::Field { f1 } => openmina_core::action_debug!(context, f1 = f1),
144-
Action::FieldWithName { f1 } => openmina_core::action_debug!(context, f = f1),
145-
Action::DebugField { f1 } => openmina_core::action_debug!(context, f1 = debug(f1)),
146-
Action::DisplayField { f1 } => openmina_core::action_debug!(context, f1 = display(f1)),
142+
Action::NoFields { f1 } => mina_core::action_debug!(context),
143+
Action::Field { f1 } => mina_core::action_debug!(context, f1 = f1),
144+
Action::FieldWithName { f1 } => mina_core::action_debug!(context, f = f1),
145+
Action::DebugField { f1 } => mina_core::action_debug!(context, f1 = debug(f1)),
146+
Action::DisplayField { f1 } => mina_core::action_debug!(context, f1 = display(f1)),
147147
}
148148
}
149149
}
@@ -156,7 +156,7 @@ a field's enum variant), logging can be delegated to a function implementing
156156
that logic.
157157

158158
```rust
159-
#[derive(openmina_core::ActionEvent)]
159+
#[derive(mina_core::ActionEvent)]
160160
pub enum Action {
161161
#[action_event(expr(foo(context)))]
162162
Unit,
@@ -166,10 +166,10 @@ pub enum Action {
166166
```
167167

168168
```rust
169-
impl openmina_core::ActionEvent for Action {
169+
impl mina_core::ActionEvent for Action {
170170
fn action_event<T>(&self, context: &T)
171171
where
172-
T: openmina_core::log::EventContext,
172+
T: mina_core::log::EventContext,
173173
{
174174
#[allow(unused_variables)]
175175
match self {

node/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## `openmina-node`
1+
## `mina-node`
22

33
Combines all state machines of the node into one state machine, which has all
44
the logic of the node, except services.

node/common/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## `openmina-node-common`
1+
## `mina-node-common`
22

33
Exports partial implementation of [Service](src/service.rs), which will be
44
reused between different platform dependant implementations. E.g. this logic

node/common/src/service/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub struct NodeServiceCommonBuilder {
3232
rng_seed: [u8; 32],
3333
rng: StdRng,
3434
/// Events sent on this channel are retrieved and processed in the
35-
/// `event_source` state machine defined in the `openmina-node` crate.
35+
/// `event_source` state machine defined in the `mina-node` crate.
3636
event_sender: EventSender,
3737
event_receiver: EventReceiver,
3838
ledger_manager: Option<LedgerManager>,

node/common/src/tracing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ mod native {
9090
max_log_level: Level,
9191
log_output_dir: PathBuf,
9292
) -> WorkerGuard {
93-
let file_appender = tracing_appender::rolling::daily(log_output_dir, "openmina.log");
93+
let file_appender = tracing_appender::rolling::daily(log_output_dir, "mina.log");
9494
let (file_writer, file_guard) = tracing_appender::non_blocking(file_appender);
9595
let level_filter = LevelFilter::from_level(max_log_level);
9696

node/native/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## `openmina-node-native`
1+
## `mina-node-native`
22

33
Exports default [Service](src/service.rs) to be used in the natively
44
(Linux/Mac/Windows) running node.

node/src/ledger/ledger_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ fn dump_reconstruct_to_file(
15721572

15731573
/// Save staged ledger and block to file, when the application fail.
15741574
/// So we can easily reproduce the application both in Rust and OCaml, to compare them.
1575-
/// - <https://github.com/openmina/openmina/blob/8e68037aafddd43842a54c8439baeafee4c6e1eb/ledger/src/staged_ledger/staged_ledger.rs#L5959>
1575+
/// - <https://github.com/o1-labs/mina-rust/blob/8e68037aafddd43842a54c8439baeafee4c6e1eb/ledger/src/staged_ledger/staged_ledger.rs#L5959>
15761576
/// - TODO: Find OCaml link, I remember having the same test in OCaml but I can't find where
15771577
fn dump_application_to_file(
15781578
staged_ledger: &StagedLedger,

node/src/recorder/recorder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ impl Recorder {
3030
let path = work_dir.as_ref().join("recorder");
3131

3232
let _ = fs::remove_dir_all(&path);
33-
fs::create_dir_all(&path).expect("creating dir for openmina recorder failed!");
33+
fs::create_dir_all(&path).expect("creating dir for mina recorder failed!");
3434

3535
let actions_f_index = 1;
3636
let actions_path = super::actions_path(&path, actions_f_index);
3737

3838
let file = fs::File::create(actions_path)
39-
.expect("creating file for openmina recorder initial state failed!");
39+
.expect("creating file for mina recorder initial state failed!");
4040
let mut actions_files = ACTIONS_F.try_lock().unwrap();
4141
actions_files.push(Some(file));
4242

@@ -59,7 +59,7 @@ impl Recorder {
5959
};
6060
let initial_state_path = super::initial_state_path(recorder_path);
6161
let mut initial_state_f = fs::File::create(initial_state_path)
62-
.expect("creating file for openmina recorder initial state failed!");
62+
.expect("creating file for mina recorder initial state failed!");
6363
initial_state.write_to(&mut initial_state_f).unwrap();
6464
initial_state_f.sync_all().unwrap();
6565
}

node/web/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## `openmina-node-web`
1+
## `mina-node-web`
22

33
Exports default [Service](src/service.rs) to be used in the web (wasm) running
44
node.

p2p/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ For comprehensive documentation about Mina's P2P networking architecture, please
88
visit our documentation website:
99

1010
📖
11-
**[P2P Networking Documentation](https://o1-labs.github.io/openmina/developers/p2p-networking)**
11+
**[P2P Networking Documentation](https://o1-labs.github.io/mina-rust/developers/p2p-networking)**
1212

1313
The documentation covers:
1414

15-
- **[P2P Networking Overview](https://o1-labs.github.io/openmina/developers/p2p-networking)** -
15+
- **[P2P Networking Overview](https://o1-labs.github.io/mina-rust/developers/p2p-networking)** -
1616
Design goals, poll-based architecture, and implementation details
17-
- **[WebRTC Implementation](https://o1-labs.github.io/openmina/developers/webrtc)** -
17+
- **[WebRTC Implementation](https://o1-labs.github.io/mina-rust/developers/webrtc)** -
1818
WebRTC transport layer for Rust-to-Rust communication
19-
- **[LibP2P Implementation](https://o1-labs.github.io/openmina/developers/libp2p)** -
19+
- **[LibP2P Implementation](https://o1-labs.github.io/mina-rust/developers/libp2p)** -
2020
LibP2P stack for OCaml node compatibility
21-
[Architecture Overview](https://o1-labs.github.io/openmina/developers/architecture)
21+
[Architecture Overview](https://o1-labs.github.io/mina-rust/developers/architecture)

0 commit comments

Comments
 (0)