Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update main branch with develop for 1.0.0-rc.1 #727

Merged
merged 160 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
ce0692e
signature_deposit added
volovyks May 23, 2024
1324361
deposit added in tests
volovyks May 23, 2024
84c0e02
deposit added in tests
volovyks May 23, 2024
a5e91f0
use BorshStorageKey for the prefix of LookupMap for pending_requests
ppca May 22, 2024
9c13b25
fix: add port to my_address so join method works
ppca May 24, 2024
53d2640
tuple replaced with struct for signature result
volovyks May 24, 2024
3fafe29
SignResult traits
volovyks May 24, 2024
256954a
fail early on incorrect url
ppca May 26, 2024
653f4e1
Merge pull request #608 from near/xiangyi/BorshStorageKey
volovyks May 27, 2024
2d8d274
Merge pull request #612 from near/xiangyi/fix_new_node_join
volovyks May 27, 2024
c7d6e6d
chore(refactor): restructure project + upgrade dependencies/transitiv…
ChaoticTempest May 27, 2024
e91c2d2
typing fixed
volovyks May 28, 2024
b44f80d
typed sign request
volovyks May 28, 2024
73582c6
develop
volovyks May 28, 2024
7b1ac63
merge conflict fix
volovyks May 28, 2024
976f60d
use struct when calling sign
volovyks May 28, 2024
a0119e3
Made chain-signature test builds during compile-time
ChaoticTempest May 28, 2024
3939d63
Made fastauth test builds during compile-time
ChaoticTempest May 29, 2024
3901486
Merge pull request #617 from near/phuong/feat/compile-time-node-builds
volovyks May 29, 2024
2cf351f
Merge branch 'develop' into serhii/contract-api
volovyks May 29, 2024
9ec7921
develop
volovyks May 29, 2024
f0b373e
remove unnecessary +1 yN
volovyks May 29, 2024
996333d
Upgrade near-sdk to 5.1.0
ChaoticTempest May 29, 2024
092adb2
Upgrade borsh to 1.5.0
ChaoticTempest May 29, 2024
c197693
Upgrade hyper-rustls to 0.24 from 0.23, and fix RUSTSEC-2024-0336
ChaoticTempest May 29, 2024
4879239
Try different feature flag
ChaoticTempest May 30, 2024
7a4b85b
Merge pull request #620 from near/phuong/feat/fix-dep-cves
volovyks May 30, 2024
ef6b977
Merge branch 'develop' into serhii/contract-api
volovyks May 30, 2024
b0694a3
use struct instead of payload on the ndoe
volovyks May 30, 2024
425f40d
Merge branch 'develop' into serhii/payable-sign
volovyks May 30, 2024
317d879
args fix
volovyks May 30, 2024
98dabae
redundant structs removed
volovyks May 30, 2024
df5c78c
fix: store reshared key after generation (#615)
ppca May 30, 2024
4b7b0c1
Moved node, contract, keys to chain-signatures/
ChaoticTempest May 30, 2024
36934a9
Make GH actions reflect condensed chain-signatures project
ChaoticTempest May 30, 2024
f51ebfc
Merge branch 'develop' of github.com:near/mpc-recovery into phuong/ch…
ChaoticTempest May 30, 2024
c5180a2
Remove .cargo/config for contract/
ChaoticTempest May 30, 2024
63d9627
Fix GH actions
ChaoticTempest May 31, 2024
bf25f63
wip use warpbuild cache
ailisp May 31, 2024
e203db3
Merge pull request #613 from near/serhii/contract-api
volovyks May 31, 2024
785d16b
sign_deposit is private
volovyks May 31, 2024
bea2a86
develop
volovyks May 31, 2024
22c85cf
Signed responses (#621)
DavidM-D May 31, 2024
8396c6e
Fix build path for contract test
ChaoticTempest May 31, 2024
02f1647
Fix per-package release config
ChaoticTempest May 31, 2024
a666981
Merge branch 'develop' of github.com:near/mpc-recovery into phuong/ch…
ChaoticTempest May 31, 2024
bd901b0
Merge pull request #623 from near/phuong/chore/condense-projects
volovyks Jun 3, 2024
287cf94
near-sdk dependency for contract: move to the commit with yield_resum…
ppca Jun 3, 2024
ac09321
fix: local build.rs not running on changes (#625)
ChaoticTempest Jun 4, 2024
9cd8708
chore: update README.md and add ARCHITECTURE.md (#627)
ChaoticTempest Jun 4, 2024
4ba8474
develop
volovyks Jun 4, 2024
94ec0b7
Explicitly handle RPC calls in case of network error
ChaoticTempest Jun 5, 2024
be835b1
Change near-fetch to 0.3.0
ChaoticTempest Jun 5, 2024
8398e84
Merge branch 'develop' into optimize-ci
ailisp Jun 5, 2024
8fe93d3
add warpbuild cache to unit and integration test
ailisp Jun 5, 2024
4832f2e
fix
ailisp Jun 5, 2024
965443e
build on warp for tests
ailisp Jun 5, 2024
600a0f3
22.04 runners are not exist, use latest
ailisp Jun 5, 2024
2421d54
Merge pull request #629 from near/phuong/fix/rpc-calls
volovyks Jun 5, 2024
c96f19e
Make only certain GH actions run on changes
ChaoticTempest Jun 5, 2024
fac9a41
Fix docker builds due to crypto-shared getting moved
ChaoticTempest Jun 5, 2024
5c486d4
Fixed cases that did not need to error early
ChaoticTempest Jun 6, 2024
0a5e987
Merge pull request #634 from near/phuong/fix/early-erroring
volovyks Jun 6, 2024
1690bdd
Merge pull request #632 from near/phuong/fix/docker-builds
volovyks Jun 6, 2024
a90a991
Merge pull request #611 from near/serhii/payable-sign
volovyks Jun 6, 2024
7591cff
Merge branch 'develop' into optimize-ci
ailisp Jun 7, 2024
37794e5
update cache key and trigger integration tests
ailisp Jun 7, 2024
83fbb37
trigger cache
ailisp Jun 7, 2024
c66d801
fix: Added retrying on indexer failures (#636)
ChaoticTempest Jun 10, 2024
db43885
Merge pull request #630 from near/optimize-ci
ailisp Jun 11, 2024
1b2b49f
fix: clear triples after reshare (#638)
ChaoticTempest Jun 11, 2024
972ba88
wip mock to test mpc when rpc is unstable
ailisp Jun 14, 2024
b4d5234
fix: dockerfile multichain (#648)
ppca Jun 14, 2024
fee5bc7
toxiproxy works locally
ailisp Jun 17, 2024
b5c25ec
auto spin up and down toxiproxy server and install it on ci
ailisp Jun 17, 2024
eed24d6
fix ci
ailisp Jun 17, 2024
2e67305
finish high latency test
ailisp Jun 18, 2024
44e600b
deleted
ailisp Jun 18, 2024
8a145c4
update Cargo.toml
ailisp Jun 18, 2024
9e73c2e
fix: use fixed IPs for dev (#652)
ppca Jun 18, 2024
7e1bf0b
add proxy from lake to s3, wip have problem proxy s3
ailisp Jun 20, 2024
b125af5
Make GCP VMs not show colored output (#653)
ChaoticTempest Jun 20, 2024
4a091f4
FIX: Update Deployment documentation (#622)
kmaus-near Jun 20, 2024
9bc3d74
s2 proxy also works
ailisp Jun 21, 2024
6881fc3
binary to spin up chain signature local cluster
ailisp Jun 24, 2024
91bf891
add script to generate sign_sk (#654)
ppca Jun 24, 2024
f6f35f3
warning
ailisp Jun 25, 2024
24ebfed
clippy
ailisp Jun 25, 2024
e5c91e2
Merge pull request #647 from near/mock-unstable-rpc
ailisp Jun 27, 2024
771331b
merge develop
ailisp Jun 27, 2024
87d9432
update readme
ailisp Jun 27, 2024
af44bf5
Merge pull request #655 from near/test-chainsig-main
ailisp Jun 28, 2024
3b53063
fix: remove timed-out triple messages so we don't generate repeatedly…
ppca Jul 1, 2024
4958316
Test resharing when rpc is congested
ailisp Jul 3, 2024
1118def
remove old comment
volovyks Jul 4, 2024
8f3671e
Merge pull request #669 from near/serhii/remove-comment
volovyks Jul 8, 2024
92055e1
fix secret storage initial value read (#668)
ppca Jul 8, 2024
065fb02
Merge pull request #667 from near/latency-resharing
ailisp Jul 9, 2024
cc5f5a6
reducing latency to 1s to pass on ci
ailisp Jul 9, 2024
4759beb
chore: upgrade to NEAR node version 1.40 (#670)
ChaoticTempest Jul 9, 2024
67170dd
fix: RUSTSEC-2024-0344 (#671)
ChaoticTempest Jul 9, 2024
9242145
Merge branch 'develop' into fix-ci
ailisp Jul 10, 2024
706ffdb
fmt
ailisp Jul 10, 2024
83114ee
Merge pull request #674 from near/fix-ci
volovyks Jul 10, 2024
90b49b3
wip fix issue 679
ailisp Jul 16, 2024
55d44e3
contract: implement sign fn with yield/resume (#628)
ppca Jul 16, 2024
8f43683
feat: Added nightly test that runs at 3:00 every day (#676)
ChaoticTempest Jul 16, 2024
9b607bf
fixed
ailisp Jul 17, 2024
b9e1e4f
cleanup
ailisp Jul 17, 2024
5d2824f
merge
ailisp Jul 17, 2024
1ec5b32
unpatch
ailisp Jul 17, 2024
f801f31
feat: stuck protocol monitor (#681)
ChaoticTempest Jul 17, 2024
7277413
feat: add contract testing without nodes (#685)
ChaoticTempest Jul 17, 2024
0221297
Make indexer only process the block if it completes the whole block (…
ChaoticTempest Jul 17, 2024
48d7d55
fix tests
ailisp Jul 18, 2024
8828691
clean up logging
ailisp Jul 18, 2024
1d96998
clippy
ailisp Jul 18, 2024
ab46c81
mainnet partner instruction: modify script to generate near account k…
ppca Jul 18, 2024
2fefe64
contract: add my_derived_public_key() (#691)
ppca Jul 18, 2024
6404823
contract: remove clean_payloads() and check pending request before de…
ppca Jul 18, 2024
80fab52
Remove unnecessary state from contract (#698)
ChaoticTempest Jul 18, 2024
522abfb
chore: cleaning up message protocol for better consistency (#686)
ChaoticTempest Jul 18, 2024
ee0d132
remove check if caller is a participant todo (#694)
volovyks Jul 19, 2024
cbd2def
Cleaned up the response verification (#649)
DavidM-D Jul 19, 2024
70cf9ed
Migrated from sha2 to sha3 for the KDF
DavidM-D Jul 19, 2024
d1eb532
Updated changelog
DavidM-D Jul 19, 2024
0ca8f35
Fix test
DavidM-D Jul 19, 2024
a0a1596
Added toxiproxy to the devenv
DavidM-D Jul 19, 2024
113e80f
Comment out dbg
DavidM-D Jul 19, 2024
13ea497
Cargo fmt
DavidM-D Jul 19, 2024
3248deb
Merge pull request #701 from near/dmd/sha3-kdf
volovyks Jul 19, 2024
baa5c29
Fail on bad scalar conversions (#703)
DavidM-D Jul 19, 2024
4971229
implement contract sign() with yield/resume
ppca Jun 4, 2024
980af46
fix: lcoal state clearing not successful, and refactor signature_resp…
ppca Jul 12, 2024
f90e823
contract: return MpcContractError instead of panic_str
ppca Jul 16, 2024
63f8853
fix integration test in progress
ppca Jul 16, 2024
5d4a0fb
in progress
ppca Jul 17, 2024
bee00ba
in progress
ppca Jul 17, 2024
db040b1
minor
ppca Jul 17, 2024
bfb0b65
fmt
ppca Jul 18, 2024
b645b64
rebase
ppca Jul 18, 2024
0afe3e1
address comments
ppca Jul 19, 2024
fffa269
init_running with full participant info
ailisp Jul 22, 2024
eb89ed4
nit
ailisp Jul 22, 2024
4eb6bc5
Merge branch 'develop' into fix-679
ailisp Jul 22, 2024
77ffd6c
merge develop make test works again
ailisp Jul 22, 2024
1c7dd36
clippy
ailisp Jul 22, 2024
7c4ba38
Contract refactoring, API, README, etc (#706)
volovyks Jul 22, 2024
9db65d8
Merge pull request #690 from near/xiangyi/replace_panic_str_w_err
volovyks Jul 22, 2024
7459b9f
use https only when connecting to GCP (#704)
volovyks Jul 22, 2024
357c6a3
Merge branch 'develop' into fix-679
ailisp Jul 23, 2024
207e7f2
warning
ailisp Jul 23, 2024
ce157c4
Merge pull request #684 from near/fix-679
volovyks Jul 23, 2024
044c05f
feat: add latest_block_height and is_stable to /state; only stable no…
ChaoticTempest Jul 23, 2024
8480eeb
fix: script to generate near account keys has a typo (#713)
ppca Jul 23, 2024
24c18a4
Expose more state info (#715)
ChaoticTempest Jul 24, 2024
c0abf1d
FEAT: mainnet test deploy (#712)
kmaus-near Jul 24, 2024
84ff24c
feat: contract is now upgradeable through participants voting for upd…
ChaoticTempest Jul 24, 2024
c6ee633
change version to 1.0.0-rc.1 (#726)
ppca Jul 24, 2024
b1677a5
fix: node_version() for x.x.x-rc.x (#728)
ppca Jul 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-multichain-dev-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: debug
run: cat ~/.near-credentials/testnet/v5.multichain-mpc-dev.testnet.json

- name: Cargo Build
- name: Build & Deploy Dev Contract
run: |
source $HOME/.cargo/env && cd ./contract ; rustup target add wasm32-unknown-unknown && cargo build --target wasm32-unknown-unknown --release && \
source $HOME/.cargo/env && cd chain-signatures ; rustup target add wasm32-unknown-unknown && cargo build -p mpc-contract --target wasm32-unknown-unknown --release && \
cd .. && (yes || true) | near deploy v5.multichain-mpc-dev.testnet target/wasm32-unknown-unknown/release/mpc_contract.wasm
2 changes: 2 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- develop
pull_request:
paths:
- mpc-recovery/**

jobs:
build-image:
Expand Down
23 changes: 15 additions & 8 deletions .github/workflows/integrations.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Build Image and Test
name: Integration (FastAuth & Image build)

on:
push:
branches:
- develop
pull_request:
paths:
- integration-tests/**
- integration-tests/fastauth/**
- mpc-recovery/**
- load-tests/**
- test-oidc-provider/**
Expand All @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
# FIXME: macos-latest-xl is disabled since colima is erroring out right now
os: [ubuntu-latest]
os: [warp-ubuntu-latest-x64-4x]
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -59,18 +59,25 @@ jobs:
toolchain: stable
target: wasm32-unknown-unknown

- uses: Swatinem/rust-cache@v1
- uses: WarpBuilds/cache@v1
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: "${{ runner.os }}-cargo-${{ hashFiles('integration-tests/fastauth/Cargo.lock') }}"
restore-keys: ${{ runner.os }}-cargo-

- name: Install Protoc
uses: arduino/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Compile Contract
run: cargo build -p mpc-contract --target wasm32-unknown-unknown --release --target-dir target/seperate_wasm

- name: Test
run: cargo test -p mpc-recovery-integration-tests mpc --jobs 1 -- --test-threads 1
working-directory: ./integration-tests/fastauth
run: cargo test --jobs 1 -- --test-threads 1
env:
RUST_LOG: INFO
RUST_BACKTRACE: 1
6 changes: 3 additions & 3 deletions .github/workflows/multichain-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- develop
pull_request:
paths:
- contract/**
- chain-signatures/contract/**

env:
RUSTFLAGS: -D warnings
Expand All @@ -31,10 +31,10 @@ jobs:
- uses: Swatinem/rust-cache@v1

- name: Compile Contract
run: cargo build -p mpc-contract --target wasm32-unknown-unknown --release --target-dir target/seperate_wasm
run: cd ./chain-signatures && cargo build -p mpc-contract --target wasm32-unknown-unknown --release

- name: Test Contract
run: cd contract && cargo test --target x86_64-unknown-linux-gnu --release
run: cd ./chain-signatures && cargo test -p mpc-contract --target x86_64-unknown-linux-gnu --release
env:
RUST_LOG: INFO
RUST_BACKTRACE: 1
11 changes: 6 additions & 5 deletions .github/workflows/multichain-dev.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Deploy Multichain Dev.
name: Build Image & Deploy Multichain Dev
on:
pull_request:
types: [closed]
branches:
- develop
paths:
- chain-signatures/**

env:
IMAGE: "us-east1-docker.pkg.dev/pagoda-discovery-platform-dev/multichain-public/multichain-dev"
Expand Down Expand Up @@ -39,15 +41,15 @@ jobs:
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS_DEV }}'

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'

- name: 'Set project'
run: 'gcloud config set project pagoda-discovery-platform-dev'

- name: 'Update Nodes'
run: |
run: |
gcloud compute instances update-container multichain-dev-0 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }} & \
gcloud compute instances update-container multichain-dev-1 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }} & \
gcloud compute instances update-container multichain-dev-2 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }} & \
Expand All @@ -56,4 +58,3 @@ jobs:
gcloud compute instances update-container multichain-dev-5 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }} & \
gcloud compute instances update-container multichain-dev-6 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }} & \
gcloud compute instances update-container multichain-dev-7 --zone us-central1-a --container-image=${{ env.IMAGE }}:${{ env.TAG }}

49 changes: 35 additions & 14 deletions .github/workflows/multichain-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ on:
- develop
pull_request:
paths:
- integration-tests/**
- node/**
- contract/**
- integration-tests/chain-signatures/**
- chain-signatures/**

env:
RUSTFLAGS: -D warnings
Expand All @@ -18,7 +17,7 @@ jobs:
strategy:
matrix:
# FIXME: macos-latest-xl is disabled since colima is erroring out right now
os: [ubuntu-22.04-4core]
os: [warp-ubuntu-latest-x64-4x]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -43,8 +42,8 @@ jobs:
- name: Pull Relayer & Sandbox Docker Images
run: |
docker pull ghcr.io/near/os-relayer:12ba6e35690df3979fce0b36a41d0ca0db9c0ab4
docker pull ghcr.io/near/near-lake-indexer:e6519c922435f3d18b5f2ddac5d1ec171ef4dd6b
docker pull localstack/localstack:latest
docker pull ghcr.io/near/near-lake-indexer:node-1.40.0
docker pull localstack/localstack:3.5.0

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
Expand All @@ -53,29 +52,51 @@ jobs:
toolchain: stable
target: wasm32-unknown-unknown

- uses: Swatinem/rust-cache@v1
- uses: WarpBuilds/cache@v1
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: "${{ runner.os }}-cargo-${{ hashFiles('chain-signatures/Cargo.lock') }}"
restore-keys: ${{ runner.os }}-cargo-

- name: Install Protoc
uses: arduino/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install toxiproxy-server
run: |
wget -O toxiproxy-2.9.0_linux_amd64.deb https://github.com/Shopify/toxiproxy/releases/download/v2.9.0/toxiproxy_2.9.0_linux_amd64.deb
sudo dpkg -i toxiproxy-2.9.0_linux_amd64.deb

- name: Configure AWS
run: |
# Fake AWS configuration for LocalStack
aws configure set region us-east-1
aws --profile default configure set aws_access_key_id "123"
aws --profile default configure set aws_secret_access_key "456"

- name: Compile Contract
run: cargo build -p mpc-contract --target wasm32-unknown-unknown --release --target-dir target/seperate_wasm
- name: Build Chain-Signatures Contract
working-directory: ./chain-signatures
run: cargo build -p mpc-contract --target wasm32-unknown-unknown --release

- name: Build MPC Recovery Binary Locally
run: |
cargo build -p mpc-recovery-node --release
- name: Build Chain-Signatures Node
working-directory: ./chain-signatures
run: cargo build -p mpc-recovery-node --release

# Build the tests before actually running them to see how long the tests take to run by itself
# instead of including the build time in the test time report on Github.
- name: Build Chain-Signatures Integration Tests
working-directory: ./integration-tests/chain-signatures
run: cargo build --tests

- name: Test
run: cargo test -p mpc-recovery-integration-tests multichain --jobs 1 -- --test-threads 1
working-directory: ./integration-tests/chain-signatures
run: cargo test --jobs 1 -- --test-threads 1
env:
RUST_LOG: INFO
RUST_LOG: info,workspaces=warn
RUST_BACKTRACE: 1
111 changes: 111 additions & 0 deletions .github/workflows/multichain-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: Nightly Chain Signature Tests

# The right schedule
on:
schedule:
- cron: "0 3 * * *" # Run once per day at 3:00 am

jobs:
# Check the date and see if latest commit is within a day.
commited_recently:
runs-on: ubuntu-20.04
name: Check latest commit
outputs:
should_run: ${{ steps.should_run.outputs.should_run }}
steps:
- uses: actions/checkout@v4
- name: print latest_commit
run: echo ${{ github.sha }}
- id: should_run
continue-on-error: true
name: Check if the latest commit is within a day
if: ${{ github.event_name == 'schedule' }}
run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false"

nightly:
strategy:
matrix:
# FIXME: macos-latest-xl is disabled since colima is erroring out right now
os: [warp-ubuntu-latest-x64-4x]

needs: commited_recently
if: ${{ needs.commited_recently.outputs.should_run != 'false' }}
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3

- name: Install Docker
if: ${{ matrix.os == 'macos-latest-xl' }}
run: |
brew install docker
colima start
# Colima does not expose the Docker socket by default, we have to symlink it
# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Pull Relayer & Sandbox Docker Images
run: |
docker pull ghcr.io/near/os-relayer:12ba6e35690df3979fce0b36a41d0ca0db9c0ab4
docker pull ghcr.io/near/near-lake-indexer:node-1.40.0
docker pull localstack/localstack:3.5.0

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown

- uses: WarpBuilds/cache@v1
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: "${{ runner.os }}-cargo-${{ hashFiles('chain-signatures/Cargo.lock') }}"
restore-keys: ${{ runner.os }}-cargo-

- name: Install Protoc
uses: arduino/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install toxiproxy-server
run: |
wget -O toxiproxy-2.9.0_linux_amd64.deb https://github.com/Shopify/toxiproxy/releases/download/v2.9.0/toxiproxy_2.9.0_linux_amd64.deb
sudo dpkg -i toxiproxy-2.9.0_linux_amd64.deb

- name: Configure AWS
run: |
# Fake AWS configuration for LocalStack
aws configure set region us-east-1
aws --profile default configure set aws_access_key_id "123"
aws --profile default configure set aws_secret_access_key "456"

- name: Build Chain-Signatures Contract
working-directory: ./chain-signatures
run: cargo build -p mpc-contract --target wasm32-unknown-unknown --release

- name: Build Chain-Signatures Node
working-directory: ./chain-signatures
run: cargo build -p mpc-recovery-node --release

- name: Build Chain-Signatures Integration Tests
working-directory: ./integration-tests/chain-signatures
run: cargo build --tests

- name: Run Nightly
working-directory: ./integration-tests/chain-signatures
run: cargo test --package integration-tests-chain-signatures --test lib -- cases::nightly --show-output --ignored
env:
RUST_LOG: info,workspaces=warn
RUST_BACKTRACE: 1
Loading
Loading