ultralight
ultralight copied to clipboard
PortalNetwork: REPL Interface for Portal Network
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 (historyorstate)..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.
@acolytec3 I just want to make sure I'm in the right track. Please your feedback
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?
The full rpc spec is here
I don't think we need to implement all of them but maybe like addENR would be helpful.