Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit e3a7d87

Browse files
authored
Merge pull request #2 from mintlayer/recovered-history
Recovered history
2 parents 6836718 + 427bf00 commit e3a7d87

File tree

4,105 files changed

+191
-1807
lines changed

Some content is hidden

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

4,105 files changed

+191
-1807
lines changed
File renamed without changes.

zkmintlayer/.dockerignore renamed to .dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
!etc/env/configs
1111
!etc/tokens
1212
!etc/ERC20
13-
!etc/utils
1413
!artifacts
1514
!keys
1615
keys/setup
File renamed without changes.
File renamed without changes.
File renamed without changes.

.githooks/pre-commit

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
#
3+
# Pre-commit hook verifying that inappropriate code will not be committed.
4+
5+
# Colors for the terminal output
6+
RED='\033[0;31m'
7+
NC='\033[0m' # No Color
8+
9+
# Check that Rust formatting rules are not violated.
10+
check_fmt () {
11+
if ! cargo fmt -- --check; then
12+
echo -e "${RED}Commit error!${NC}"
13+
echo "Please format the code via 'cargo fmt', cannot commit unformatted code"
14+
exit 1
15+
fi
16+
}
17+
18+
check_fmt
19+
20+
cd prover/
21+
22+
check_fmt

.githooks/pre-push

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
#
3+
# Pre-push hook verifying that inappropriate code will not be pushed.
4+
5+
# Colors for the terminal output
6+
RED='\033[0;31m'
7+
NC='\033[0m' # No Color
8+
9+
# Check that prettier formatting rules are not violated.
10+
if ! zk fmt --check; then
11+
echo -e "${RED}Push error!${NC}"
12+
echo "Please format the code via 'zk fmt', cannot push unformatted code"
13+
exit 1
14+
fi

0 commit comments

Comments
 (0)