Skip to content

Commit 854dbc6

Browse files
author
Maffaz
committed
[ALIGN]
1 parent ac007d1 commit 854dbc6

File tree

376 files changed

+88998
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

376 files changed

+88998
-0
lines changed

.commitlintrc.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
extends:
2+
- "@commitlint/config-conventional"

.czrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "cz-conventional-changelog"
3+
}

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# EditorConfig http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# All files
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
indent_size = 2
11+
indent_style = space
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
15+
[*.sol]
16+
indent_size = 4

.env.example

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
MNEMONIC="caught sniff chuckle survey divert happy crop brick obscure prevent injury loud"
2+
PK="{INSERT_STRING}"
3+
4+
INFURA_API_KEY="{INSERT_STRING}"
5+
ALCHEMY_KEY="{INSERT_STRING}"
6+
ETHERSCAN_API_KEY="{INSERT_STRING}"
7+
GASPRICE_API_ENDPOINT="(INSERT_STRING)"
8+
COINMARKETCAP_API_KEY="{INSERT_STRING}"
9+
10+
REPORT_GAS="true"
11+
GEN_DOCS="false"
12+
13+
# Deploy settings
14+
UNISWAP_ROUTER="0x0"
15+
# ERC20_TOKEN="0xECabAE592Eb56D96115FcF4c7F772ADB7BF573d0"
16+
# ERC20_TOKEN=mock
17+
ERC20_TOKEN=0x0038dD433c3D98D7d18E0345dF043c442D3b3D88
18+
RECIPIENT=0xe1fe7A4DBF33e6dA8c9e2628d102c67FB9E94549
19+
UNISWAP_ROUTER=mock
20+
21+
# Factory
22+
feeCreateCollection=1
23+
feeCreateSplitter=1
24+
feeCreateCollectionErc20=0.0003
25+
feeCreateSplitterErc20=0.0003
26+
27+
# Router
28+
feeBurn=1
29+
feeMint=1
30+
feeBurnErc20=0.0003
31+
feeMintErc20=0.0003

.eslintignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# directories
2+
.yarn/
3+
**/.coverage_artifacts
4+
**/.coverage_cache
5+
**/.coverage_contracts
6+
**/artifacts
7+
**/build
8+
**/cache
9+
**/coverage
10+
**/dist
11+
**/node_modules
12+
**/types
13+
14+
# files
15+
*.env
16+
*.log
17+
.pnp.*
18+
coverage.json
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*
22+
soljson-v0.8.4+commit.c7e474f2.js
23+
contracts/MADFactory1155.sol

.eslintrc.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
extends:
2+
- "eslint:recommended"
3+
- "plugin:@typescript-eslint/eslint-recommended"
4+
- "plugin:@typescript-eslint/recommended"
5+
- "prettier"
6+
parser: "@typescript-eslint/parser"
7+
parserOptions:
8+
project: "./tsconfig.json"
9+
plugins:
10+
- "@typescript-eslint"
11+
root: true
12+
rules:
13+
"@typescript-eslint/no-floating-promises":
14+
- error
15+
- ignoreIIFE: true
16+
ignoreVoid: true
17+
"@typescript-eslint/no-inferrable-types": "off"
18+
"@typescript-eslint/no-unused-vars":
19+
- error
20+
- argsIgnorePattern: "_"
21+
varsIgnorePattern: "_"

.github/workflows/forge.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
on: [push, pull_request]
2+
3+
# on:
4+
# push:
5+
# branches:
6+
# - main
7+
# pull_request:
8+
# Optionally configure to run only for changes in specific files. For example:
9+
# paths:
10+
# - src/**
11+
# - test/**
12+
# - foundry.toml
13+
# - remappings.txt
14+
# - .github/workflows/foundry-gas-diff.yml
15+
16+
name: Forge Tests
17+
18+
# https://github.com/Rubilmax/foundry-gas-diff
19+
env:
20+
# make fuzzing semi-deterministic to avoid noisy gas cost estimation
21+
# due to non-deterministic fuzzing (but still use pseudo-random fuzzing seeds)
22+
FOUNDRY_FUZZ_SEED: 0x${{ github.event.pull_request.base.sha || github.sha }}
23+
24+
25+
jobs:
26+
check:
27+
name: Foundry project
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v3
31+
with:
32+
submodules: recursive
33+
34+
- name: Install Foundry
35+
uses: foundry-rs/foundry-toolchain@v1
36+
37+
- name: Run tests
38+
run: forge test -vvv --gas-report
39+
40+
- name: Run snapshot
41+
run: forge snapshot

0 commit comments

Comments
 (0)