@@ -123,34 +123,6 @@ pub mod svm_spoke {
123123 instructions:: transfer_ownership ( ctx, new_owner)
124124 }
125125
126- /// Enables or disables a route for deposits from origin token to destination chain ID. Callable only by the owner.
127- ///
128- /// ### Required Accounts:
129- /// - signer (Signer): The account that must be the owner to authorize the route change.
130- /// - payer (Signer): The account responsible for paying the transaction fees.
131- /// - state (Writable): The Spoke state PDA. Seed: ["state",state.seed] where `seed` is 0 on mainnet.
132- /// - route (Writable): PDA to store route information. Created on the first call, updated subsequently.
133- /// Seed: ["route",origin_token,state.seed,destination_chain_id].
134- /// - vault (Writable): ATA to hold the origin token for the associated route. Created on the first call.
135- /// Authority must be set as the state, and mint must be the origin_token_mint.
136- /// - origin_token_mint: The mint account for the origin token.
137- /// - token_program: The token program.
138- /// - associated_token_program: The associated token program.
139- /// - system_program: The system program required for account creation.
140- ///
141- /// ### Parameters:
142- /// - origin_token: The public key of the origin token.
143- /// - destination_chain_id: The chain ID of the destination.
144- /// - enabled: Boolean indicating whether the route is enabled or disabled.
145- pub fn set_enable_route (
146- ctx : Context < SetEnableRoute > ,
147- origin_token : Pubkey ,
148- destination_chain_id : u64 ,
149- enabled : bool ,
150- ) -> Result < ( ) > {
151- instructions:: set_enable_route ( ctx, origin_token, destination_chain_id, enabled)
152- }
153-
154126 /// Sets the cross-domain admin for the Spoke Pool. Only callable by owner. Used if Hubpool upgrades.
155127 ///
156128 /// ### Required Accounts:
@@ -228,8 +200,6 @@ pub mod svm_spoke {
228200 /// ### Required Accounts:
229201 /// - signer (Signer): The account that authorizes the deposit.
230202 /// - state (Writable): Spoke state PDA. Seed: ["state",state.seed] where seed is 0 on mainnet.
231- /// - route (Account): The route PDA for the particular bridged route in question. Validates a route is enabled.
232- /// Seed: ["route",input_token,state.seed,destination_chain_id].
233203 /// - depositor_token_account (Writable): The depositor's ATA for the input token.
234204 /// - vault (Writable): Programs ATA for the associated input token. This is where the depositor's assets are sent.
235205 /// Authority must be the state.
@@ -246,8 +216,7 @@ pub mod svm_spoke {
246216 /// amount will be sent to the relayer on their repayment chain of choice as a refund following an optimistic
247217 /// challenge window in the HubPool, less a system fee.
248218 /// - output_amount: The amount of output tokens that the relayer will send to the recipient on the destination.
249- /// - destination_chain_id: The destination chain identifier. Must be enabled along with the input token as a valid
250- /// deposit route from this spoke pool or this transaction will revert.
219+ /// - destination_chain_id: The destination chain identifier where the fill should be made.
251220 /// - exclusive_relayer: The relayer that will be exclusively allowed to fill this deposit before the exclusivity
252221 /// deadline timestamp. This must be a valid, non-zero address if the exclusivity deadline is greater than the
253222 /// current block timestamp.
@@ -400,9 +369,6 @@ pub mod svm_spoke {
400369 /// instruction data due to message size constraints. Pass this program ID to represent None. When Some, this must
401370 /// be derived from the signer's public key with seed ["instruction_params",signer].
402371 /// - state (Writable): Spoke state PDA. Seed: ["state",state.seed] where seed is 0 on mainnet.
403- /// - route (Account): The route PDA for the particular bridged route in question. Validates a route is enabled.
404- /// Seed: ["route",input_token,state.seed,destination_chain_id].
405- /// - vault (Writable): The ATA for refunded mint. Authority must be the state.
406372 /// - mint (Account): The mint of the output token, sent from the relayer to the recipient.
407373 /// - relayer_token_account (Writable): The relayer's ATA for the input token.
408374 /// - recipient_token_account (Writable): The recipient's ATA for the output token.
0 commit comments