Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INFURA_API_KEY=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
MNEMONIC=here is where your twelve words mnemonic should be put my friend
18 changes: 18 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# directories
**/.coverage_artifacts
**/.coverage_cache
**/.coverage_contracts
**/artifacts
**/build
**/cache
**/coverage
**/dist
**/node_modules
**/types

# files
*.env
*.log
.pnp.*
coverage.json
npm-debug.log*
38 changes: 0 additions & 38 deletions .eslintrc.json

This file was deleted.

22 changes: 22 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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
ignorePatterns: ['.eslintrc.yaml', 'commitlint.config.js', 'commit-msg.js']
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: '_'
83 changes: 83 additions & 0 deletions .github/workflows/push_checking.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Tests workflow
on:
pull_request:
branches:
- develop
- staging
- production
jobs:
build:
env:
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
MNEMONIC: ${{ secrets.MNEMONIC }}
name: Build application
runs-on: ubuntu-latest
container: node:14
strategy:
matrix:
node-version: [14.x]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci
- name: Build application
run: npm run build

lint:
name: Lint sources
runs-on: ubuntu-latest
container: node:14
strategy:
matrix:
node-version: [14.x]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Lint sources
run:
npm run lint

unit_test:
env:
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
MNEMONIC: ${{ secrets.MNEMONIC }}
name: Unit tests
runs-on: ubuntu-latest
container: node:14
strategy:
matrix:
node-version: [14.x]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm ci
- name: Build application
run: npm run build
- name: Create types
run: npm run typechain
- name: Run tests
run: npm run test
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ coverageEnv
coverage.json
build
bin
types
cache
artifacts
.env

# IDEs
.idea/
.vscode/
.DS_Store

# NPM
gas-report
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
10 changes: 10 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
coverage/**/*.js
coverage/**/*.json
coverage.json
artifacts/**/*.json
cache/**/*.json
tests/format/**/*.sol
tests/format/RespectDefaultOptions/respect-default-options.js
src/prettier-comments/**/*.js
types/**/*.ts
build/**/*.json
10 changes: 10 additions & 0 deletions contracts/OnchainId.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/token/ERC20/ERC20.sol';

contract OnchainId is ERC20 {
constructor(uint256 initialSupply) ERC20('ONCHAINID', 'OID') {
_mint(msg.sender, initialSupply);
}
}
Loading