Skip to content

Commit

Permalink
Migrate timelock tests (#1061)
Browse files Browse the repository at this point in the history
* Remove unnecessary `mut`, minor fixes (#1032)

* clean up code

* change array syntax

* fix fmt

* Improve SNIP12 examples (#1036)

* docs: improve examples

* refactor: remove empty line

* Update docs/modules/ROOT/pages/guides/snip12.adoc

Co-authored-by: Andrew Fleming <[email protected]>

---------

Co-authored-by: Andrew Fleming <[email protected]>

* Release v0.15.0-rc.0 (#1039)

* feat: update CHANGELOG

* Bump version to 0.15.0-rc.0

* docs: add missing header

* feat: apply review suggestions

---------

Co-authored-by: ericnordelo <[email protected]>

* Bump cairo to 2.7.0-rc.1 (#1025)

* feat: migrate modules

* feat: delete cairo_project.toml

* feat: update tests

* feat: apply review updates

* fix: remove extra line

* feat: add CHANGELOG entry

* fix: CHANGELOG

* Bump Scarb to 2.7.0-rc.2 (#1052)

* bump scarb to 2.7.0-rc.2

* add changelog entry

* update changelog entry

* bump scarb in installation page

* Add timelock component (#996)

* start timelock comp draft

* move timelock to own dir, finish drafting component

* tmp: add utility impls

* add timelock mock

* add test mod for timelock

* fix commnet

* add constructor to timelock mock

* set min_delay in initializer

* start tests

* fix fmt

* fix schedule assertion

* add schedule tests

* fix fmt

* remove unused import

* fix errs, _before_call

* start execute tests

* fix fmt

* fix after_call

* add execute tests

* add abi interface

* add reentrancy mock for timelock

* add tests for cancel and update_delay

* fix hash_op test

* add execute with predecessor test

* add timelock utils, add operation_state debug impl

* fix fmt

* improve imports

* improve _execute

* add basic mock for tests

* add tmp call struct

* add batch fns to interface

* add batch fns

* refactor tests to use dedicated mock, add batch tests

* fix fmt

* remove use clause

* add timelock mixin

* fix interface name

* improve event assertions

* fix execute and schedule events

* fix fmt

* add safe token transfer tests

* fix fmt

* tidy up code

* add descriptions to events

* clean up code

* inline CallPartialEq fns

* start fn descriptions

* remove comments

* remove comment

* fix fmt

* add changelog entries

* improve spacing

* add line break to hash test

* clean up tests

* clean up tests

* fix constants in attacker impl

* add initializer helper, register access control support

* add _before_call and _after_call tests

* fix reentrant batch mock call

* add _schedule and _execute tests

* add timelock description

* fix formatting

* fix comments

* fix comment

* fmt

* tidy up tests

* remove batch helper fn

* remove event from mocks

* Apply suggestions from code review

Co-authored-by: Eric Nordelo <[email protected]>

* update spdx

* remove token receiver support

* add additional cancel tests

* Apply suggestions from code review

Co-authored-by: Eric Nordelo <[email protected]>

* initializer: remove mut, use while loop

* fix fmt

* add assert_only_self fn

* fix getter comments re: pending/waiting

* add assert_only_role

* add specific op errors

* make event names consistent

* fix test

* remove serialization from HashCallImpl

* remove unused components from mock

* clean up code

* update to 2.7.0-rc.1

* fix fmt

* import Call from corelib

* update spdx

* fix fmt

* move OperationState, derive debug

* fix fmt

* fix hash impls

* add for loops

* fix PartialEq, add tests

* fix fmt

* simplify mixin fns

* switch Poseidon to Pedersen

* make admin a req in initializer

* update tests with admin

* fix fmt

* fix comment

* undo changes

* add no admin initializer test

---------

Co-authored-by: Eric Nordelo <[email protected]>

* fix fmt

* bump scarb to 2.7.0-rc.4 (#1064)

* bump scarb to 2.7.0-rc.4

* add changelog

* bump scarb in installation page

* fix fmt

* feat: update workflow and fix warning (#1066)

* bump scarb

* add tmp usc install in ci

* fix changelog

---------

Co-authored-by: Eric Nordelo <[email protected]>
Co-authored-by: ericnordelo <[email protected]>
Co-authored-by: JChoy <[email protected]>
  • Loading branch information
4 people authored Aug 1, 2024
1 parent 6601f24 commit e09af84
Show file tree
Hide file tree
Showing 2 changed files with 365 additions and 332 deletions.
2 changes: 1 addition & 1 deletion src/tests/governance.cairo
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//mod test_timelock;
mod test_timelock;
mod test_utils;
Loading

0 comments on commit e09af84

Please sign in to comment.