Commit d5aff1a
feat: metered WASM compute, QRC-20 token UX, audit fixes; untrack issuer keypair
Node / core:
- Meter WASM execution by consumed fuel: symmetric sender-refund / producer-credit
move (supply-conserving); validator recompute byte-identical to producer fill loop.
- Enforce per-block BLOCK_FUEL_LIMIT over reserved fuel at both producer-fill and verify.
- QRC-20 deploy charges storage deposit; refund fails loud on underfunded escrow.
- mempool included_tx_hashes gains a hard count cap (anti-OOM) atop the age window.
- Reject dormant Swap tx at RPC and gossip admission.
- Emit token total_supply / balance as JSON strings (u64 > 2^53 precision).
- Return msg.value to caller on VM trap / over-cap.
Clients:
- Mobile: import held + custom QRC-20 tokens, send QRC-20 (BigInt/string-safe).
- Explorer: address token holdings, token page + directory, tx-type decode,
real per-IP rate limiting (fail-closed on mainnet misconfig).
- Wallet extension: wire popup Send to background sendTransaction (QNC).
Repo hygiene:
- Untrack infrastructure/config/issuer_keypair.json (kept on disk; now gitignored).
- Repair .gitignore UTF-16 corruption that silenced the backups/ rule.
- Ignore build artifacts (*.rlib, *.tsbuildinfo).
- Remove dead subsystems; correct docs to pure-Dilithium and metered fee model.
Validated: cargo check clean; qnet-state 114, qnet-integration 200, qnet-mempool 2
lib tests green; adversarial fee-metering review 7/7 refuted.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 9f3263f commit d5aff1a
158 files changed
Lines changed: 26694 additions & 14816 deletions
File tree
- applications
- qnet-explorer/frontend
- lib
- src
- app
- api
- address/[address]
- balance-proof
- faucet/claim
- monitoring/health
- tokens
- token/[contract]
- tx/[hash]
- explorer
- address/[address]
- tokens
- token/[contract]
- tx/[hash]
- testnet
- components
- blocks
- faucet
- lib
- qnet-mobile
- android/app
- src/main/java/com/qnetmobile
- src
- components
- crypto
- screens
- services
- qnet-wallet
- dist
- lib
- src
- crypto
- integration
- network
- security
- wallet
- tools/dilithium-wasm
- core
- qnet-consensus
- src
- qnet-core
- src
- crypto
- rust
- storage
- qnet-mempool
- src
- tests
- qnet-state
- src
- qnet-vm
- src
- deployment
- production-bridge
- development
- pqcrypto-compat-test
- qnet-contracts
- 1dev-burn-contract
- src
- instructions
- examples
- simple-burn-tracker
- src
- qnet-integration
- benches
- src
- bin
- crypto
- qnet-mobile-sdk
- qnet-sdk
- qnet-vm
- docs
- documentation
- technical
- user-guides
- infrastructure
- config
- qnet-api/src
- handlers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
596 | 596 | | |
597 | 597 | | |
598 | 598 | | |
599 | | - | |
600 | | - | |