-
Notifications
You must be signed in to change notification settings - Fork 206
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: Starknet messaging function and event reference (based on #1094) #1209
Conversation
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/documentation/ . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rest looks good. I'd still have remo review it though
= Messaging function and event reference | ||
:description: Comprehensive function and event reference for the `StarknetMessaging` smart contracts. | ||
|
||
The `StarknetMessaging` smart contracts include functions and events that you use to implement various messaging flows in a dApp. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reformulate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LucasLvy Can you suggest what you think should be here?
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
* xref:#cancelL1ToL2Message[`cancelL1ToL2Message`] | ||
* xref:#consumeMessageFromL2[`consumeMessageFromL2`] | ||
* xref:#getMaxL1MsgFee[`getMaxL1MsgFee`] | ||
* xref:#l1ToL2Messages[`l1ToL2Messages`] | ||
* xref:#sendMessageToL2[`sendMessageToL2`] | ||
* xref:#startL1ToL2MessageCancellation[`startL1ToL2MessageCancellation`] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are only the functions defined in IStarknetMessaging.sol
it misses the functions implemented in StarknetMessaging.sol
which are not part of the interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LucasLvy
Added:
- l1ToL2MessageCancellations
- l1ToL2MessageNonce
- l2ToL1Messages
- messageCancellationDelay
We don't document getL1ToL2MsgHash
. It is marked as internal
. Do you think it needs to be documented?
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
@xiaolou86 Please make sure you also implement Lucas' comment in #1094. |
ok, I will update it. |
Hi @xiaolou86 Any update on this? |
|
I am sorry that I don't know how to cherry-pick from #1094 to here. |
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/documentation/ . |
94156b9
to
8a1a9fb
Compare
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/documentation/ . |
7 similar comments
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/documentation/ . |
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/documentation/ . |
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/documentation/ . |
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/documentation/ . |
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/documentation/ . |
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/documentation/ . |
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/documentation/ . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LucasLvy Please approve.
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
* xref:#cancelL1ToL2Message[`cancelL1ToL2Message`] | ||
* xref:#consumeMessageFromL2[`consumeMessageFromL2`] | ||
* xref:#getMaxL1MsgFee[`getMaxL1MsgFee`] | ||
* xref:#l1ToL2Messages[`l1ToL2Messages`] | ||
* xref:#sendMessageToL2[`sendMessageToL2`] | ||
* xref:#startL1ToL2MessageCancellation[`startL1ToL2MessageCancellation`] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LucasLvy
Added:
- l1ToL2MessageCancellations
- l1ToL2MessageNonce
- l2ToL1Messages
- messageCancellationDelay
We don't document getL1ToL2MsgHash
. It is marked as internal
. Do you think it needs to be documented?
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xiaolou86 Please see my comments.
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
...arknet/modules/architecture_and_concepts/pages/Network_Architecture/messaging_reference.adoc
Outdated
Show resolved
Hide resolved
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/documentation/ . |
…twork_Architecture/messaging_reference.adoc Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>
…twork_Architecture/messaging_reference.adoc Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>
…twork_Architecture/messaging_reference.adoc Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>
…twork_Architecture/messaging_reference.adoc Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>
…twork_Architecture/messaging_reference.adoc Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>
…twork_Architecture/messaging_reference.adoc Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>
…twork_Architecture/messaging_reference.adoc Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>
…twork_Architecture/messaging_reference.adoc Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>
…twork_Architecture/messaging_reference.adoc Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>
…twork_Architecture/messaging_reference.adoc Co-authored-by: Steve Goodman <39279277+stoobie@users.noreply.github.com>
…f the IStarknetMessaging.sol
Co-authored-by: xiaolou86 <20718693+xiaolou86@users.noreply.github.com>
…twork_Architecture/messaging_reference.adoc
…twork_Architecture/messaging_reference.adoc
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/ . |
|
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/ . |
Your preview build is ready! ✨ Check the following link in 1-2 minutes: https://starknet-io.github.io/starknet-docs/pr-1209/ . |
#1094 is merged, so closing this one. |
Description of the Changes
Add Messaging function and event reference.
Based on #1094.
Closes #1086.
PR Preview URL
Messaging reference
Check List
<docs/feat/fix/chore>(optional scope): <description>
, e.g:fix: minor typos in code
This change is