Skip to content
Snippets Groups Projects
Commit 7339541b authored by Berend Sliedrecht's avatar Berend Sliedrecht
Browse files

feat: use credo-ts


Signed-off-by: default avatarBerend Sliedrecht <berend@animo.id>
parent 2fa1cb78
No related branches found
No related tags found
1 merge request!40End to end run preparation
......@@ -55,6 +55,7 @@ export type EventDidcommAnonCredsCredentialsOfferInput = BaseEventInput<{
credentialDefinitionId: string;
attributes: Array<{ name: string; value: string; mimeType?: string }>;
revocationRegistryDefinitionId?: string;
revocationRegistryIndex?: number;
}>;
export class EventDidcommAnonCredsCredentialsOffer extends BaseEvent<CredentialExchangeRecord> {
public static token = 'didcomm.anoncreds.credentials.offer';
......
......@@ -154,6 +154,7 @@ export class AnonCredsCredentialsService {
connectionId,
credentialDefinitionId,
attributes,
revocationRegistryIndex,
revocationRegistryDefinitionId,
}: EventDidcommAnonCredsCredentialsOfferInput): Promise<
EventDidcommAnonCredsCredentialsOffer['data']
......@@ -179,6 +180,7 @@ export class AnonCredsCredentialsService {
tenantId,
credentialDefinitionId,
attributes,
revocationRegistryIndex,
revocationRegistryDefinitionId,
}: EventDidcommAnonCredsCredentialsOfferToSelfInput): Promise<
EventDidcommAnonCredsCredentialsOfferToSelf['data']
......
......@@ -113,7 +113,7 @@ describe('Revocation', () => {
client.close();
});
it(
xit(
EventAnonCredsRevocationRegisterRevocationRegistryDefinition.token,
async () => {
const response$ = client.send<
......@@ -233,6 +233,7 @@ describe('Revocation', () => {
{ name: 'Age', value: '30' },
],
revocationRegistryDefinitionId: revRegDefId,
revocationRegistryIndex: 10,
credentialDefinitionId,
});
const response = await firstValueFrom(response$);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment