Skip to content

Conversation

@St0rmBr3w
Copy link
Contributor

Summary

This PR adds Aptos support to the oft-main example, enabling multi-VM OFT wiring that includes Aptos alongside EVM, Sui, and Starknet.

Changes

Configuration

  • Add INCLUDE_APTOS toggle and APTOS_ENFORCED_OPTIONS in layerzero.config.ts
  • Add aptosContract definition with deploy.json loading
  • Add Aptos to pathway generation for full mesh connectivity

Wire Task

  • Update tasks/aptos/index.ts to use real @layerzerolabs/devtools-aptos packages
  • Remove Aptos filtering from wire.ts graph processing (keep only INITIA filtered)

Environment & Dependencies

  • Add APTOS_PRIVATE_KEY, RPC_URL_APTOS, RPC_URL_APTOS_TESTNET to .env.example
  • Add aptos/deploy.json.example
  • Add Aptos devtools packages to package.json:
    • @aptos-labs/ts-sdk
    • @layerzerolabs/devtools-aptos
    • @layerzerolabs/protocol-devtools-aptos
    • @layerzerolabs/ua-devtools-aptos

Related PRs

Test Plan

  • pnpm install succeeds with new packages
  • npx hardhat lz:oapp:config:get shows Aptos contract
  • npx hardhat lz:oapp:wire --dry-run includes Aptos wiring
  • Send transaction from Aptos testnet succeeds

Enable Aptos OFT wiring in oft-main example:
- Add INCLUDE_APTOS, APTOS_ENFORCED_OPTIONS in layerzero.config.ts
- Add aptosContract definition and pathway generation
- Update tasks/aptos/index.ts to use real Aptos devtools packages
- Remove Aptos filtering from wire.ts graph processing
- Add Aptos environment variables to .env.example
- Add aptos/deploy.json.example
- Add Aptos devtools packages to package.json
@cursor
Copy link

cursor bot commented Jan 28, 2026

PR Summary

Adds Aptos to the multi-VM OFT example and wiring flow.

  • Extends layerzero.config.ts with INCLUDE_APTOS, APTOS_ENFORCED_OPTIONS, Aptos contract loading from aptos/deploy.json, and includes Aptos in full‑mesh pathway generation
  • Adds Aptos env vars to .env.example and aptos/deploy.json.example
  • Updates docs: new docs/move.layerzero.config.ts and docs/wiring-to-aptos.md; expands README.md for multi‑VM setup and flows
  • Adds Aptos SDK/devtools packages to package.json
  • Introduces the complete oft-main example scaffold (EVM contract, Hardhat/Foundry/Anchor configs) for cross‑VM OFT deployments

Written by Cursor Bugbot for commit 1c93382. Configure here.

@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
Addednpm/​@​layerzerolabs/​devtools-solana@​3.0.4721008194100

View full report

@github-actions
Copy link
Contributor

🧪 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 #6654 - Failed - 2026-01-28 00:40 (UTC)

@St0rmBr3w St0rmBr3w changed the base branch from feat/devtools-aptos-packages to feat/devtools-sui-examples January 28, 2026 00:42
@St0rmBr3w St0rmBr3w changed the base branch from feat/devtools-sui-examples to feat/devtools-aptos-packages January 28, 2026 00:42
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.

1 participant