Skip to content

Commit

Permalink
open source
Browse files Browse the repository at this point in the history
  • Loading branch information
nknavkal committed Aug 29, 2024
0 parents commit becb305
Show file tree
Hide file tree
Showing 54 changed files with 15,780 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ALCHEMY_API_KEY=
ETHERSCAN_API_KEY=
BASE_SCAN_API_KEY=
OPTIMISM_SCAN_API_KEY=
OPTIMISM_BLOCKSCOUT_API_KEY=
DEPLOYER_PRIVATE_KEY=
INTENT_CREATOR_PRIVATE_KEY=
PROVER_PRIVATE_KEY=
CLAIMANT_PRIVATE_KEY=
SOLVER_PRIVATE_KEY=
RECIPIENT_PRIVATE_KEY=
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
artifacts
cache
coverage
typechain-types
dist
templates
*.spec.ts
56 changes: 56 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
module.exports = {
env: {
browser: false,
es2021: true,
mocha: true,
node: true,
},
extends: [
'standard',
'plugin:prettier/recommended',
'plugin:node/recommended',
],
plugins: ['@typescript-eslint', 'mocha', 'chai-friendly'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
},
rules: {
'no-useless-constructor': 0,
'no-unused-expressions': 0,
'no-plusplus': 0,
'prefer-destructuring': 0,
'mocha/no-exclusive-tests': 'error',
'chai-friendly/no-unused-expressions': 2,
'no-multiple-empty-lines': [
'error',
{
max: 1,
maxEOF: 0,
maxBOF: 0,
},
],
'node/no-unsupported-features/es-syntax': [
'error',
{ ignores: ['modules'] },
],
'node/no-missing-import': [
'error',
{
allowModules: [],
tryExtensions: ['.js', '.json', '.node', '.ts', '.d.ts'],
},
],
'node/no-missing-require': [
'error',
{
allowModules: [],
tryExtensions: ['.js', '.json', '.node', '.ts', '.d.ts'],
},
],
camelcase: 0,
},
globals: {
ethers: 'readonly',
},
}
62 changes: 62 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Ecoism CI Tests

on: [push]

jobs:
lint:
name: Eslint, prettier and solhint
runs-on: ubuntu-latest

steps:
- name: checkout code
uses: actions/checkout@v3

- name: install node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"

- name: install dependencies
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command

- name: build project
uses: borales/actions-yarn@v4
with:
cmd: build # will run `yarn build` command

- name: check lint
uses: borales/actions-yarn@v4
with:
cmd: format # will run `yarn format` command

tests:
name: Test Suite
runs-on: ubuntu-latest

steps:
- name: checkout code
uses: actions/checkout@v3

- name: install node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"

- name: install dependencies
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command

- name: build project
uses: borales/actions-yarn@v4
with:
cmd: build # will run `yarn build` command

- name: Run Test
uses: borales/actions-yarn@v4
with:
cmd: test # will run `yarn build` command
98 changes: 98 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Document directory generated by @primitivefi/hardhat-dodoc
# docs

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

#Types for contracts
typechain-types

*~
build/
cover-run
coverage.json
.jsbeautifyrc
.vscode
artifacts
cache/
out/
typechain/
.DS_Store


#Publish artifacts
package
lib
libTest

# docs
docs
# Slither generated artifacts
docs/slither/contract-summary.txt
docs/slither/variable-order.txt
docs/slither/vulnerability.txt

# Gas Reports
# docs/gasReport.txt
#Deployment data
deploy/deployments

# outputs
output/proofGenerationOutput.json

# OpenZeppelin
.openzeppelin/dev-*.json
.openzeppelin/.session
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/hydrogen
Loading

0 comments on commit becb305

Please sign in to comment.