Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

bumping web5-js and tbdex-ks versions. #21

Merged
merged 9 commits into from
Feb 8, 2024
Merged

bumping web5-js and tbdex-ks versions. #21

merged 9 commits into from
Feb 8, 2024

Conversation

jiyoonie9
Copy link
Contributor

@jiyoonie9 jiyoonie9 commented Feb 6, 2024

closes #20

@jiyoonie9 jiyoonie9 changed the title bumping versions. bumping web5-js and tbdex-ks versions. Feb 6, 2024
@jiyoonie9 jiyoonie9 marked this pull request as ready for review February 7, 2024 23:21
@jiyoonie9 jiyoonie9 marked this pull request as draft February 7, 2024 23:32
@jiyoonie9 jiyoonie9 marked this pull request as ready for review February 7, 2024 23:32
Copy link
Contributor

@michaelneale michaelneale left a comment

Choose a reason for hiding this comment

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

nice! Note that I don't think there is CI test coverage for this, but looks much nicer to my eyes.


//
console.log('vcJwt', vcJwt)
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe want to remove the log here

}
})

await rfq.sign(alice)

const rasp = await TbdexHttpClient.sendMessage({ message: rfq })
console.log('send rfq response', JSON.stringify(rasp, null, 2))
console.log('PFI DID', PFI_DID)
Copy link
Contributor

Choose a reason for hiding this comment

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

remove log (unless this is by design)

Copy link
Contributor

@nitro-neal nitro-neal left a comment

Choose a reason for hiding this comment

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

Awesome! Good stuff

Copy link
Contributor

@kirahsapong kirahsapong left a comment

Choose a reason for hiding this comment

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

noice!

allowlist: JSON.parse(process.env['SEC_ALLOWLISTED_DIDS'] || '[]')
}

// create ephemeral PFI did if one wasn't provided. Note: this DID and associated keys aren't persisted!
// a new one will be generated every time the process starts.
if (!config.did) {
if (!config.pfiDid) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i was curious about this bit! since pfiDid is always undefined by the time it reaches this line... should we just... create the did?

Copy link
Contributor

Choose a reason for hiding this comment

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

unless we expect a future state where that isnt true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea it is a bit wonky. it is now using createOrLoadDid() method for PFI DID the same way we do it for alice and issuer DID. i still left the condition in as a failsafe. could probably be tweaked further in the future

src/example/request-for-quote.ts Outdated Show resolved Hide resolved
@@ -58,7 +59,6 @@ await rfq.sign(alice)

const resp = await TbdexHttpClient.sendMessage({ message: rfq })
console.log('send rfq response', JSON.stringify(resp, null, 2))
Copy link
Contributor

Choose a reason for hiding this comment

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

we dont need this since sendMessage doesn't return anything to log. it just throws if it fails


// Place an order against that quote:
const order = Order.create({
metadata: { from: alice.did, to: pfiDid, exchangeId: quote.exchangeId },
})
await order.sign(alice)
const orderResponse = await TbdexHttpClient.sendMessage({ message: order })
console.log('sent order!')
console.log('orderResponse', orderResponse)
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto, we won't get orderResponse back from sendMessage

Jiyoon Koo and others added 4 commits February 8, 2024 07:40
Co-authored-by: nitro-neal <5314059+nitro-neal@users.noreply.github.com>
Co-authored-by: kirahsapong  <102400653+kirahsapong@users.noreply.github.com>
…l-tbdex-exchange since it was doing the full flow
@jiyoonie9 jiyoonie9 merged commit ac2be99 into main Feb 8, 2024
3 checks passed
@jiyoonie9 jiyoonie9 deleted the 20-bump-version branch February 8, 2024 13:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to reflect changes made to sdks
4 participants