-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit, NFT Omnibridge contracts version 1.0.0
- Loading branch information
0 parents
commit d78333c
Showing
75 changed files
with
11,032 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
**/node_modules | ||
.git | ||
.gitignore | ||
.dockerignore | ||
deploy/*.config | ||
deploy/*.env* | ||
!deploy/.env.example | ||
docker-compose.yml | ||
Dockerfile* | ||
*.log | ||
flats | ||
contracts.sublime-project | ||
contracts.sublime-workspace | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
build | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"extends": [ | ||
"plugin:node/recommended", | ||
"airbnb-base", | ||
"plugin:prettier/recommended" | ||
], | ||
"plugins": ["node"], | ||
"env": { | ||
"node" : true, | ||
"mocha" : true | ||
}, | ||
"globals" : { | ||
"artifacts": false, | ||
"contract": false, | ||
"assert": false, | ||
"web3": false | ||
}, | ||
"rules": { | ||
"no-plusplus": "off", | ||
"no-await-in-loop": "off", | ||
"no-shadow": "off", | ||
"prefer-destructuring": "off", | ||
"no-use-before-define": ["error", { "functions": false }], | ||
"no-restricted-syntax": "off", | ||
"node/no-unpublished-require": "off", | ||
"func-names": "off", | ||
"import/no-dynamic-require": "off", | ||
"global-require": "off", | ||
"no-loop-func": "off", | ||
"no-console": "off", | ||
"node/no-missing-require": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.sol linguist-language=Solidity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: omnibridge-nft-contracts | ||
|
||
on: [push] | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
task: [lint, test] | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
id: yarn-cache | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} | ||
- run: yarn | ||
if: ${{ !steps.yarn-cache.outputs.cache-hit }} | ||
- run: yarn ${{ matrix.task }} | ||
coverage: | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags') | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
id: yarn-cache | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} | ||
- run: yarn | ||
if: ${{ !steps.yarn-cache.outputs.cache-hit }} | ||
- run: yarn coverage | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
flats: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: get_release | ||
uses: bruceadams/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
id: yarn-cache | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} | ||
- run: yarn | ||
if: ${{ !steps.yarn-cache.outputs.cache-hit }} | ||
- run: yarn flatten | ||
- run: zip flats $(find flats -name '*.sol') | ||
- uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ steps.get_release.outputs.upload_url }} | ||
asset_path: flats.zip | ||
asset_name: omnibridge-nft-contracts-flattened-${{ steps.get_release.outputs.tag_name }}.zip | ||
asset_content_type: application/zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
node_modules | ||
build | ||
flats | ||
.idea | ||
coverage | ||
deploy/*.config | ||
deploy/*.env* | ||
!deploy/.env.example | ||
deploy/bridgeDeploymentResults.json | ||
coverage.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
14.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"printWidth": 120, | ||
"bracketSpacing": true, | ||
"overrides": [ | ||
{ | ||
"files": "*.sol", | ||
"options": { | ||
"singleQuote": false | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
mocha: { | ||
timeout: 30000 | ||
}, | ||
skipFiles: ['mocks'] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "solhint:recommended", | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"avoid-low-level-calls": "off", | ||
"no-inline-assembly": "off", | ||
"reason-string": "off", | ||
"func-visibility": ["warn", { "ignoreConstructors": true } ], | ||
"compiler-version": ["error", "0.7.5"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM node:14 as contracts | ||
|
||
WORKDIR /contracts | ||
|
||
COPY package.json yarn.lock ./ | ||
RUN yarn | ||
|
||
COPY truffle-config.js truffle-config.js | ||
COPY ./contracts ./contracts | ||
RUN yarn compile | ||
|
||
COPY flatten.sh flatten.sh | ||
RUN yarn flatten | ||
|
||
FROM node:14 | ||
|
||
WORKDIR /contracts | ||
|
||
COPY package.json yarn.lock ./ | ||
RUN yarn install --prod | ||
|
||
COPY --from=contracts /contracts/build ./build | ||
COPY --from=contracts /contracts/flats ./flats | ||
|
||
COPY deploy.sh deploy.sh | ||
COPY ./deploy ./deploy | ||
|
||
ENV PATH="/contracts/:${PATH}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM node:14 | ||
|
||
WORKDIR /contracts | ||
|
||
COPY package.json yarn.lock ./ | ||
RUN yarn | ||
|
||
COPY truffle-config.js truffle-config.js | ||
COPY ./contracts ./contracts | ||
RUN yarn compile | ||
|
||
COPY flatten.sh flatten.sh | ||
RUN yarn flatten | ||
|
||
COPY deploy.sh deploy.sh | ||
COPY ./deploy ./deploy | ||
COPY ./test ./test | ||
|
||
ENV PATH="/contracts/:${PATH}" |
Oops, something went wrong.