mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 07:08:05 -05:00
This commit introduces a new RPC contract module to the Explorerd implementation. The module adds three RPC methods to enhance the functionality of the explorer service: - `contracts.get_native_contracts`: Retrieves the native contracts deployed in the DarkFi network. - `contracts.get_contract_source_code_paths`: Fetches the source code paths for a specified contract. - `contracts.get_contract_source`: Retrieves the source code content for a given contract and source path. These additions will allow users to retrieve contract-related information more through the RPC interface, enhancing the overall functionality of the explorer. ### Testing Manual testing has been performed through the UI to verify the correct functionality of the new RPC methods, ensuring they properly retrieve and display contract-related information. We opted for manual testing because the underlying service and data layer already have reliable unit tests, providing confidence in the core functionality. This approach sufficiently validates the functionality of the new RPC methods within the overall explorer context.