@@ -35,13 +35,13 @@ pub mod gateway {
3535 }
3636
3737 /// Increments nonce, used by TSS in case outbound fails.
38- /// # Arguments:
38+ /// # Arguments
3939 /// * `ctx` - The instruction context.
40- /// * `amount` - The amount of lamports to increment .
41- /// * `signature` - The signature of the message .
42- /// * `recovery_id` - The recovery ID of the signature.
43- /// * `message_hash` - The hash of the message .
44- /// * `nonce` - The nonce of the message .
40+ /// * `amount` - The amount in original outbound .
41+ /// * `signature` - The TSS signature .
42+ /// * `recovery_id` - The recovery ID for signature verification .
43+ /// * `message_hash` - Message hash for signature verification .
44+ /// * `nonce` - The current nonce value .
4545 pub fn increment_nonce (
4646 ctx : Context < IncrementNonce > ,
4747 amount : u64 ,
@@ -61,14 +61,15 @@ pub mod gateway {
6161 }
6262
6363 /// Withdraws amount to destination program pda, and calls on_call on destination program
64- /// # Arguments:
65- /// * `amount`: Amount of SOL to transfer
66- /// * `sender`: Sender's address
67- /// * `data`: Arbitrary data to pass to the destination program
68- /// * `signature`: Signature of the message
69- /// * `recovery_id`: Recovery ID of the signature
70- /// * `message_hash`: Hash of the message
71- /// * `nonce`: Nonce of the message
64+ /// # Arguments
65+ /// * `ctx` - The instruction context.
66+ /// * `amount` - Amount of SOL to transfer.
67+ /// * `sender` - Sender's address.
68+ /// * `data` - Arbitrary data to pass to the destination program.
69+ /// * `signature` - Signature of the message.
70+ /// * `recovery_id` - Recovery ID of the signature.
71+ /// * `message_hash` - Hash of the message.
72+ /// * `nonce` - Nonce of the message.
7273 pub fn execute (
7374 ctx : Context < Execute > ,
7475 amount : u64 ,
@@ -91,16 +92,17 @@ pub mod gateway {
9192 )
9293 }
9394
94- /// Execute with SPL tokens. Caller is TSS.
95- /// # Arguments:
96- /// * `decimals`: Decimals of the token
97- /// * `amount`: Amount of tokens to transfer
98- /// * `sender`: Sender's Ethereum address
99- /// * `data`: Arbitrary data to pass to the destination program
100- /// * `signature`: Signature of the message
101- /// * `recovery_id`: Recovery ID of the signature
102- /// * `message_hash`: Hash of the message
103- /// * `nonce`: Nonce of the message
95+ /// Withdraws amount of SPL tokens to destination program pda, and calls on_call on destination program
96+ /// # Arguments
97+ /// * `ctx` - The instruction context.
98+ /// * `decimals` - Token decimals for precision.
99+ /// * `amount` - The amount of tokens to withdraw.
100+ /// * `sender` - Sender from ZEVM.
101+ /// * `data` - Data to pass to destination program.
102+ /// * `signature` - The TSS signature.
103+ /// * `recovery_id` - The recovery ID for signature verification.
104+ /// * `message_hash` - Message hash for signature verification.
105+ /// * `nonce` - The current nonce value.
104106 pub fn execute_spl_token (
105107 ctx : Context < ExecuteSPLToken > ,
106108 decimals : u8 ,
@@ -191,7 +193,7 @@ pub mod gateway {
191193 /// * `ctx` - The instruction context.
192194 /// * `amount` - The amount of lamports to deposit.
193195 /// * `receiver` - The Ethereum address of the receiver on ZetaChain zEVM.
194- /// * `deposit_fee ` - The fee to be deducted from the deposited amount .
196+ /// * `revert_options ` - The revert options created by the caller .
195197 pub fn deposit (
196198 ctx : Context < Deposit > ,
197199 amount : u64 ,
@@ -204,7 +206,7 @@ pub mod gateway {
204206 /// Deposits SOL and calls a contract on ZetaChain zEVM.
205207 /// # Arguments
206208 /// * `ctx` - The instruction context.
207- /// * `amount` - The amount of SPL tokens to deposit.
209+ /// * `amount` - The amount of lamports to deposit.
208210 /// * `receiver` - The Ethereum address of the receiver on ZetaChain zEVM.
209211 /// * `message` - The message passed to the contract.
210212 /// * `revert_options` - The revert options created by the caller.
@@ -230,6 +232,7 @@ pub mod gateway {
230232 /// * `ctx` - The instruction context.
231233 /// * `amount` - The amount of SPL tokens to deposit.
232234 /// * `receiver` - The Ethereum address of the receiver on ZetaChain zEVM.
235+ /// * `revert_options` - The revert options created by the caller.
233236 pub fn deposit_spl_token (
234237 ctx : Context < DepositSplToken > ,
235238 amount : u64 ,
@@ -245,8 +248,7 @@ pub mod gateway {
245248 /// * `amount` - The amount of SPL tokens to deposit.
246249 /// * `receiver` - The Ethereum address of the receiver on ZetaChain zEVM.
247250 /// * `message` - The message passed to the contract.
248- /// * `deposit_fee` - The fee to be deducted from the deposited amount.
249- /// * `max_message_size` - The maximum allowed message size.
251+ /// * `revert_options` - The revert options created by the caller.
250252 pub fn deposit_spl_token_and_call (
251253 ctx : Context < DepositSplToken > ,
252254 amount : u64 ,
@@ -268,7 +270,7 @@ pub mod gateway {
268270 /// # Arguments
269271 /// * `receiver` - The Ethereum address of the receiver on ZetaChain zEVM.
270272 /// * `message` - The message passed to the contract.
271- /// * `max_message_size ` - The maximum allowed message size .
273+ /// * `revert_options ` - The revert options created by the caller .
272274 pub fn call (
273275 ctx : Context < Call > ,
274276 receiver : [ u8 ; 20 ] ,
@@ -279,13 +281,13 @@ pub mod gateway {
279281 }
280282
281283 /// Withdraws SOL. Caller is TSS.
282- /// Arguments:
284+ /// # Arguments
283285 /// * `ctx` - The instruction context.
284- /// * `amount` - The amount of lamports to withdraw.
285- /// * `signature` - The signature of the message .
286- /// * `recovery_id` - The recovery ID of the signature.
287- /// * `message_hash` - The hash of the message .
288- /// * `nonce` - The nonce of the message .
286+ /// * `amount` - The amount of SOL to withdraw.
287+ /// * `signature` - The TSS signature .
288+ /// * `recovery_id` - The recovery ID for signature verification .
289+ /// * `message_hash` - Message hash for signature verification .
290+ /// * `nonce` - The current nonce value .
289291 pub fn withdraw (
290292 ctx : Context < Withdraw > ,
291293 amount : u64 ,
@@ -298,14 +300,14 @@ pub mod gateway {
298300 }
299301
300302 /// Withdraws SPL tokens. Caller is TSS.
301- /// Arguments:
303+ /// # Arguments
302304 /// * `ctx` - The instruction context.
303- /// * `decimals` - The decimals of the token .
304- /// * `amount` - The amount of tokens to transfer .
305- /// * `signature` - The signature of the message .
306- /// * `recovery_id` - The recovery ID of the signature.
307- /// * `message_hash` - The hash of the message .
308- /// * `nonce` - The nonce of the message .
305+ /// * `decimals` - Token decimals for precision .
306+ /// * `amount` - The amount of tokens to withdraw .
307+ /// * `signature` - The TSS signature .
308+ /// * `recovery_id` - The recovery ID for signature verification .
309+ /// * `message_hash` - Message hash for signature verification .
310+ /// * `nonce` - The current nonce value .
309311 pub fn withdraw_spl_token (
310312 ctx : Context < WithdrawSPLToken > ,
311313 decimals : u8 ,
0 commit comments