Integrate Open CryptoPay payment standard#1299
Open
reubenyap wants to merge 4 commits intocypherstack:stagingfrom
Open
Integrate Open CryptoPay payment standard#1299reubenyap wants to merge 4 commits intocypherstack:stagingfrom
reubenyap wants to merge 4 commits intocypherstack:stagingfrom
Conversation
86f77e8 to
6187a48
Compare
Add Open CryptoPay QR handling, payment details fetching, method selection, and native-wallet send routing with HTTPS and callback host hardening.
Filter OCP methods by supported wallet network, enforce quote expiry and minimum fees, and route raw-hex settlement through the provider where required.
Add EIP-681 parsing and route Ethereum mainnet ERC-20 OCP payments through the existing token send flow, using enabled token contract addresses as the authority.
fda549f to
e2c1393
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds Open CryptoPay QR support with method/network validation, quote expiry checks, fee-floor enforcement, and raw signed transaction submission where required by the OCP flow.
This also adds minimal Ethereum mainnet ERC-20 support for tokens already enabled in the wallet. ERC-20 matching uses the token contract address from the EIP-681 transaction URI as the authority; symbols are only used for display and initial asset filtering.
Supported OCP Flows
TokenSendView.Safety Checks
minFeefor supported fee models.Limitations
Test Plan
OpenCryptoPayCommit.