Skip to content

Commit

Permalink
chore: merge remote-tracking branch 'upstream/main' into feat/smart-s…
Browse files Browse the repository at this point in the history
…chema-and-creds

Signed-off-by: Moriarty <[email protected]>
  • Loading branch information
Moriarty committed Jul 4, 2022
2 parents d15b198 + 95f90a5 commit e463253
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 11 deletions.
1 change: 1 addition & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { uuid } from './utils/uuid'
export * from './plugins'
export * from './transport'
export * from './modules/basic-messages'
export * from './modules/common'
export * from './modules/credentials'
export * from './modules/proofs'
export * from './modules/connections'
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/modules/connections/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from './repository'
export * from './services'
export * from './ConnectionEvents'
export * from './ConnectionsModule'
export * from './DidExchangeProtocol'
1 change: 1 addition & 0 deletions packages/core/src/modules/dids/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from './types'
export * from './domain'
export * from './DidsModule'
export * from './repository'
export * from './services'
export { DidKey } from './methods/key/DidKey'
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jest.mock('../services/IndyPoolService')
const IndyPoolServiceMock = IndyPoolService as jest.Mock<IndyPoolService>
jest.mock('../../indy/services/IndyIssuerService')
const IndyIssuerServiceMock = IndyIssuerService as jest.Mock<IndyIssuerService>

jest.mock('../../../cache/CacheRepository')
const CacheRepositoryMock = CacheRepository as jest.Mock<CacheRepository>

Expand Down
10 changes: 0 additions & 10 deletions packages/core/src/modules/ledger/services/IndyLedgerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,6 @@ export class IndyLedgerService {
}
}

public async findByCredentialDefinitionId(credentialDefinitionId: string) {
try {
await this.getCredentialDefinition(credentialDefinitionId)
} catch (e) {
if (e instanceof IndySdkError) return null

throw e
}
}

public async getCredentialDefinition(credentialDefinitionId: string) {
const did = didFromCredentialDefinitionId(credentialDefinitionId)
const { pool } = await this.indyPoolService.getPoolForDid(did)
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/modules/oob/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export * from './messages'
export * from './repository'
export * from './OutOfBandModule'
export * from './OutOfBandService'
1 change: 1 addition & 0 deletions packages/core/src/modules/routing/services/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './MessagePickupService'
export * from './MediationRecipientService'
export * from './MediatorService'
export * from './RoutingService'

0 comments on commit e463253

Please sign in to comment.