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

Add LZ compatible Wrapped TSSC & Auto Bridge #6

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

Conversation

abhi3700
Copy link
Contributor

@abhi3700 abhi3700 commented Apr 3, 2024

Description

This PR aims to incorporate "AutoBridge demo" related functionality.

  • The contract with its tests are maintained in subspace-evm-contracts repo.
  • Add scripts to handle transactions related to LayerZero (LZ) compatible wTSSC contract. The wTSSC is LZ compatible by inheriting the functions of LZ OFT.
  • Show demo of sending TSSC to another chain.
  • Add Auto Bridge script with features:
    • Verification and Execution done based on message status.
  • Add Auto script (mainly for sending tokens from Nova to Sepolia) with features:
    • set peers for both the contracts (on src & dst chains)
    • view token balances along with holder's balance.
    • send 0.01 TSSC/wTSSC tokens.
  • Add required ABIs
  • Bug Report submitted to LZ for "Backdoor Message Execution". Full story.

To view the demo for sending tokens from Subspace Nova to Sepolia testnet, watch this

@abhi3700 abhi3700 self-assigned this Apr 3, 2024
- Updated contract version from 0.8.22 to 0.8.24
- 'subspace-lz-demos' script modified and structured
- AutoBridge:
  - Add event listener script for DVN
  - Add script for deposit, send functions
  - TODO: Work on diff. layers of DVN
- yarn replaced with bun for performance.
- TODO: debug commitVerification failure issue
- Deserialized encoded packet
- Add lzReceive function
- Code refactor, Cleanup
- Add loglevel to view different logs with given verbosity
- Add message status and DVN, Executor job is done based on the message status. Now, the bridge won't crash even if already executed message is parsed into the bridge when it restarts and sense the last emitted event
@abhi3700 abhi3700 marked this pull request as ready for review April 30, 2024 04:45
@abhi3700 abhi3700 added enhancement New feature or request documentation Improvements or additions to documentation labels Apr 30, 2024
@abhi3700 abhi3700 changed the title Add LZ compatible Wrapped TSSC Add LZ compatible Wrapped TSSC & Auto Bridge Apr 30, 2024
- Add getEnvVar() function to handle the env vars.
- Add code for message detection from Sepolia now. So, we have a dual detection from either ways.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant