Skip to content

Commit d78333c

Browse files
Initial commit, NFT Omnibridge contracts version 1.0.0
0 parents  commit d78333c

Some content is hidden

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

75 files changed

+11032
-0
lines changed

.dockerignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
**/node_modules
2+
.git
3+
.gitignore
4+
.dockerignore
5+
deploy/*.config
6+
deploy/*.env*
7+
!deploy/.env.example
8+
docker-compose.yml
9+
Dockerfile*
10+
*.log
11+
flats
12+
contracts.sublime-project
13+
contracts.sublime-workspace
14+
build/

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
build
3+
coverage

.eslintrc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"extends": [
3+
"plugin:node/recommended",
4+
"airbnb-base",
5+
"plugin:prettier/recommended"
6+
],
7+
"plugins": ["node"],
8+
"env": {
9+
"node" : true,
10+
"mocha" : true
11+
},
12+
"globals" : {
13+
"artifacts": false,
14+
"contract": false,
15+
"assert": false,
16+
"web3": false
17+
},
18+
"rules": {
19+
"no-plusplus": "off",
20+
"no-await-in-loop": "off",
21+
"no-shadow": "off",
22+
"prefer-destructuring": "off",
23+
"no-use-before-define": ["error", { "functions": false }],
24+
"no-restricted-syntax": "off",
25+
"node/no-unpublished-require": "off",
26+
"func-names": "off",
27+
"import/no-dynamic-require": "off",
28+
"global-require": "off",
29+
"no-loop-func": "off",
30+
"no-console": "off",
31+
"node/no-missing-require": "off"
32+
}
33+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sol linguist-language=Solidity

.github/workflows/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: omnibridge-nft-contracts
2+
3+
on: [push]
4+
5+
jobs:
6+
validate:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
task: [lint, test]
12+
steps:
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: 14
16+
- uses: actions/checkout@v2
17+
- uses: actions/cache@v2
18+
id: yarn-cache
19+
with:
20+
path: node_modules
21+
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
22+
- run: yarn
23+
if: ${{ !steps.yarn-cache.outputs.cache-hit }}
24+
- run: yarn ${{ matrix.task }}
25+
coverage:
26+
runs-on: ubuntu-latest
27+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags')
28+
steps:
29+
- uses: actions/setup-node@v1
30+
with:
31+
node-version: 14
32+
- uses: actions/checkout@v2
33+
- uses: actions/cache@v2
34+
id: yarn-cache
35+
with:
36+
path: node_modules
37+
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
38+
- run: yarn
39+
if: ${{ !steps.yarn-cache.outputs.cache-hit }}
40+
- run: yarn coverage
41+
- name: Coveralls
42+
uses: coverallsapp/github-action@master
43+
with:
44+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
flats:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- id: get_release
12+
uses: bruceadams/get-release@v1.2.1
13+
env:
14+
GITHUB_TOKEN: ${{ github.token }}
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: 14
18+
- uses: actions/checkout@v2
19+
- uses: actions/cache@v2
20+
id: yarn-cache
21+
with:
22+
path: node_modules
23+
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
24+
- run: yarn
25+
if: ${{ !steps.yarn-cache.outputs.cache-hit }}
26+
- run: yarn flatten
27+
- run: zip flats $(find flats -name '*.sol')
28+
- uses: actions/upload-release-asset@v1.0.2
29+
env:
30+
GITHUB_TOKEN: ${{ github.token }}
31+
with:
32+
upload_url: ${{ steps.get_release.outputs.upload_url }}
33+
asset_path: flats.zip
34+
asset_name: omnibridge-nft-contracts-flattened-${{ steps.get_release.outputs.tag_name }}.zip
35+
asset_content_type: application/zip

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules
2+
build
3+
flats
4+
.idea
5+
coverage
6+
deploy/*.config
7+
deploy/*.env*
8+
!deploy/.env.example
9+
deploy/bridgeDeploymentResults.json
10+
coverage.json

.nvmrc

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

.prettierrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"printWidth": 120,
5+
"bracketSpacing": true,
6+
"overrides": [
7+
{
8+
"files": "*.sol",
9+
"options": {
10+
"singleQuote": false
11+
}
12+
}
13+
]
14+
}

.solcover.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
mocha: {
3+
timeout: 30000
4+
},
5+
skipFiles: ['mocks']
6+
}

0 commit comments

Comments
 (0)