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> |
||
|---|---|---|
| .. | ||
| bcmr | ||
| cashaddr | ||
| crc20 | ||
| db | ||
| rpc | ||
| chain.rs | ||
| def.rs | ||
| electrum.rs | ||
| index.rs | ||
| main.rs | ||
| signal.rs | ||
| timeutil.rs | ||
| utiltest.rs | ||
| utiltoken.rs | ||
| utiltx.rs | ||