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

feat: add enableSwaps in transferWithHook and transfer #97

Merged
merged 10 commits into from
Dec 11, 2024

Conversation

Tbaut
Copy link
Collaborator

@Tbaut Tbaut commented Dec 6, 2024

closes #94

  • my linter (or prettier) removed trailing commas, making this PR look bigger than it seems, I've set it as a rule.

@Tbaut Tbaut changed the title Add enableSwaps in transferWithHook and transfer feat: add enableSwaps in transferWithHook and transfer Dec 6, 2024
@BeroBurny
Copy link
Collaborator

  • enableSwaps is optional, but I'm not setting it as falseper default, if it's undefined, the api side will take it as falsy I believe. Is that ok or should I explicitely set it to false in the makeRequest?

I went through implementation and it seems this could be an issue (not a GO dev so I could be wrong), but it should be defaulted on API as it is a new feature not to break older integrations

It seems it has not yet been deployed on production

Copy link
Collaborator

@BeroBurny BeroBurny left a comment

Choose a reason for hiding this comment

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

  • is the doc set manually like I did, or do you take it from somewhere else?

Documentation is not automated, you need to update it manually

  • docs/docs/03-sdk/04-methods-reference/transfer

@Tbaut
Copy link
Collaborator Author

Tbaut commented Dec 9, 2024

Thanks Bero. I've now set it to false per default.
I've updated the docs too.

I realized the docs aren't really linted, I'll do this in another PR, otherwise every time I save, prettier changes everything.

@Tbaut Tbaut requested a review from BeroBurny December 9, 2024 15:01
packages/sdk/src/api.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@Tbaut Tbaut requested a review from BeroBurny December 10, 2024 18:18
Copy link
Contributor

@Tbaut Tbaut merged commit bd21311 into master Dec 11, 2024
4 checks passed
@Tbaut Tbaut deleted the tbaut-enableSwaps branch December 11, 2024 08:36
@github-actions github-actions bot mentioned this pull request Dec 10, 2024
mpetrunic pushed a commit that referenced this pull request Dec 11, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>sprinter-sdk: 1.1.0</summary>

##
[1.1.0](sprinter-sdk-v1.0.2...sprinter-sdk-v1.1.0)
(2024-12-11)


### Features

* add enableSwaps in `transferWithHook` and `transfer`
([#97](#97))
([bd21311](bd21311)),
closes [#94](#94)
</details>

<details><summary>sprinter-react: 1.1.0</summary>

##
[1.1.0](sprinter-react-v1.0.0...sprinter-react-v1.1.0)
(2024-12-11)


### Features

* add enableSwaps in `transferWithHook` and `transfer`
([#97](#97))
([bd21311](bd21311)),
closes [#94](#94)


### Bug Fixes

* **PoC:** readme, some errors and other nits
([#90](#90))
([f4fb199](f4fb199))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Add optional flag to enable source swaps for single hop solutions
3 participants