-
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.
Merge pull request #295 from rsksmart/hardhat-migration
Hardhat migration -> QA-Test
- Loading branch information
Showing
112 changed files
with
18,963 additions
and
365,558 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 @@ | ||
node_modules/ |
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
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
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
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
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
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 @@ | ||
v20.15.1 |
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 |
---|---|---|
@@ -1,35 +1,44 @@ | ||
repos: | ||
- repo: https://github.com/gitleaks/gitleaks | ||
rev: v8.16.3 | ||
hooks: | ||
- id: gitleaks | ||
- repo: https://github.com/jumanjihouse/pre-commit-hooks | ||
rev: 3.0.0 | ||
hooks: | ||
- id: shellcheck | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: "trailing-whitespace" | ||
- id: "end-of-file-fixer" | ||
exclude: '\.tf\.json$' | ||
- id: "check-yaml" | ||
args: | ||
- "--unsafe" | ||
- id: "check-executables-have-shebangs" | ||
- id: "check-case-conflict" | ||
# Project specific | ||
- repo: local | ||
hooks: | ||
- id: code-style | ||
name: Project Style Check | ||
entry: npm run lint | ||
language: system | ||
types: [solidity] | ||
- repo: local | ||
hooks: | ||
- id: unit-tests | ||
name: Project Unit Tests | ||
entry: npm run test | ||
language: system | ||
types: [solidity, javascript] | ||
- repo: https://github.com/gitleaks/gitleaks | ||
rev: v8.16.3 | ||
hooks: | ||
- id: gitleaks | ||
- repo: https://github.com/jumanjihouse/pre-commit-hooks | ||
rev: 3.0.0 | ||
hooks: | ||
- id: shellcheck | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: "trailing-whitespace" | ||
- id: "end-of-file-fixer" | ||
exclude: '\.tf\.json$' | ||
- id: "check-yaml" | ||
args: | ||
- "--unsafe" | ||
- id: "check-executables-have-shebangs" | ||
- id: "check-case-conflict" | ||
# Project specific | ||
- repo: local | ||
hooks: | ||
- id: code-style | ||
name: Check contract code style | ||
entry: npm run lint:sol | ||
language: system | ||
types: [file] | ||
files: ^.*\.sol$ | ||
- repo: local | ||
hooks: | ||
- id: code-style | ||
name: Check typescript code style | ||
entry: npm run lint:ts | ||
language: system | ||
types: [file] | ||
files: ^.*\.ts$ | ||
- repo: local | ||
hooks: | ||
- id: unit-tests | ||
name: Project Unit Tests | ||
entry: npm run test | ||
language: system | ||
types: [solidity, ts] |
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,9 @@ | ||
build | ||
contracts | ||
typechain-types | ||
artifacts | ||
cache | ||
node_modules | ||
errorCodes.json | ||
coverage/ | ||
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 @@ | ||
{} |
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
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
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,27 @@ | ||
FROM node:20.15.1@sha256:6326b52a508f0d99ffdbfaa29a69380321b215153db6f32974835bac71b38fa4 | ||
|
||
RUN apt-get update -y && \ | ||
apt-get install -y -qq --no-install-recommends jq && \ | ||
apt-get clean | ||
|
||
USER node | ||
|
||
WORKDIR /home/node | ||
|
||
COPY --chown=node:node package.json \ | ||
package-lock.json \ | ||
deploy.sh \ | ||
.solhint.json \ | ||
hardhat.config.ts \ | ||
tsconfig.json \ | ||
addresses.json ./ | ||
|
||
RUN npm ci --ignore-scripts | ||
|
||
COPY --chown=node:node tasks ./tasks | ||
COPY --chown=node:node scripts ./scripts | ||
COPY --chown=node:node contracts ./contracts | ||
|
||
RUN npm run compile | ||
|
||
ENTRYPOINT [ "./deploy.sh" ] |
Oops, something went wrong.