Skip to content

Commit

Permalink
Merge pull request #1 from GenerationSoftware/gen-821-port-twab-rewar…
Browse files Browse the repository at this point in the history
…ds-contract-over-to-v5

Port TwabRewards contract over to v5
  • Loading branch information
trmid committed Nov 3, 2023
2 parents be5137c + 40eea17 commit 682d2c2
Show file tree
Hide file tree
Showing 17 changed files with 1,516 additions and 77 deletions.
9 changes: 8 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
branch = v1.3.0
branch = v1
[submodule "lib/pt-v5-twab-controller"]
path = lib/pt-v5-twab-controller
url = https://github.com/GenerationSoftware/pt-v5-twab-controller
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/openzeppelin/openzeppelin-contracts
branch = release-v4.9
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"files": "*.sol",
"options": {
"compiler": "0.8.21",
"compiler": "0.8.19",
"bracketSpacing": true,
"printWidth": 120,
"tabWidth": 4
Expand Down
2 changes: 1 addition & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"plugins": ["prettier"],
"rules": {
"avoid-low-level-calls": "off",
"compiler-version": ["error", "0.8.21"],
"compiler-version": ["error", "0.8.19"],
"func-visibility": "off",
"no-empty-blocks": "off",
"no-inline-assembly": "off"
Expand Down
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ src = 'src'
out = 'out'
test = 'test'
libs = ['lib']
solc = "0.8.21"
solc = "0.8.19"
fs_permissions = [{ access = "read", path = "./broadcast" }]
gas_reports = ["Foo"]

Expand Down
1 change: 1 addition & 0 deletions lib/openzeppelin-contracts
Submodule openzeppelin-contracts added at 9329cf
1 change: 1 addition & 0 deletions lib/pt-v5-twab-controller
Submodule pt-v5-twab-controller added at bc3d86
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@pooltogether/foundry-template",
"name": "@generationsoftware/pt-v5-twab-rewards",
"version": "1.0.0",
"description": "Template to kickstart a Foundry project",
"description": "PoolTogether V5 TWAB Rewards Contract",
"author": {
"name": "PoolTogether Inc.",
"url": "https://github.com/pooltogether"
"name": "G9 Software Inc.",
"url": "https://github.com/GenerationSoftware"
},
"repository": {
"type": "git",
"url": "git+https://github.com/pooltogether/foundry-template.git"
"url": "git+https://github.com/GenerationSoftware/pt-v5-twab-rewards.git"
},
"scripts": {
"clean": "forge clean",
Expand Down
3 changes: 2 additions & 1 deletion remappings.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ds-test/=lib/forge-std/lib/ds-test/src/
forge-std/=lib/forge-std/src/
src/=src/
openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/
pt-v5-twab-controller/=lib/pt-v5-twab-controller/src/
16 changes: 0 additions & 16 deletions script/Foo.s.sol

This file was deleted.

8 changes: 0 additions & 8 deletions src/Foo.sol

This file was deleted.

0 comments on commit 682d2c2

Please sign in to comment.