MCPcopy Create free account
hub / github.com/dfinity/orbit / next_wasm_module_version

Method next_wasm_module_version

core/control-panel/impl/src/controllers/registry.rs:87–98  ·  view source on GitHub ↗

Returns the next wasm module for the given wasm module name and current version, if any.

(
        &self,
        input: NextWasmModuleVersionInput,
    )

Source from the content-addressed store, hash-verified

85
86 /// Returns the next wasm module for the given wasm module name and current version, if any.
87 pub async fn next_wasm_module_version(
88 &self,
89 input: NextWasmModuleVersionInput,
90 ) -> ApiResult<NextWasmModuleVersionResponse> {
91 let entry = self
92 .registry_service
93 .find_next_wasm_module_version(&input.name, &input.current_version)?;
94
95 Ok(NextWasmModuleVersionResponse {
96 entry: entry.map(|e| e.into()),
97 })
98 }
99
100 /// Searches the registry for entries.
101 pub async fn search_registry(

Callers 2

next_wasm_module_versionFunction · 0.80
findNextModuleVersionMethod · 0.80

Calls 2

mapMethod · 0.80

Tested by

no test coverage detected