Skip to content

Fix Relay Issue#51

Merged
iljabvh merged 8 commits intomasterfrom
50_fix_relay_issues
Mar 2, 2026
Merged

Fix Relay Issue#51
iljabvh merged 8 commits intomasterfrom
50_fix_relay_issues

Conversation

@NhoxxKienn
Copy link
Copy Markdown
Contributor

This PR aims to solve the issue #50. It should update the examples to go-perun v0.15.0 and update the ethereum CI to migrate from Ganache to Hardhat developement node.

…d go-perun v0.15

Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
…hardhat node

Signed-off-by: Minh Huy Tran <huy@perun.network>
…m hardhat devnet

Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
Signed-off-by: Minh Huy Tran <huy@perun.network>
@NhoxxKienn NhoxxKienn requested review from Copilot and iljabvh January 20, 2026 11:06
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the go-perun examples to version 0.15.0 and migrates the Ethereum development environment from Ganache to Hardhat. The changes consolidate peer-to-peer networking setup by integrating libp2p directly into go-perun and replacing the external perun-libp2p-wire dependency.

Changes:

  • Updated go-perun dependency from v0.13.1 to v0.15.0 across all example projects
  • Migrated Ethereum local node setup from Ganache CLI to Hardhat development node
  • Refactored P2P bus setup to use integrated libp2p implementation from go-perun

Reviewed changes

Copilot reviewed 50 out of 57 changed files in this pull request and generated no comments.

Show a summary per file
File Description
payment-channel/util.go Added setupBusWire helper function for P2P networking
payment-channel/main.go Refactored to use new setupBusWire function instead of external libp2p library
payment-channel/package.json Added Hardhat as development dependency
payment-channel/hardhat.config.js Configured Hardhat node with test accounts and mining settings
payment-channel/go.mod Updated go-perun to v0.15.0, removed perun-libp2p-wire dependency
payment-channel/README.md Updated documentation to reflect Hardhat usage
.github/workflows/ci.yml Updated CI workflow to use Hardhat instead of Ganache
multiledger-channel/. Applied same migration pattern for multiledger examples
app-channel/. Applied same migration pattern for app channel examples
payment-channel-xlm/. Applied same migration pattern for Stellar examples
payment-channel-icp/. Applied same migration pattern for ICP examples
payment-channel-dot/. Applied same migration pattern for Polkadot examples
payment-channel-ckb-eth/. Applied same migration pattern for CKB-ETH examples
payment-channel-cc/. Applied same migration pattern for cross-contract examples
Comments suppressed due to low confidence (2)

payment-channel/hardhat.config.js:1

  • The 'type' field is not a standard Hardhat configuration option. If this is a custom configuration for a specific plugin or feature, it should be documented in comments explaining its purpose.
    payment-channel/util.go:1
  • The function name 'setupBusWire' is ambiguous. Consider renaming to 'setupP2PBus' or 'createP2PBusWithDialer' to better reflect that it creates a bus instance and returns a dialer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@iljabvh iljabvh merged commit 6e975e7 into master Mar 2, 2026
8 of 9 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.

3 participants