12 Commits

Author SHA1 Message Date
Râu Cao
d63f7ca743
Add reinitializer for upgrades to Contributor
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Release Drafter / Update release notes draft (pull_request) Successful in 4s
In order to be able to re-initialize the upgraded contract with the
profile manager address, we need a new re-initializer function that is
automatically allowed to only be executed once per contract
implementation version.

Co-authored-by: Michael Bumann <hello@michaelbumann.com>
2023-04-27 11:11:30 +02:00
Râu Cao
2692613b9a
Fix variable sort order in contract
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Release Drafter / Update release notes draft (pull_request) Successful in 4s
New variables have to be added at the end, because otherwise the
existing slots would be mixed up.

Co-authored-by: Michael Bumann <hello@michaelbumann.com>
2023-04-27 11:05:57 +02:00
Râu Cao
708515ba4b
Add emit statement for event 2023-04-26 15:46:41 +02:00
Râu Cao
093273f15b
Allow a profile manager key to add contributor profiles
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
The profile manager is usually a bot that can also auth users against
external sources to prevent spam and integrate with existing Web
services.
2023-03-22 19:11:37 +07:00
Râu Cao
5da710cc14
Use uint32 for kreditsWithdrawn
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Same as the properties and functions in the Contribution contract
2022-08-27 10:29:56 +02:00
Râu Cao
2b3fd1241d
WIP Remove claims, add withdrawals
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-08-25 11:44:38 +02:00
Râu Cao
cd07313679
Revert core flag change
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2022-08-23 13:14:19 +01:00
Râu Cao
de1574155c
Allow deployer to set a migration-done flag
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
* Save deployer's address on contract initialization
* Add modifier for requiring tx sender to be deployer
* Add migrationDone flag and function to set it to finished status
2022-08-23 12:15:16 +01:00
04fff0934d Explicit core check for the deployer account
The deployer account has the same rights as a core contributor. This is handled now explicitly in the addressIsCore function.
This allows us to run seeds and such from the deployer account.
2022-02-03 22:06:52 +01:00
15a08fdaec We need to use tx.origin to get the actual sender of the transaction (not an intermediary contract that talks to the other contract) 2021-09-28 15:10:05 +02:00
ffd4a5aeaf Permissions 2021-09-26 19:25:43 +02:00
a626409221 Move contracts to root level for hardhart usage
byebye aragon apps
2021-06-08 15:45:23 +02:00