-
Notifications
You must be signed in to change notification settings - Fork 42
Token-amount decoder fuzz (overflow, fractional) #78
Copy link
Copy link
Closed
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarea:decoderXDR / event decodingXDR / event decodingarea:testsTesting and coverageTesting and coveragedifficulty:easy~1-3 hours~1-3 hoursgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Activity
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarea:decoderXDR / event decodingXDR / event decodingarea:testsTesting and coverageTesting and coveragedifficulty:easy~1-3 hours~1-3 hoursgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Background
i128 / u128 amounts can overflow JavaScript Number. A fuzz that confirms BigInt-only handling.
What to build
fast-check generator for i128 values, assert decoded result is BigInt and equals the input.
Key files
tests/decoder.amount.fuzz.test.ts(new)Acceptance criteria