Skip to content

Commit

Permalink
Remove timelock (#41)
Browse files Browse the repository at this point in the history
* add nonce to governor proposals

* call it call_hash

* give the timelock the same nonce treatment

* remove the timelock in favor of an upgradeable governor
  • Loading branch information
moodysalem authored May 6, 2024
1 parent 105b71e commit 08cf001
Show file tree
Hide file tree
Showing 9 changed files with 221 additions and 898 deletions.
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,7 @@ Contracts in this repository are designed so that they may be used together _or_
- Proposers may only have one active proposal at any time
- The only thing stored regarding a proposal is the call that it makes, along with the metadata
- The single call can be to `Timelock#queue(calls)`, which may execute multiple calls
- The contract has no owner, and cannot be updated nor re-configured

#### Timelock

`Timelock` allows a list of calls to be executed after a configurable delay by its owner

- Anyone can execute the calls after a period of time, once queued by the owner
- The contract has an owner, and may be upgraded or configured via a call to self
- Designed to be the principal agent in representation of the DAO, i.e. hold all assets

#### Factory

`Factory` creates the set of governance contracts (`Staker`, `Timelock`, `Governor`) in a single call.
- The contract can be reconfigured or upgraded via calls to self

## Testing

Expand Down
151 changes: 0 additions & 151 deletions src/e2e_test.cairo

This file was deleted.

120 changes: 0 additions & 120 deletions src/factory.cairo

This file was deleted.

75 changes: 0 additions & 75 deletions src/factory_test.cairo

This file was deleted.

Loading

0 comments on commit 08cf001

Please sign in to comment.