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(cctx): accept both inbound and cctx hash #45

Merged
merged 15 commits into from
Sep 12, 2023

Conversation

fadeev
Copy link
Member

@fadeev fadeev commented Aug 29, 2023

  • Shows how many CCTXs are pending in front of the one you're tracking
  • Replaced BlockPI with ZetaChain's own WSS, because the former one was closing connection after 1 block (decided not to make a reconnecting socket for now)
  • Added --json for non-interactive use
  • Checks a tx on the destination chain. Currently not used in the UI, but this is good to have for integration testing: broadcast a tx, then run npx hardhat cctx --json and read the output to check that the CCTX has been successfully processed on the destination chain.
npx hardhat cctx 0xe6cac4dc7b978806bdd37262f3253289fb8a160a855275faf28a5196aa5ba4a9

✓ CCTXs on ZetaChain found.

✓ 0x0967302e138ad26abf9a4f40c2bd6c234324f650db2b4b50f39332d230c64fb4: 80001 → 7001: OutboundMined (Remote omnichain contract call completed)
✓ 0x0b9f9e90dc6eaddc4129a35efa9a34bdc08b3dfd4e778a8385aa9b33d44a74e6: 7001 → 5: OutboundMined 
✓ 0x63d075e03928ff060a2fe9eae3efada4a8c3c4321f64e079de28fabb98d74c03: 7001 → 97: OutboundMined 
npx hardhat cctx 0x0967302e138ad26abf9a4f40c2bd6c234324f650db2b4b50f39332d230c64fb4

✓ CCTXs on ZetaChain found.

✓ 0x0967302e138ad26abf9a4f40c2bd6c234324f650db2b4b50f39332d230c64fb4: 80001 → 7001: OutboundMined (Remote omnichain contract call completed)
✓ 0x0b9f9e90dc6eaddc4129a35efa9a34bdc08b3dfd4e778a8385aa9b33d44a74e6: 7001 → 5: OutboundMined 
✓ 0x63d075e03928ff060a2fe9eae3efada4a8c3c4321f64e079de28fabb98d74c03: 7001 → 97: OutboundMined 
npx hardhat cctx 0x15ffebf79fa050c2bc1a1eb5abaaf88c9332f327c5b3e0c564fe0c90eba74cf3

✓ CCTXs on ZetaChain found.

✓ 0xb3c209fbe8eb556914bd2151d0a3c4b10325c36389dc4ee57d10153e6f50cc2b: 7001 → 5: OutboundMined 
✓ 0x15ffebf79fa050c2bc1a1eb5abaaf88c9332f327c5b3e0c564fe0c90eba74cf3: 80001 → 7001: OutboundMined (Remote omnichain contract call completed)

@fadeev fadeev changed the title cctx feat(cctx): accept both inbound and cctx hash Aug 29, 2023
@fadeev fadeev marked this pull request as ready for review September 6, 2023 04:20
@fadeev fadeev merged commit d7b6c52 into main Sep 12, 2023
6 checks passed
@fadeev fadeev deleted the feat/cctx-accept-inbound-and-cctx branch September 12, 2023 04:44
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.

2 participants