Commit de1b8f7
feat: membership sale (#328)
* add `SellPartyCardsAuthority`
* update deploy
* add a few tests
* update events and add helper functions
* update relevant abis
* fix tests
* add more tests
* add more tests
* update `isSaleActive` logic
* move Contributed event
* merge `AboveMaximumContributionsError` and `BelowMinimumContributionsError`
* remove redundant initial delegate check
* fix compile errors
* transfer contribution to Party and fix totalContribution
* update `ContributionRouter`
* fix `isSaleActive`
* fix tests and increase coverage
* fix test
* update contribute event
* fix event and tests
* tweaks
* increase coverage
* perf: optimize and refactor `SellPartyCardsAuthority` (#30)
* fix tests
* update delegate comments
* ensure contract is an authority before sale creation
* fix deploy
* emit `Finalized` if not enough room for another contribution
* style: rename `delegate` to `initialDelegate`
* fix(`SellPartyCardsAuthority`): mitigations (#329)
* Fix merge conflict
---------
Co-authored-by: Brian Le <brian@brianle.xyz>1 parent 6a1d972 commit de1b8f7
File tree
7 files changed
+1379
-5
lines changed- contracts
- authorities
- crowdfund
- utils
- deploy
- test
- authorities
- utils
- utils
7 files changed
+1379
-5
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | | - | |
82 | | - | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
26 | 34 | | |
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
33 | 48 | | |
34 | 49 | | |
35 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
352 | 363 | | |
353 | 364 | | |
354 | 365 | | |
| |||
685 | 696 | | |
686 | 697 | | |
687 | 698 | | |
688 | | - | |
| 699 | + | |
689 | 700 | | |
690 | 701 | | |
691 | 702 | | |
| |||
741 | 752 | | |
742 | 753 | | |
743 | 754 | | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
744 | 759 | | |
745 | 760 | | |
746 | 761 | | |
| |||
0 commit comments