-
Notifications
You must be signed in to change notification settings - Fork 25
feat(BundleDataClient): Support refunds for pre-fills/slow-fill-requests and duplicate deposits #835
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
Merged
Merged
feat(BundleDataClient): Support refunds for pre-fills/slow-fill-requests and duplicate deposits #835
Changes from 114 commits
Commits
Show all changes
118 commits
Select commit
Hold shift + click to select a range
2b647e5
feat(BundleDataClient): Support refunds for pre-fills and fills for p…
nicholaspai 5d81719
re-use v3Relayhashes to get all deposits
nicholaspai b6053c7
Update src/clients/BundleDataClient/BundleDataClient.ts
nicholaspai f91d4dd
Update BundleDataClient.ts
nicholaspai 20325f1
Update BundleDataClient.ts
nicholaspai 8ed54b8
Update BundleDataClient.ts
nicholaspai d3be312
feat: Add findFillEvent utility function (#836)
nicholaspai 23d9a6e
Update BundleDataClient.ts
nicholaspai 80e5b1c
feat(BundleDataClient): Support duplicate expired deposit refunds
nicholaspai c608499
Handle duplicate deposits
nicholaspai 81f3e51
Merge branch 'pre-fills' into duplicate-deposit-refunds
nicholaspai 9cbded7
Update SpokePoolClient.ts
nicholaspai 828c55e
Fix duplicate deposit logic
nicholaspai 45e75eb
Add caveats about duplicate deposits
nicholaspai c9184e4
Update BundleDataClient.ts
nicholaspai c3bb4bb
Merge branch 'pre-fills' into duplicate-deposit-refunds
nicholaspai 886a5e0
Handle expired deposits better
nicholaspai a7b5f36
Merge branch 'pre-fills' into duplicate-deposit-refunds
nicholaspai 1fc293a
Update BundleDataClient.ts
nicholaspai 6569e60
Update BundleDataClient.ts
nicholaspai 774b88a
Merge branch 'pre-fills' into duplicate-deposit-refunds
nicholaspai 09d55f8
Update BundleDataClient.ts
nicholaspai 29be548
Update BundleDataClient.ts
nicholaspai 75ba384
Fix expired deposit loigc
nicholaspai f411d4c
Merge branch 'pre-fills' into duplicate-deposit-refunds
nicholaspai 130992e
Update BundleDataClient.ts
nicholaspai 15ebfea
Update BundleDataClient.ts
nicholaspai a798405
Update BundleDataClient.ts
nicholaspai 768b5d6
fix pre slow fill request handling
nicholaspai 945defd
Update BundleDataClient.ts
nicholaspai 4d34e0d
Update BundleDataClient.ts
nicholaspai d8a1881
Update package.json
nicholaspai 719c29c
adjust for empty message hash
nicholaspai b4d85d7
add isZeroValueFillOrSlowFillRequest
nicholaspai 6247de9
Merge branch 'master' into pre-fills
nicholaspai 70bf908
fix
nicholaspai 2366769
Update package.json
nicholaspai e6f4996
use isMessageEmpty in isFillOrSlowFillRequestMessageEmpty
nicholaspai 2d83142
Update SpokePoolClient.ValidateFill.ts
nicholaspai dde1130
Refactor and change up conditionals for marginal speedups
nicholaspai d18e6a6
Update BundleDataClient.ts
nicholaspai f32cdb4
Merge branch 'master' into pre-fills
nicholaspai 45441a1
Update SpokePoolClient.fills.ts
nicholaspai 461db1c
refactor
nicholaspai ebcaf16
Update package.json
nicholaspai 38a6fc7
merge
nicholaspai 1924d76
Update package.json
nicholaspai bd9bd0b
Update MockSpokePoolClient.ts
nicholaspai 2e3f0be
Update package.json
nicholaspai 7b3170d
Update BundleDataClient.ts
nicholaspai 36f0836
Gatekeep behind version bump
nicholaspai de4f3f8
Update BundleDataClient.ts
nicholaspai 9488ecf
fix
nicholaspai a6b236d
fix toggle
nicholaspai 4f0f42e
meerge
nicholaspai 5a32e81
Update BundleDataClient.ts
nicholaspai 1ec42b5
Add verifyFill check to pre-fillr efund
nicholaspai 7bdc4a1
Update src/clients/BundleDataClient/BundleDataClient.ts
nicholaspai 5bf0ad2
Update BundleDataClient.ts
nicholaspai 68f50a4
Update package.json
nicholaspai 57a2a9f
fix(BundleDataClient): Make sure bundle block timestamps have no gaps
nicholaspai 01343f4
Update package.json
nicholaspai b98d74a
Merge branch 'bundle-block-timestamps' into pre-fills
nicholaspai 6ad7121
Revert "Merge branch 'bundle-block-timestamps' into pre-fills"
nicholaspai 6001a8c
Update package.json
nicholaspai 6e90289
Update BundleDataClient.ts
nicholaspai 3058a4c
Update BundleDataClient.ts
nicholaspai bc5e5a6
Update BundleDataClient.ts
nicholaspai 89595e9
Update package.json
nicholaspai 5aae5fa
Update BundleDataClient.ts
nicholaspai 7ab59e3
Update package.json
nicholaspai d251e09
fix
nicholaspai 33e6ae2
fix
nicholaspai 929eac8
Update BundleDataClient.ts
nicholaspai a1eb56b
Merge branch 'bundle-block-timestamps' into pre-fills
nicholaspai b19482a
Update package.json
nicholaspai 3153720
Merge branch 'master' into pre-fills
nicholaspai 2349b73
Update package.json
nicholaspai 79f13f2
Add case work
nicholaspai d8b439e
Update package.json
nicholaspai 52090fb
Update BundleDataClient.ts
nicholaspai 709952b
Refund duplicate deposits
nicholaspai 4a520a6
Update package.json
nicholaspai ed8f6d2
Merge branch 'master' into pre-fills
nicholaspai 0b5a43d
Update package.json
nicholaspai 0260489
fix
nicholaspai 8aa3835
use ZERO_BYTES
nicholaspai dc6d482
Remove isSlowFill check
nicholaspai 9ebd0f2
Update package.json
nicholaspai d1eafe5
Revert "Remove isSlowFill check"
nicholaspai 3479dae
Re-add slow fill check and refund to depositor
nicholaspai 6ffd1a0
Update BundleDataClient.ts
nicholaspai 5ada1fb
Remove duplicate deposit refunds and revert back to refunding pre-fills
nicholaspai e1d60a6
wip
nicholaspai f0544d4
fix
nicholaspai 3fc8262
Update package.json
nicholaspai 56ea588
Make sure any time we queryHistoricalDepositForFill we also check the…
nicholaspai b63cf9a
Update package.json
nicholaspai e5cd418
Update BundleDataClient.ts
nicholaspai 5b6eeeb
Update package.json
nicholaspai 6def4c0
Pay duplicate deposits to filler or depositor
nicholaspai de176c7
Update BundleDataClient.ts
nicholaspai 283a8e9
Update package.json
nicholaspai 49560fb
Update BundleDataClient.ts
nicholaspai 84f61ad
Update BundleDataClient.ts
nicholaspai 573d00f
add comments about matching first slow fill leaf
nicholaspai 54f28e4
Update BundleDataClient.ts
nicholaspai f853323
Merge branch 'master' into pre-fills
nicholaspai 87cb051
Add verifyFillRepayment check to prefill loop
nicholaspai 6e6488c
Add extra verifyFillRepayment checks
nicholaspai 7bcc855
lint
nicholaspai 1bcd9c5
Add asserts
nicholaspai 5092f14
Simplify code by removing out of date comments and other things
nicholaspai a2251a0
Add assert
nicholaspai cc9ebfc
Update BundleDataClient.ts
nicholaspai 5c32bd8
Update BundleDataClient.ts
nicholaspai 7eb7ede
Update package.json
nicholaspai d614976
Update package.json
nicholaspai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.