Skip to content

Comments

DEVREL-1299 fix(devtools-move): bump initia.js and update deployer derivation#1928

Open
nazreen wants to merge 21 commits intomainfrom
initia-version-bump-standalone
Open

DEVREL-1299 fix(devtools-move): bump initia.js and update deployer derivation#1928
nazreen wants to merge 21 commits intomainfrom
initia-version-bump-standalone

Conversation

@nazreen
Copy link
Contributor

@nazreen nazreen commented Feb 5, 2026

Problem

Initia changed object creation seed derivation (v1.2.0+): it now includes a deployment count.
MoveVM change: initia-labs/movevm@8ad3db1
initiad fix: initia-labs/initia@d3557bd

To deploy new objects reliably, users need:

  • initiad v1.3.1+ (correct object-address derivation)
  • @initia/initia.js v1.0.0+ (coin type 60)

Additional Details

  • Seed mismatch typically surfaces as address/ALREADY_EXISTS or deployment inconsistency.
  • Coin type 60 is required for Initia mainnet/testnet. Coin type 118 was testnet‑era only.

Solution

  • Bump @initia/initia.js from ^0.2.x to ^1.0.0 (coin type 60 default).
  • Replace deployer address derivation with:
    SHA3-256(address + 0x22 + "initia_std::object_code_deployment" + sequence(u64 LE) + deployCount(u64 LE) + 0xFE)
  • Update checkInitiaCLIVersion() to require v1.3.1+.
  • Update Initia README(s) to drop --coin-type 118 in key generation.

Other Changes

Verify-contract’s build failed in CI (and locally) because Rollup 4.40.0 now errors on a malformed sourcemap shipped in @solidity-parser/parser@0.16.2. That map contains duplicate src/index.ts entries with conflicting sourcesContent, so Rollup throws “Multiple conflicting contents for sourcemap source”.

Failed run: https://github.com/LayerZero-Labs/devtools/actions/runs/21777097176/job/62835345680#step:8:893

Fix: upgrade @solidity-parser/parser in packages/verify-contract to ^0.17.0, which ships a clean sourcemap; after reinstalling, pnpm -C packages/verify-contract run build succeeds.

Proof of Test

Deployments

Initia (Move)

Base (EVM)

Wiring

EVM → Move (Base → Initia), from transactions/move.layerzero.config.ts/broadcast/latest.json

Move → EVM (Initia → Base)

Cross-Chain Send Test

Base → Initia (OFT send)

Initia → Base (OFT send)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

🧪 E2E Test Status

E2E tests are non-blocking and validate real blockchain interactions. Failures may occur due to network issues, RPC rate limits, or external service downtime.

Test Runs (Newest First):

  • Run #6732 - Passed - 2026-02-23 08:07 (UTC)
  • Run #6730 - Passed - 2026-02-23 07:01 (UTC)
  • Run #6705 - Passed - 2026-02-09 04:33 (UTC)
  • Run #6704 - Passed - 2026-02-09 03:55 (UTC)
  • Run #6700 - Passed - 2026-02-07 08:52 (UTC)
  • Run #6698 - Passed - 2026-02-07 08:29 (UTC)
  • Run #6695 - Failed - 2026-02-07 08:15 (UTC)
  • Run #6694 - Failed - 2026-02-07 06:01 (UTC)
  • Run #6691 - Passed - 2026-02-07 01:24 (UTC)
  • Run #6688 - Passed - 2026-02-06 08:03 (UTC)
  • Run #6684 - Passed - 2026-02-06 07:52 (UTC)
  • Run #6682 - Passed - 2026-02-05 17:28 (UTC)
  • Run #6681 - Failed - 2026-02-05 17:12 (UTC)
  • Run #6680 - Failed - 2026-02-05 17:03 (UTC)

@nazreen nazreen changed the title fix(devtools-move): bump initia.js and update deployer derivation DEVREL-1299 fix(devtools-move): bump initia.js and update deployer derivation Feb 5, 2026
@nazreen nazreen marked this pull request as ready for review February 6, 2026 08:19
@cursor
Copy link

cursor bot commented Feb 6, 2026

PR Summary

Medium Risk
Changes impact Initia deployment/address derivation and enforce a new minimum initiad version, which can affect real deployments if incorrect or if environments aren’t updated; other changes are mostly dependency/doc updates.

Overview
Fixes Initia Move deployments after Initia’s object-address seed derivation change. @layerzerolabs/devtools-move now derives the Initia deployer/object seed using sequence + deploy count (queried via initiad) and requires initiad >= 1.3.1; deploy/build flows were updated accordingly (including centralizing INITIA_RPC_URL access and adjusting named-address resolution).

Updates support code/docs: bumps @initia/initia.js to ^1.0.0 (and removes it from the oft-initia example’s deps), adds Jest coverage for the new Initia helpers, and changes basexToBytes32('') to return zero bytes32 for Initia configs. Example READMEs were corrected for new initiad key creation flags and the adapter deploy script.

Also includes small ecosystem fixes: upgrades @solidity-parser/parser in verify-contract to resolve duplicated sourcemap build failures, updates the root es5-ext resolution URL, and bumps @layerzerolabs/hyperliquid-composer in the Hyperliquid example lockfile.

Written by Cursor Bugbot for commit 8a7204c. This will update automatically on new commits. Configure here.

@nazreen nazreen marked this pull request as draft February 6, 2026 16:24
@nazreen nazreen marked this pull request as ready for review February 7, 2026 11:47
nazreen and others added 16 commits February 9, 2026 11:42
Co-authored-by: beer-1 <147697694+beer-1@users.noreply.github.com>
Co-authored-by: beer-1 <147697694+beer-1@users.noreply.github.com>
Co-authored-by: beer-1 <147697694+beer-1@users.noreply.github.com>
Co-authored-by: beer-1 <147697694+beer-1@users.noreply.github.com>
Co-authored-by: beer-1 <147697694+beer-1@users.noreply.github.com>
@nazreen nazreen force-pushed the initia-version-bump-standalone branch from ae5e04f to 20cdbc5 Compare February 9, 2026 03:43
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

shankars99
shankars99 previously approved these changes Feb 9, 2026
@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​layerzerolabs/​hyperliquid-composer@​2.0.7 ⏵ 2.0.88010010095100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants