NewLocalRPCClient creates a new LocalRPCClient wrapping the local client with a local registry instance to avoid mutating global discovery state.
(lc *local.Local, registry *aclient.VersionRegistry)
| 20 | // NewLocalRPCClient creates a new LocalRPCClient wrapping the local client |
| 21 | // with a local registry instance to avoid mutating global discovery state. |
| 22 | func NewLocalRPCClient(lc *local.Local, registry *aclient.VersionRegistry) *LocalRPCClient { |
| 23 | return &LocalRPCClient{Local: lc, registry: registry} |
| 24 | } |
| 25 | |
| 26 | // Akash implements the RPCClient interface required by chain-sdk. |
| 27 | // Returns version discovery info from the local registry. |