Skip to content

Commit 9759f8f

Browse files
pdyragamichalinacienciala
authored andcommitted
Merge branch 'main' into node16
2 parents 7288c57 + 71047ca commit 9759f8f

File tree

64 files changed

+15116
-1431
lines changed

Some content is hidden

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

64 files changed

+15116
-1431
lines changed

.github/workflows/contracts.yml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ jobs:
5757
node-version: "14.x"
5858
cache: "yarn"
5959

60+
# This step forces Git to download dependencies using `https://` protocol,
61+
# even if `yarn.json` refers to some package via `git://`. Using `git://`
62+
# is no longer supported by GH. One of the `coverage-pools` dependencies
63+
# by default uses `git://` and we needed to manually remove it every time
64+
# it re-appeares in the lock file. Now even if it does re-appear, the
65+
# `yarn install --frozen-lockfile` will not fail.
66+
- name: Configure git to don't use unauthenticated protocol
67+
run: git config --global url."https://".insteadOf git://
68+
6069
- name: Install dependencies
6170
run: yarn install
6271

@@ -76,6 +85,15 @@ jobs:
7685
cache: "yarn"
7786
registry-url: "https://registry.npmjs.org"
7887

88+
# This step forces Git to download dependencies using `https://` protocol,
89+
# even if `yarn.json` refers to some package via `git://`. Using `git://`
90+
# is no longer supported by GH. One of the `coverage-pools` dependencies
91+
# by default uses `git://` and we needed to manually remove it every time
92+
# it re-appeares in the lock file. Now even if it does re-appear, the
93+
# `yarn install --frozen-lockfile` will not fail.
94+
- name: Configure git to don't use unauthenticated protocol
95+
run: git config --global url."https://".insteadOf git://
96+
7997
- name: Install dependencies
8098
run: yarn install --frozen-lockfile
8199

@@ -156,6 +174,15 @@ jobs:
156174
node-version: "14.x"
157175
cache: "yarn"
158176

177+
# This step forces Git to download dependencies using `https://` protocol,
178+
# even if `yarn.json` refers to some package via `git://`. Using `git://`
179+
# is no longer supported by GH. One of the `coverage-pools` dependencies
180+
# by default uses `git://` and we needed to manually remove it every time
181+
# it re-appeares in the lock file. Now even if it does re-appear, the
182+
# `yarn install --frozen-lockfile` will not fail.
183+
- name: Configure git to don't use unauthenticated protocol
184+
run: git config --global url."https://".insteadOf git://
185+
159186
- name: Install needed dependencies
160187
run: yarn install --frozen-lockfile
161188

@@ -186,6 +213,15 @@ jobs:
186213
node-version: "14.x"
187214
cache: "yarn"
188215

216+
# This step forces Git to download dependencies using `https://` protocol,
217+
# even if `yarn.json` refers to some package via `git://`. Using `git://`
218+
# is no longer supported by GH. One of the `coverage-pools` dependencies
219+
# by default uses `git://` and we needed to manually remove it every time
220+
# it re-appeares in the lock file. Now even if it does re-appear, the
221+
# `yarn install --frozen-lockfile` will not fail.
222+
- name: Configure git to don't use unauthenticated protocol
223+
run: git config --global url."https://".insteadOf git://
224+
189225
- name: Install dependencies
190226
run: yarn install
191227

@@ -207,11 +243,11 @@ jobs:
207243

208244
- uses: actions/setup-python@v4
209245
with:
210-
python-version: 3.8.5
246+
python-version: 3.10.8
211247

212248
- name: Install Solidity
213249
env:
214-
SOLC_VERSION: 0.8.5 # according to solidity.version in hardhat.config.js
250+
SOLC_VERSION: 0.8.9 # according to solidity.version in hardhat.config.ts
215251
run: |
216252
pip3 install solc-select
217253
solc-select install $SOLC_VERSION

.github/workflows/format.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
node-version: "14"
1919
cache: "yarn"
2020

21+
# This step forces Git to download dependencies using `https://` protocol,
22+
# even if `yarn.json` refers to some package via `git://`. Using `git://`
23+
# is no longer supported by GH. One of the `coverage-pools` dependencies
24+
# by default uses `git://` and we needed to manually remove it every time
25+
# it re-appeares in the lock file. Now even if it does re-appear, the
26+
# `yarn install --frozen-lockfile` will not fail.
27+
2128
- name: Install dependencies
2229
run: yarn install
2330

.github/workflows/npm.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,21 @@ jobs:
2424
registry-url: "https://registry.npmjs.org"
2525
cache: "yarn"
2626

27+
# This step forces Git to download dependencies using `https://` protocol,
28+
# even if `yarn.json` refers to some package via `git://`. Using `git://`
29+
# is no longer supported by GH. One of the `coverage-pools` dependencies
30+
# by default uses `git://` and we needed to manually remove it every time
31+
# it re-appeares in the lock file. Now even if it does re-appear, the
32+
# `yarn install --frozen-lockfile` will not fail.
33+
- name: Configure git to don't use unauthenticated protocol
34+
run: git config --global url."https://".insteadOf git://
35+
2736
- name: Resolve latest contracts
2837
run: |
29-
yarn upgrade \
38+
yarn upgrade --exact \
3039
@keep-network/keep-core \
31-
@keep-network/tbtc
40+
@keep-network/tbtc \
41+
@threshold-network/solidity-contracts
3242
3343
# Deploy contracts to a local network to generate deployment artifacts that
3444
# are required by dashboard compilation.

README.adoc

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

33
= Coverage pool
44

5+
https://github.com/keep-network/coverage-pools/actions/workflows/contracts.yml[image:https://img.shields.io/github/actions/workflow/status/keep-network/coverage-pools/contracts.yml?branch=main&event=push&label=Coverage%20pool%20contracts%20build[Coverage pool contracts build status]]
6+
57
A governable, fee-earning asset pool to cover low-likelihood on-chain events.
68

79
toc::[]
@@ -89,6 +91,19 @@ yarn build
8991
```
9092
Compiled contracts will land in the `build/` directory.
9193

94+
*NOTE:* The `coverage-pools` package contains an indirect dependency to
95+
`@summa-tx/[email protected]` package, which downloads one of its sub-dependencies
96+
via unathenticated `git://` protocol. That protocol is no longer supported by
97+
GitHub. This means that in certain situations installation of the package or
98+
update of its dependencies using Yarn may result in `The unauthenticated git
99+
protocol on port 9418 is no longer supported` or `unable to connect to
100+
github.com` error. +
101+
As a workaround, we advise changing Git configuration to use `https://` protocol
102+
instead of `git://` by executing:
103+
```
104+
git config --global url."https://".insteadOf git://
105+
```
106+
92107
=== Test contracts
93108

94109
There are multiple test scenarios living in the `test` directory.

artifacts/.chainId

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

0 commit comments

Comments
 (0)