Skip to content

create conversion script for devtools solana txs#39

Draft
DanL0 wants to merge 1 commit intomainfrom
feat/convert-txs-script
Draft

create conversion script for devtools solana txs#39
DanL0 wants to merge 1 commit intomainfrom
feat/convert-txs-script

Conversation

@DanL0
Copy link
Collaborator

@DanL0 DanL0 commented Feb 10, 2026

How to use

Prepare devtools transactions to send on Solana, eg.:

npx hardhat lz:oft:solana:init-config --oapp-config [oft.layerzero.mainnet.config.ts](http://oft.layerzero.mainnet.config.ts/) --output-filename init-txs.json

Run converter:

cargo run -p convert-txs -- init-txs.json

Simulate resulting base64 transactions in Solana Inspector (sometimes it might not be possible due to depending on previous state changes).

Take the "dstTarget" and "dstCallData" and push it through the Governance bridge. Remember to drop some SOL in the process to CPI Authority (eg. for Pause Proxy AYPtjx4Hc8us1ikULUedkmZ3wtiD6tmL7gK3qe4V3oHt). You can send manually on Solana or use Native Drop feature of LZ.

Disclaimer:
Script hasn't been audited. Please take caution where using the script, and double check generated transaction accounts, data, ideally by running simulation in Solana Explorer.

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