Skip to content

Commit

Permalink
chore: config files and lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
pierobassa committed Jun 11, 2024
1 parent 1291842 commit 44fee03
Show file tree
Hide file tree
Showing 8 changed files with 9,249 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parser": "@typescript-eslint/parser",
"extends": ["prettier", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-parameter-properties": 0,
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-var-requires": "off"
}
}
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
node_modules
.env
coverage
coverage.json
typechain
typechain-types

# Hardhat files
cache
artifacts
.vscode/*

docs

config/local.ts
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.10.0
8 changes: 8 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
arrowParens: "avoid"
bracketSameLine: true
bracketSpacing: true
singleQuote: false
trailingComma: "all"
semi: false
tabWidth: 2
printWidth: 120
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SHELL := /bin/bash

# Thor solo
solo-up: #@ Start Thor solo
docker compose up -d --wait thor-solo
solo-down: #@ Stop Thor solo
docker compose down
44 changes: 44 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import Vot3ContractJson from "./artifacts/contracts/VOT3.sol/VOT3.json"
import VoterRewardsContractJson from "./artifacts/contracts/VoterRewards.sol/VoterRewards.json"
import B3trContractJson from "./artifacts/contracts/B3TR.sol/B3TR.json"
import GalaxyMemberContractJson from "./artifacts/contracts/GalaxyMember.sol/GalaxyMember.json"
import EmissionsContractJson from "./artifacts/contracts/Emissions.sol/Emissions.json"
import B3TRGovernorJson from "./artifacts/contracts/B3TRGovernor.sol/B3TRGovernor.json"
import TimeLockContractJson from "./artifacts/contracts/TimeLock.sol/TimeLock.json"
import XAllocationPoolJson from "./artifacts/contracts/XAllocationPool.sol/XAllocationPool.json"
import XAllocationVotingJson from "./artifacts/contracts/XAllocationVoting.sol/XAllocationVoting.json"
import XAllocationVotingGovernorJson from "./artifacts/contracts/x-allocation-voting-governance/XAllocationVotingGovernor.sol/XAllocationVotingGovernor.json"
import TreasuryContractJson from "./artifacts/contracts/Treasury.sol/Treasury.json"
import X2EarnAppsJson from "./artifacts/contracts/X2EarnApps.sol/X2EarnApps.json"
import TreasuryJson from "./artifacts/contracts/Treasury.sol/Treasury.json"

export {
VOT3__factory,
VoterRewards__factory,
B3TR__factory,
GalaxyMember__factory,
Emissions__factory,
B3TRGovernor__factory,
TimeLock__factory,
XAllocationPool__factory,
XAllocationVoting__factory,
XAllocationVotingGovernor__factory,
X2EarnApps__factory,
Treasury__factory,
} from "./typechain-types"

export {
Vot3ContractJson,
VoterRewardsContractJson,
B3trContractJson,
GalaxyMemberContractJson,
EmissionsContractJson,
B3TRGovernorJson,
TimeLockContractJson,
XAllocationPoolJson,
XAllocationVotingJson,
XAllocationVotingGovernorJson,
TreasuryContractJson,
X2EarnAppsJson,
TreasuryJson,
}
13 changes: 13 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"declaration": true
},
"exclude": ["node_modules"]
}
Loading

0 comments on commit 44fee03

Please sign in to comment.