-
Notifications
You must be signed in to change notification settings - Fork 63
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
Sui Gateway page #585
Sui Gateway page #585
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
📝 WalkthroughWalkthroughThe changes remove a Next.js type reference from the type declarations in Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SuiGateway
participant Receiver
User->>SuiGateway: Initiate deposit(coins, receiver)
SuiGateway->>SuiGateway: Validate deposit and process conversion
SuiGateway->>Receiver: Transfer ZRC-20 tokens
SuiGateway-->>User: Emit DepositEvent
sequenceDiagram
participant User
participant SuiGateway
participant UniversalApp
User->>SuiGateway: Initiate deposit_and_call(coins, receiver, payload)
SuiGateway->>SuiGateway: Validate deposit and payload (max 1024 bytes)
SuiGateway->>UniversalApp: Invoke onCall(payload)
SuiGateway-->>User: Emit DepositAndCallEvent
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (3)
src/pages/developers/chains/sui.mdx (3)
24-32
: Deposit Function Description and Receiver Parameter
The description following the code snippet effectively explains the function’s behavior. One optional nitpick: In the phrase "0x-prefixed hex string," consider verifying if the hyphenation aligns with your style guidelines, as it might be simplified to "0x prefixed hex string" for consistency.🧰 Tools
🪛 LanguageTool
[uncategorized] ~32-~32: Although a hyphen is possible, it is not necessary in a compound modifier in which the first word is an adverb that ends in ‘ly’.
Context: ...ixed hex string) representing either an externally-owned account (EOA) or a universal app addres...(HYPHENATED_LY_ADVERB_ADJECTIVE)
68-73
: Events Documentation: Monitoring Gateway Activity
The events section clearly lists and describes the events emitted by the Gateway. For even greater clarity, consider adding brief notes on how to subscribe to or filter these events in a production environment.
75-81
: View Functions Explanation: Read-Only Gateway Data
The view functions are clearly enumerated with their primary purposes. Including sample use-cases or example outputs could further aid developers in leveraging these functions effectively.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
next-env.d.ts
(0 hunks)src/pages/developers/chains/_meta.json
(1 hunks)src/pages/developers/chains/sui.mdx
(1 hunks)
💤 Files with no reviewable changes (1)
- next-env.d.ts
🧰 Additional context used
🪛 LanguageTool
src/pages/developers/chains/sui.mdx
[uncategorized] ~32-~32: Although a hyphen is possible, it is not necessary in a compound modifier in which the first word is an adverb that ends in ‘ly’.
Context: ...ixed hex string) representing either an externally-owned account (EOA) or a universal app addres...
(HYPHENATED_LY_ADVERB_ADJECTIVE)
🔇 Additional comments (10)
src/pages/developers/chains/_meta.json (2)
20-21
: Updated "solana" Description: Broader Token Support
The description for the Solana entry has been modified to "Make calls to universal apps and deposit tokens from Solana", which better reflects support for multiple token types instead of being limited to SOL.
22-24
: New "sui" Entry Added: Sui Gateway Integration
The entry for Sui is well defined with an appropriate title and description. This aligns with the new documentation insui.mdx
and clearly indicates support for depositing tokens from Sui.src/pages/developers/chains/sui.mdx (8)
1-7
: Sui Gateway Introduction and Overview
The introductory section clearly labels the document with a title and provides a concise explanation of the Sui Gateway’s purpose. The inclusion of a link to the Sui tutorial is a valuable addition for further guidance.
8-11
: Features List Clarity
The bullet list succinctly summarizes the two primary functionalities: depositing coins and depositing with a call. This clarity will help users quickly grasp the gateway's capabilities.
12-15
: Deposit Section Heading and Context
The "## Deposit Coins" heading and explanatory text correctly set the context for the deposit functionality. The instruction to use thedeposit
function is clear and directs users appropriately.
16-23
: Deposit Function Declaration Review
The Move code snippet for thedeposit
function is well-formatted and clear. Ensure that the syntax complies with Move standards and that the parameter types and ordering meet the Sui Gateway design specifications.
34-37
: Deposit-and-Call Section Introduction
The introduction for thedeposit_and_call
function is clear, specifying when to use it instead of the standard deposit. This guidance is essential for preventing confusion between the two functions.
38-46
: Deposit_and_Call Function Declaration Review
The Move code snippet fordeposit_and_call
is well-structured and clearly presents the parameters. Confirm that the payload size limit (1024 bytes) is enforced in downstream validations.
47-51
: Deposit_and_Call Function Behavior Explanation
The accompanying explanation clearly states the requirements (e.g., universal app contract address, payload usage) and constraints (payload size limit) for thedeposit_and_call
operation. This detail is crucial for developers integrating with the Sui Gateway.
53-67
: Administrative Functions Overview: Capabilities and Security
The documentation for administrative functions is comprehensive and provides necessary details regarding the required capability objects. It might be beneficial to include links or references where these capabilities (e.g.,WhitelistCap
,WithdrawCap
,AdminCap
) are defined or further explained.
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.
Tested ACK
Summary by CodeRabbit
New Features
Documentation