Skip to content

Commit 9806a3e

Browse files
Merge remote-tracking branch 'origin/main' into document-contracts-gitbook
2 parents 2e04176 + 16a4814 commit 9806a3e

File tree

316 files changed

+30158
-7930
lines changed

Some content is hidden

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

316 files changed

+30158
-7930
lines changed

.git-blame-ignore-revs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ e884d097787c1fd3f541088717c946f53503ea79
1313
e0880e124c2dcefa6a6fbb4e16ef4b8fe2ab861a
1414
bf037460a86573b61f62f9acec46f1688d44d409
1515
a2ec8c4724756d4422df491a978b9ea4e5bf7b99
16+
e991a52c9ea8049192fe0266cc27138d6b14d29c
1617

1718
# Linting and formatting code for solidity/random-beacon.
1819
# Most of the changes were done by `yarn format:fix` to auto-fix the issues.

.github/workflows/client.yml

+61
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,23 @@ jobs:
4747
path-filter:
4848
- './!((docs-v1|docs|infrastructure|scripts|solidity-v1|token-stakedrop)/**)'
4949
50+
electrum-integration-detect-changes:
51+
runs-on: ubuntu-latest
52+
outputs:
53+
path-filter: ${{ steps.filter.outputs.path-filter }}
54+
steps:
55+
- uses: actions/checkout@v3
56+
if: github.event_name == 'pull_request'
57+
58+
- uses: dorny/paths-filter@v2
59+
if: github.event_name == 'pull_request'
60+
id: filter
61+
with:
62+
filters: |
63+
path-filter:
64+
- './config/_electrum_urls/**'
65+
- './pkg/bitcoin/electrum/**'
66+
5067
client-build-test-publish:
5168
needs: client-detect-changes
5269
if: |
@@ -94,6 +111,23 @@ jobs:
94111
cache-to: type=local,dest=/tmp/.buildx-cache-new
95112
context: .
96113

114+
# Since build-push-action doesn't support outputing an image to multiple outputs
115+
# we need to save it in a separate step. See: https://github.com/moby/buildkit/issues/1555
116+
# Once multiple outputs are supported we can replace this step with
117+
# `outputs` property configured in `Build Docker Build Image`:
118+
# outputs: |
119+
# type=image
120+
# type=docker,dest=/tmp/go-build-env-image.tar
121+
- name: Save Docker Build Image
122+
run: |
123+
docker save --output /tmp/go-build-env-image.tar go-build-env
124+
125+
- name: Upload Docker Build Image
126+
uses: actions/upload-artifact@v3
127+
with:
128+
name: go-build-env-image
129+
path: /tmp/go-build-env-image.tar
130+
97131
- name: Run Go tests
98132
run: |
99133
docker run \
@@ -263,3 +297,30 @@ jobs:
263297
with:
264298
version: "2022.1.3"
265299
install-go: false
300+
301+
client-integration-test:
302+
needs: [electrum-integration-detect-changes, client-build-test-publish]
303+
if: |
304+
github.event_name != 'pull_request'
305+
|| needs.electrum-integration-detect-changes.outputs.path-filter == 'true'
306+
runs-on: ubuntu-latest
307+
steps:
308+
- name: Set up Docker Buildx
309+
uses: docker/setup-buildx-action@v2
310+
311+
- name: Download Docker Build Image
312+
uses: actions/download-artifact@v3
313+
with:
314+
name: go-build-env-image
315+
path: /tmp
316+
317+
- name: Load Docker Build Image
318+
run: |
319+
docker load --input /tmp/go-build-env-image.tar
320+
321+
- name: Run Go Integration Tests
322+
run: |
323+
docker run \
324+
--workdir /go/src/github.com/keep-network/keep-core \
325+
go-build-env \
326+
gotestsum -- -timeout 20m -tags=integration ./...

.github/workflows/contracts-ecdsa.yml

+24-6
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ jobs:
6969

7070
- uses: actions/setup-node@v3
7171
with:
72-
node-version: "18.x"
72+
# Using fixed version, because 18.16 was sometimes causing issues with
73+
# artifacts generation during `hardhat compile` - see
74+
# https://github.com/NomicFoundation/hardhat/issues/3877
75+
node-version: "18.15.0"
7376
cache: "yarn"
7477
cache-dependency-path: solidity/ecdsa/yarn.lock
7578

@@ -96,7 +99,10 @@ jobs:
9699

97100
- uses: actions/setup-node@v3
98101
with:
99-
node-version: "18.x"
102+
# Using fixed version, because 18.16 was sometimes causing issues with
103+
# artifacts generation during `hardhat compile` - see
104+
# https://github.com/NomicFoundation/hardhat/issues/3877
105+
node-version: "18.15.0"
100106
cache: "yarn"
101107
cache-dependency-path: solidity/ecdsa/yarn.lock
102108

@@ -139,7 +145,10 @@ jobs:
139145

140146
- uses: actions/setup-node@v3
141147
with:
142-
node-version: "18.x"
148+
# Using fixed version, because 18.16 was sometimes causing issues with
149+
# artifacts generation during `hardhat compile` - see
150+
# https://github.com/NomicFoundation/hardhat/issues/3877
151+
node-version: "18.15.0"
143152
cache: "yarn"
144153
cache-dependency-path: solidity/ecdsa/yarn.lock
145154

@@ -167,7 +176,10 @@ jobs:
167176

168177
- uses: actions/setup-node@v3
169178
with:
170-
node-version: "18.x"
179+
# Using fixed version, because 18.16 was sometimes causing issues with
180+
# artifacts generation during `hardhat compile` - see
181+
# https://github.com/NomicFoundation/hardhat/issues/3877
182+
node-version: "18.15.0"
171183
cache: "yarn"
172184
cache-dependency-path: solidity/ecdsa/yarn.lock
173185

@@ -198,7 +210,10 @@ jobs:
198210

199211
- uses: actions/setup-node@v3
200212
with:
201-
node-version: "18.x"
213+
# Using fixed version, because 18.16 was sometimes causing issues with
214+
# artifacts generation during `hardhat compile` - see
215+
# https://github.com/NomicFoundation/hardhat/issues/3877
216+
node-version: "18.15.0"
202217
cache: "yarn"
203218
cache-dependency-path: solidity/ecdsa/yarn.lock
204219
registry-url: "https://registry.npmjs.org"
@@ -296,7 +311,10 @@ jobs:
296311

297312
- uses: actions/setup-node@v3
298313
with:
299-
node-version: "18.x"
314+
# Using fixed version, because 18.16 was sometimes causing issues with
315+
# artifacts generation during `hardhat compile` - see
316+
# https://github.com/NomicFoundation/hardhat/issues/3877
317+
node-version: "18.15.0"
300318
cache: "yarn"
301319
cache-dependency-path: solidity/ecdsa/yarn.lock
302320
registry-url: "https://registry.npmjs.org"

.github/workflows/contracts-random-beacon.yml

+24-6
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ jobs:
6969

7070
- uses: actions/setup-node@v3
7171
with:
72-
node-version: "18.x"
72+
# Using fixed version, because 18.16 was sometimes causing issues with
73+
# artifacts generation during `hardhat compile` - see
74+
# https://github.com/NomicFoundation/hardhat/issues/3877
75+
node-version: "18.15.0"
7376
cache: "yarn"
7477
cache-dependency-path: solidity/random-beacon/yarn.lock
7578

@@ -96,7 +99,10 @@ jobs:
9699

97100
- uses: actions/setup-node@v3
98101
with:
99-
node-version: "18.x"
102+
# Using fixed version, because 18.16 was sometimes causing issues with
103+
# artifacts generation during `hardhat compile` - see
104+
# https://github.com/NomicFoundation/hardhat/issues/3877
105+
node-version: "18.15.0"
100106
cache: "yarn"
101107
cache-dependency-path: solidity/random-beacon/yarn.lock
102108

@@ -137,7 +143,10 @@ jobs:
137143

138144
- uses: actions/setup-node@v3
139145
with:
140-
node-version: "18.x"
146+
# Using fixed version, because 18.16 was sometimes causing issues with
147+
# artifacts generation during `hardhat compile` - see
148+
# https://github.com/NomicFoundation/hardhat/issues/3877
149+
node-version: "18.15.0"
141150
cache: "yarn"
142151
cache-dependency-path: solidity/random-beacon/yarn.lock
143152

@@ -165,7 +174,10 @@ jobs:
165174

166175
- uses: actions/setup-node@v3
167176
with:
168-
node-version: "18.x"
177+
# Using fixed version, because 18.16 was sometimes causing issues with
178+
# artifacts generation during `hardhat compile` - see
179+
# https://github.com/NomicFoundation/hardhat/issues/3877
180+
node-version: "18.15.0"
169181
cache: "yarn"
170182
cache-dependency-path: solidity/random-beacon/yarn.lock
171183

@@ -196,7 +208,10 @@ jobs:
196208

197209
- uses: actions/setup-node@v3
198210
with:
199-
node-version: "18.x"
211+
# Using fixed version, because 18.16 was sometimes causing issues with
212+
# artifacts generation during `hardhat compile` - see
213+
# https://github.com/NomicFoundation/hardhat/issues/3877
214+
node-version: "18.15.0"
200215
cache: "yarn"
201216
cache-dependency-path: solidity/random-beacon/yarn.lock
202217
registry-url: "https://registry.npmjs.org"
@@ -292,7 +307,10 @@ jobs:
292307

293308
- uses: actions/setup-node@v3
294309
with:
295-
node-version: "18.x"
310+
# Using fixed version, because 18.16 was sometimes causing issues with
311+
# artifacts generation during `hardhat compile` - see
312+
# https://github.com/NomicFoundation/hardhat/issues/3877
313+
node-version: "18.15.0"
296314
cache: "yarn"
297315
cache-dependency-path: solidity/random-beacon/yarn.lock
298316
registry-url: "https://registry.npmjs.org"

.github/workflows/npm-ecdsa.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525

2626
- uses: actions/setup-node@v3
2727
with:
28-
node-version: "18.x"
28+
# Using fixed version, because 18.16 may cause issues with the
29+
# artifacts generation during `hardhat compile` - see
30+
# https://github.com/NomicFoundation/hardhat/issues/3877.
31+
node-version: "18.15.0"
2932
registry-url: "https://registry.npmjs.org"
3033
cache: "yarn"
3134
cache-dependency-path: solidity/ecdsa/yarn.lock

.github/workflows/npm-random-beacon.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ jobs:
2525

2626
- uses: actions/setup-node@v3
2727
with:
28-
node-version: "18.x"
28+
# Using fixed version, because 18.16 may cause issues with the
29+
# artifacts generation during `hardhat compile` - see
30+
# https://github.com/NomicFoundation/hardhat/issues/3877.
31+
node-version: "18.15.0"
2932
registry-url: "https://registry.npmjs.org"
3033
cache: "yarn"
3134
cache-dependency-path: solidity/random-beacon/yarn.lock

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
# Infrastructure
1616
/infrastructure/gcp/service-accounts*
1717

18+
# Secret directory used in Kubernetes configurations
19+
/infrastructure/kube/**/.secret/
20+
/infrastructure/kube/**/*.secret
21+
22+
# Backup directory for local copies of Kubernetes configurations
23+
/infrastructure/kube/**/.backup/
24+
1825
# Keys
1926
keystore/
2027
keep_accounts

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.18.3-alpine3.16 AS build-sources
1+
FROM golang:1.18.10-alpine3.16 AS build-sources
22

33
ENV GOPATH=/go \
44
GOBIN=/go/bin \

cmd/cmd.go

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func init() {
3636
PingCommand,
3737
EthereumCommand,
3838
MaintainerCommand,
39+
CoordinatorCommand,
3940
)
4041
}
4142

0 commit comments

Comments
 (0)