generated from PaulRBerg/hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 52
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 #37 from gnosis/feat/v0.2.0
feat: v0.2.0
- Loading branch information
Showing
290 changed files
with
17,227 additions
and
20,342 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
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,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn dlx commitlint --edit $1 | ||
npx commitlint --edit $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,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn dlx lint-staged | ||
npx lint-staged |
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 @@ | ||
v22 |
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
Binary file not shown.
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,54 @@ | ||
version: "3.8" | ||
|
||
services: | ||
mongodb: | ||
image: mongo:latest | ||
container_name: mongodb | ||
ports: | ||
- "27017:27017" | ||
networks: | ||
- mongo-network | ||
volumes: | ||
- mongo-data:/data/db | ||
|
||
hashi_relayer: | ||
build: | ||
context: . | ||
dockerfile: packages/relayer/Dockerfile | ||
container_name: hashi_relayer | ||
networks: | ||
- mongo-network | ||
depends_on: | ||
- mongodb | ||
|
||
hashi_executor: | ||
build: | ||
context: . | ||
dockerfile: packages/executor/Dockerfile | ||
container_name: hashi_executor | ||
networks: | ||
- mongo-network | ||
depends_on: | ||
- mongodb | ||
|
||
hashi_reporter: | ||
build: | ||
context: . | ||
dockerfile: packages/reporter/Dockerfile | ||
container_name: hashi_reporter | ||
|
||
hashi_rpc: | ||
build: | ||
context: . | ||
dockerfile: packages/rpc/Dockerfile | ||
ports: | ||
- "3000:3000" | ||
container_name: hashi_rpc | ||
|
||
networks: | ||
mongo-network: | ||
driver: bridge | ||
|
||
volumes: | ||
mongo-data: | ||
driver: local |
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,23 +1,12 @@ | ||
{ | ||
"private": true, | ||
"name": "hashi", | ||
"description": "", | ||
"author": { | ||
"name": "gnosis", | ||
"url": "https://github.com/gnosis" | ||
}, | ||
"scripts": { | ||
"prepare": "husky install", | ||
"preinstall": "yarn contracts:install", | ||
"build": "yarn contracts:build", | ||
"test": "yarn contracts:test", | ||
"lint": "yarn contracts:lint", | ||
"coverage": "yarn contracts:coverage", | ||
"contracts:install": "cd packages/evm && yarn install", | ||
"contracts:build": "cd packages/evm && yarn build", | ||
"contracts:test": "cd packages/evm && yarn test", | ||
"contracts:lint": "cd packages/evm && yarn lint", | ||
"contracts:coverage": "cd packages/evm && yarn coverage" | ||
"prepare": "husky install" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.5.1", | ||
|
@@ -26,5 +15,8 @@ | |
"prettier": "^2.8.7", | ||
"prettier-plugin-solidity": "^1.0.0" | ||
}, | ||
"packageManager": "[email protected]" | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" | ||
} |
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,2 @@ | ||
**/dist | ||
**/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
extends: | ||
- "eslint:recommended" | ||
- "plugin:@typescript-eslint/eslint-recommended" | ||
- "plugin:@typescript-eslint/recommended" | ||
- "prettier" | ||
parser: "@typescript-eslint/parser" | ||
parserOptions: | ||
project: "tsconfig.json" | ||
plugins: | ||
- "@typescript-eslint" | ||
root: true | ||
rules: | ||
"@typescript-eslint/no-floating-promises": | ||
- error | ||
- ignoreIIFE: true | ||
ignoreVoid: true | ||
"@typescript-eslint/no-inferrable-types": "off" | ||
"@typescript-eslint/no-unused-vars": | ||
- error | ||
- argsIgnorePattern: "_" | ||
varsIgnorePattern: "_" |
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,2 @@ | ||
logs/ | ||
tsconfig.tsbuildinfo |
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,2 @@ | ||
**/dist | ||
**/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
bracketSpacing: true | ||
printWidth: 120 | ||
proseWrap: "always" | ||
singleQuote: false | ||
tabWidth: 2 | ||
trailingComma: "all" | ||
semi: 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,21 @@ | ||
# Common | ||
|
||
Common logic that will be used across multiple workspaces/packages. | ||
|
||
## Usage | ||
|
||
### Install | ||
|
||
Please make sure you have run `yarn install` on the root level. | ||
|
||
```sh | ||
cd ../.. # To the root level | ||
nvm use | ||
yarn install | ||
``` | ||
|
||
### Compile | ||
|
||
```sh | ||
yarn compile | ||
``` |
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 @@ | ||
{ | ||
"name": "@gnosis/hashi-common", | ||
"version": "0.1.0", | ||
"private": true, | ||
"author": { | ||
"name": "gnosis", | ||
"url": "https://github.com/gnosis" | ||
}, | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"postinstall": "yarn compile", | ||
"compile": "tsc", | ||
"lint": "eslint --ignore-path ./.eslintignore --ext .js,.ts .", | ||
"prettier:check": "prettier --check \"**/*.{js,json,md,sol,ts,yml}\"", | ||
"prettier:write": "prettier --write \"**/*.{js,json,md,sol,ts,yml}\"" | ||
}, | ||
"dependencies": { | ||
"viem": "^2.9.28", | ||
"winston": "^3.11.0" | ||
}, | ||
"devDependencies": { | ||
"@tsconfig/node22": "^22.0.0", | ||
"@types/node": "^20.8.9", | ||
"@typescript-eslint/eslint-plugin": "^6.7.5", | ||
"@typescript-eslint/parser": "^6.7.5", | ||
"eslint": "^8.51.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"prettier": "^3.0.3", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
Oops, something went wrong.