generated from citydaoproject/contracts-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5a79588
Showing
25 changed files
with
39,055 additions
and
0 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,63 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# End every file with a newline | ||
[*] | ||
insert_final_newline = true | ||
|
||
[{*.css,*.less,*.scss}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.graphql] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{*.html,*.hbs}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{*.java,*.kt,*.kts}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{*.ts,*.tsx}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{*.js,*.jsx,*.json}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.sol] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.xml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{*.yml,*.yaml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Matches the exact files either package.json or .travis.yml | ||
[{package.json,.travis.yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Makefiles | ||
[Makefile] | ||
indent_style = tab | ||
indent_size = 2 | ||
|
||
# Vagrant files | ||
[Vagrantfile] | ||
indent_style = space | ||
indent_size = 2 |
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,12 @@ | ||
env: | ||
browser: true | ||
es2021: true | ||
parser: '@typescript-eslint/parser' | ||
parserOptions: | ||
ecmaVersion: 12 | ||
sourceType: module | ||
plugins: | ||
- '@typescript-eslint' | ||
- prettier | ||
rules: | ||
'prettier/prettier': error |
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,63 @@ | ||
# Common settings from https://github.com/Danimoth/gitattributes | ||
|
||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto | ||
|
||
################################################################################ | ||
### project-specific.gitattributes | ||
################################################################################ | ||
|
||
|
||
|
||
|
||
################################################################################ | ||
### documents.gitattributes | ||
################################################################################ | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain | ||
*.md text | ||
*.adoc text | ||
*.textile text | ||
*.mustache text | ||
*.csv text | ||
*.tab text | ||
*.tsv text | ||
*.sql text | ||
|
||
|
||
|
||
|
||
################################################################################ | ||
### graphics.gitattributes | ||
################################################################################ | ||
*.png binary | ||
*.jpg binary | ||
*.jpeg binary | ||
*.gif binary | ||
*.tif binary | ||
*.tiff binary | ||
*.ico binary | ||
*.svg binary | ||
*.eps binary | ||
|
||
|
||
|
||
|
||
################################################################################ | ||
### shell.gitattributes | ||
################################################################################ | ||
# Linux | ||
*.sh text eol=lf | ||
|
||
# Windows | ||
*.bat text eol=crlf | ||
*.cmd text eol=crlf | ||
*.ps1 text eol=crlf |
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,24 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [$default-branch] | ||
pull_request: | ||
branches: ['**'] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:16.13.1-alpine | ||
# this is the user that CI uses, which is needed to generate files within the repo directory | ||
options: --user 1001 | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build | ||
run: npm run build | ||
- name: Test | ||
run: npm run test -- --ci --maxWorkers=1 --reporters=default |
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,155 @@ | ||
# These .gitignore snippets come from: https://github.com/github/gitignore | ||
|
||
|
||
|
||
################################################################################ | ||
### project-specific.gitignore | ||
################################################################################ | ||
|
||
/tmp/ | ||
/build | ||
/types | ||
/artifacts | ||
/cache | ||
|
||
|
||
################################################################################ | ||
### OSX.gitignore | ||
################################################################################ | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
|
||
|
||
################################################################################ | ||
### Vim.gitignore | ||
################################################################################ | ||
# swap | ||
[._]*.s[a-w][a-z] | ||
[._]s[a-w][a-z] | ||
# persistent undo | ||
*.un~ | ||
# session | ||
Session.vim | ||
# temporary | ||
.netrwhist | ||
*~ | ||
|
||
|
||
################################################################################ | ||
### JetBrains.gitignore | ||
################################################################################ | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
# User-specific stuff: | ||
.idea/ | ||
*.iml | ||
|
||
# Gradle: | ||
.idea/gradle.xml | ||
.idea/libraries | ||
|
||
# Mongo Explorer plugin: | ||
.idea/mongoSettings.xml | ||
|
||
## File-based project format: | ||
*.iws | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
/out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
|
||
################################################################################ | ||
### Node.gitignore | ||
################################################################################ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Distribution output | ||
dist | ||
|
||
# Dependency directory | ||
node_modules | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
.sass-cache/ | ||
*.css.map | ||
|
||
|
||
################################################################################ | ||
### Serverless.gitignore | ||
################################################################################ | ||
|
||
.serverless/ | ||
|
||
|
||
################################################################################ | ||
### Vagrant.gitignore | ||
################################################################################ | ||
|
||
.vagrant/ |
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 @@ | ||
require: | ||
- 'hardhat' | ||
- './test/setup/ChaiSetup.ts' | ||
file: | ||
- './test/setup/AccountsLoader.ts' | ||
spec: | ||
- 'test/**/*.spec.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,12 @@ | ||
.idea | ||
node_modules | ||
spec | ||
src | ||
.editorconfig | ||
.eslintrc.yml | ||
.gitignore | ||
.prettierrc | ||
npm-debug.log | ||
tsconfig.json | ||
|
||
*.map |
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 @@ | ||
save-exact=true |
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 @@ | ||
16.14.2 |
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,6 @@ | ||
{ | ||
"bracketSpacing": true, | ||
"printWidth": 120, | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
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,11 @@ | ||
{ | ||
"extends": ["solhint:recommended"], | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"quotes": ["error", "single"], | ||
"compiler-version": ["error", "^0.8.0"], | ||
"reason-string": ["warn", { "maxLength": 128 }], | ||
"func-visibility": ["error", { "ignoreConstructors": true }], | ||
"prettier/prettier": "error" | ||
} | ||
} |
Empty file.
Oops, something went wrong.