You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracking issue for the deploy and downstream-migration work needed around merging #2526 (OrderBook → Raindex rename).
The PR itself is code-complete with green CI and E2E sign-off. This issue covers everything outside the merge that has to happen for the rename to actually land in production.
Ordering
Roughly:
Pre/at merge — sub-parser + Goldsky subgraph deploys (from the PR branch, so consumers can cut over without a broken window).
Old address: 0xC17693a98370970D8Ec2d47d0cc37E847f035710
New address: 0x6E81D70fD7801Cf21DD177f82c2e5BCffb86321E (Zoltu deterministic)
New bytecode hash: 0x78d0f0b8b03d9e9e6cd09a013754032a57cb688a13a98cb130df43d282ead580
Why bytecode changed: the sub-parser embeds a string literal for the word it matches (WORD_ORDERBOOK = "orderbook" → WORD_RAINDEX = "raindex" in src/lib/LibRaindexSubParser.sol). The string is data baked into deployed bytecode.
The main RaindexV6 orderbook contract is NOT being redeployed. It stays at 0x7242ce1ffe34297921c54cD7f9343c411E1E7759. Pure Solidity identifier renames (OrderBookV6 → RaindexV6 etc.) don't change bytecode. GenericPoolRaindexV6ArbOrderTaker and GenericPoolRaindexV6FlashBorrower also unchanged.
Deploy new Goldsky raindex-* subgraphs for arbitrum-one, matic, base, flare — run Deploy subgraph workflow on rename-orderbook-to-raindex branch (workflow already updated to GOLDSKY_SUBGRAPH_NAME: raindex). Full re-index from existing startBlock per chain, takes time. All four networks point at the unchanged main contract 0x7242ce1f…7759.
Update external .rain source using the orderbook() word → raindex() (this is the user-facing effect of the sub-parser word literal change)
Update any API consumers parsing old JSON field names (obId → raindexId, orderbookAddress → raindexAddress, "orderbook" → "raindex" on trade/order objects, "orderbook" field in TakeOrdersReadyResponse)
Update any JS/TS code using the WASM API: OrderbookYaml → RaindexYaml, OrderbookYamlError → RaindexYamlError, getOrderbookByAddress() → getRaindexByAddress(), .orderbook() → .raindex() on RaindexOrder/RaindexVault/TakeOrdersInfo, .orderbookAddress → .raindexAddress on DeploymentTransactionArgs
User-side (organic)
Users clear local DB cache — DB_SCHEMA_VERSION bumped 2→3, fresh sync required
Tracking issue for the deploy and downstream-migration work needed around merging #2526 (OrderBook → Raindex rename).
The PR itself is code-complete with green CI and E2E sign-off. This issue covers everything outside the merge that has to happen for the rename to actually land in production.
Ordering
Roughly:
.rainfiles, API/JS consumers); user-side cache clear happens organically.Pre-merge / gating
RaindexV6SubParsercontract0xC17693a98370970D8Ec2d47d0cc37E847f0357100x6E81D70fD7801Cf21DD177f82c2e5BCffb86321E(Zoltu deterministic)0x78d0f0b8b03d9e9e6cd09a013754032a57cb688a13a98cb130df43d282ead580WORD_ORDERBOOK = "orderbook"→WORD_RAINDEX = "raindex"insrc/lib/LibRaindexSubParser.sol). The string is data baked into deployed bytecode.RaindexV6orderbook contract is NOT being redeployed. It stays at0x7242ce1ffe34297921c54cD7f9343c411E1E7759. Pure Solidity identifier renames (OrderBookV6→RaindexV6etc.) don't change bytecode.GenericPoolRaindexV6ArbOrderTakerandGenericPoolRaindexV6FlashBorroweralso unchanged.raindex-*subgraphs for arbitrum-one, matic, base, flare — runDeploy subgraphworkflow onrename-orderbook-to-raindexbranch (workflow already updated toGOLDSKY_SUBGRAPH_NAME: raindex). Full re-index from existingstartBlockper chain, takes time. All four networks point at the unchanged main contract0x7242ce1f…7759.At merge
@rainlanguage/raindexnpm package@rainlanguage/orderbookto@rainlanguage/raindex(not an in-place upgrade)Post-merge — config & downstream
packages/raindex(notpackages/orderbook)raindex-*endpoints.rainstrategy files:orderbooks:→raindexes:,orderbook:→raindex:, bump toversion: 6.rainsource using theorderbook()word →raindex()(this is the user-facing effect of the sub-parser word literal change)obId→raindexId,orderbookAddress→raindexAddress,"orderbook"→"raindex"on trade/order objects,"orderbook"field inTakeOrdersReadyResponse)OrderbookYaml→RaindexYaml,OrderbookYamlError→RaindexYamlError,getOrderbookByAddress()→getRaindexByAddress(),.orderbook()→.raindex()onRaindexOrder/RaindexVault/TakeOrdersInfo,.orderbookAddress→.raindexAddressonDeploymentTransactionArgsUser-side (organic)
DB_SCHEMA_VERSIONbumped 2→3, fresh sync requiredAlready done (per #2526 checklist)
raindex_addresscolumns)rain.strategiesregistry to version 6 withraindexes:keysRAINLANG_URLinpackages/webapp/src/lib/constants.tsto new strategies commitRelated