Skip to content

Commit

Permalink
feat: lp_subscribe_order_fills (#4319)
Browse files Browse the repository at this point in the history
Co-authored-by: kylezs <zsembery.kyle@gmail.com>
  • Loading branch information
AlastairHolmes and kylezs committed Dec 6, 2023
1 parent d246391 commit c4be27a
Show file tree
Hide file tree
Showing 19 changed files with 787 additions and 258 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions api/bin/chainflip-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,11 @@ async fn run_cli() -> Result<()> {
LiquidityProviderSubcommands::RequestLiquidityDepositAddress { asset, chain },
) => {
let asset = RpcAsset::try_from((asset, chain))?;
let address =
api.lp_api().request_liquidity_deposit_address(asset.try_into()?).await?;
let address = api
.lp_api()
.request_liquidity_deposit_address(asset.try_into()?, api::WaitFor::InBlock)
.await?
.unwrap_details();
println!("Deposit Address: {address}");
},
LiquidityProvider(
Expand Down
1 change: 1 addition & 0 deletions api/bin/chainflip-lp-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ tracing-subscriber = { version = "0.3.3", features = ["env-filter"] }
pallet-cf-pools = { path = '../../../state-chain/pallets/cf-pools' }
cf-primitives = { path = "../../../state-chain/primitives" }
custom-rpc = { path = "../../../state-chain/custom-rpc" }
frame-system = { git = 'https://github.com/chainflip-io/substrate.git', tag = 'chainflip-monthly-2023-08+3' }

# Local
chainflip-api = { path = "../../lib" }
Expand Down

0 comments on commit c4be27a

Please sign in to comment.