Skip to content
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

An example of sending a Ston.fi swap transaction in Cookbook #149

Open
anton-trunov opened this issue Mar 25, 2024 · 4 comments · May be fixed by #400
Open

An example of sending a Ston.fi swap transaction in Cookbook #149

anton-trunov opened this issue Mar 25, 2024 · 4 comments · May be fixed by #400
Assignees
Labels
docs: Cookbook /cookbook section of the docs: "How-Tos" and complete code examples for various use-cases help wanted Extra attention is needed

Comments

@anton-trunov
Copy link
Member

anton-trunov commented Mar 25, 2024

Related issue: #146

Also, it would be nice to have an example of adding liquidity (as suggested by @Gusarich)

@anton-trunov anton-trunov added the docs: Cookbook /cookbook section of the docs: "How-Tos" and complete code examples for various use-cases label Mar 25, 2024
@novusnota novusnota added the has dependency Depends on another issue and can't be resolved before it label Mar 28, 2024
@novusnota
Copy link
Member

novusnota commented Mar 28, 2024

Depends on #142
UPD: Not anymore!

novusnota added a commit to novusnota-forks/tact-docs that referenced this issue Apr 3, 2024
anton-trunov pushed a commit that referenced this issue Apr 8, 2024
* fix: Minor adjustments to optimize space

* chore: Removed the basics from the Cookbook

* feat: Place for #146 and #149

* chore: Moved all data structures to dedicated page

* feat: Jettons and NFTs got their pages

* chore: Moved additional examples of primitive types

* chore: moved Int <-> String examples

* chore: Moved time and date-related stuff

* chore: Moved single-contract communication (mostly about sending stuff)

* chore: Moved randomness

* chore: Stubs for NFT, FT and Mass communication

* chore: Invite to contribute

* chore: Algo page stub

As mentioned in #161

* chore: Moved access control

* chore: Data structure enhancements

* chore: Miscellaneous and niche things which don't have a dedicated page (yet?)

* chore: Moved randomness a bit

* feat: New Cookbook Overview!

* chore: Rename Primitive types -> Type conversions

* chore: Temporarily archive Cell & Slice examples
@novusnota novusnota removed the has dependency Depends on another issue and can't be resolved before it label May 8, 2024
@crazybee69
Copy link

crazybee69 commented Jun 14, 2024

I implemented this in my code here: https://github.com/crazybee69/TonDcaBot/blob/main/contracts/ton_dca_wallet.tact#L257

I spent a lot of time trying to send messages including structures, but I couldn't make it work. Native messages with CellBuilder it works well.

Here is API reference of StonFi: https://docs.ston.fi/docs/developer-section/api-reference/router#swap-0x25938561

@anton-trunov anton-trunov added the help wanted Extra attention is needed label Jul 17, 2024
@anton-trunov anton-trunov assigned a-bahdanau and unassigned Gusarich Jul 17, 2024
@a-bahdanau
Copy link
Contributor

Hello! Version 2 of ston.fi looks like it's in development. Should I make an example using version 2 contracts or stick to version 1?

@anton-trunov
Copy link
Member Author

Let's please target v2 as it's around the corner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs: Cookbook /cookbook section of the docs: "How-Tos" and complete code examples for various use-cases help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants