Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/hackdays-io/toban into feat…
Browse files Browse the repository at this point in the history
…ure/activation
  • Loading branch information
tanapl committed Oct 3, 2024
2 parents b74700d + cd6588e commit a17155e
Show file tree
Hide file tree
Showing 38 changed files with 15,199 additions and 244 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/test-contract.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Test Contracts

on:
# mainブランチにプッシュされたとき、またはプルリクエストが作成されたときに実行
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install Yarn
run: npm install -g yarn

- name: Install dependencies
run: npm install
working-directory: ./pkgs/contract

- name: Run Hardhat tests
run: |
npx hardhat test > ./test-results.txt
echo "\`\`\`\n$(cat ./test-results.txt)" > ./comments
working-directory: ./pkgs/contract
env:
PRIVATE_KEY: "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"

# - name: Generate Gas Report
# run: |
# npx hardhat test --network hardhat > ./gas-report.txt
# echo "\n### Gas Report" >> ./comments
# echo "\`\`\`\n$(cat ./gas-report.txt)" >> ./comments
# working-directory: ./pkgs/contract

# - name: Upload Gas Report as Artifact
# uses: actions/upload-artifact@v3
# with:
# name: gas-report
# path: ./pkgs/contract/gas-report.txt

# # GitHub PRにテスト結果とガスレポートをコメントとして投稿
# - name: Post comments
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# URL: ${{ github.event.pull_request.html_url }}
# run: gh pr comment -F ./comments "${URL}"
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
**/artifacts
**/cache
**/coverage*
**/.next
**/.next
**/dist
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"recommendations": [
"esbenp.prettier-vscode",
"NomicFoundation.hardhat-solidity",
"tintinweb.solidity-visual-auditor"
"tintinweb.solidity-visual-auditor",
"jebbs.plantuml"
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
},
"[plantuml]": {
"editor.defaultFormatter": "jebbs.plantuml"
}
}
30 changes: 21 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,27 @@ These solutions were combined with ideas from [Hats Protocol](https://www.hatspr

### Sepolia

| Name | Address | Memo |
| ------------------ | ------------------------------------------ | ------------------ |
| SplitCreator | 0x8B262b2e81c2087c030cCCDe17F94C87a40bE75D | |
| FractionToken | 0xF03Cdf44e48621BA8F03A6a883137249Cbb4D544 | |
| TimeFrameHatModule | 0xe3946ec13631B04CF9AB3630d1c7165AC719de13 | |
| Forwarder | 0xbE914D66aF1D6B7C46e1dfB641E4adCb6205cFc2 | |
| Splits Factory | 0x80f1B766817D04870f115fEBbcCADF8DBF75E017 | From Splits |
| Hats | 0x3bc1A0Ad72417f2d411118085256fC53CBdDd137 | From Hats Protocol |
| NameWrapper | 0x0635513f179D50A207757E05759CbD106d7dFcE8 | From ENS |
| ContractAddress | Name | Memo |
| ------------------------------------------ | ----------------------- | ---- |
| 0x5d7a64Cc808294C516076d371685ed4E6aDd6337 | BigBang | |
| 0xb8f7ca7a5b1e457b8735884419e114f90d53e1d5 | FractionToken | |
| 0x8da1c0864962c5e26c99cf839b0dc48e39104568 | SplitsCreatorFactory | |
| 0xda9fbab4436e4124cd6ee6864d4b46d0dd412414 | SplitsCreatorIMPL | |
| 0xd4a66507ea8c8382fa8474ed6cae4163676a434a | HatsTimeFrameModuleIMPL | |
| 0x3bc1A0Ad72417f2d411118085256fC53CBdDd137 | Hats | |
| 0x0a3f85fa597B6a967271286aA0724811acDF5CD9 | HatsModuleFactory | |
| 0x80f1B766817D04870f115fEBbcCADF8DBF75E017 | PullSplitsFactory | |

### Holesky

| ContractAddress | Name | Memo |
| ------------------------------------------ | -------------------- | ---- |
| 0xa55410b75578c8941a76249c18c72167459253c7 | BigBang | |
| 0x143a4605b682ec096274cef9fde5b3c077498942 | FractionToken | |
| 0xea4ee24c8411a71a7ce2cd676e1f17ebe18c2a98 | SplitsCreatorFactory | |
| 0x3bc1A0Ad72417f2d411118085256fC53CBdDd137 | Hats | |
| 0xfE661c01891172046feE16D3a57c3Cf456729efA | HatsModuleFactory | |
| 0x80f1B766817D04870f115fEBbcCADF8DBF75E017 | PullSplitsFactory | |

## How to work

Expand Down
Loading

0 comments on commit a17155e

Please sign in to comment.