Open vrypan opened 11 months ago
Your proposal to implement the "HubService.GetOnChainEndpoints" endpoint to retrieve contract addresses dynamically is well-structured. Here is a detained explanation on how you can pull this:
DESCRIPTION OF NEW FEATURE UPDATE
Enhance "HubService.GetInfo" to include the retrieval of contract addresses for critical components such as "IdRegistry", "KeyRegistry", "StorageRegistry", "Bundler", and "SignedKeyRequestValidator". Introduce a new RPC endpoint, "HubService.GetOnChainEndpoints", specifically designed to return these addresses in a structured format. Its importance has already been stated abo
UPDATE PROTOCOL SPECIFICATION
New Endpoint Definition: Introduce "HubService.GetOnChainEndpoints" as a new RPC endpoint. This ensures compatibility with existing implementations by segregating new functionality.
Message Definition ("OnChainEndpoints"):
rpc GetOnChainEndpoints(Empty) returns (OnChainEndpoints);
message OnChainEndpoints {
bytes IdRegistry = 1;
bytes KeyRegistry = 2;
bytes StorageRegistry = 3;
bytes Bundler = 4;
bytes SignedKeyRequestValidator = 5;
}
Steps For Implementation
Backend Logic:
Integration Testing:
Documentation Update:
Deployment and Rollout:
Other factors to consider for effective implementation
By following this structured approach, you can successfully implement the feature, and support easier maintenance and migration processes for contract addresses in the future.
Why haven’t this been treated. This needs to be treated urgently
What is the feature you would like to implement? I would like HubService.GetInfo to report the contract addresses used:
IdRegistry
,KeyRegistry
,StorageRegistry
,Bundler
andSignedKeyRequestValidator
Why is this feature important?
Will the protocol spec need to be updated?? Yes. Depending on how this feature will be implemented, 3.2.3 RPC Endpoints will have to be updated.
How should this feature be built? (optional) I suggest a new endpoint
HubService.GetOnChainEndpoints
is implemented to avoid breaking backwords compatibility.