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

Multiple contract calls in a single transaction #216

Closed
luizstacio opened this issue Apr 13, 2022 · 1 comment · Fixed by #288
Closed

Multiple contract calls in a single transaction #216

luizstacio opened this issue Apr 13, 2022 · 1 comment · Fixed by #288
Assignees
Labels
feat Issue is a feature

Comments

@luizstacio
Copy link
Member

if it's possible to write a script that can call multiple contract/contracts methods/calls on a single TX. Would be amazing if the SDK provide a simple API to build these actions in a bundle TX.

Use case

On swayswap to create liquidity between two pairs, you need to follow steps 1, 2, and 3 in sequence. This executes 3 transactions but would be nicer to build all 3 method calls, combine and send in a single TX.

  1. Deposit coin A
  2. Deposit coin B
  3. Create liquidity

Screen Shot 2022-04-13 at 6 03 06 PM

@luizstacio luizstacio changed the title We should be able to delivery, multiple contract calls in a single transaction Multiple contract calls in a single transaction Apr 13, 2022
@digorithm digorithm added the feat Issue is a feature label Apr 13, 2022
@AlicanC AlicanC self-assigned this May 13, 2022
@AlicanC AlicanC mentioned this issue May 15, 2022
@AlicanC AlicanC linked a pull request May 22, 2022 that will close this issue
@AlicanC
Copy link
Contributor

AlicanC commented May 27, 2022

Update:

I finally got Multicall script to work today, but a lot needs to happen before we can merge it:

Some good-to-haves would be:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Issue is a feature
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants