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 XLS-38d #417

Merged
merged 137 commits into from
Sep 27, 2023
Merged

feat: add support for XLS-38d #417

merged 137 commits into from
Sep 27, 2023

Conversation

mvadari
Copy link
Collaborator

@mvadari mvadari commented Jul 11, 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 8 new transaction types:

  • XChainCreateBridge (creates a new cross-chain bridge)
  • XChainModifyBridge (modifies the properties of a cross-chain bridge)
  • XChainCreateClaimID (creates a new cross-chain claim ID)
  • XChainCommit (locks/burns the funds on the source chain)
  • XChainAccountCreateCommit (creates an account on the destination chain)
  • XChainClaim (claims the transfer funds on the destination chain)
  • XChainAddClaimAttestation (submits a claim attestation from a witness server)
  • XChainAddAccountCreateAttestation (submits an account creation attestation from a witness server)

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)

Before / After

Test Plan

Tests were added for all the new features. CI passes. I'd ideally like #571 to be included in this PR before it's merged, but if it has to wait on the Docker container and is in a separate commit, that's fine.

Comment on lines -340 to +341
self.assertEqual(encode(test_json), test_binary)
self.assertEqual(decode(test_binary), test_json)
self.assertEqual(encode(test_json), test_binary)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

IMO debugging is easier when the decode test is first

@mvadari mvadari changed the title feat: add support for current sidechain design [DO NOT MERGE] feat: add support for current sidechain design Aug 16, 2022
@mvadari mvadari marked this pull request as ready for review August 16, 2022 11:52
khancode
khancode previously approved these changes Aug 19, 2022
xrpl/models/base_model.py Outdated Show resolved Hide resolved
@mvadari mvadari changed the title [DO NOT MERGE] feat: add support for current sidechain design feat: add support for current sidechain design Sep 21, 2023
Copy link
Collaborator

@JST5000 JST5000 left a comment

Choose a reason for hiding this comment

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

LGTM - Just 2 comments (one is a naming nit, and the other asks for a comment to be added)

xrpl/models/requests/ledger_entry.py Outdated Show resolved Hide resolved
xrpl/models/requests/ledger_entry.py Outdated Show resolved Hide resolved
xrpl/models/transactions/xchain_claim.py Outdated Show resolved Hide resolved
xrpl/models/transactions/xchain_create_bridge.py Outdated Show resolved Hide resolved
@mvadari mvadari changed the title feat: add support for current sidechain design feat: add support for XLS-38d Sep 27, 2023
@mvadari mvadari merged commit 10ff296 into master Sep 27, 2023
17 checks passed
@mvadari mvadari deleted the sidechain-2.5 branch September 27, 2023 15:35
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

4 participants