- install dependencies
pnpm install
- rename
.env.example→.env- put the mnemonic of the test wallet of ethereum
- use
scripts/getBase58Pk.jsto generateSOLANA_PRIVATE_KEY
- rename
layerzero.config.dev.tstolayerzero.config.ts - rename
hardhat.config.dev.tstohardhat.config.ts - compile the contract
pnpm compile:hardhat
- Prepare Program ID
solana-keygen new -o target/deploy/endpoint-keypair.json --forcesolana-keygen new -o target/deploy/oft-keypair.json --forceanchor keys sync- change
program/src/oft/lib.rswith 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.tswithDKrx8GxUMBwJ1dDDpiJkdBvx31T7fxM3sqzCf2FPsNg9
- deploy the contract to Ethereum Sepolia
- first create a test WOO ERC20 token on Sepolia using https://coinfactory.app/, here is the contract: https://sepolia.etherscan.io/token/0xDd481A5FBa15E777fd73493E505C057fe16b0955#readContract
- set the contract address as
wooTokenOnSepoliaindeploy/WooTokenOFTAdapter.ts npx hardhat lz:deploy- tag use
WooTokenOFTAdapter - https://sepolia.etherscan.io/token/0xd73E4a225f973EA0615EfeB2a23aAb33Ac5759F9#code
- 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
-
Send from Sepolia to Solana devnet
npx hardhat --network sepolia send --dst-eid 40168 --amount 1000000000000000000 --to 3R1QAWUwPNRunitwENqieRv3SS1BTpPTvhemJEuCeSZA- Sepolia: https://sepolia.etherscan.io/tx/0x30bf12fe3db14ba74f7e421fe3f1ec16145b665db26637f0e24fa4d1d3e5e627
- LayerZero: https://testnet.layerzeroscan.com/tx/0x30bf12fe3db14ba74f7e421fe3f1ec16145b665db26637f0e24fa4d1d3e5e627
- Solana: https://explorer.solana.com/tx/59XVQvoSYoQ7T6NrXLrSAErzYQ8e9nQj8DWeGyKrHLPvmi1di1iqBoQwZZ2TggVYt6LHms4U7EiyhgrGa63Gy5tu?cluster=devnet
-
Send from Solana devnet to Sepolia
- open
./deployments/solana-testnet/OFT.jsonto find out the mint and escrow address npx hardhat lz:oft:solana:send --amount 1000000000 --from-eid 40168 --to 0xc031C368b51c28266396273b0C6ce2489b00969d --to-eid 40161 --mint HzY4dNBHd2mjwsDV7mT22uJ9Eag2tX26rCW3YvEdEPrg --program-id EaWXNTXSauuEWUyzBATCCbLfscNAgxS4bfQHnTGKeFXY --escrow B6yC6NLN2WpSU5fJnCXC6p32Uzz2u9h7RKnnochaVd9w- Solana: https://explorer.solana.com/tx/5pF9FnzjiXzVQfNXBAwENBMgZVZkyWUQTmkfn4XuXvGDZhBWYm3SRMGQJCetoHWFE7DgvYhXfS1xfyrUVVZfWAfy?cluster=devnet
- LayerZero: https://testnet.layerzeroscan.com/tx/5pF9FnzjiXzVQfNXBAwENBMgZVZkyWUQTmkfn4XuXvGDZhBWYm3SRMGQJCetoHWFE7DgvYhXfS1xfyrUVVZfWAfy
- Sepolia: https://sepolia.etherscan.io/tx/0x1ffc9a118ef8fb9f769b8a066ea6f5e9081e5bc1743208df83bff63a5c72a109
- open
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 |
On every EVM chain the LayerZero EndpointV2 delegate is the same Safe as the owner (verified on-chain 2026-11-27). Any setConfig() call (DVN changes, executor config, libraries) therefore requires a Safe transaction.
The OFT admin and endpoint delegate were handed from the deployer key 8ATsKQ16gNa3M9hXF7zAPvkjEREmzyhrXGHM6aKPPPDm to the Squads vault on 2026-12-03, with a one-off Solana-only config (lz:oapp:wire for the delegate, then lz:ownable:transfer-ownership for the admin):
All privileged roles of the Solana OFT are held by the WOO Squads v4 multisig EMHat941KWKCvDmxS3iWtEGqnwSric5eHjssb4SENHF (3-of-7), vault #0 (Squads UI. The app URL uses the vault address, not the multisig account):
| Role | Holder |
|---|---|
| OFT Store | 8wX49KNNCPqfMUb8F1x3XipDEfqZnsCP5dDqxaxHjLCw |
| OFT admin (owner) | 8pvYwZhuSY2GdW6zZ3PennYnRCuGtdK3BzBkGRmQbpeN (Squads vault #0) |
| Endpoint delegate | 8pvYwZhuSY2GdW6zZ3PennYnRCuGtdK3BzBkGRmQbpeN (Squads vault #0) |
Program upgrade authority (woo98ny1QLULqdTzpNM8PiJpwfzL5MJ9pAmLw1rfvk7) |
8pvYwZhuSY2GdW6zZ3PennYnRCuGtdK3BzBkGRmQbpeN (Squads vault #0) |
| Mint / freeze authority | 7GjWQNVEKAekGX5fwJcJaGbBXr49sFdfZ6DMZbg88PUW, an SPL multisig (1/1) whose only signer is the OFT Store |
| Pauser / unpauser | none |
Check the live state at any time (read-only, no key needed):
# Admin (owner) and delegate: both must print "The OApp is wired, no action is necessary"
npx hardhat lz:oapp:wire --oapp-config layerzero.config.prod.ts \
--solana-program-id woo98ny1QLULqdTzpNM8PiJpwfzL5MJ9pAmLw1rfvk7 --dry-run
npx hardhat lz:ownable:transfer-ownership --oapp-config layerzero.config.prod.ts \
--solana-program-id woo98ny1QLULqdTzpNM8PiJpwfzL5MJ9pAmLw1rfvk7 --dry-run
# Program upgrade authority ("Authority" line)
solana program show woo98ny1QLULqdTzpNM8PiJpwfzL5MJ9pAmLw1rfvk7 -u mainnet-beta
# Mint / freeze authority (the SPL multisig above)
spl-token display Dz8VutERqbHR2aFL5A3s1Ky4dG1unJT1jUFXXPaY9ytX -u mainnet-betaEvery Solana config change (peers, enforced options, DVNs, rate limits, pause) is a Squads proposal. To propose one from the wire task, pass --multisig-key EMHat941KWKCvDmxS3iWtEGqnwSric5eHjssb4SENHF (the multisig account, not the vault). --solana-secret-key must then belong to a multisig member with the Initiate permission. The signer only creates the vault transaction (vault index 0); open the proposal and vote on it in the Squads UI.
- you can find the error tx on Solana: https://solscan.io/tx/wqPf3tmMVd1SsqqEVN3sMChr7HZif96DgJTJxKLG4UvLBXhtrXHYB6j3XujQvALNk1xn1KKmfwoRnte9PtDXjne?cluster=devnet
- Lz endpoint receive tx: https://solscan.io/tx/4gnu9WCmZ2eN4F8ckrVMLGonM2hd1Hgnk5aWsiTd4Ntr8QJDnkcpsYfacrHmVFyGU2yLbj5wQoHutXrHftwwrd7E?cluster=devnet