Skip to content

Commit ae92e39

Browse files
authored
Initial commit
0 parents  commit ae92e39

22 files changed

Lines changed: 368 additions & 0 deletions

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# http://editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
indent_style = space
9+
indent_size = 2
10+
end_of_line = lf
11+
charset = utf-8
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true
14+
15+
[{Makefile,**.mk}]
16+
# Use tabs for indentation (Makefiles require tabs)
17+
indent_style = tab

.env.example

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Deployment via ledger
2+
MNEMONIC_INDEX=
3+
LEDGER_SENDER=
4+
5+
# Deployment via private key
6+
PRIVATE_KEY=
7+
8+
# Test rpc_endpoints
9+
RPC_MAINNET=https://rpc.flashbots.net
10+
RPC_AVALANCHE=https://api.avax.network/ext/bc/C/rpc
11+
RPC_OPTIMISM=https://mainnet.optimism.io
12+
RPC_POLYGON=https://polygon-rpc.com
13+
RPC_ARBITRUM=https://arb1.arbitrum.io/rpc
14+
RPC_FANTOM=https://rpc.ftm.tools
15+
RPC_HARMONY=https://api.harmony.one
16+
RPC_METIS=https://andromeda.metis.io/?owner=1088
17+
RPC_BASE=https://mainnet.base.org
18+
RPC_ZKEVM=https://zkevm-rpc.com
19+
RPC_GNOSIS=https://rpc.gnosischain.com
20+
RPC_BNB=https://binance.llamarpc.com
21+
22+
# Etherscan api keys for verification & download utils
23+
ETHERSCAN_API_KEY_MAINNET=
24+
ETHERSCAN_API_KEY_POLYGON=
25+
ETHERSCAN_API_KEY_AVALANCHE=
26+
ETHERSCAN_API_KEY_FANTOM=
27+
ETHERSCAN_API_KEY_OPTIMISM=
28+
ETHERSCAN_API_KEY_ARBITRUM=
29+
ETHERSCAN_API_KEY_BASE=
30+
ETHERSCAN_API_KEY_ZKEVM=
31+
ETHERSCAN_API_KEY_GNOSIS=
32+
ETHERSCAN_API_KEY_BNB=
33+
34+

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Main workflow
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
uses: bgd-labs/github-workflows/.github/workflows/foundry-test.yml@main

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# build and cache
2+
cache/
3+
out/
4+
5+
# general
6+
.env
7+
8+
# editors
9+
.idea
10+
.vscode
11+
12+
# well, looks strange to ignore package-lock, but we have only pretter and it's temproray
13+
package-lock.json
14+
node_modules
15+
16+
# ignore foundry deploy artifacts
17+
broadcast/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "lib/forge-std"]
2+
path = lib/forge-std
3+
url = https://github.com/foundry-rs/forge-std

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
out
2+
lib
3+
cache
4+
node_modules

.prettierrc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"overrides": [
3+
{
4+
"files": "*.sol",
5+
"options": {
6+
"printWidth": 100,
7+
"tabWidth": 2,
8+
"useTabs": false,
9+
"singleQuote": true,
10+
"bracketSpacing": false
11+
}
12+
},
13+
{
14+
"files": "*.ts",
15+
"options": {
16+
"printWidth": 100,
17+
"tabWidth": 2,
18+
"useTabs": false,
19+
"singleQuote": true,
20+
"bracketSpacing": false
21+
}
22+
}
23+
]
24+
}

.solhint.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "solhint:recommended",
3+
"rules": {
4+
"compiler-version": ["error", "^0.8.0"],
5+
"func-visibility": ["warn", { "ignoreConstructors": true }],
6+
"compiler-fixed": false,
7+
"quotes": ["error", "single"],
8+
"indent": [2]
9+
}
10+
}

.solhintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2022 BGD Labs
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)