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

docs: add messaging_reference.adoc #1094

Merged
merged 29 commits into from
Jun 23, 2024
Merged

Conversation

xiaolou86
Copy link
Contributor

@xiaolou86 xiaolou86 commented Jan 23, 2024

Description of the Changes

Add messaging_reference.adoc

Closes #1086

PR Preview URL

Messaging reference

Check List

  • Changes have been done against main branch, and PR does not conflict
  • PR title follows the convention: <docs/feat/fix/chore>(optional scope): <description>, e.g: fix: minor typos in code

This change is Reviewable

@xiaolou86
Copy link
Contributor Author

xiaolou86 commented Jan 24, 2024

@stoobie I finished the doc, please help me to review. Thank you very much.

Failed to generate a preview, it's a little inconvenient.

@xiaolou86 xiaolou86 changed the title [WIP] add messaging_reference.adoc Add messaging_reference.adoc Jan 24, 2024
@xiaolou86 xiaolou86 changed the title Add messaging_reference.adoc docs: add messaging_reference.adoc Jan 24, 2024
@stoobie
Copy link
Collaborator

stoobie commented Jan 24, 2024

@stoobie I finished the doc, please help me to review. Thank you very much.

Fantastic! I'll take a look today or tomorrow.

Failed to generate a preview, it's a little inconvenient.

I know. Are you able to generate a preview locally?

@xiaolou86
Copy link
Contributor Author

Failed to generate a preview, it's a little inconvenient.

I know. Are you able to generate a preview locally?

I tried in my other repo, but it failed. I will try in my forked starknet-docs repo later.

@stoobie stoobie changed the base branch from main to xiaolou86/starknet_message January 30, 2024 08:09
@stoobie stoobie changed the base branch from xiaolou86/starknet_message to main January 30, 2024 08:10
Copy link
Collaborator

@stoobie stoobie left a comment

Choose a reason for hiding this comment

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

Began review. Will continue.

@stoobie
Copy link
Collaborator

stoobie commented Feb 14, 2024

@xiaolou86 I apologize for not reviewing this more quickly. I'm getting back to this now.

@stoobie
Copy link
Collaborator

stoobie commented Feb 26, 2024

@xiaolou86 Would you please rebase your branch to merge all recent commits to starknet-io:main and commit again?

I want to test your fix to generate a preview from a fork.

@xiaolou86
Copy link
Contributor Author

@xiaolou86 Would you please rebase your branch to merge all recent commits to starknet-io:main and commit again?

I want to test your fix to generate a preview from a fork.

Preview generated successfully, while Send comment to PR didn't work well :(

@xiaolou86
Copy link
Contributor Author

I think maybe need to add pull-requests: write permission in the .yml file

Copy link

Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1094/documentation/ .

@stoobie
Copy link
Collaborator

stoobie commented Mar 26, 2024

@xiaolou86 This has taken me a lot longer than I expected to move forward. To be fair to you, I sent you initial compensation just now for the work you've done so far on this, and I'll send more once we finish this.

@xiaolou86
Copy link
Contributor Author

@stoobie Thank you very much.

@stoobie stoobie requested a review from 0xLucqs April 1, 2024 04:01
@xiaolou86
Copy link
Contributor Author

@stoobie grateful for you helping me create a new PR #1209 to edit this messaging_reference.adoc? It's my duty. Thank you very much!

@xiaolou86 xiaolou86 force-pushed the starknet_message branch 2 times, most recently from b73637d to 268b837 Compare April 7, 2024 07:45
@xiaolou86
Copy link
Contributor Author

xiaolou86 commented Apr 7, 2024

@stoobie @LucasLvy thank you for your reviews.

I have updated the docs:

  1. Adds the functions implemented in StarknetMessaging.sol but not part of the IStarknetMessaging.sol:
l1ToL2MessageCancellations
l1ToL2MessageNonce
l2ToL1Messages
messageCancellationDelay
  1. Adds a link to the messageCancellationDelay function on etherscan to get the real value.

@starknet-bot
Copy link
Collaborator

Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1094/documentation/ .

5 similar comments
@starknet-bot
Copy link
Collaborator

Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1094/documentation/ .

@starknet-bot
Copy link
Collaborator

Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1094/documentation/ .

@starknet-bot
Copy link
Collaborator

Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1094/documentation/ .

@starknet-bot
Copy link
Collaborator

Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1094/documentation/ .

@starknet-bot
Copy link
Collaborator

Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1094/documentation/ .

@stoobie
Copy link
Collaborator

stoobie commented Jun 9, 2024

@xiaolou86 Please do the following:

  1. Rebase from starknet-io/starknet-docs:main. I made a lot of changes to the directory structure and file names, including change the name of this file to messaging-reference.adoc (changed the underscore to a hyphen in the file name.)
  2. Copy the changes over from feat: Starknet messaging function and event reference (based on #1094) #1209.
  3. For each event that is emitted, state which function emits it. For each function that emits an event, add a heading "Emitted event" with the name of the event that emitted it, with a link to the event lower down in the page. For example, see ConsumedMessageToL2 and consumeMessageFromL2 in feat: Starknet messaging function and event reference (based on #1094) #1209.

@starknet-bot
Copy link
Collaborator

Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1094/ .

@xiaolou86
Copy link
Contributor Author

@xiaolou86 Please do the following:

  1. Rebase from starknet-io/starknet-docs:main. I made a lot of changes to the directory structure and file names, including change the name of this file to messaging-reference.adoc (changed the underscore to a hyphen in the file name.)
  2. Copy the changes over from feat: Starknet messaging function and event reference (based on #1094) #1209.
  3. For each event that is emitted, state which function emits it. For each function that emits an event, add a heading "Emitted event" with the name of the event that emitted it, with a link to the event lower down in the page. For example, see ConsumedMessageToL2 and consumeMessageFromL2 in feat: Starknet messaging function and event reference (based on #1094) #1209.

@stoobie All done. Thank you very much.

@starknet-bot
Copy link
Collaborator

Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1094/ .

@starknet-bot
Copy link
Collaborator

Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1094/ .

@stoobie
Copy link
Collaborator

stoobie commented Jun 23, 2024

This has been reviewed by Lucas and Remo. I believe that I have implemented all their comments. So I am merging this.

Copy link
Collaborator

@stoobie stoobie left a comment

Choose a reason for hiding this comment

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

LGTM.

@stoobie stoobie merged commit 568fda3 into starknet-io:main Jun 23, 2024
1 check was pending
@starknet-bot
Copy link
Collaborator

Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1094/ .

@xiaolou86 xiaolou86 deleted the starknet_message branch June 24, 2024 02:09
@stoobie
Copy link
Collaborator

stoobie commented Jun 30, 2024

@xiaolou86 Thank you for the contribution! I sent you a reward on Only Dust.

@xiaolou86
Copy link
Contributor Author

@stoobie Thank you very much.

stoobie pushed a commit that referenced this pull request Jul 8, 2024
* create messaging_reference.adoc
* add messaging_reference.adoc to nav
* add the functions implemented in StarknetMessaging.sol but not part of the IStarknetMessaging.sol
* Explain `deployer_address`
* Added links between consumeMessageFromL2 function and ConsumedMessageToL2 event.
* Added links between consumeMessageFromL2 function and ConsumedMessageToL2 event.
* modify event descriptions and add event heading for functions
* fix directory structure
* Comment out events from internal `processMessages` function
raizo07 pushed a commit to raizo07/starknet-docs that referenced this pull request Jul 9, 2024
* create messaging_reference.adoc
* add messaging_reference.adoc to nav
* add the functions implemented in StarknetMessaging.sol but not part of the IStarknetMessaging.sol
* Explain `deployer_address`
* Added links between consumeMessageFromL2 function and ConsumedMessageToL2 event.
* Added links between consumeMessageFromL2 function and ConsumedMessageToL2 event.
* modify event descriptions and add event heading for functions
* fix directory structure
* Comment out events from internal `processMessages` function
LandauRaz added a commit that referenced this pull request Aug 8, 2024
* doc: compiled class hash

* further improvement to the doc

* fix: Dir structure changes for SEO (#1261)

* Changed /documentation/ to /root/ in antora.yml.

* Changed root to ROOT.

* Change file names for SEO:
* underscores to hyphens
* uppercase to lowercase

* Change file names for SEO to be match content matter

* Added broken links from 3rd party sites

* Update messaging-mechanism.adoc to latest on main.

* Updated xrefs in messaging-mechanism.adoc.

* Updated URL for preview to drop `/documentation/`

* fix: Change "cross-chain" to "cross-layer" in L1-L2 Messaging mechanism (#1289)

* Change "cross-chain" to "cross-layer" in L1-L2 Messaging mechanism

* Apply suggestions from code review

* Removed `seo-optimization` branch from playbook. (#1299)

* docs: add messaging_reference.adoc (#1094)

* create messaging_reference.adoc
* add messaging_reference.adoc to nav
* add the functions implemented in StarknetMessaging.sol but not part of the IStarknetMessaging.sol
* Explain `deployer_address`
* Added links between consumeMessageFromL2 function and ConsumedMessageToL2 event.
* Added links between consumeMessageFromL2 function and ConsumedMessageToL2 event.
* modify event descriptions and add event heading for functions
* fix directory structure
* Comment out events from internal `processMessages` function

* docs: Update Starknet book ToC (#1297)

* Update Starknet book ToC: Update outdated information about Starknet book

---------

Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>

* fix typo adding class hashes in tx v3 invoke computation (#1292)

* Update playbook.yml to use main branch for ui-bundle.zip (#1306)

* Fix hash calculation documentation: change 1 to 0 in v1 (deprecated) hash calculation (#1304)

* docs: Update transactions.adoc with txs v3 fee estimation (#1296)

* Update transactions.adoc with txs v3 fee estimation

* Update transactions.adoc

* Update transactions.adoc

* Update transactions.adoc

---------

Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>

* Update transaction-life-cycle.adoc with finality status of deploy_account and declare transactions (#1295)

* Update transaction-life-cycle.adoc with finality status of deploy_account and declare transactions

---------

Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>

* docs: add validate warnings and refactor the account's functions page (#1302)

* add validate warnings and refactor account functions page

* fix typo

* minor fixes

* Update serialization-of-cairo-types.adoc (#1307)

* docs: Migrate Provers topic from the Starknet Book (#1270)

* Migrating Provers topic from the Starknet Book at https://book.starknet.io/ch03-03-provers.html.

* Import sharp.adoc from the Book in order to bring in a commit with multiple contributors.

* Edits, and removed sharp.adoc
---------

Co-authored-by: Omar U. Espejel <espejelomar@gmail.com>

* Update README.adoc

* docs: add L1HandlerTransaction table and info on caller address (#1275)

* feat: add l1 handler transaction type version

* fix: fix typo

* fix: fix typo

* fix: add a new ref to l1 handler transaction

* fix: reword L1HandlerTransaction to L1 handler transaction in normal text

* fix: reword for consistent format and better readability

* Update components/Starknet/modules/architecture-and-concepts/pages/network-architecture/messaging-mechanism.adoc

* Update components/Starknet/modules/architecture-and-concepts/pages/network-architecture/messaging-mechanism.adoc

* fix: remove old file

* Update components/Starknet/modules/architecture-and-concepts/pages/network-architecture/transactions.adoc

Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>

* fix: reword as suggested

---------

Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>

* Added a link to info on the L1 handler tx type from the tx versions table. (#1312)

* Update components/Starknet/modules/architecture-and-concepts/nav.adoc

* change file name to use hyphens

* implement reviewed changes

* Update nav.adoc

---------

Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>
Co-authored-by: xiaolou86 <20718693+xiaolou86@users.noreply.github.com>
Co-authored-by: Lauri Peltonen <20242241+microbecode@users.noreply.github.com>
Co-authored-by: antiyro <74653697+antiyro@users.noreply.github.com>
Co-authored-by: Nnaji Benjamin <60315147+Benjtalkshow@users.noreply.github.com>
Co-authored-by: odednaor <odednaor@gmail.com>
Co-authored-by: ArielElp <86294909+ArielElp@users.noreply.github.com>
Co-authored-by: jumpman <57270771+kkawula@users.noreply.github.com>
Co-authored-by: Omar U. Espejel <espejelomar@gmail.com>
Co-authored-by: Raz Landau <125185051+LandauRaz@users.noreply.github.com>
Co-authored-by: glihm <dev@glihm.net>
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.

Request for Contribution: L1-L2 Messaging programming reference
4 participants