Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: issue credential v2 #649

Closed
Closed
Show file tree
Hide file tree
Changes from 144 commits
Commits
Show all changes
197 commits
Select commit Hold shift + click to select a range
8690411
refactor: initial proof module directory for v1 and v2
NB-PrasadKatkar Dec 14, 2021
15bb545
tidy up of credential attachment formats & bug fixes
NB-MikeRichardson Dec 23, 2021
9aef04a
Merge pull request #3 from NB-MikeRichardson/rfc0453
NB-MikeRichardson Dec 23, 2021
383f4bb
Merge branch 'main' of https://github.com/NB-MikeRichardson/aries-fra…
NB-MikeRichardson Dec 23, 2021
a4cc479
offer use case and inittial tidy-up
NB-MikeRichardson Jan 5, 2022
7c6e714
Merge branch 'hyperledger:main' into main
NB-MikeRichardson Jan 5, 2022
a25c14a
feat(PresentProofV2): implemented presentation proposal
NB-PrasadKatkar Jan 6, 2022
94dfb6f
bug fixes
NB-MikeRichardson Jan 6, 2022
1caa45c
merge changes in with did stuff
NB-MikeRichardson Jan 7, 2022
3ba6dc1
Tidied up code, bug fixes, request credential
NB-MikeRichardson Jan 13, 2022
ccb0329
feat: present proof v2(work in progress)
NB-PrasadKatkar Jan 13, 2022
1634262
feat: Present Proof v2 (WIP Accept Proposal)
NB-PrasadKatkar Jan 15, 2022
71084f1
offer negotiations changes
NB-MikeRichardson Jan 17, 2022
d654752
refactor(proofs): reworked directory structure
NB-KarimStekelenburg Jan 18, 2022
9866b56
Merge branch 'feat/present-proof-v2' of https://github.com/hyperledge…
NB-PrasadKatkar Jan 19, 2022
c2d0c45
Merge branch 'hyperledger-feat/present-proof-v2' into feat/present-pr…
NB-PrasadKatkar Jan 19, 2022
17d36dc
Refactoring for multiple formats (not tested)
NB-MikeRichardson Jan 21, 2022
d50bf9f
debug changes for multi format messages
NB-MikeRichardson Jan 21, 2022
1447c83
debug changes for multi format messages
NB-MikeRichardson Jan 21, 2022
fab9113
debug changes for multi format messages
NB-MikeRichardson Jan 21, 2022
a49aca8
debug changes for multi format messages
NB-MikeRichardson Jan 21, 2022
9d7a58a
IndyProofFormatService(Request and Presentation)
NB-PrasadKatkar Jan 23, 2022
4de4303
fix: IndyProofFormatService, V1ProofService
NB-PrasadKatkar Jan 24, 2022
1f8b369
refac: IndyProofFormatService, V1ProofService
NB-PrasadKatkar Jan 25, 2022
20a8da6
feat(proofs): add v2 message types
NB-KarimStekelenburg Jan 25, 2022
513a1f3
Issue Credential functionality
NB-MikeRichardson Jan 26, 2022
1b52eaa
refac: V1ProofService
NB-PrasadKatkar Jan 27, 2022
2eb66ec
auto accept changes
NB-MikeRichardson Jan 27, 2022
7a021da
feat(proofs): add v2 message types
NB-KarimStekelenburg Jan 25, 2022
bf824d4
fix(proofs): add missing goal_code to options
NB-KarimStekelenburg Jan 26, 2022
84a2f47
feat(proofs): add getter methods to ProofService
NB-KarimStekelenburg Jan 27, 2022
4a201c1
Merge branch 'feat/present-proof-v2' of https://github.com/hyperledge…
NB-KarimStekelenburg Jan 27, 2022
7e03954
refac: V1ProofService
NB-PrasadKatkar Jan 28, 2022
8c9db7d
feat(proofs): add v2 message types
NB-KarimStekelenburg Jan 25, 2022
c5d0ec6
fix(proofs): add missing goal_code to options
NB-KarimStekelenburg Jan 26, 2022
73d9f5e
feat(proofs): add getter methods to ProofService
NB-KarimStekelenburg Jan 27, 2022
9d8791a
Merge pull request #3 from hyperledger/feat/present-proof-v2
NB-PrasadKatkar Jan 28, 2022
66c146e
Merge branch 'feat/present-proof-v2' of https://github.com/hyperledge…
NB-KarimStekelenburg Jan 29, 2022
c55c4d6
Merge branch 'main' into feat/present-proof-v2
NB-KarimStekelenburg Jan 29, 2022
50481a4
refac: ProofsModule
NB-PrasadKatkar Jan 31, 2022
7eccd99
Merge pull request #4 from hyperledger/feat/present-proof-v2
NB-PrasadKatkar Jan 31, 2022
68afa1b
refac: ProofsModule
NB-PrasadKatkar Jan 31, 2022
ade451b
feat(didcomm-msg): add find method repositoty
NB-KarimStekelenburg Jan 31, 2022
e1c56da
feat(proofs): update V1 service w/ DidCommMessages
NB-KarimStekelenburg Jan 31, 2022
ae3665e
refactor(proofs): clean V1Service imports
NB-KarimStekelenburg Jan 31, 2022
cfe6025
refactor(proofs): clean V1Service imports
NB-KarimStekelenburg Jan 31, 2022
5129009
feat(proofs): add request methods to V2Service
NB-KarimStekelenburg Jan 31, 2022
e635497
Merge pull request #5 from hyperledger/feat/present-proof-v2
NB-PrasadKatkar Feb 2, 2022
6b4e767
refactor(proofs): updated ProofsModule request payload
NB-PrasadKatkar Feb 2, 2022
e135c83
Merge branch 'feat/present-proof-v2' of https://github.com/NB-PrasadK…
NB-PrasadKatkar Feb 2, 2022
25b6643
Major changes for auto accept
NB-MikeRichardson Feb 2, 2022
e60638b
Merge branch 'hyperledger:main' into main
NB-MikeRichardson Feb 2, 2022
1c53cca
merge and fix conflicts
NB-MikeRichardson Feb 2, 2022
7419b7b
Merge pull request #4 from NB-MikeRichardson/icv2
NB-MikeRichardson Feb 2, 2022
db40c41
feat(proofs): added script for Proposal
NB-PrasadKatkar Feb 2, 2022
bc0304e
functionality for auto-accept
NB-MikeRichardson Feb 7, 2022
fb04808
feat(proofs): V2ProofService implementation done
NB-KarimStekelenburg Feb 7, 2022
77c1c13
Merge branch 'main' into feat/present-proof-v2
NB-KarimStekelenburg Feb 7, 2022
a2e1035
Merge remote-tracking branch 'prasad/feat/present-proof-v2' into feat…
NB-KarimStekelenburg Feb 7, 2022
887e648
refactor(proofs): renamed v1 handlers
NB-KarimStekelenburg Feb 7, 2022
3552a3e
Merge branch 'hyperledger:main' into main
NB-MikeRichardson Feb 8, 2022
ee5d5b7
added v2 connectionless credentials tests
NB-MikeRichardson Feb 8, 2022
5408bcd
fix unit tests
NB-MikeRichardson Feb 8, 2022
ac5fad8
Merge branch 'hyperledger:main' into issue-credv2
NB-MikeRichardson Feb 8, 2022
fd92ebc
feat(proofs): add auto accept logic
NB-KarimStekelenburg Feb 8, 2022
c0eb42c
feat(proofs): add V2 service to ProofsModule
NB-KarimStekelenburg Feb 10, 2022
d541d26
Refactor V1CredentialService and unit tests
NB-MikeRichardson Feb 11, 2022
8111db0
Merge branch 'issue-credv2' of https://github.com/NB-MikeRichardson/a…
NB-MikeRichardson Feb 11, 2022
baca792
Merge branch 'ICV2' of https://github.com/NB-MikeRichardson/aries-fra…
NB-KarimStekelenburg Feb 11, 2022
69f0910
Merge branch 'NB-MikeRichardson-ICV2' into release/ods
NB-KarimStekelenburg Feb 11, 2022
e996403
Merge branch 'release/ods' into feat/present-proof-v2-u
NB-KarimStekelenburg Feb 11, 2022
24000a8
fix(proofs): stable state
NB-KarimStekelenburg Feb 11, 2022
8d40ea5
Merge pull request #7 from hyperledger/release/ods
NB-MikeRichardson Feb 15, 2022
d7db0bf
New service v2 unit tests
NB-MikeRichardson Feb 15, 2022
c64aaf2
further v2 service tests
NB-MikeRichardson Feb 15, 2022
0af650b
refactoring of format services
NB-MikeRichardson Feb 18, 2022
804e012
resolve conflicts
NB-MikeRichardson Feb 18, 2022
e58a6f0
Merge branch 'hyperledger-main' into main
NB-MikeRichardson Feb 18, 2022
b4e01fc
Merge branch 'hyperledger:main' into main
NB-MikeRichardson Feb 22, 2022
5bf7475
further bug fixes
NB-MikeRichardson Feb 22, 2022
2d6bed9
fix broken yarn.lock
NB-MikeRichardson Feb 22, 2022
1443f2d
Merge branch 'backup' into feat/icv2
NB-MikeRichardson Feb 22, 2022
54b6e7b
final changes for PR
NB-MikeRichardson Feb 24, 2022
c511060
final changes for PR
NB-MikeRichardson Feb 24, 2022
e7ef886
final changes for PR
NB-MikeRichardson Feb 24, 2022
399695f
final changes for PR
NB-MikeRichardson Feb 24, 2022
2f45863
final changes for PR
NB-MikeRichardson Feb 24, 2022
272d300
Fixes from PR review
NB-MikeRichardson Mar 1, 2022
9150d32
Further fixes from PR
NB-MikeRichardson Mar 2, 2022
fa669db
Further fixes from PR
NB-MikeRichardson Mar 2, 2022
7562957
Further PR changes
NB-MikeRichardson Mar 3, 2022
bb2b3de
Further changes resulting from PR review
NB-MikeRichardson Mar 9, 2022
2abf48c
Further changes resulting from PR review
NB-MikeRichardson Mar 9, 2022
35656ed
Further changes resulting from PR review
NB-MikeRichardson Mar 9, 2022
0d2cfeb
Further changes resulting from PR review
NB-MikeRichardson Mar 9, 2022
6c6aa49
Further changes resulting from PR review
NB-MikeRichardson Mar 9, 2022
9d71491
Merge branch 'hyperledger:main' into feat/icv2
NB-MikeRichardson Mar 10, 2022
056f912
merge tweaks to get branch up to date with main
NB-MikeRichardson Mar 10, 2022
0a227a7
merge tweaks to get branch up to date with main
NB-MikeRichardson Mar 10, 2022
a5f6d0a
Change jsonld enum
NB-MikeRichardson Mar 10, 2022
f767273
Change jsonld enum
NB-MikeRichardson Mar 10, 2022
dc7f0dc
remove error check on CredentialPreview
NB-MikeRichardson Mar 11, 2022
561ac4a
remove error check on CredentialPreview
NB-MikeRichardson Mar 11, 2022
587c404
further changes from PR comments
NB-MikeRichardson Mar 15, 2022
fb8002e
further changes from PR comments
NB-MikeRichardson Mar 15, 2022
d7bc6cb
fix conflicts
NB-MikeRichardson Mar 15, 2022
b9e8b5e
Merge branch 'hyperledger-main2' into feat/icv2
NB-MikeRichardson Mar 15, 2022
ed4de46
fix conflict
NB-MikeRichardson Mar 16, 2022
b561f0c
chore: remove leftofer sh files
TimoGlastra Mar 16, 2022
e6b829f
chore: small cleanup
TimoGlastra Mar 16, 2022
97b2bd5
refactor: use json types from types file
TimoGlastra Mar 16, 2022
aa38521
refactor: use credential record binding for v1
TimoGlastra Mar 16, 2022
02c467b
style: remove unneccesary ?
TimoGlastra Mar 16, 2022
84e4e8c
refactor: prepend v1 classes with v1
TimoGlastra Mar 16, 2022
94d93ce
chore: removed unused type
TimoGlastra Mar 16, 2022
078364c
refactor: holderDid in options
TimoGlastra Mar 16, 2022
b4ca03f
refactor: consistent return types
TimoGlastra Mar 16, 2022
ea70a14
refactor: rename credential exchange record file
TimoGlastra Mar 16, 2022
348a729
fix: remove all console loggers
TimoGlastra Mar 16, 2022
e1a2861
style: remove unneeded eslint disables
TimoGlastra Mar 16, 2022
0197c04
refactor: remove version from decline offer
TimoGlastra Mar 16, 2022
80aaf4e
refactor: remove credential from acceptRequest name
TimoGlastra Mar 16, 2022
21d463f
refactor: make all format methods async
TimoGlastra Mar 16, 2022
6c4979c
style: remove comments
TimoGlastra Mar 16, 2022
ec4909c
Merge pull request #13 from TimoGlastra/refactor/icv2-updates
NB-MikeRichardson Mar 17, 2022
38020bc
Fixes from PR
NB-MikeRichardson Mar 17, 2022
6b678f3
merge Timo changes and fixes from PR
NB-MikeRichardson Mar 17, 2022
538f735
further PR changes
NB-MikeRichardson Mar 18, 2022
2282573
Merge branch 'hyperledger:main' into feat/icv2
NB-MikeRichardson Mar 21, 2022
9672154
further PR Refactoring
NB-MikeRichardson Mar 21, 2022
45d5218
Merge branch 'feat/icv2' of https://github.com/NB-MikeRichardson/arie…
NB-MikeRichardson Mar 21, 2022
c538bcd
Further PR changes
NB-MikeRichardson Mar 23, 2022
43aacc4
Merge branch 'hyperledger:main' into feat/icv2
NB-MikeRichardson Mar 23, 2022
b3f0273
Add CredPropose validation/transformation class
NB-MikeRichardson Mar 24, 2022
ac09bb1
changes to cred propose validation
NB-MikeRichardson Mar 25, 2022
00d4495
remove some lint disabling
NB-MikeRichardson Mar 25, 2022
c98fddd
Fix lint check errors
NB-MikeRichardson Mar 25, 2022
d0ae741
merge upstream changes
NB-MikeRichardson Mar 28, 2022
ee21aac
Merge branch 'hyperledger-main4' into feat/icv2
NB-MikeRichardson Mar 28, 2022
1362120
fix auto accept bug
NB-MikeRichardson Mar 28, 2022
adf5927
Merge branch 'hyperledger:main' into feat/icv2
NB-MikeRichardson Mar 29, 2022
967e540
further merge fixes
NB-MikeRichardson Mar 29, 2022
5fc4ad6
Merge branch 'feat/icv2' of https://github.com/NB-MikeRichardson/arie…
NB-MikeRichardson Mar 29, 2022
dbbab08
Merge branch 'hyperledger:main' into feat/icv2
NB-MikeRichardson Mar 31, 2022
d0c2238
merge changes from other PRs
NB-MikeRichardson Apr 5, 2022
06a02cb
Merge branch 'hyperledger-main-apr5' into feat/icv2
NB-MikeRichardson Apr 5, 2022
9500a25
Changes from PR review comments
NB-MikeRichardson Apr 8, 2022
5e62ea6
Changes from PR comments
NB-MikeRichardson Apr 12, 2022
b35b109
Changes from PR comments
NB-MikeRichardson Apr 12, 2022
8862f11
fix bugs and add add tests for negotiation feature
NB-MikeRichardson Apr 13, 2022
e69cba4
Simplify the AcceptProposalOptions interface
NB-MikeRichardson Apr 13, 2022
17a81de
Simplify the AcceptProposalOptions interface
NB-MikeRichardson Apr 13, 2022
bee5d49
Merge PR#704
NB-MikeRichardson Apr 13, 2022
065f402
Merge branch 'hyperledger-mainAPR13' into feat/icv2
NB-MikeRichardson Apr 13, 2022
fba46c5
Merge PR#704
NB-MikeRichardson Apr 13, 2022
7ca8d71
Merg changes for backups, migrations and revocation notifications
NB-MikeRichardson Apr 25, 2022
6db2ae0
Merge branch 'hyperledger-mainAPR25' into feat/icv2
NB-MikeRichardson Apr 25, 2022
e15fff1
Changes from PR, volume III
NB-MikeRichardson Apr 26, 2022
be53e2d
Further PR changes
NB-MikeRichardson Apr 27, 2022
f618b9a
Further PR changes
NB-MikeRichardson Apr 27, 2022
42c22e9
Further PR changes
NB-MikeRichardson Apr 27, 2022
75bd002
Further PR changes
NB-MikeRichardson Apr 27, 2022
b87f43e
changes from PR
NB-MikeRichardson Apr 28, 2022
57cf847
Further PR changes
NB-MikeRichardson Apr 28, 2022
721562a
Remove setMetaDataFor
NB-MikeRichardson Apr 28, 2022
5be3079
Remove unnecessary record.connectionid assignment
NB-MikeRichardson Apr 28, 2022
7d54803
Merge branch 'hyperledger:main' into feat/icv2
NB-MikeRichardson Apr 28, 2022
a785d2b
CreateRequestOptions interface added to CrdentialMessageBuilder
NB-MikeRichardson May 3, 2022
17101a5
Remove call to createAcceptOfferOptions in V2Propose Handler
NB-MikeRichardson May 3, 2022
a99f1cb
Replace getAgentMessage with findAgentMessage
NB-MikeRichardson May 3, 2022
c42ee31
Make getRevocationRegistry private
NB-MikeRichardson May 3, 2022
aa291c1
Make getRevocationRegistry private
NB-MikeRichardson May 3, 2022
5239950
Changes to CredentialServiceOptions
NB-MikeRichardson May 3, 2022
a3c5e0b
Changes to AutoAccept logic
NB-MikeRichardson May 3, 2022
b4168db
Changes to AutoAccept logic
NB-MikeRichardson May 3, 2022
b5659d4
Changes to AutoAccept logic
NB-MikeRichardson May 3, 2022
7918ed9
made getFormatService private
NB-MikeRichardson May 3, 2022
b5b62da
Add checks on formats structure
NB-MikeRichardson May 3, 2022
8092670
Reformat order of services
NB-MikeRichardson May 3, 2022
7cd9c4b
Merge branch 'main' of https://github.com/hyperledger/aries-framework…
NB-MikeRichardson May 3, 2022
cd03065
Merge branch 'hyperledger-MAY3' into feat/icv2
NB-MikeRichardson May 3, 2022
3229f7f
Merge fixes from PR#711
NB-MikeRichardson May 3, 2022
2448d48
Fix issue with MediationRecipientService
NB-MikeRichardson May 4, 2022
0f4f8e2
Fix issue with MediationRecipientService
NB-MikeRichardson May 4, 2022
2d5bdf6
Fix problem with linked attributes in proofs test
NB-MikeRichardson May 4, 2022
747feea
fix: protocol version changes
TimoGlastra May 4, 2022
7d9f8d9
style: remove eslint disables
TimoGlastra May 4, 2022
8b04e70
style: small changes
TimoGlastra May 4, 2022
7a86287
fix: keep cred ex record type CredentialRecord
TimoGlastra May 4, 2022
e01e59b
fix: some fixes
TimoGlastra May 4, 2022
b0a4f80
Merge branch 'hyperledger:main' into feat/icv2
NB-MikeRichardson May 5, 2022
979ee01
Minor fix
NB-MikeRichardson May 5, 2022
d7028e1
squash commits
NB-MikeRichardson May 6, 2022
57df2ab
squash commits
NB-MikeRichardson May 6, 2022
5279560
squash commits, second attempt
NB-MikeRichardson May 6, 2022
adee962
Merge branch 'feat/icv2' of https://github.com/NB-MikeRichardson/arie…
NB-MikeRichardson May 6, 2022
984f82a
Merge pull request #30 from TimoGlastra/fix/small-icv2-fixe
NB-MikeRichardson May 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ coverage
logs.txt
logs/
packages/core/src/__tests__/genesis-von.txn
lerna-debug.log
lerna-debug.log
runcredtests.sh
runtests.sh
TimoGlastra marked this conversation as resolved.
Show resolved Hide resolved
9 changes: 5 additions & 4 deletions demo/src/Alice.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*eslint import/no-cycle: [2, { maxDepth: 1 }]*/
import type { CredentialRecord, ProofRecord } from '@aries-framework/core'
import type { CredentialExchangeRecord, ProofRecord } from '@aries-framework/core'

import { BaseAgent } from './BaseAgent'
import { greenText, Output, redText } from './OutputClass'
Expand Down Expand Up @@ -53,9 +53,10 @@ export class Alice extends BaseAgent {
await this.waitForConnection()
}

public async acceptCredentialOffer(credentialRecord: CredentialRecord) {
await this.agent.credentials.acceptOffer(credentialRecord.id)
console.log(greenText('\nCredential offer accepted!\n'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're losing this log

public async acceptCredentialOffer(credentialRecord: CredentialExchangeRecord) {
await this.agent.credentials.acceptOffer({
credentialRecordId: credentialRecord.id,
})
}

public async acceptProofRequest(proofRecord: ProofRecord) {
Expand Down
4 changes: 2 additions & 2 deletions demo/src/AliceInquirer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { CredentialRecord, ProofRecord } from '@aries-framework/core'
import type { CredentialExchangeRecord, ProofRecord } from '@aries-framework/core'

import { clear } from 'console'
import { textSync } from 'figlet'
Expand Down Expand Up @@ -69,7 +69,7 @@ export class AliceInquirer extends BaseInquirer {
await this.processAnswer()
}

public async acceptCredentialOffer(credentialRecord: CredentialRecord) {
public async acceptCredentialOffer(credentialRecord: CredentialExchangeRecord) {
const confirm = await inquirer.prompt([this.inquireConfirmation(Title.CredentialOfferTitle)])
if (confirm.options === ConfirmOptions.No) {
await this.alice.agent.credentials.declineOffer(credentialRecord.id)
Expand Down
17 changes: 12 additions & 5 deletions demo/src/Faber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import type { ConnectionRecord } from '@aries-framework/core'
import type { CredDef, Schema } from 'indy-sdk-react-native'
import type BottomBar from 'inquirer/lib/ui/bottom-bar'

import { AttributeFilter, CredentialPreview, ProofAttributeInfo, utils } from '@aries-framework/core'
// eslint-disable-next-line import/no-unresolved
import { V1CredentialPreview, AttributeFilter, ProofAttributeInfo, utils } from '@aries-framework/core'
TimoGlastra marked this conversation as resolved.
Show resolved Hide resolved
import { ui } from 'inquirer'

import { BaseAgent } from './BaseAgent'
Expand Down Expand Up @@ -78,7 +79,7 @@ export class Faber extends BaseAgent {
}

private getCredentialPreview() {
const credentialPreview = CredentialPreview.fromRecord({
const credentialPreview = V1CredentialPreview.fromRecord({
name: 'Alice Smith',
degree: 'Computer Science',
date: '01/01/2022',
Expand All @@ -93,9 +94,15 @@ export class Faber extends BaseAgent {
const connectionRecord = await this.getConnectionRecord()

this.ui.updateBottomBar('\nSending credential offer...\n')
await this.agent.credentials.offerCredential(connectionRecord.id, {
credentialDefinitionId: credDef.id,
preview: credentialPreview,

await this.agent.credentials.offerCredential({
connectionId: connectionRecord.id,
TimoGlastra marked this conversation as resolved.
Show resolved Hide resolved
credentialFormats: {
indy: {
attributes: credentialPreview.attributes,
credentialDefinitionId: credDef.id,
},
},
})
this.ui.updateBottomBar(
`\nCredential offer sent!\n\nGo to the Alice agent to accept the credential offer\n\n${Color.Reset}`
Expand Down
7 changes: 4 additions & 3 deletions demo/src/Listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { FaberInquirer } from './FaberInquirer'
import type {
Agent,
BasicMessageStateChangedEvent,
CredentialRecord,
CredentialExchangeRecord,
CredentialStateChangedEvent,
ProofRecord,
ProofStateChangedEvent,
Expand All @@ -19,6 +19,7 @@ import {
CredentialState,
ProofEventTypes,
ProofState,
// eslint-disable-next-line import/no-unresolved
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, this didn't happen before so should look at fixing it

} from '@aries-framework/core'
import { ui } from 'inquirer'

Expand All @@ -41,7 +42,7 @@ export class Listener {
this.on = false
}

private printCredentialAttributes(credentialRecord: CredentialRecord) {
private printCredentialAttributes(credentialRecord: CredentialExchangeRecord) {
if (credentialRecord.credentialAttributes) {
const attribute = credentialRecord.credentialAttributes
console.log('\n\nCredential preview:')
Expand All @@ -51,7 +52,7 @@ export class Listener {
}
}

private async newCredentialPrompt(credentialRecord: CredentialRecord, aliceInquirer: AliceInquirer) {
private async newCredentialPrompt(credentialRecord: CredentialExchangeRecord, aliceInquirer: AliceInquirer) {
this.printCredentialAttributes(credentialRecord)
this.turnListenerOn()
await aliceInquirer.acceptCredentialOffer(credentialRecord)
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/0-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const agentConfig: InitConfig = {
isProduction: false,
},
],
logger: new ConsoleLogger(LogLevel.debug),
logger: new ConsoleLogger(LogLevel.info),
}

const agent = new Agent(agentConfig, agentDependencies)
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/7-logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ConsoleLogger, LogLevel } from '@aries-framework/core'

const agentConfig = {
// ... other config properties ...
logger: new ConsoleLogger(LogLevel.debug),
logger: new ConsoleLogger(LogLevel.info),
}
```

Expand Down
Loading