Files
salvium-rs/test
Matt Hess 43e1ebbef8 ● Add oracle/pricing system implementation
- Create src/oracle.js with complete pricing record support
  - Data structures: PricingRecord, AssetData, SupplyData (matching C++ pricing_record.h)
  - DSA/ECDSA signature verification with mainnet/testnet public keys
  - Conversion rate calculation with rounding (getConversionRate, getConvertedAmount)
  - Slippage calculation (1/32 = 3.125%) with refund logic
  - Pricing record validation (HF gates, timestamps, signatures)
  - JSON serialization/parsing for oracle responses
  - HTTP client for fetching pricing records from oracle server
  - Add 66 unit tests in test/oracle.test.js
  - Export oracle module from index.js
2026-01-26 11:45:08 +00:00
..
2026-01-14 23:59:27 +00:00
2026-01-14 23:59:27 +00:00
2026-01-14 23:59:27 +00:00
2026-01-14 23:59:27 +00:00
2026-01-14 23:59:27 +00:00