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

feat: move afj to credo-ts


Signed-off-by: default avatarBerend Sliedrecht <berend@animo.id>
parent 22c8dbf3
No related branches found
No related tags found
1 merge request!36feat: move afj to credo-ts
Showing
with 43 additions and 57 deletions
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
"test": "jest" "test": "jest"
}, },
"dependencies": { "dependencies": {
"@aries-framework/anoncreds": "0.4.2", "@credo-ts/anoncreds": "^0.5.0-alpha.116",
"@aries-framework/core": "0.4.2", "@credo-ts/core": "^0.5.0-alpha.116",
"@aries-framework/tenants": "^0.4.2", "@credo-ts/tenants": "^0.5.0-alpha.116",
"@elastic/ecs-winston-format": "^1.5.0", "@elastic/ecs-winston-format": "^1.5.0",
"@nestjs/axios": "^3.0.1", "@nestjs/axios": "^3.0.1",
"@nestjs/swagger": "^7.1.17", "@nestjs/swagger": "^7.1.17",
......
...@@ -2,7 +2,7 @@ import { ...@@ -2,7 +2,7 @@ import {
ConnectionRecord, ConnectionRecord,
DidExchangeRole, DidExchangeRole,
DidExchangeState, DidExchangeState,
} from '@aries-framework/core'; } from '@credo-ts/core';
import { import {
EventDidcommConnectionsBlock, EventDidcommConnectionsBlock,
......
import { DidDocument } from '@aries-framework/core'; import { DidDocument } from '@credo-ts/core';
import { EventDidsResolve } from '../didEvents.js'; import { EventDidsResolve } from '../didEvents.js';
......
import { TenantRecord } from '@aries-framework/tenants'; import { TenantRecord } from '@credo-ts/tenants';
import { EventTenantsCreate } from '../tenantEvents.js'; import { EventTenantsCreate } from '../tenantEvents.js';
......
import { utils } from '@aries-framework/core'; import { utils } from '@credo-ts/core';
export class BaseEvent<T = Record<string, unknown>, TenantIdType = string> { export class BaseEvent<T = Record<string, unknown>, TenantIdType = string> {
public readonly id: string; public readonly id: string;
......
import type { BaseEventInput } from './baseEvents.js'; import type { BaseEventInput } from './baseEvents.js';
import { ConnectionRecord, JsonTransformer } from '@aries-framework/core'; import { ConnectionRecord, JsonTransformer } from '@credo-ts/core';
import { BaseEvent } from './baseEvents.js'; import { BaseEvent } from './baseEvents.js';
......
import type { BaseEventInput } from './baseEvents.js'; import type { BaseEventInput } from './baseEvents.js';
import type { AnonCredsCredentialDefinition } from '@aries-framework/anoncreds'; import type { AnonCredsCredentialDefinition } from '@credo-ts/anoncreds';
import { BaseEvent } from './baseEvents.js'; import { BaseEvent } from './baseEvents.js';
......
import type { BaseEventInput } from './baseEvents.js'; import type { BaseEventInput } from './baseEvents.js';
import { import { CredentialExchangeRecord, JsonTransformer } from '@credo-ts/core';
CredentialExchangeRecord,
JsonTransformer,
} from '@aries-framework/core';
import { BaseEvent } from './baseEvents.js'; import { BaseEvent } from './baseEvents.js';
......
import type { BaseEventInput } from './baseEvents.js'; import type { BaseEventInput } from './baseEvents.js';
import { import { CredentialExchangeRecord, JsonTransformer } from '@credo-ts/core';
CredentialExchangeRecord,
JsonTransformer,
} from '@aries-framework/core';
import { BaseEvent } from './baseEvents.js'; import { BaseEvent } from './baseEvents.js';
......
import type { BaseEventInput } from './baseEvents.js'; import type { BaseEventInput } from './baseEvents.js';
import { import { CredentialExchangeRecord, JsonTransformer } from '@credo-ts/core';
CredentialExchangeRecord,
JsonTransformer,
} from '@aries-framework/core';
import { BaseEvent } from './baseEvents.js'; import { BaseEvent } from './baseEvents.js';
......
import type { BaseEventInput } from './baseEvents.js'; import type { BaseEventInput } from './baseEvents.js';
import { DidDocument, JsonTransformer } from '@aries-framework/core'; import { DidDocument, JsonTransformer } from '@credo-ts/core';
import { BaseEvent } from './baseEvents.js'; import { BaseEvent } from './baseEvents.js';
......
...@@ -2,9 +2,9 @@ import type { BaseEventInput } from './baseEvents.js'; ...@@ -2,9 +2,9 @@ import type { BaseEventInput } from './baseEvents.js';
import type { import type {
AnonCredsPredicateType, AnonCredsPredicateType,
AnonCredsProofRequestRestriction, AnonCredsProofRequestRestriction,
} from '@aries-framework/anoncreds'; } from '@credo-ts/anoncreds';
import { JsonTransformer, ProofExchangeRecord } from '@aries-framework/core'; import { JsonTransformer, ProofExchangeRecord } from '@credo-ts/core';
import { BaseEvent } from './baseEvents.js'; import { BaseEvent } from './baseEvents.js';
......
import type { BaseEventInput } from './baseEvents.js'; import type { BaseEventInput } from './baseEvents.js';
import type { AnonCredsSchema } from '@aries-framework/anoncreds'; import type { AnonCredsSchema } from '@credo-ts/anoncreds';
import { BaseEvent } from './baseEvents.js'; import { BaseEvent } from './baseEvents.js';
......
import type { BaseEventInput } from './baseEvents.js'; import type { BaseEventInput } from './baseEvents.js';
import { JsonTransformer } from '@aries-framework/core'; import { JsonTransformer } from '@credo-ts/core';
import { TenantRecord } from '@aries-framework/tenants'; import { TenantRecord } from '@credo-ts/tenants';
import { BaseEvent } from './baseEvents.js'; import { BaseEvent } from './baseEvents.js';
......
...@@ -20,7 +20,7 @@ limitations under the License. ...@@ -20,7 +20,7 @@ limitations under the License.
This SSI-Abstraction incorporates This SSI-Abstraction incorporates
"aries-framework" "credo-ts"
Aries Framework JavaScript is a framework written in TypeScript for building Aries Framework JavaScript is a framework written in TypeScript for building
SSI Agents and DIDComm services that aims to be compliant and interoperable with SSI Agents and DIDComm services that aims to be compliant and interoperable with
......
...@@ -14,17 +14,16 @@ ...@@ -14,17 +14,16 @@
"test": "jest" "test": "jest"
}, },
"dependencies": { "dependencies": {
"@aries-framework/anoncreds": "0.4.2", "@credo-ts/anoncreds": "0.5.0-alpha.116",
"@aries-framework/anoncreds-rs": "0.4.2", "@credo-ts/askar": "0.5.0-alpha.116",
"@aries-framework/askar": "0.4.2", "@credo-ts/core": "0.5.0-alpha.116",
"@aries-framework/core": "0.4.2", "@credo-ts/indy-vdr": "0.5.0-alpha.116",
"@aries-framework/indy-vdr": "0.4.2", "@credo-ts/node": "0.5.0-alpha.116",
"@aries-framework/node": "0.4.2", "@credo-ts/tenants": "^0.5.0-alpha.116",
"@aries-framework/tenants": "^0.4.2",
"@elastic/ecs-winston-format": "^1.5.0", "@elastic/ecs-winston-format": "^1.5.0",
"@hyperledger/anoncreds-nodejs": "^0.1.0", "@hyperledger/anoncreds-nodejs": "^0.2.0-dev.9",
"@hyperledger/aries-askar-nodejs": "^0.1.0", "@hyperledger/aries-askar-nodejs": "^0.2.0-dev.6",
"@hyperledger/indy-vdr-nodejs": "^0.1.0", "@hyperledger/indy-vdr-nodejs": "^0.2.0-dev.6",
"@nestjs/axios": "^3.0.1", "@nestjs/axios": "^3.0.1",
"@nestjs/common": "^10.3.0", "@nestjs/common": "^10.3.0",
"@nestjs/config": "^3.1.1", "@nestjs/config": "^3.1.1",
......
import type { LedgerIds } from '../config/ledger.js'; import type { LedgerIds } from '../config/ledger.js';
import type { InitConfig } from '@aries-framework/core'; import type { InitConfig } from '@credo-ts/core';
import type { IndyVdrPoolConfig } from '@aries-framework/indy-vdr'; import type { IndyVdrPoolConfig } from '@credo-ts/indy-vdr';
import type { OnApplicationShutdown } from '@nestjs/common'; import type { OnApplicationShutdown } from '@nestjs/common';
import { import {
...@@ -9,9 +9,8 @@ import { ...@@ -9,9 +9,8 @@ import {
AnonCredsProofFormatService, AnonCredsProofFormatService,
LegacyIndyCredentialFormatService, LegacyIndyCredentialFormatService,
LegacyIndyProofFormatService, LegacyIndyProofFormatService,
} from '@aries-framework/anoncreds'; } from '@credo-ts/anoncreds';
import { AnonCredsRsModule } from '@aries-framework/anoncreds-rs'; import { AskarModule } from '@credo-ts/askar';
import { AskarModule } from '@aries-framework/askar';
import { import {
Agent, Agent,
ConnectionsModule, ConnectionsModule,
...@@ -29,16 +28,16 @@ import { ...@@ -29,16 +28,16 @@ import {
V2CredentialProtocol, V2CredentialProtocol,
V2ProofProtocol, V2ProofProtocol,
WebDidResolver, WebDidResolver,
} from '@aries-framework/core'; } from '@credo-ts/core';
import { import {
IndyVdrAnonCredsRegistry, IndyVdrAnonCredsRegistry,
IndyVdrIndyDidRegistrar, IndyVdrIndyDidRegistrar,
IndyVdrIndyDidResolver, IndyVdrIndyDidResolver,
IndyVdrModule, IndyVdrModule,
IndyVdrSovDidResolver, IndyVdrSovDidResolver,
} from '@aries-framework/indy-vdr'; } from '@credo-ts/indy-vdr';
import { agentDependencies, HttpInboundTransport } from '@aries-framework/node'; import { agentDependencies, HttpInboundTransport } from '@credo-ts/node';
import { TenantsModule } from '@aries-framework/tenants'; import { TenantsModule } from '@credo-ts/tenants';
import { anoncreds } from '@hyperledger/anoncreds-nodejs'; import { anoncreds } from '@hyperledger/anoncreds-nodejs';
import { ariesAskar } from '@hyperledger/aries-askar-nodejs'; import { ariesAskar } from '@hyperledger/aries-askar-nodejs';
import { indyVdr } from '@hyperledger/indy-vdr-nodejs'; import { indyVdr } from '@hyperledger/indy-vdr-nodejs';
...@@ -127,8 +126,8 @@ export class AgentService implements OnApplicationShutdown { ...@@ -127,8 +126,8 @@ export class AgentService implements OnApplicationShutdown {
], ],
}), }),
anoncredsRs: new AnonCredsRsModule({ anoncreds }),
anoncreds: new AnonCredsModule({ anoncreds: new AnonCredsModule({
anoncreds,
registries: [new IndyVdrAnonCredsRegistry()], registries: [new IndyVdrAnonCredsRegistry()],
}), }),
indyVdr: new IndyVdrModule({ indyVdr, networks: this.ledgers }), indyVdr: new IndyVdrModule({ indyVdr, networks: this.ledgers }),
...@@ -146,7 +145,7 @@ export class AgentService implements OnApplicationShutdown { ...@@ -146,7 +145,7 @@ export class AgentService implements OnApplicationShutdown {
new PeerDidRegistrar(), new PeerDidRegistrar(),
new KeyDidRegistrar(), new KeyDidRegistrar(),
new JwkDidRegistrar(), new JwkDidRegistrar(),
new IndyVdrIndyDidRegistrar() new IndyVdrIndyDidRegistrar(),
], ],
}), }),
......
import { import { CredentialExchangeRecord, CredentialState } from '@credo-ts/core';
CredentialExchangeRecord,
CredentialState,
} from '@aries-framework/core';
import { Test } from '@nestjs/testing'; import { Test } from '@nestjs/testing';
import { mockConfigModule } from '../../../config/__tests__/mockConfig.js'; import { mockConfigModule } from '../../../config/__tests__/mockConfig.js';
......
...@@ -14,7 +14,7 @@ import { ...@@ -14,7 +14,7 @@ import {
EventDidcommAnonCredsCredentialsOffer, EventDidcommAnonCredsCredentialsOffer,
EventDidcommAnonCredsCredentialsOfferInput, EventDidcommAnonCredsCredentialsOfferInput,
EventDidcommAnonCredsCredentialsOfferToSelf, EventDidcommAnonCredsCredentialsOfferToSelf,
EventDidcommAnonCredsCredentialsOfferToSelfInput EventDidcommAnonCredsCredentialsOfferToSelfInput,
} from '@ocm/shared'; } from '@ocm/shared';
import { AnonCredsCredentialsService } from './anoncredsCredentials.service.js'; import { AnonCredsCredentialsService } from './anoncredsCredentials.service.js';
......
import type { CredentialExchangeRecord} from '@aries-framework/core'; import type { CredentialExchangeRecord } from '@credo-ts/core';
import type { import type {
EventAnonCredsCredentialOfferGetAll, EventAnonCredsCredentialOfferGetAll,
EventAnonCredsCredentialOfferGetAllInput, EventAnonCredsCredentialOfferGetAllInput,
...@@ -15,10 +15,10 @@ import type { ...@@ -15,10 +15,10 @@ import type {
EventDidcommAnonCredsCredentialsOffer, EventDidcommAnonCredsCredentialsOffer,
EventDidcommAnonCredsCredentialsOfferInput, EventDidcommAnonCredsCredentialsOfferInput,
EventDidcommAnonCredsCredentialsOfferToSelf, EventDidcommAnonCredsCredentialsOfferToSelf,
EventDidcommAnonCredsCredentialsOfferToSelfInput EventDidcommAnonCredsCredentialsOfferToSelfInput,
} from '@ocm/shared'; } from '@ocm/shared';
import { AutoAcceptCredential, CredentialState } from '@aries-framework/core'; import { AutoAcceptCredential, CredentialState } from '@credo-ts/core';
import { Injectable } from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import { logger } from '@ocm/shared'; import { logger } from '@ocm/shared';
......
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