Skip to content

Commit

Permalink
feat: hybrid hardhat (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
bl0up authored Jun 3, 2024
1 parent c493ec0 commit 89334c0
Show file tree
Hide file tree
Showing 51 changed files with 14,622 additions and 1,113 deletions.
5 changes: 0 additions & 5 deletions .env.example

This file was deleted.

127 changes: 0 additions & 127 deletions .github/workflows/branch.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/solidity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Branch

on:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- 'v*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
actions: write
checks: write
contents: write
deployments: write
id-token: write
issues: write
discussions: write
packages: write
pages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write

jobs:
ci:
name: CI
uses: settlemint/smart-contracts-actions/.github/workflows/solidity.yml@main
secrets:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
docker-image-name: solidity-diamond-bond
runs-on: solidity-diamond-bond
ignition-module: 'ignition/modules/Diamond.ts'
subgraph-contract-address-key: 'DiamondModule#Diamond'
50 changes: 22 additions & 28 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,31 +1,3 @@
# Compiler files
cache/
out/

# Ignores development broadcast logs
!/broadcast
/broadcast/*/31337/
/broadcast/**/dry-run/

# Docs
docs/

# Dotenv file
.env

# Subgraphs
deployment.txt
deployment-anvil.txt
selectors-bond.txt
selectors-erc1155.txt
selectors-loupe.txt
selectors-ownership.txt
subgraph/subgraph.config.json
subgraph/node_modules
subgraph/generated
subgraph/build

.pnpm
node_modules
.env

Expand All @@ -40,6 +12,28 @@ node_modules
# solidity-coverage files
/coverage
/coverage.json
lcov.info

# Hardhat Ignition default folder for deployments against a local node
ignition/deployments/chain-31337

# Compiler files
cache_forge/
out/

# Ignores development broadcast logs
!/broadcast
/broadcast/*/31337/
/broadcast/**/dry-run/

# Docs
docs/

# Dotenv file
.env

# Subgraphs
generated
build

.pnpm
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
url = https://github.com/openzeppelin/openzeppelin-contracts
[submodule "lib/prb-math"]
path = lib/prb-math
url = https://github.com/PaulRBerg/prb-math
url = https://github.com/PaulRBerg/prb-math
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.yaml
3 changes: 3 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "solhint:recommended"
}
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"nomicfoundation.hardhat-solidity",
"genieai.chatgpt-vscode",
"esbenp.prettier-vscode",
"dracula-theme.theme-dracula",
"cnshenj.vscode-task-manager",
"catppuccin.catppuccin-vsc-icons",
"catppuccin.catppuccin-vsc"
]
}
}
Loading

0 comments on commit 89334c0

Please sign in to comment.