Skip to content
woonetworkPublic

About

OFT of WOO token by LayerZeroV2

Resources

Stars

1 star

Watchers

2 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run WOO OFT


  • install dependencies
    • pnpm install
  • rename .env.example → .env
    • put the mnemonic of the test wallet of ethereum
    • use scripts/getBase58Pk.js to generate SOLANA_PRIVATE_KEY
  • rename layerzero.config.dev.ts to layerzero.config.ts
  • rename hardhat.config.dev.ts to hardhat.config.ts
  • compile the contract
    • pnpm compile:hardhat
  • Prepare Program ID
    • solana-keygen new -o target/deploy/endpoint-keypair.json --force
    • solana-keygen new -o target/deploy/oft-keypair.json --force
    • anchor keys sync
    • change program/src/oft/lib.rs with new program id
endpoint: A9xGfr4F2J3NVsk9X7syKLNtKgpwaKW9xtPEmoxYb3i9
oft: EaWXNTXSauuEWUyzBATCCbLfscNAgxS4bfQHnTGKeFXY
  • build Solana OFT program
    • anchor build
    • don’t add -v for verified build as its too slow
  • deploy Solana OFT program
    • solana program deploy --program-id target/deploy/oft-keypair.json target/deploy/oft.so -u devnet
  • Create Solana OFT
    • pnpm hardhat lz:oft:solana:create --eid 40168 --program-id EaWXNTXSauuEWUyzBATCCbLfscNAgxS4bfQHnTGKeFXY --only-oft-store true --name WOO --symbol WOO
    • open ./deployments/solana-testnet/OFT.json , find OFTStore = DKrx8GxUMBwJ1dDDpiJkdBvx31T7fxM3sqzCf2FPsNg9
    • change layerzero.config.ts with DKrx8GxUMBwJ1dDDpiJkdBvx31T7fxM3sqzCf2FPsNg9
  • deploy the contract to Ethereum Sepolia
  • initialize the OFT
    • npx hardhat lz:oapp:init:solana --oapp-config layerzero.config.ts --solana-secret-key <SOLANA_PRIVATE_KEY> --solana-program-id EaWXNTXSauuEWUyzBATCCbLfscNAgxS4bfQHnTGKeFXY
  • wire the config
    • npx hardhat lz:oapp:wire --oapp-config layerzero.config.ts --solana-secret-key <SOLANA_PRIVATE_KEY> --solana-program-id EaWXNTXSauuEWUyzBATCCbLfscNAgxS4bfQHnTGKeFXY

Test Sending

Production Ownership & Access Control

EVM OFT Ownership

All EVM OFT contracts have been transferred to WOO Network treasury multisig (Gnosis Safe) addresses:

Chain Contract Owner (Multisig)
Ethereum WooTokenOFTAdapter 0x155eef9731aff5ae6cb2741f7bec0f005037acb0
Linea WooTokenOFT 0x1354fde75b51e388e79e9b721cf6fc9773ac8ac5
Base WooTokenOFT 0xc06e2968afd4a029d4623f9a5f534c45e5bf0bdf
zkSync WooTokenOFT 0x91ff1c154b72004d0591868ceb98efdc4023371b
Mantle WooTokenOFT 0x5cc24db3b7f0099d141a4bc96b4fddf9f5f3b614
Sonic WooTokenOFT 0x3d2f54bac9eb3bdb360bc3bab6e77243377a3586

EVM OFT Delegate

Chi's developer address 0xc031C368b51c28266396273b0C6ce2489b00969d has been set as the delegate on all EVM chains via LayerZero EndpointV2. This allows the delegate to call setConfig() (e.g. DVN changes, executor config) on behalf of the OApp without requiring multisig transactions for routine config operations.

Solana OFT Ownership

The Solana OFT program (woo98ny1QLULqdTzpNM8PiJpwfzL5MJ9pAmLw1rfvk7) ownership is held by Chi's developer Solana address:

Address
Owner 8ATsKQ16gNa3M9hXF7zAPvkjEREmzyhrXGHM6aKPPPDm
OFT Store 8wX49KNNCPqfMUb8F1x3XipDEfqZnsCP5dDqxaxHjLCw

As the owner, Chi can directly perform config operations (DVN changes, enforced options, etc.) for the Solana OFT without multisig.


Debugging the error on receiver side

Xnip2024-11-25_20-11-24

About

OFT of WOO token by LayerZeroV2

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages