-
Notifications
You must be signed in to change notification settings - Fork 166
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
Add increase liquidity test for rust sdk #605
base: paul/rust-sdk-add-position-test
Are you sure you want to change the base?
Add increase liquidity test for rust sdk #605
Conversation
|
||
ctx.send_transaction_with_signers(increase_ix.instructions, signers) | ||
.await?; | ||
|
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.
Here I would assert that the quote matches whatever happened on-chain (same way we have the test in ts sdk)
position_bump, | ||
}); | ||
|
||
println!("Sending transaction with instructions..."); |
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.
This print can be removed?
@@ -237,3 +343,13 @@ pub async fn setup_position_bundle( | |||
|
|||
Ok(position_bundle_address) | |||
} | |||
|
|||
pub async fn setup_config_and_fee_tiers(ctx: &RpcContext) -> Result<(), Box<dyn Error>> { |
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.
Is this used anywhere? it is not actually setting up any fee tiers and/or configs
@@ -40,6 +40,7 @@ use crate::{SPLASH_POOL_TICK_SPACING, WHIRLPOOLS_CONFIG_ADDRESS}; | |||
pub struct RpcContext { | |||
pub rpc: RpcClient, | |||
pub signer: Keypair, | |||
pub config: Pubkey, |
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.
Is this param used anywhere?
Add tests for increase liquidity and update RPC configurations
Changes
Details