Skip to content

Conversation

@smol-ninja
Copy link
Member

No description provided.

add createWithDurationsLl example
add note about solana wallet path
Copy link
Member

@andreivladbrg andreivladbrg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left some comments, and i implemented them in this commit 144a719

let me know if you agree with them, we can proceed with MI as well

```

Make sure to call the `withdrawFromStream` function to execute the withdrawal:
To withdraw from the stream, you can now call the `withdrawFromStream` function.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, if the function is not called explicitly, the withdrawal won't be made on-chain

"Make sure to call the withdrawFromStream function to execute the withdrawal"

is more precise

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edited this to:

Make sure to call the `withdrawFromStream` function to execute the withdrawal on-chain.

for extra explicitness

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To withdraw from the stream, you can now call the withdrawFromStream function

Doesn't that mean that withdrawFromStream is called? I didn't understand why you disagree.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so i see it like this:

  1. withdrawFromStream calls the IDL instruction with the configured parameters
  2. invoking withdrawFromStream triggers the withdrawal when the CLI runs
  3. run the script with bun using the desired rpc and wallet

these steps together enable the withdrawal from the stream - if one is missed no withdrawal happens

when i read your version, it made me think thats the last step xD

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK I understood now. See #402 (comment)

@smol-ninja
Copy link
Member Author

After you have removed the duplicate section, feel free to merge the PR. Your commit lgtm (other than unresolved comments).

@andreivladbrg
Copy link
Member

@smol-ninja in case you also find the note about the solana wallet config repetitive, i do too, but IMO it's fine in this kind of context

@smol-ninja
Copy link
Member Author

Yeah ok its a guide anyways. What do you think about spllitting it into three pages:

  1. Create
  2. Withdraw
  3. Cancel

A user may be interested into withdraw but not create so separating them into separate pages could be better.

@andreivladbrg
Copy link
Member

Yeah ok its a guide anyways. What do you think about spllitting it into three pages:

  1. Create
  2. Withdraw
  3. Cancel

A user may be interested into withdraw but not create so separating them into separate pages could be better

the only problem i see with this is that they would be short pages

we could also mirror the EVM version with: stream creator and stream management for cancel + withdraw

@smol-ninja
Copy link
Member Author

the only problem i see with this is that they would be short pages

I dont think thats a problem but may be because setUp is shared across all functions, it makes sense to put them in a page

@andreivladbrg
Copy link
Member

may be because setUp is shared across all functions,

you are right, thats even more important

@andreivladbrg andreivladbrg merged commit 138457d into feat/client-integration Oct 29, 2025
1 check passed
@andreivladbrg andreivladbrg deleted the shub-feedback branch October 29, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants