-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'compatible' into feature/simplify-pickles-types1
- Loading branch information
Showing
528 changed files
with
8,607 additions
and
16,498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
[submodule "src/lib/snarky"] | ||
path = src/lib/snarky | ||
url = https://github.com/o1-labs/snarky | ||
[submodule "src/external/ppx_optcomp"] | ||
path = src/external/ppx_optcomp | ||
url = https://github.com/MinaProtocol/ppx_optcomp | ||
[submodule "src/lib/crypto/proof-systems"] | ||
path = src/lib/crypto/proof-systems | ||
url = https://github.com/o1-labs/proof-systems.git | ||
[submodule "src/external/prometheus"] | ||
path = src/external/prometheus | ||
url = https://github.com/MinaProtocol/prometheus.git | ||
branch = master | ||
[submodule "src/external/c-reference-signer"] | ||
path = src/external/c-reference-signer | ||
url = https://github.com/MinaProtocol/c-reference-signer.git | ||
[submodule "src/lib/crypto/kimchi_bindings/stubs/kimchi-stubs-vendors"] | ||
path = src/lib/crypto/kimchi_bindings/stubs/kimchi-stubs-vendors | ||
url = https://github.com/MinaProtocol/kimchi-stubs-vendors.git |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,8 @@ You can build Mina using Docker. Using Docker works in any dev environment. See | |
``` | ||
|
||
1. Install [rustup](https://rustup.rs/). | ||
2. Create your switch with deps `opam switch import --switch mina opam.export` | ||
2. Add o1-opam-repository with `opam repository add --yes --all --set-default o1-labs https://github.com/o1-labs/opam-repository.git` | ||
3. Create your switch with deps `opam switch import --switch mina opam.export` | ||
|
||
M1- and M2- operating systems experience issues because Homebrew does not link include files automatically. | ||
|
||
|
@@ -98,13 +99,13 @@ You can build Mina using Docker. Using Docker works in any dev environment. See | |
- Note:If you get conf-openssl install errors, try running `export PKG_CONFIG_PATH=$(brew --prefix [email protected])/lib/pkgconfig` and try `opam switch import opam.export` again. | ||
- If prompted, run `opam user-setup install` to enable opam-user-setup support for Merlin. | ||
|
||
3. Pin dependencies that override opam versions: | ||
4. Pin dependencies that override opam versions: | ||
|
||
```sh | ||
scripts/pin-external-packages.sh | ||
``` | ||
|
||
7. Install the correct version of golang: | ||
5. Install the correct version of golang: | ||
|
||
- `goenv init` | ||
- To make sure the right `goenv` is used, update your shell env script with: | ||
|
@@ -118,17 +119,17 @@ You can build Mina using Docker. Using Docker works in any dev environment. See | |
- `goenv global 1.18.10` | ||
- Check that the `go version` returns the right version, otherwise you see the message `compile:version "go1.18.10" does not match go tool version "go1.20.2"`. If so, run `brew remove go` or get the matching version. | ||
|
||
9. Invoke `make build`. | ||
6. Invoke `make build`. | ||
|
||
If you get errors about `libp2p` and `capnp`, try with `brew install capnp`. | ||
|
||
9. For better IDE support, install the OCaml-LSP language server for OCaml: | ||
7. For better IDE support, install the OCaml-LSP language server for OCaml: | ||
|
||
```sh | ||
opam install ocaml-lsp-server | ||
``` | ||
|
||
10. Set up your IDE. See [Customizing your dev environment for autocomplete/merlin](https://github.com/MinaProtocol/mina/blob/develop/README-dev.md#customizing-your-dev-environment-for-autocompletemerlin). | ||
8. Set up your IDE. See [Customizing your dev environment for autocomplete/merlin](https://github.com/MinaProtocol/mina/blob/develop/README-dev.md#customizing-your-dev-environment-for-autocompletemerlin). | ||
|
||
### Developer Setup (Linux) | ||
|
||
|
@@ -139,6 +140,7 @@ Mina has a variety of opam and system dependencies. | |
To get all of the required opam dependencies, run: | ||
|
||
```sh | ||
opam repository add --yes --all --set-default o1-labs https://github.com/o1-labs/opam-repository.git | ||
opam switch import opam.export | ||
``` | ||
|
||
|
@@ -250,6 +252,47 @@ dune exec src/app/cli/src/mina.exe -- -help | |
The command line help is the place to learn about other options to the Mina CLI and how to connect to an existing network, such as Mainnet. | ||
## Building debian package locally | ||
Debian package can be build locally by using below commands: | ||
1. Build binaries | ||
``` | ||
make build | ||
``` | ||
2. Build debian for mina-devet (example for ubuntu 18.04): | ||
``` | ||
./scripts/debian/build.sh daemon_devnet | ||
``` | ||
## Building docker locally | ||
Prerequisites: | ||
- debian package previously built | ||
- aptly app | ||
Steps: | ||
1. Start local debian repository | ||
``` | ||
./scripts/debian/aptly.sh start -b -c focal -d _build/ -m unstable -l -p 8081 | ||
``` | ||
IMPORTANT: debians should be placed in _build folder | ||
2. Build docker: | ||
``` | ||
./scripts/docker/build.sh --service mina-daemon -v 3.0.0-dkijania-local-debian-build-a099fc7 --network devnet --deb-codename focal --deb-version 3.0.0-dkijania-local-debian-build-a099fc7 | ||
``` | ||
Where: | ||
`-v` - base docker tag | ||
`--deb-codename` - input debian codename (buster,bullseye etc.) | ||
`--deb-version` - version of debian which docker will host | ||
## Using the Makefile | ||
The Makefile contains placeholder targets for all the common tasks that need to be done and automatically knows how to use Docker. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.