MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / builtin_actors

Method builtin_actors

fendermint/rpc/src/query.rs:111–128  ·  view source on GitHub ↗

Queries the built-in actors known by the System actor.

(
        &self,
        height: FvmQueryHeight,
    )

Source from the content-addressed store, hash-verified

109
110 /// Queries the built-in actors known by the System actor.
111 async fn builtin_actors(
112 &self,
113 height: FvmQueryHeight,
114 ) -> anyhow::Result<QueryResponse<BuiltinActors>> {
115 let res = self
116 .perform(FvmQuery::BuiltinActors, height)
117 .await
118 .context("builtin actors query failed")?;
119 let height = res.height;
120 let value = {
121 let registry: Vec<(String, Cid)> = extract(res, |res| {
122 fvm_ipld_encoding::from_slice(&res.value)
123 .context("failed to decode BuiltinActors from query")
124 })?;
125 BuiltinActors { registry }
126 };
127 Ok(QueryResponse { height, value })
128 }
129
130 /// Run an ABCI query.
131 async fn perform(&self, query: FvmQuery, height: FvmQueryHeight) -> anyhow::Result<AbciQuery>;

Callers

nothing calls this directly

Implementers 1

client.rsfendermint/rpc/src/client.rs

Calls 3

extractFunction · 0.85
contextMethod · 0.80
performMethod · 0.45

Tested by

no test coverage detected