-
Notifications
You must be signed in to change notification settings - Fork 6
fix: x402 budget/allowlist/replay/session and wallet BTC fee, chain_status probe, Solana cluster (#43) #44
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
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
c1b50ce
fix(btc): handle missing chain parameter in address derivation
senamakel b01c969
fix(test): update test to reflect new protocol behavior
senamakel 8b2dc46
fix(btc): correct test assertion for address derivation
senamakel 292ecba
fix(ledger): correct test assertion for insufficient balance
senamakel fc09f68
fix(btc): handle missing chain parameter in address derivation
senamakel 8e0d427
fix(btc): handle missing chain parameter in address derivation
senamakel 1b72303
feat(ledger): add reservation support for atomic balance checks
senamakel 02e0c12
chore(btc): remove duplicate SpendPlan struct
senamakel e6c7fb8
fix(protocol): handle missing payment header in client response
senamakel 83968ca
fix(test): avoid u64 overflow in test values
senamakel d2b53d3
feat(ledger): add reservation system for atomic balance transfers
senamakel 87ab3a3
fix(execution): handle empty query result in balance lookup
senamakel 3454813
feat(x402): add session management and test utilities
senamakel a67d0b3
test: consolidate chain status rejection tests and add Solana assertion
senamakel 23ec623
fix(tools): handle missing x402 header in request validation
senamakel f9572d7
x402: reserve budget atomically before signing; stamp payments with t…
senamakel 35c0e8f
fix(execution): handle missing account in probe query
senamakel da8fc11
fix(protocol): correct test assertion for payment header parsing
senamakel 5fadbcb
feat(x402): add error handling and test for protocol module
senamakel 9e3f944
fix(web3): remove unused imports across multiple chain modules
senamakel 97c0181
fix(engine): handle missing wallet state on restore
senamakel b40ec45
fix(test): update Solana and defaults test expectations
senamakel b1b770a
chore: files changed crates/tinywallet-x402/src/protocol/test.rs,crat…
senamakel ca7e08a
chore: files changed crates/tinywallet-web3/src/crypto/defaults/catal…
senamakel 7004d24
chore: files changed crates/tinywallet-web3/README.md,crates/tinywall…
senamakel c511719
x402: allowlist USDC networks and refuse non-replayable bodies before…
senamakel 1af9e34
chore: files changed crates/tinywallet-x402/README.md,crates/tinywall…
senamakel 3c529b0
fix(thread): remove unused thread module
senamakel e1da45c
docs(tinywallet-x402): add README with usage and configuration details
senamakel ca1279e
chore: reorder imports and simplify assertion formatting
senamakel 8aa9a98
fix(tools): use method reference in test assertion
senamakel 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
execute_btc_quoteaccepts any valid mainnet recipient throughvalidate_btc_address, including P2TR/P2WSH addresses, but every output is priced as a 31-vbyte P2WPKH output here. Those output scripts require 43 vbytes, so such transfers receive an absolute fee below the configured 20 sat/vB rate and can be rejected or delayed when the mempool minimum is near that target. Determine the destination output size from its address type, or conservatively price the largest supported output.Useful? React with 👍 / 👎.