riftenlabs-indexer/src
Hossein Zoda c1952142de ido: categories in display/UI byte order, drop hardcoded PLP limits
libriften moved encodeVmTokenCategory/decodeVmTokenCategory (which reverse
the 32 category bytes, display<->VM) into the ido announcement and ORB
IdoParams serialize/deserialize layer. Net wire effects the indexer sees:
- preinit announcement delphiCategory[44..76] and xTokenCategory[126..158]
  are now VM/little-endian (were display order);
- the IdoParams commitment stays VM on-wire, but the derived on-chain
  postlaunch orbPoolParamsCategory push flips display->VM (decode now
  returns display, the unchanged bake re-wraps it in encodeVmTokenCategory).

Keep the three categories (delphiCategory, xTokenCategory,
orbPoolParamsCategory) in display/UI byte order in-memory and over RPC:
reverse at every parse site (announcement + IdoParams NFT commitment) and
restore the .rev() on the output#0 delphi-NFT to_blob() compare. The
build_*_bytecode helpers keep reversing display->VM when baking, so the
output#7 P2SH32 rebuild matches the new on-chain layout.

Also drop the now-unused hardcoded MAX_PLP_SHARE / MAX_PLP_ANNUAL_DISCOUNT
/ MIN_PLP_ANNUAL_DISCOUNT statics and dead checks; the min-PLP limits are
NFT-pinned (minPlpShare / minPlpAfterDiscount) and the discount/max-discount
checks now just guard against negatives.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 21:44:18 +00:00
..
bcmr Expose authchain head + optional local IPFS gateway for BCMR downloads 2026-06-24 11:07:31 +00:00
cashaddr Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
crc20 Switch to tokio and sqlx 2026-02-18 10:16:51 +01:00
db ido: categories in display/UI byte order, drop hardcoded PLP limits 2026-07-14 21:44:18 +00:00
rpc Merge branch 'authChain' into 'master' 2026-06-24 11:07:31 +00:00
chain.rs format 2026-06-23 02:38:25 +03:00
def.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
electrum.rs bcmr: index new registrations from mempool, no confirmation needed 2026-07-06 08:59:46 +00:00
index.rs bcmr: index new registrations from mempool, no confirmation needed 2026-07-06 08:59:46 +00:00
main.rs bcmr: index new registrations from mempool, no confirmation needed 2026-07-06 08:59:46 +00:00
signal.rs Do not serve requests during IBD 2026-02-02 12:08:04 +01:00
timeutil.rs Update copyright headers 2026-01-21 12:37:13 +01:00
utiltest.rs ido, compiles, with claude generated unittests 2026-06-21 01:44:39 +03:00
utiltoken.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00
utiltx.rs Upgrade bitcoincash to 0.32 and add TokenToken AMM pool indexing 2026-06-10 16:18:35 +02:00