Skip to content

Commit

Permalink
Kestrel runtime ready
Browse files Browse the repository at this point in the history
  • Loading branch information
ntn-x2 committed Jan 20, 2025
1 parent a004178 commit 232075b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion runtimes/kestrel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,9 @@ impl_runtime_apis! {
LinkableAccountId,
Balance,
Hash,
BlockNumber
BlockNumber,
(),
()
> for Runtime {
fn query_by_web3_name(name: Vec<u8>) -> Option<kilt_runtime_api_did::RawDidLinkedInfo<
DidIdentifier,
Expand Down Expand Up @@ -1133,6 +1135,16 @@ impl_runtime_apis! {
>> {
dids.into_iter().map(Self::query).collect()
}

// We don't return anything here, since the runtime does not require the resources to be cleaned up.
fn linked_resources(_did: DidIdentifier) -> Vec<()> {
[].into()
}

// We don't return anything here, since the runtime does not require the resources to be cleaned up.
fn linked_resources_deletion_calls(_did: DidIdentifier) -> Vec<()> {
[].into()
}
}

impl kilt_runtime_api_public_credentials::PublicCredentials<Block, Vec<u8>, Hash, public_credentials::CredentialEntry<Hash, DidIdentifier, BlockNumber, AccountId, Balance, AuthorizationId<<Runtime as delegation::Config>::DelegationNodeId>>, PublicCredentialsFilter<Hash, AccountId>, PublicCredentialsApiError> for Runtime {
Expand Down

0 comments on commit 232075b

Please sign in to comment.