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

Or 1446 titan canyon upgrade sdk to supply portal deposit and passer withdrawal #116

Conversation

nguyenzung
Copy link
Member

@nguyenzung nguyenzung commented Apr 4, 2024

Upgrade SDK to

  • deposit via OptimismPortal
  • withdraw via L2ToL1MessagePassed

Added interfaces: packages/tokamak/sdk/src/portals.ts

  • depositTransaction(): deposit to L2 by using OptimismPortal
  • waitingDepositTransactionRelayed()
  • initiateWithdrawal(): create a withdrawal transaction by using L2ToL1MessagePasser
  • waitForWithdrawalTxReadyForRelay():
  • waitForWithdrawalTxReadyForRelayUsingL2Tx()
  • proveWithdrawalTransaction()
  • proveWithdrawalTransactionUsingL2Tx()
  • waitForFinalization()
  • waitForFinalizationUsingL2Tx()
  • finalizeWithdrawalTransaction()
  • finalizeWithdrawalTransactionUsingL2Tx()

There are some example tasks. We can refer it as examples of how to use the new interfaces

Thank you!

@nguyenzung nguyenzung self-assigned this Apr 4, 2024
@nguyenzung nguyenzung force-pushed the OR-1446-titan-canyon-upgrade-sdk-to-supply-Portal-deposit-and-Passer-withdrawal branch from 64b44da to d645659 Compare April 4, 2024 08:09
@nguyenzung nguyenzung force-pushed the OR-1446-titan-canyon-upgrade-sdk-to-supply-Portal-deposit-and-Passer-withdrawal branch from afd4b6d to 2dcaa9c Compare April 4, 2024 08:33
Copy link
Member

@rlgns98kr rlgns98kr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you create nice, kind code so quickly?

Thank you very much! 🥰😍

@nguyenzung
Copy link
Member Author

How do you create nice, kind code so quickly?

Thank you very much! 🥰😍

Thank you very much, Steven

I tried to follow the convention and the convention is nice ^^

@nguyenzung nguyenzung merged commit 09f8bd4 into OR-1257-Update-smart-contracts-for-deposit-TON-in-L1 Apr 5, 2024
3 checks passed
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.

None yet

2 participants