Skip to content

Commit 2c05ca6

Browse files
fabianschuzzzuhaibmohdJeffreyJoelleeftk0xNuggan
authored
Feat: Funding Pot (#741)
* init: create the funding pot v1 template * feat: funding pot admin authorization * test: add tests for funding pot contract * feat: add checks for granting and revoking roles * feat: add funding pot admin role check * test: add gherkin guide and unit tests * fix: add missing internal function to exposed_ * chore: remove redundant template code * test: remove unused test code * test: code format and unit tests * chore: apply PR review changes * Test: Add test for internal function * chore: remove redundant code * chore: inverter standard change * Feat: Add round creation and edit functions * feat: create and edit rounds implementation * test: add tests for the edit rounds functionality * fix: follow inverter standard and remove redundant code * fix: follow inverter standard and remove redundant code * fix: follow inverter standard and remove redundant code * feat: add access criteria implementation * test: code format & access control criteria unit tests * fix: inverter standard changes * fix: add bool to getRoundAccessCriteria() * fix: inverter standard changes * fix: inverter standard changes * fix: PR Review Fix#1 * fix: PR Review Fix#2 * fix: PR Review Fix#3 * fix: PR Review Fix#4 * fix:remove helper functions, fix stack too deep * fix:support interface issue and redundant param variables * chore: fmt * feat: setAccessCriteriaPrivilages() implementation * feat: update round contribution functionality * test: add unhappy paths for open access criteria * test: add unhappy paths for NFT, merkle root and allowed list access criteria * test: add all unhappy paths * test: add happy paths based on the technical specifications * fix:update code based on internal review * fix:initialise contributing token properly * feat: implement personal cap based on access criteria * add exposed functions * test: add fuzz tests for internal contribution functions * rebase changes * add closure logic * fix: fix broken tests * fix:fix all failing test * fix:rename accessId to accessCriteriaId * fix: fix warning * fix:remove unecessary helper function * fix:add tests for exposed functions * test: add gherkin comments to contribution tests * fix:add todos for jeffrey * feat: change allowed addresses array to mapping in AccessCriteria struct * fix: PR Review Fix#1 * fix: PR Review Fix#2 * fix: fix the personal cap rollover issue * fix: remove redundant code * fix: PR Review Fix#3 * fix: PR Review Fix#4 * PR Review Fix#5 * fix: git rebase * test: add unit tests closeRound * fix: code format and unit tests * fix: mock the bonding curve token * fix: PR Review fixes#1 * fix: PR Review fixes#2 * fix: accessId unit test bug * fix: PR Review fixes#3 * fix: PR Review fixes#4 * fix: unit test closeround via mock * fix: PR Review Fix * fix: PR Review Fix: add batches for creating payment orders * fix: fix stack too deep error * PR Review Fix: format and code cleanup * fix:gas/contract optimziations * fix: PR feedback * fix: PR Review * chore: `contributeToRound` => `contributeToRoundFor` * fix: consistent uint64 for roundId * chore: formatting * fix: remove mock contract * fix: remove file * chore: remove unused variables * fix: e2e test debug * test: Funding Pot E2E test * fix: minor bug fixes * chore: rebase * test: add e2e test * fix: add lifecycle test and fix set up * fix: add notes to e2e * fix: compile issues * chore: e2e test closeround * test: improve test coverage * chore: merge branch contribute and close functionality * fix: fix merge changes * chore: rebase contribute-close onto dev * fix: fix rebase issues * fix: fix failing test * tests: improve test coverage * chore: code format * chore: code format & fix minor bugs * chore: Remove stale/irrelevant values in set/edit roundAccessCriteria * chore: add support for multiple access control criteria * fix: fix double underscore styling issue * chore: change 'accessId' to 'accessCriteriaId' in the test file * chore: convert necessary getter functions from internal to external * fix: add missing assertion for e2e test * fix: add optimization to reduce contract size * feat: accumulation mode * chore: adds tests for accumulation mode behavior * feat: globally configurable start for accumulation logic * fix: mode-specific logic & tests * chore: contract size excess 879 -> 239 * chore: custom compiler settings for FP * fix: adds missing additional_compiler_profiles * fix: max personal cap defined by highest access criteria * chore: test structure cleanup * chore: fmt * chore: removes redundant code * fix: compiler warnings * chore: remove redundant check on zero contribution * chore: fmt * fix: `>=` instead of `==` * fix: merge conflicts * fix: audit fixes #1 * fix: audit fixes 2 * Feat/contract resizing (#769) * fix: new audit fixes 1 * fix: new audit fixes 2 * fix: new audit fixes 3 * fix: audit fixes 4 * fix: new audit fixes 4 -remove unneccessary code * fix: new audit fixes 5 * fix: new audit fixes 5: add getter function * fix: contract size fix 1 * fix: contract size fix 2: remove getter functions and make public * fix: contract size fix 3 * fix: contract size fix 3: if condition * contract resizing * chore:remove uncommented tests * chore:remove hook validation --------- Co-authored-by: Zuhaib Mohammed <zzzuhaibmohd@gmail.com> Co-authored-by: Jeffrey Owoloko <72028836+JeffreyJoel@users.noreply.github.com> Co-authored-by: JeffreyJoel <jowoloko@gmail.com> * chore: format --------- Co-authored-by: Zuhaib Mohammed <zzzuhaibmohd@gmail.com> Co-authored-by: JeffreyJoel <jowoloko@gmail.com> Co-authored-by: Leandro Faria <lee.lara1219@gmail.com> Co-authored-by: leeftk <40748420+leeftk@users.noreply.github.com> Co-authored-by: Jeffrey Owoloko <72028836+JeffreyJoel@users.noreply.github.com> Co-authored-by: 0xNuggan <82726722+0xNuggan@users.noreply.github.com>
1 parent af86c8d commit 2c05ca6

10 files changed

Lines changed: 8683 additions & 0 deletions

File tree

foundry.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ optimizer = true
1010
optimizer_runs = 750
1111
via_ir = false
1212

13+
additional_compiler_profiles = [ { name = "large-contracts", optimizer = true, optimizer_runs = 100 } ]
14+
compilation_restrictions = [
15+
{ paths = "src/modules/logicModule/LM_PC_FundingPot_v1.sol", optimizer = true, optimizer_runs = 100 },
16+
]
17+
1318
[fuzz]
1419
runs = 256
1520

0 commit comments

Comments
 (0)