Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(oft-solana): unified debug task #1332

Open
wants to merge 1 commit into
base: feat/solana_debugging_tasks
Choose a base branch
from

Conversation

nazreen
Copy link
Contributor

@nazreen nazreen commented Feb 27, 2025

Testing

To test, run:

LAYERZERO_EXAMPLES_REPOSITORY_REF=#nazreen/solana-debug LZ_ENABLE_SOLANA_OFT_EXAMPLE=1 npx create-lz-oapp@latest

Select OFT (Solana)

building on top of #1327

Changes

  • unifies debugging for Solana OFTs under one task with the possibility of narrowing down by debug action name
  • adds Token Mint/Freeze Authority prints
  • adds a 'Checks' section
  • filters OFT Store information to most relevant ones

Sample run and output:

reviews/solana-debug $ npx hardhat lz:oft:solana:debug --eid 40168 --oft-store 9Ccpw8khitczfmj7ThadPVsrwuvNzSPMeCCrApsXYqBU                                                                 
bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
(node:74546) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
OFT Store Information
Owner: FDWHxd2QQsag4C22UYvh5uH2wHketXk4JJW7iDra6gbu
OFT Type: Native
Admin: 8jjpdyVroFJfsEi4E4XsDTH5VzcponDwWYCYFVTcPJeF
Token Mint: Epb3B9k7AhAHbHrYJ3WVDJhbA6r9cZZ2oZSuspcDF9Jt
Token Escrow: 2LJGFD4WhFDY2m9KeJeN4aL23EGPuAJA851GNYNxHQ55
Endpoint Program: 76y77prsiCMvXMjuoZ5VRrhG5qYBrUMYTE5WgHqgjEn6
----------------------------------------
OApp Registry Information
Delegate: 8jjpdyVroFJfsEi4E4XsDTH5VzcponDwWYCYFVTcPJeF
----------------------------------------
Token Information
Mint Authority: 8jjpdyVroFJfsEi4E4XsDTH5VzcponDwWYCYFVTcPJeF
Freeze Authority: None
----------------------------------------
Checks
Admin (Owner) same as Delegate: true
Token Mint Authority is OFT Store: false
----------------------------------------

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