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: add support for current sidechain design #2012

Closed
wants to merge 21 commits into from
Closed

Conversation

mvadari
Copy link
Collaborator

@mvadari mvadari commented May 31, 2022

High Level Overview of Change

This PR adds support for the latest version of the sidechain design. It also removes the helper methods that were used for the previous version, since those are no longer needed.

There are 6 new transaction types:

  • XChainDoorCreate (creates a new door account)
  • XChainSeqNumCreate (creates a new cross-chain sequence number)
  • XChainTransfer (initiates a cross-chain transfer)
  • XChainClaim (claims the transfer funds on the destination chain)
  • new account stuff (TBD)

Context of Change

sidechain prod release

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Before / After

Test Plan

Tests were added for all the new features. CI passes.

Future Tasks

  • Better documentation for the xrpl.js objects
  • Add more tests at the xrpl.js level

Comment on lines -150 to +151
const bytes = this.bytes
const bytes = Buffer.alloc(this.bytes.length)
this.bytes.copy(bytes)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This fixes a minor issue I ran into, where I wasn't expecting toJSON to modify this.bytes

@mvadari
Copy link
Collaborator Author

mvadari commented Jul 11, 2022

Superseded by #2039

@mvadari mvadari closed this Jul 11, 2022
@ckniffen ckniffen deleted the sidechain-2 branch October 13, 2023 21:48
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