Skip to content

Commit a3c80ba

Browse files
authored
Removing id_graph_stats getter and related tests (#2600)
1 parent c27495d commit a3c80ba

File tree

8 files changed

+3
-242
lines changed

8 files changed

+3
-242
lines changed

tee-worker/app-libs/stf/src/getter.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ pub enum TrustedGetter {
124124
// litentry
125125
#[codec(index = 5)]
126126
id_graph(Identity),
127-
#[codec(index = 6)]
128-
id_graph_stats(Identity),
129127
}
130128

131129
impl TrustedGetter {
@@ -141,7 +139,6 @@ impl TrustedGetter {
141139
TrustedGetter::evm_account_storages(sender_identity, ..) => sender_identity,
142140
// litentry
143141
TrustedGetter::id_graph(sender_identity) => sender_identity,
144-
TrustedGetter::id_graph_stats(sender_identity) => sender_identity,
145142
}
146143
}
147144

@@ -253,14 +250,6 @@ impl ExecuteGetter for TrustedGetterSigned {
253250
},
254251
// litentry
255252
TrustedGetter::id_graph(who) => Some(IdentityManagement::id_graph(&who).encode()),
256-
257-
// TODO: we need to re-think it
258-
// currently, _who is ignored meaning it's actually not a "trusted" getter.
259-
// In fact, in the production no one should have access to the concrete identities
260-
// but maybe it makes sense to get some statistic information
261-
// Disabled until it's resolved
262-
// Disabled the test `lit-id-graph-stats` too
263-
TrustedGetter::id_graph_stats(_who) => None,
264253
}
265254
}
266255

tee-worker/cli/lit_id_graph_stats.sh

Lines changed: 0 additions & 110 deletions
This file was deleted.

tee-worker/cli/src/trusted_base_cli/commands/litentry/id_graph_stats.rs

Lines changed: 0 additions & 60 deletions
This file was deleted.

tee-worker/cli/src/trusted_base_cli/commands/litentry/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
pub mod get_storage;
1818
pub mod id_graph;
19-
pub mod id_graph_stats;
2019
pub mod link_identity;
2120
pub mod remove_identity;
2221
pub mod request_batch_vc;

tee-worker/cli/src/trusted_base_cli/mod.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ use crate::{
2121
get_shard::GetShardCommand,
2222
get_shard_vault::GetShardVaultCommand,
2323
litentry::{
24-
get_storage::GetStorageCommand, id_graph_stats::IDGraphStats,
25-
link_identity::LinkIdentityCommand, remove_identity::RemoveIdentityCommand,
26-
request_batch_vc::RequestBatchVcCommand, request_vc::RequestVcCommand,
24+
get_storage::GetStorageCommand, link_identity::LinkIdentityCommand,
25+
remove_identity::RemoveIdentityCommand, request_batch_vc::RequestBatchVcCommand,
26+
request_vc::RequestVcCommand,
2727
send_erroneous_parentchain_call::SendErroneousParentchainCallCommand,
2828
},
2929
nonce::NonceCommand,
@@ -81,9 +81,6 @@ pub enum TrustedBaseCommand {
8181
/// send an erroneous parentchain call intentionally, only used in tests
8282
SendErroneousParentchainCall(SendErroneousParentchainCallCommand),
8383

84-
/// Disabled for now: get count of all keys account + identity in the IDGraphs
85-
IDGraphStats(IDGraphStats),
86-
8784
/// Link the given identity to the prime identity, with specified networks
8885
LinkIdentity(LinkIdentityCommand),
8986

@@ -115,7 +112,6 @@ impl TrustedBaseCommand {
115112
// Litentry's commands below
116113
TrustedBaseCommand::GetStorage(cmd) => cmd.run(cli, trusted_cli),
117114
TrustedBaseCommand::SendErroneousParentchainCall(cmd) => cmd.run(cli, trusted_cli),
118-
TrustedBaseCommand::IDGraphStats(cmd) => cmd.run(cli, trusted_cli),
119115
TrustedBaseCommand::LinkIdentity(cmd) => cmd.run(cli, trusted_cli),
120116
TrustedBaseCommand::IDGraph(cmd) => cmd.run(cli, trusted_cli),
121117
TrustedBaseCommand::RequestVc(cmd) => cmd.run(cli, trusted_cli),

tee-worker/client-api/parachain-api/prepare-build/interfaces/trusted_operations/definitions.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export default {
2626
__Unused_evm_account_codes: "Null",
2727
__Unused_evm_account_storages: "Null",
2828
id_graph: "(LitentryIdentity)",
29-
id_graph_stats: "(LitentryIdentity)",
3029
},
3130
},
3231
//important

tee-worker/docker/lit-id-graph-stats-multiworker.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

tee-worker/docker/lit-id-graph-stats.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)