Skip to content

Feat: Funding Pot #741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 126 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
a20b087
init: create the funding pot v1 template
zzzuhaibmohd Mar 6, 2025
fdec788
feat: funding pot admin authorization
zzzuhaibmohd Mar 6, 2025
5fea6e6
test: add tests for funding pot contract
JeffreyJoel Mar 7, 2025
64fdd6a
feat: add checks for granting and revoking roles
JeffreyJoel Mar 7, 2025
c641ddd
feat: add funding pot admin role check
zzzuhaibmohd Mar 7, 2025
5da9352
test: add gherkin guide and unit tests
zzzuhaibmohd Mar 7, 2025
a07596a
fix: add missing internal function to exposed_
zzzuhaibmohd Mar 7, 2025
29a6971
chore: remove redundant template code
JeffreyJoel Mar 8, 2025
307303d
test: remove unused test code
JeffreyJoel Mar 8, 2025
0afb10c
test: code format and unit tests
zzzuhaibmohd Mar 10, 2025
6d2fe12
chore: apply PR review changes
zzzuhaibmohd Mar 11, 2025
3388d2f
Test: Add test for internal function
JeffreyJoel Mar 11, 2025
edadf3a
chore: remove redundant code
zzzuhaibmohd Mar 12, 2025
2deacdc
chore: inverter standard change
zzzuhaibmohd Mar 14, 2025
03694d1
Feat: Add round creation and edit functions
JeffreyJoel Mar 12, 2025
cf292e5
feat: create and edit rounds implementation
zzzuhaibmohd Mar 17, 2025
ce9b04a
test: add tests for the edit rounds functionality
JeffreyJoel Mar 18, 2025
a5b4ce7
fix: follow inverter standard and remove redundant code
zzzuhaibmohd Mar 18, 2025
10cc1ea
fix: follow inverter standard and remove redundant code
JeffreyJoel Mar 20, 2025
b058ca0
fix: follow inverter standard and remove redundant code
JeffreyJoel Mar 20, 2025
23097bf
feat: add access criteria implementation
zzzuhaibmohd Mar 24, 2025
5962650
test: code format & access control criteria unit tests
zzzuhaibmohd Mar 24, 2025
72a3f18
fix: inverter standard changes
zzzuhaibmohd Mar 25, 2025
e683568
fix: add bool to getRoundAccessCriteria()
zzzuhaibmohd Mar 25, 2025
48cedee
fix: inverter standard changes
JeffreyJoel Mar 25, 2025
3179ce5
fix: inverter standard changes
JeffreyJoel Mar 25, 2025
9c8e42a
fix: PR Review Fix#1
zzzuhaibmohd Mar 29, 2025
f0a6ec6
fix: PR Review Fix#2
zzzuhaibmohd Mar 29, 2025
eeb5550
fix: PR Review Fix#3
zzzuhaibmohd Mar 29, 2025
7c26bd4
fix: PR Review Fix#4
zzzuhaibmohd Mar 30, 2025
72828fa
fix:remove helper functions, fix stack too deep
leeftk Apr 3, 2025
e27dd6e
fix:support interface issue and redundant param variables
leeftk Apr 3, 2025
b1359df
chore: fmt
fabianschu Apr 7, 2025
7a2dc31
feat: setAccessCriteriaPrivilages() implementation
zzzuhaibmohd Mar 26, 2025
f879c61
feat: update round contribution functionality
JeffreyJoel Mar 27, 2025
e7a62d6
test: add unhappy paths for open access criteria
JeffreyJoel Mar 28, 2025
9bb1b68
test: add unhappy paths for NFT, merkle root and allowed list access …
JeffreyJoel Mar 28, 2025
cdc89eb
test: add all unhappy paths
JeffreyJoel Mar 29, 2025
1148b7a
test: add happy paths based on the technical specifications
JeffreyJoel Mar 31, 2025
2165837
fix:update code based on internal review
JeffreyJoel Apr 2, 2025
c1dc60e
fix:initialise contributing token properly
JeffreyJoel Apr 2, 2025
ec45c83
feat: implement personal cap based on access criteria
JeffreyJoel Apr 2, 2025
e772013
add exposed functions
JeffreyJoel Apr 4, 2025
9269186
test: add fuzz tests for internal contribution functions
JeffreyJoel Apr 4, 2025
a53efd1
rebase changes
JeffreyJoel Apr 6, 2025
83335ac
add closure logic
JeffreyJoel Apr 7, 2025
2ca7684
fix: fix broken tests
leeftk Apr 7, 2025
c9840ba
fix:fix all failing test
leeftk Apr 7, 2025
dfaf4d3
fix:rename accessId to accessCriteriaId
leeftk Apr 7, 2025
bb6dc44
fix: fix warning
leeftk Apr 7, 2025
4f94b42
fix:remove unecessary helper function
leeftk Apr 7, 2025
7f6d04a
fix:add tests for exposed functions
leeftk Apr 8, 2025
2c8d2a1
test: add gherkin comments to contribution tests
JeffreyJoel Apr 8, 2025
92e1ce1
fix:add todos for jeffrey
leeftk Apr 9, 2025
f29e312
feat: change allowed addresses array to mapping in AccessCriteria struct
JeffreyJoel Apr 10, 2025
aace8fd
fix: PR Review Fix#1
zzzuhaibmohd Apr 13, 2025
930ba9e
fix: PR Review Fix#2
zzzuhaibmohd Apr 14, 2025
25b66df
fix: fix the personal cap rollover issue
JeffreyJoel Apr 15, 2025
892cbee
fix: remove redundant code
JeffreyJoel Apr 15, 2025
8740dd6
fix: PR Review Fix#3
JeffreyJoel Apr 17, 2025
8d18c85
fix: PR Review Fix#4
JeffreyJoel Apr 18, 2025
760f6ef
PR Review Fix#5
JeffreyJoel Apr 21, 2025
da88e99
fix: git rebase
zzzuhaibmohd Apr 18, 2025
d79bd6e
test: add unit tests closeRound
zzzuhaibmohd Apr 18, 2025
23ac110
fix: code format and unit tests
zzzuhaibmohd Apr 18, 2025
ae54934
fix: mock the bonding curve token
zzzuhaibmohd Apr 18, 2025
3867160
fix: PR Review fixes#1
zzzuhaibmohd Apr 19, 2025
bd83c80
fix: PR Review fixes#2
zzzuhaibmohd Apr 20, 2025
ba65889
fix: accessId unit test bug
zzzuhaibmohd Apr 21, 2025
dc87617
fix: PR Review fixes#3
zzzuhaibmohd Apr 21, 2025
709ff0f
fix: PR Review fixes#4
zzzuhaibmohd Apr 22, 2025
31008f7
fix: unit test closeround via mock
zzzuhaibmohd Apr 23, 2025
f7f1910
fix: PR Review Fix
zzzuhaibmohd Apr 24, 2025
0351adf
fix: PR Review Fix: add batches for creating payment orders
zzzuhaibmohd Apr 24, 2025
7315c01
fix: fix stack too deep error
JeffreyJoel Apr 24, 2025
4dabde0
PR Review Fix: format and code cleanup
zzzuhaibmohd Apr 25, 2025
3459516
fix:gas/contract optimziations
leeftk Apr 28, 2025
9ffc336
fix: PR feedback
JeffreyJoel Apr 28, 2025
531c299
fix: PR Review
zzzuhaibmohd Apr 29, 2025
c272662
chore: `contributeToRound` => `contributeToRoundFor`
fabianschu Apr 29, 2025
dad6eb3
fix: consistent uint64 for roundId
fabianschu Apr 29, 2025
d375cc3
chore: formatting
fabianschu Apr 29, 2025
d28a72f
fix: remove mock contract
zzzuhaibmohd Apr 30, 2025
f5547f3
fix: remove file
zzzuhaibmohd Apr 30, 2025
5f42fbb
chore: remove unused variables
JeffreyJoel Apr 30, 2025
584f9e0
fix: e2e test debug
zzzuhaibmohd Apr 26, 2025
9d6f1e3
test: Funding Pot E2E test
zzzuhaibmohd Apr 28, 2025
19007da
fix: minor bug fixes
zzzuhaibmohd Apr 28, 2025
e2bd75c
chore: rebase
zzzuhaibmohd Apr 29, 2025
5751501
test: add e2e test
JeffreyJoel Apr 9, 2025
cf62849
fix: add lifecycle test and fix set up
leeftk Apr 9, 2025
bcfc6b6
fix: add notes to e2e
leeftk Apr 14, 2025
9b62a15
fix: compile issues
zzzuhaibmohd Apr 22, 2025
27466cf
chore: e2e test closeround
zzzuhaibmohd Apr 22, 2025
367e685
test: improve test coverage
JeffreyJoel Apr 21, 2025
8d33235
chore: merge branch contribute and close functionality
JeffreyJoel Apr 23, 2025
a16f13d
fix: fix merge changes
JeffreyJoel Apr 23, 2025
707fcbb
chore: rebase contribute-close onto dev
JeffreyJoel Apr 25, 2025
5f8e127
fix: fix rebase issues
JeffreyJoel Apr 30, 2025
1218cec
fix: fix failing test
JeffreyJoel Apr 30, 2025
d6daec1
tests: improve test coverage
JeffreyJoel May 1, 2025
a9d9a7f
chore: code format
zzzuhaibmohd May 1, 2025
b419bc8
chore: code format & fix minor bugs
zzzuhaibmohd May 1, 2025
8ac8cb9
chore: Remove stale/irrelevant values in set/edit roundAccessCriteria
zzzuhaibmohd May 5, 2025
398a9fc
chore: add support for multiple access control criteria
zzzuhaibmohd May 6, 2025
8ad0cd5
fix: fix double underscore styling issue
JeffreyJoel May 6, 2025
be5acae
chore: change 'accessId' to 'accessCriteriaId' in the test file
JeffreyJoel May 6, 2025
57d3a44
chore: convert necessary getter functions from internal to external
JeffreyJoel May 7, 2025
3928fc1
fix: add missing assertion for e2e test
zzzuhaibmohd May 13, 2025
099fe3f
fix: add optimization to reduce contract size
zzzuhaibmohd May 13, 2025
3f1bd06
feat: accumulation mode
fabianschu May 15, 2025
8682631
chore: adds tests for accumulation mode behavior
fabianschu May 15, 2025
f36024b
feat: globally configurable start for accumulation logic
fabianschu May 15, 2025
c44e206
fix: mode-specific logic & tests
fabianschu May 15, 2025
f033a53
chore: contract size excess 879 -> 239
fabianschu May 16, 2025
fd065ca
chore: custom compiler settings for FP
fabianschu May 18, 2025
881630c
fix: adds missing additional_compiler_profiles
fabianschu May 18, 2025
4145835
fix: max personal cap defined by highest access criteria
fabianschu May 19, 2025
a943aef
chore: test structure cleanup
fabianschu May 19, 2025
198f733
chore: fmt
fabianschu May 19, 2025
fb1ad69
chore: removes redundant code
fabianschu May 19, 2025
e29de85
fix: compiler warnings
fabianschu May 19, 2025
240f52e
chore: remove redundant check on zero contribution
fabianschu May 22, 2025
2a5371f
chore: fmt
fabianschu May 22, 2025
6d3384b
fix: `>=` instead of `==`
fabianschu May 22, 2025
8dda04f
fix: merge conflicts
fabianschu May 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ optimizer = true
optimizer_runs = 750
via_ir = false

additional_compiler_profiles = [ { name = "large-contracts", optimizer = true, optimizer_runs = 100 } ]
compilation_restrictions = [
{ paths = "src/modules/logicModule/LM_PC_FundingPot_v1.sol", optimizer = true, optimizer_runs = 100 },
]

[fuzz]
runs = 256

Expand Down
Loading