Skip to content

Commit 131e353

Browse files
authored
Merge pull request #514 from shutter-network/gnosis
Merge gnosis into main
2 parents 25c816f + c1feee9 commit 131e353

File tree

237 files changed

+13286
-2586
lines changed

Some content is hidden

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

237 files changed

+13286
-2586
lines changed

.dockerignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
contracts/combined.json
22
contracts/node_modules
33
contracts/deployments
4-
docker/data
4+
docker/data*
55
play/work
6-
play/Dockerfile
7-
rolling-shutter/bin
6+
rolling-shutter/bin/rolling-shutter
7+
rolling-shutter/bin/shutter-crypto.wasm
88
tools/snapshot/dummyserver/dist

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.direnv
44
.lsp
55
.vscode
6-
docker/data
6+
docker/data*
77
log
88
node_modules
99
result

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repos:
1313
require_serial: true
1414

1515
- repo: https://github.com/pre-commit/pre-commit-hooks
16-
rev: v4.4.0
16+
rev: v4.5.0
1717
hooks:
1818
- id: check-added-large-files
1919
args: ["--maxkb=1000"]
@@ -33,7 +33,7 @@ repos:
3333
- id: trailing-whitespace
3434

3535
- repo: https://github.com/pre-commit/mirrors-prettier
36-
rev: v3.0.1
36+
rev: v3.1.0
3737
hooks:
3838
- id: prettier
3939
additional_dependencies:
@@ -59,12 +59,12 @@ repos:
5959
]
6060

6161
- repo: https://github.com/pre-commit/mirrors-eslint
62-
rev: "v8.4.1"
62+
rev: "v8.56.0"
6363
hooks:
6464
- id: eslint
6565

6666
- repo: https://github.com/shutter-network/pre-commit-go-hooks
67-
rev: "7a66f5523b34139615a0c95f2b8a441dbc1778dc"
67+
rev: "53239641ec106cda9a7acf9150c98be8d5ffa1ec"
6868
hooks:
6969
- id: shfmt
7070
args: ["-i", "4"]

.tool-versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ babashka 1.3.182
22
binaryen 114
33
circleci 0.1.28811
44
clojure 1.11.1.1386
5-
golang 1.21.3
5+
golang 1.21.4
66
golangci-lint 1.55.2
77
java temurin-17.0.5+8
88
nodejs 18.17.0
99
postgres 14.2
10-
pre-commit 3.3.3
10+
pre-commit 3.6.0
1111
protoc 22.3
1212
shfmt 3.7.0
1313
solidity 0.8.9

docker/00-build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33
source ./common.sh
44

5-
$DC --profile dev down
65
$DC --profile dev build

docker/01-init-db.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
source ./common.sh
44

5+
mkdb() {
6+
$DC exec -T db createdb -U postgres $1
7+
$DC run -T --rm --no-deps $1 initdb --config /config/${1}.toml
8+
}
9+
510
$DC stop db
611
$DC rm -f db
712

@@ -11,8 +16,9 @@ $DC up -d db
1116
$DC run --rm --no-deps dockerize -wait tcp://db:5432 -timeout 40s
1217

1318
for cmd in snapshot keyper-0 keyper-1 keyper-2 keyper-3; do
14-
$DC exec db createdb -U postgres $cmd
15-
$DC run --rm --no-deps $cmd initdb --config /config/${cmd}.toml
19+
mkdb $cmd &
1620
done
1721

22+
wait
23+
1824
$DC stop db

docker/03-run.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ source ./common.sh
44

55
echo "Starting entire system"
66
$DC --profile dev up -d
7-
sleep 5
8-
$DC ps

docker/05-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ echo "Testing decryption key generation"
77
EPOCH_ID=$(LC_ALL=C tr -dc 'a-f0-9' </dev/urandom | head -c64)
88
json_body="{\"jsonrpc\": \"2.0\", \"method\": \"get_decryption_key\", \"id\": 1, \"params\": [\"1\", \"${EPOCH_ID}\"]}"
99
curl -XGET http://localhost:8754/api/v1/rpc -d "${json_body}"
10-
sleep 3
10+
sleep 5
1111
DECRYPTION_KEY_MSGS=$(${DC} logs snapshot | grep ${EPOCH_ID} | grep -c decryptionKey)
1212
if [[ $DECRYPTION_KEY_MSGS -gt 0 ]]; then
1313
echo "Decryption successful with $DECRYPTION_KEY_MSGS / 3 nodes"

docker/10-change-keyperset.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
source ./common.sh
44

5-
$DC run --rm --no-deps deploy-contracts run scripts/change-keypers.js
5+
TARGET_INDEX=${1:-1}
6+
7+
$DC run --rm --no-deps -e KEYPER_SET_INDEX=${TARGET_INDEX} deploy-contracts run scripts/change-keypers.js

docker/build-src/metrics/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ FROM victoriametrics/victoria-metrics
22

33
COPY targets.yaml /targets.yaml
44

5-
CMD ["-promscrape.config=/targets.yaml"]
5+
CMD ["-promscrape.config=/targets.yaml", "-search.latencyOffset=0s"]

0 commit comments

Comments
 (0)