ultralight icon indicating copy to clipboard operation
ultralight copied to clipboard

PortalNetwork: REPL Interface for Portal Network

Open cjustinobi opened this issue 10 months ago • 3 comments

This PR introduces a REPL interface for interacting with the Portal Network, enabling developers to test and manage the network more effectively.

Features:

REPL Commands:

  • .ping <network>: Send a ping request to the specified network (history or state).
  • .findnodes <network> <enr> <distances>: Locate nodes within a network using an ENR and distances.
  • .findcontent <network> <enr> <contentKey>: Search for content in a network using an ENR and content key.
  • .offer <network> <enr> <contentKey> <contentValue>: Offer content to a node in the specified network.
  • .status: Display the current status of the Portal Network and its components.

cjustinobi avatar Jan 24 '25 13:01 cjustinobi

@acolytec3 I just want to make sure I'm in the right track. Please your feedback

cjustinobi avatar Jan 24 '25 13:01 cjustinobi

Alright. Also, the methods I implemented so far are as a result of what I saw from here Are there more stuff I could have done there?

cjustinobi avatar Jan 24 '25 21:01 cjustinobi

The full rpc spec is here

I don't think we need to implement all of them but maybe like addENR would be helpful.

acolytec3 avatar Jan 24 '25 21:01 acolytec3