Skip to content

Conversation

mujahidkay
Copy link
Member

@mujahidkay mujahidkay commented Aug 22, 2024

Closes: #1173

Description

This PR:

  • Updates contract listing code to use latest version
  • Updates alice.js accordingly
  • Updates mermaid diagrams
  • Updates contract-walkthu in accordance with latest example

@mujahidkay mujahidkay self-assigned this Aug 22, 2024
Copy link

cloudflare-workers-and-pages bot commented Aug 22, 2024

Deploying documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: 929aa46
Status: ✅  Deploy successful!
Preview URL: https://2ef761d6.documentation-7tp.pages.dev
Branch Preview URL: https://mk-offer-up-doc-updates.documentation-7tp.pages.dev

View logs

Copy link

github-actions bot commented Aug 22, 2024

Cloudflare deployment logs are available here

@mujahidkay mujahidkay force-pushed the mk/offer-up-doc-updates branch from 568fe4c to f8b60c1 Compare August 23, 2024 10:16
@mujahidkay
Copy link
Member Author

@amessbee could you please take a look at this? :) Would appreciate any feedback.

@mujahidkay mujahidkay requested a review from dckc August 23, 2024 19:47
Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

excellent work!

any particular reason why it's still DRAFT?
Also, it looks like it closes the issue.

* this contract is parameterized by terms for price and,
* optionally, a maximum number of items sold for that price (default: 3).
*
* @typedef {{
Copy link
Member

Choose a reason for hiding this comment

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

I wonder why GitHub actions is issuing a warning here:

Syntax error in type: {tradePrice: Amount;maxItems?: bigint;}

I wonder if some tsc version is out of date somewhere.

I'm not too worried about it just now, though.

Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

ah. found one tweak

Zoe--)Zoe: escrow Price pmt

Zoe--)-C: joinHandler(gameSeat)
Zoe--)-C: tradeHandler(proceeds)
Copy link
Member

Choose a reason for hiding this comment

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

looks like proceeds got mixed up with buyerSeat.

Suggested change
Zoe--)-C: tradeHandler(proceeds)
Zoe--)-C: tradeHandler(buyerSeat)

Copy link
Member Author

Choose a reason for hiding this comment

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

gameSeat is being referred to as proceeds in the current version of contract (the seat created via makeEmptySeatKit). Or am I interpreting it wrong? Or was it a typo in the previous iteration of the diagram?

Copy link
Member Author

Choose a reason for hiding this comment

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

@dckc PTAL at this^

Copy link
Member

Choose a reason for hiding this comment

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

was it a typo in the previous iteration of the diagram?

yes, I suppose it was.

Copy link
Member Author

Choose a reason for hiding this comment

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

Cool. Then I'll fix this for trade-offer-safety-4 as well. Thanks!

@mujahidkay mujahidkay marked this pull request as ready for review August 23, 2024 22:40
@mujahidkay
Copy link
Member Author

any particular reason why it's still DRAFT?

Do a Draft PR and have it reviewed by others (as per CONTRIBUTING.md).

@dckc
Copy link
Member

dckc commented Aug 27, 2024

any particular reason why it's still DRAFT?

Do a Draft PR and have it reviewed by others (as per CONTRIBUTING.md).

interesting. you're very thorough indeed. I glazed over that part. I operate under the flip side of...

If the PR cannot be approved as is (because there's known issues) then it must be a draft PR.

I/we should probably change CONTRIBUTING.md (in a later PR). In most of the shop, we don't necessarily do a DRAFT. In fact, IME the norm is to not invite review until it's non-DRAFT.

@mujahidkay mujahidkay requested a review from dckc August 28, 2024 10:54
Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

nice work!

@mujahidkay mujahidkay force-pushed the mk/offer-up-doc-updates branch from a8bff9b to 929aa46 Compare August 29, 2024 06:03
@mujahidkay mujahidkay merged commit 1b90edb into main Aug 29, 2024
5 checks passed
@mujahidkay mujahidkay deleted the mk/offer-up-doc-updates branch August 29, 2024 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

contract walkthru out-of-date w.r.t. dapp-offer-up
2 participants