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: reverse extra args completion #158

Merged
merged 6 commits into from
Sep 20, 2024
Merged

feat: reverse extra args completion #158

merged 6 commits into from
Sep 20, 2024

Conversation

palace22
Copy link
Collaborator

Resolve #140

  • Added completion of reverse extraArgs when missing
  • Added check on reversible actions
  • Updated SendTokenMessageData to not contain folksTokenId
  • Added utils to decode payload and data

Copy link

changeset-bot bot commented Sep 19, 2024

🦋 Changeset detected

Latest commit: 2c79cd5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@folks-finance/xchain-sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented Sep 19, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/@folks-finance/xchain-sdk@158

commit: 2c79cd5

Comment on lines 73 to 84
extraArgs: ReverseMessageExtraArgs | undefined,
extraArgs: Partial<ReverseMessageExtraArgs> | undefined,
Copy link
Member

@gidonkatten gidonkatten Sep 19, 2024

Choose a reason for hiding this comment

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

I don't think there should be the option to pass extra args for the return gas limit

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

src/common/utils/messages.ts Outdated Show resolved Hide resolved
palace22 and others added 2 commits September 20, 2024 12:34
Resolve #141 
Resolve #156 
Resolve:
> Should subtract from msgValue the existing account's bridge router
balanace for retry when a return message is needed
> Should subtract from msgValue the existing account's bridge router
balanace for reverse

- Added completion of retry extraArgs when missing
- Added check on retryable actions
- Refactored actions types
- Added utils to calc requires msg value
@palace22 palace22 merged commit deef6ce into main Sep 20, 2024
5 checks passed
@palace22 palace22 deleted the feat/reverse-extra-args branch September 20, 2024 11:06
stefanofa pushed a commit that referenced this pull request Sep 20, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @folks-finance/[email protected]

### Patch Changes

-
[#158](#158)
[`deef6ce`](deef6ce)
Thanks [@palace22](https://github.com/palace22)! - Added retry and
reverse msg value estimation considering bridge router balance

-
[#163](#163)
[`468f2d6`](468f2d6)
Thanks [@palace22](https://github.com/palace22)! - Fixed retry and
reverse message to send

-
[#158](#158)
[`deef6ce`](deef6ce)
Thanks [@palace22](https://github.com/palace22)! - Added reverse extra
args completion with gas limit estimation

-
[#158](#158)
[`deef6ce`](deef6ce)
Thanks [@palace22](https://github.com/palace22)! - Updated
SendTokenMessageData to not have the extraneous value folksTokenId

-
[#158](#158)
[`deef6ce`](deef6ce)
Thanks [@palace22](https://github.com/palace22)! - Added retry extra
args completion with gas limit estimation

Co-authored-by: github-actions[bot] <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.

Override return gas limit on reverse message
2 participants