Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Piltover nonce #12

Merged
merged 1 commit into from
Aug 16, 2024
Merged

Piltover nonce #12

merged 1 commit into from
Aug 16, 2024

Conversation

byteZorvin
Copy link
Member

  • This adds a testcase that deployment should fail if the message not registered on piltover

@byteZorvin byteZorvin changed the base branch from main to withdrawal-limit-tests August 15, 2024 06:43
@byteZorvin byteZorvin changed the base branch from withdrawal-limit-tests to withdrawal-tests August 15, 2024 06:43
@byteZorvin byteZorvin merged commit 079ba0c into withdrawal-tests Aug 16, 2024
2 checks passed
apoorvsadana added a commit that referenced this pull request Aug 20, 2024
* feat: initiliased testcases

* admin function tests

* fix: max total balance check

* feat: block token test

* disable limit test

* feat: add failing tc for withdraw limit

* fixed testcases after rebase

* chore: added messaging mock

* Update src/bridge/token_bridge.cairo

Co-authored-by: Apoorv Sadana <[email protected]>

* resolve comments

* add reactivate and unblock

* add reactivate and unblock

* unblock tests

* reactivate and unblock tests

* resolved merge conflicts

* restructure testcases

* fix: visibility modifier

* deposit tests

* make them unit

* make them unit

* deposit flow tests

* change to mock usdc address

* improve: not needed to deploy usdc in while mock testing

* unit testcases

* add token actions restructure

* migrate to latest foundry

* restructure

* deposit failing tc

* test: happy withdraw test

* chore: ran formatter

* fix settlement of message

* change deposit tests to use message_payloads

* add assert

* failing withdraw tc

* cancel request

* deposit with message cancels

* Update tests/deposit_test.cairo

Co-authored-by: Apoorv Sadana <[email protected]>

* resolved comments

* fix consume message

* reclaim testcases

* fix consume message check

* consume message

* add balance check

* add events in actions

* deactivate tc

* send messages tc

* change name

* withdrawal limit tests initialised

* fix build failure

* remaining quota

* withdrawal tests

* Update src/withdrawal_limit/mock.cairo

Co-authored-by: Apoorv Sadana <[email protected]>

* Update src/withdrawal_limit/tests/withdrawal_limit_test.cairo

Co-authored-by: Apoorv Sadana <[email protected]>

* Update src/withdrawal_limit/tests/withdrawal_limit_test.cairo

Co-authored-by: Apoorv Sadana <[email protected]>

* Update src/withdrawal_limit/tests/withdrawal_limit_test.cairo

Co-authored-by: Apoorv Sadana <[email protected]>

* should fail if message not registered (#12)

* resolve commits

* Update src/withdrawal_limit/tests/withdrawal_limit_test.cairo

Co-authored-by: Apoorv Sadana <[email protected]>

* Update src/withdrawal_limit/tests/withdrawal_limit_test.cairo

Co-authored-by: Apoorv Sadana <[email protected]>

* move file to mocks

* code repetition reduced

* failing tests fixed

---------

Co-authored-by: Apoorv Sadana <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants