@@ -46,9 +46,9 @@ use utils::*;
46
46
pub mod svm_spoke {
47
47
use super :: * ;
48
48
49
- /// **************************************
50
- /// ADMIN FUNCTIONS *
51
- /// *************************************
49
+ // **************************************
50
+ // ADMIN FUNCTIONS *
51
+ // *************************************
52
52
53
53
/// Initializes the state for the SVM Spoke Pool. Only callable once.
54
54
///
@@ -208,16 +208,16 @@ pub mod svm_spoke {
208
208
instructions:: emergency_delete_root_bundle ( ctx, root_bundle_id)
209
209
}
210
210
211
- /// **************************************
212
- /// DEPOSIT FUNCTIONS *
213
- /// *************************************
211
+ // **************************************
212
+ // DEPOSIT FUNCTIONS *
213
+ // *************************************
214
214
215
215
/// Request to bridge input_token to a target chain and receive output_token.
216
216
///
217
217
/// The fee paid to relayers and the system is captured in the spread between the input and output amounts,
218
218
/// denominated in the input token. A relayer on the destination chain will send `output_amount` of `output_token`
219
219
/// to the recipient and receive `input_token` on a repayment chain of their choice. The fee accounts for:
220
- /// Destination transaction costs, relayer's opportunity cost of capital while waiting for a refund during the
220
+ /// destination transaction costs, relayer's opportunity cost of capital while waiting for a refund during the
221
221
/// optimistic challenge window in the HubPool, and the system fee charged to the relayer.
222
222
///
223
223
/// On the destination chain, a unique hash of the deposit data is used to identify this deposit. Modifying any
@@ -239,7 +239,7 @@ pub mod svm_spoke {
239
239
/// ### Parameters
240
240
/// - depositor: The account credited with the deposit. Can be different from the signer.
241
241
/// - recipient: The account receiving funds on the destination chain. Depending on the output chain can be an ETH
242
- /// address or a contract address or any other address type encoded as a bytes32 field.
242
+ /// address or a contract address or any other address type encoded as a bytes32 field.
243
243
/// - input_token: The token pulled from the caller's account and locked into this program's vault on deposit.
244
244
/// - output_token: The token that the relayer will send to the recipient on the destination chain.
245
245
/// - input_amount: The amount of input tokens to pull from the caller's account and lock into the vault. This
@@ -293,8 +293,8 @@ pub mod svm_spoke {
293
293
)
294
294
}
295
295
296
- // Equivalent to deposit_v3 except quote_timestamp is set to the current time.
297
- // The deposit `fill_deadline` is calculated as the current time plus `fill_deadline_offset`.
296
+ /// Equivalent to deposit_v3 except quote_timestamp is set to the current time.
297
+ /// The deposit `fill_deadline` is calculated as the current time plus `fill_deadline_offset`.
298
298
pub fn deposit_v3_now (
299
299
ctx : Context < DepositV3 > ,
300
300
depositor : Pubkey ,
@@ -381,9 +381,9 @@ pub mod svm_spoke {
381
381
Ok ( utils:: get_unsafe_deposit_id ( signer, depositor, deposit_nonce) )
382
382
}
383
383
384
- /// **************************************
385
- /// RELAYER FUNCTIONS *
386
- /// *************************************
384
+ // **************************************
385
+ // RELAYER FUNCTIONS *
386
+ // *************************************
387
387
388
388
/// Fulfill request to bridge cross chain by sending specified output tokens to recipient.
389
389
///
@@ -434,7 +434,7 @@ pub mod svm_spoke {
434
434
/// - message: The message to send to the recipient if the recipient is a contract that implements a
435
435
/// handle_v3_across_message() public function.
436
436
/// - repayment_chain_id: Chain of SpokePool where relayer wants to be refunded after the challenge window has
437
- /// passed. Will receive input_amount of the equivalent token to input_token on the repayment chain.
437
+ /// passed. Will receive input_amount of the equivalent token to input_token on the repayment chain.
438
438
/// - repayment_address: The address of the recipient on the repayment chain that they want to be refunded to.
439
439
/// Note: relay_data, repayment_chain_id, and repayment_address are optional parameters. If None for any of these
440
440
/// is passed, the caller must load them via the instruction_params account.
@@ -497,9 +497,9 @@ pub mod svm_spoke {
497
497
instructions:: create_token_accounts ( ctx)
498
498
}
499
499
500
- /// **************************************
501
- /// BUNDLE FUNCTIONS *
502
- /// *************************************
500
+ // **************************************
501
+ // BUNDLE FUNCTIONS *
502
+ // *************************************
503
503
504
504
/// Executes relayer refund leaf.
505
505
///
@@ -536,8 +536,7 @@ pub mod svm_spoke {
536
536
/// - token_program: The token program.
537
537
/// - system_program: The system program required for account creation.
538
538
///
539
- /// execute_relayer_refund_leaf executes in mode (a) where refunds are sent to ATA directly.
540
- /// execute_relayer_refund_leaf_deferred executes in mode (b) where refunds are allocated to the claim_account PDA.
539
+ /// execute_relayer_refund_leaf executes in mode where refunds are sent to ATA directly.
541
540
pub fn execute_relayer_refund_leaf < ' c , ' info > (
542
541
ctx : Context < ' _ , ' _ , ' c , ' info , ExecuteRelayerRefundLeaf < ' info > > ,
543
542
) -> Result < ( ) >
@@ -547,6 +546,7 @@ pub mod svm_spoke {
547
546
instructions:: execute_relayer_refund_leaf ( ctx, false )
548
547
}
549
548
549
+ /// Similar to execute_relayer_refund_leaf, but executes in mode where refunds are allocated to claim_account PDAs.
550
550
pub fn execute_relayer_refund_leaf_deferred < ' c , ' info > (
551
551
ctx : Context < ' _ , ' _ , ' c , ' info , ExecuteRelayerRefundLeaf < ' info > > ,
552
552
) -> Result < ( ) >
@@ -672,9 +672,9 @@ pub mod svm_spoke {
672
672
instructions:: close_claim_account ( ctx)
673
673
}
674
674
675
- /// **************************************
676
- /// SLOW FILL FUNCTIONS *
677
- /// *************************************
675
+ // **************************************
676
+ // SLOW FILL FUNCTIONS *
677
+ // *************************************
678
678
679
679
/// Requests Across to send LP funds to this program to fulfill a slow fill.
680
680
///
@@ -757,9 +757,9 @@ pub mod svm_spoke {
757
757
instructions:: execute_v3_slow_relay_leaf ( ctx, slow_fill_leaf, proof)
758
758
}
759
759
760
- /// **************************************
761
- /// CCTP FUNCTIONS FUNCTIONS *
762
- /// *************************************
760
+ // **************************************
761
+ // CCTP FUNCTIONS FUNCTIONS *
762
+ // *************************************
763
763
764
764
/// Handles cross-chain messages received from L1 Ethereum over CCTP.
765
765
///
0 commit comments