Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnorman committed Apr 20, 2022
0 parents commit 5a79588
Show file tree
Hide file tree
Showing 25 changed files with 39,055 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .editorconfig
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
12 changes: 12 additions & 0 deletions .eslintrc.yml
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
63 changes: 63 additions & 0 deletions .gitattributes
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
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
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
155 changes: 155 additions & 0 deletions .gitignore
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/
7 changes: 7 additions & 0 deletions .mocharc.yaml
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'
12 changes: 12 additions & 0 deletions .npmignore
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
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.14.2
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"bracketSpacing": true,
"printWidth": 120,
"singleQuote": true,
"trailingComma": "all"
}
11 changes: 11 additions & 0 deletions .solhint.json
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 added LICENSE
Empty file.
Loading

0 comments on commit 5a79588

Please sign in to comment.