Skip to content

Commit 0832489

Browse files
fix: add removed npm dependencies locally
1 parent 75ec6d7 commit 0832489

300 files changed

Lines changed: 19774 additions & 378 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
artifacts/
2+
cache/
3+
dist/
4+
node_modules/
5+
typechain/
6+
7+
.dockerignore
8+
.env
9+
.env.example
10+
.gitignore
11+
Dockerfile
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ETHERSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1
2+
ROPSTEN_URL=https://eth-ropsten.alchemyapi.io/v2/<YOUR ALCHEMY KEY>
3+
PRIVATE_KEY=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
artifacts
2+
cache
3+
dist
4+
node_modules
5+
yarn.lock
6+
tsconfig.json
7+
slither.db.json
8+
coverage
9+
coverage.json
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint",
6+
"prettier"
7+
],
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/eslint-recommended",
11+
"plugin:@typescript-eslint/recommended",
12+
"plugin:prettier/recommended"
13+
],
14+
"rules": {
15+
"no-console": 1,
16+
"no-empty": 0,
17+
"@typescript-eslint/no-empty-interface": 0,
18+
"@typescript-eslint/no-explicit-any": 0,
19+
"@typescript-eslint/ban-ts-comment": 0,
20+
"@typescript-eslint/no-non-null-assertion": 0,
21+
"@typescript-eslint/ban-types": 0
22+
}
23+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
.env
3+
coverage
4+
coverage.json
5+
6+
#Hardhat files
7+
cache
8+
artifacts
9+
typechain-types
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
hardhat.config.ts
2+
scripts
3+
test

packages/bridge-contracts/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18.15.0
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"singleQuote": false,
5+
"printWidth": 140,
6+
"useTabs": false,
7+
"tabWidth": 4
8+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "solhint:default",
3+
"rules": {
4+
"max-line-length": ["error", 150]
5+
}
6+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM node:18.16.1 as install
2+
ARG NPM_TOKEN
3+
ENV NPM_TOKEN ${NPM_TOKEN}
4+
5+
WORKDIR /app
6+
COPY ["package.json", "yarn.lock", "./"]
7+
RUN yarn
8+
9+
FROM install as build
10+
COPY . .
11+
RUN yarn hardhat compile
12+
RUN yarn build
13+
14+
FROM build as test
15+
RUN yarn lint
16+
RUN yarn test
17+
18+
FROM test as analyze
19+
RUN apt update
20+
RUN apt install python3-pip -y
21+
RUN pip3 install slither-analyzer==0.9.3 --break-system-packages
22+
RUN slither /app --fail-medium
23+
RUN touch /app/analyze.lock
24+
25+
FROM test as publish
26+
COPY --from=analyze /app/analyze.lock .
27+
RUN npm publish | true

0 commit comments

Comments
 (0)