-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(contracts/solve): most recent request per status (#2675)
Added `getLatestRequestByStatus(status)`, which retrieves the most recent request to be set to a particular status. I also replaced the `deployedAt` Arbitrum branch handling with something much more robust. I attempted to add `getRequestUpdateHistory(id)`, which would return the timestamp history for all status updates a request has undergone. Despite this not altering the request and fulfillment flows, it broke the e2e tests, so this has been excluded for now. issue: #2679
- Loading branch information
Showing
13 changed files
with
277 additions
and
39 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
SolveInbox_accept_Test:test_accept_one_request() (gas: 395276) | ||
SolveInbox_accept_Test:test_accept_reverts() (gas: 1047031) | ||
SolveInbox_accept_Test:test_accept_skip_first() (gas: 703186) | ||
SolveInbox_accept_Test:test_accept_two_requests() (gas: 727312) | ||
SolveInbox_cancel_Test:test_cancel_multiToken() (gas: 548512) | ||
SolveInbox_cancel_Test:test_cancel_nativeMultiToken() (gas: 637552) | ||
SolveInbox_cancel_Test:test_cancel_oldest_request() (gas: 693948) | ||
SolveInbox_cancel_Test:test_cancel_one_request() (gas: 396173) | ||
SolveInbox_cancel_Test:test_cancel_rejected_nativeMultiToken_request() (gas: 647058) | ||
SolveInbox_cancel_Test:test_cancel_rejected_nativeToken_request() (gas: 405192) | ||
SolveInbox_cancel_Test:test_cancel_reverts() (gas: 1068135) | ||
SolveInbox_cancel_Test:test_cancel_singleToken() (gas: 427717) | ||
SolveInbox_cancel_Test:test_cancel_two_requests() (gas: 705726) | ||
SolveInbox_claim_Test:test_claim_multiDeposit() (gas: 719118) | ||
SolveInbox_claim_Test:test_claim_reverts() (gas: 448858) | ||
SolveInbox_claim_Test:test_claim_singleNative() (gas: 471334) | ||
SolveInbox_claim_Test:test_claim_singleToken() (gas: 502256) | ||
SolveInbox_markFulfilled_Test:test_markFulfilled_reverts() (gas: 506937) | ||
SolveInbox_markFulfilled_Test:test_markFulfilled_success() (gas: 417277) | ||
SolveInbox_reject_Test:test_reject_nativeMultiToken() (gas: 601341) | ||
SolveInbox_reject_Test:test_reject_oldest_request() (gas: 666353) | ||
SolveInbox_reject_Test:test_reject_one_request() (gas: 368071) | ||
SolveInbox_reject_Test:test_reject_reverts() (gas: 749056) | ||
SolveInbox_reject_Test:test_reject_two_requests() (gas: 670691) | ||
SolveInbox_request_Test:test_request_multiToken() (gas: 551270) | ||
SolveInbox_request_Test:test_request_nativeMultiToken() (gas: 609471) | ||
SolveInbox_request_Test:test_request_reverts() (gas: 929951) | ||
SolveInbox_request_Test:test_request_singleNative() (gas: 369998) | ||
SolveInbox_request_Test:test_request_singleToken() (gas: 431512) | ||
SolveInbox_request_Test:test_request_two() (gas: 678931) | ||
SolveInbox_accept_Test:test_accept_one_request() (gas: 449411) | ||
SolveInbox_accept_Test:test_accept_reverts() (gas: 1135399) | ||
SolveInbox_accept_Test:test_accept_skip_first() (gas: 757442) | ||
SolveInbox_accept_Test:test_accept_two_requests() (gas: 781616) | ||
SolveInbox_cancel_Test:test_cancel_multiToken() (gas: 604009) | ||
SolveInbox_cancel_Test:test_cancel_nativeMultiToken() (gas: 694160) | ||
SolveInbox_cancel_Test:test_cancel_oldest_request() (gas: 758515) | ||
SolveInbox_cancel_Test:test_cancel_one_request() (gas: 450572) | ||
SolveInbox_cancel_Test:test_cancel_rejected_nativeMultiToken_request() (gas: 738004) | ||
SolveInbox_cancel_Test:test_cancel_rejected_nativeToken_request() (gas: 491782) | ||
SolveInbox_cancel_Test:test_cancel_reverts() (gas: 1157387) | ||
SolveInbox_cancel_Test:test_cancel_singleToken() (gas: 482102) | ||
SolveInbox_cancel_Test:test_cancel_two_requests() (gas: 760517) | ||
SolveInbox_claim_Test:test_claim_multiDeposit() (gas: 819751) | ||
SolveInbox_claim_Test:test_claim_reverts() (gas: 537428) | ||
SolveInbox_claim_Test:test_claim_singleNative() (gas: 569792) | ||
SolveInbox_claim_Test:test_claim_singleToken() (gas: 600715) | ||
SolveInbox_markFulfilled_Test:test_markFulfilled_reverts() (gas: 551134) | ||
SolveInbox_markFulfilled_Test:test_markFulfilled_success() (gas: 493564) | ||
SolveInbox_reject_Test:test_reject_nativeMultiToken() (gas: 657806) | ||
SolveInbox_reject_Test:test_reject_oldest_request() (gas: 730802) | ||
SolveInbox_reject_Test:test_reject_one_request() (gas: 422363) | ||
SolveInbox_reject_Test:test_reject_reverts() (gas: 815736) | ||
SolveInbox_reject_Test:test_reject_two_requests() (gas: 725273) | ||
SolveInbox_request_Test:test_request_multiToken() (gas: 584500) | ||
SolveInbox_request_Test:test_request_nativeMultiToken() (gas: 643788) | ||
SolveInbox_request_Test:test_request_reverts() (gas: 1018635) | ||
SolveInbox_request_Test:test_request_singleNative() (gas: 402136) | ||
SolveInbox_request_Test:test_request_singleToken() (gas: 463652) | ||
SolveInbox_request_Test:test_request_two() (gas: 711209) | ||
SolveOutbox_fulfill_test:test_fulfillFee() (gas: 27996) | ||
SolveOutbox_fulfill_test:test_fulfill_reverts() (gas: 673377) | ||
SolveOutbox_fulfill_test:test_fulfill_succeeds() (gas: 274856) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.