Skip to content

Commit dadfcf6

Browse files
author
Daniil Lashin
committed
init
0 parents  commit dadfcf6

File tree

338 files changed

+134764
-0
lines changed

Some content is hidden

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

338 files changed

+134764
-0
lines changed

.dockerignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*/node_modules
2+
*/target/*
3+
.DS_Store
4+
.dockerignore
5+
.git
6+
.gitignore

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sol linguist-language=Solidity

.github/CODEOWNERS

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# CODEOWNERS: https://help.github.com/articles/about-codeowners/
2+
3+
module/ @jackzampolin @mvid @levicook
4+
orchestrator/ @zmanian @levicook @hannydevelop
5+
solidity/ @zmanian @jackzampolin @jtremback
6+
tests/ @mvid @levicook @jackzampolin
+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
on:
2+
push:
3+
# Sequence of patterns matched against refs/tags
4+
tags:
5+
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
6+
7+
name: Automated Release
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
release:
14+
name: build-release-assets
15+
runs-on: ubuntu-latest
16+
steps:
17+
# Setup Golang Environemnt
18+
- name: setup-go
19+
uses: actions/setup-go@v2
20+
with:
21+
go-version: ^1.16
22+
# Setup Rust Environment
23+
- name: setup-rust
24+
uses: actions-rs/toolchain@v1
25+
with:
26+
profile: minimal
27+
toolchain: stable
28+
# Setup Node Environment
29+
- name: setup-node
30+
uses: actions/setup-node@v2
31+
with:
32+
node-version: '16'
33+
# Checkout repository code
34+
- name: checkout-code
35+
uses: actions/checkout@v2
36+
# Golang Cache
37+
- name: go-cache
38+
uses: actions/cache@v2
39+
with:
40+
path: |
41+
~/.cache/go-build
42+
~/go/pkg/mod
43+
key: ${{ runner.os }}-go-${{ hashFiles('module/go.sum') }}
44+
# Rust Cache
45+
- name: rust-cache
46+
uses: actions/cache@v2
47+
with:
48+
path: |
49+
~/.cargo/bin/
50+
~/.cargo/registry/index/
51+
~/.cargo/registry/cache/
52+
~/.cargo/git/db/
53+
orchestrator/target/
54+
key: ${{ runner.os }}-cargo-${{ hashFiles('orchestrator/Cargo.lock') }}
55+
# Node Cache
56+
- name: node-cache
57+
uses: actions/cache@v2
58+
with:
59+
path: ~/.npm
60+
key: ${{ runner.os }}-node-${{ hashFiles('solidity/package-lock.json') }}
61+
# Build Go Artifacts
62+
- name: build-go
63+
run: cd module && make build
64+
# Build Node and Solidity Artifacts
65+
- name: build-node-solidity
66+
run: cd solidity && npm ci && npm run typechain && npm run compile-deployer
67+
# Build Rust Artifacts
68+
- name: build-rust
69+
run: cd orchestrator && cargo install cross && cross build --target x86_64-unknown-linux-musl --release --all
70+
# Create Release and Upload artifacts
71+
- name: Release
72+
uses: softprops/action-gh-release@v1
73+
if: startsWith(github.ref, 'refs/tags/')
74+
with:
75+
files: |
76+
orchestrator/target/x86_64-unknown-linux-musl/release/client
77+
orchestrator/target/x86_64-unknown-linux-musl/release/gorc
78+
orchestrator/target/x86_64-unknown-linux-musl/release/orchestrator
79+
orchestrator/target/x86_64-unknown-linux-musl/release/register-delegate-keys
80+
orchestrator/target/x86_64-unknown-linux-musl/release/relayer
81+
orchestrator/target/x86_64-unknown-linux-musl/release/test-runner
82+
module/build/gravity
83+
solidity/artifacts/contracts/Gravity.sol/Gravity.json
84+
solidity/artifacts/contracts/TestERC20A.sol/TestERC20A.json
85+
solidity/artifacts/contracts/TestERC20B.sol/TestERC20B.json
86+
solidity/artifacts/contracts/TestERC20C.sol/TestERC20C.json
87+
solidity/contract-deployer
88+
LICENSE
89+
env:
90+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/go.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Go tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
go-test:
11+
permissions:
12+
contents: read
13+
packages: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Install Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: ^1.16
20+
- name: Checkout Branch
21+
uses: actions/checkout@v2
22+
- name: Create Go cache
23+
uses: actions/cache@v2
24+
with:
25+
path: |
26+
~/.cache/go-build
27+
~/go/pkg/mod
28+
key: ${{ runner.os }}-go-${{ hashFiles('module/go.sum') }}
29+
- name: Run Go tests
30+
run: cd module && make test

0 commit comments

Comments
 (0)