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

js-soroban-client: add support for fees #76

Closed
tsachiherman opened this issue May 3, 2023 · 6 comments · Fixed by #77
Closed

js-soroban-client: add support for fees #76

tsachiherman opened this issue May 3, 2023 · 6 comments · Fixed by #77

Comments

@tsachiherman
Copy link
Contributor

What ?

txnbuilder and prepareTransaction need changes to support the fee model, because they need to set which resources the txn will use

Epic

stellar/stellar-cli#519

@sreuland
Copy link
Contributor

sreuland commented May 5, 2023

@tsachiherman , is there an example in go or any other sdk's of how a client is expected to set resources/fees when building an invokehostfn txn? Or a link to docs/cap with some details on the expectations, thanks!

@sreuland
Copy link
Contributor

sreuland commented May 8, 2023

@tsachiherman , is there an example in go or any other sdk's of how a client is expected to set resources/fees when building an invokehostfn txn? Or a link to docs/cap with some details on the expectations, thanks!

thanks for discussion, am able to proceed on related changes in sdk. most of the changes for handling the new simulation response with SorbanTransactionData will be in the assembleTransaction method.

@sreuland
Copy link
Contributor

sreuland commented May 9, 2023

this depends on latest xdr updates from js-stellar-base, will use the new v9.0.0-soroban.1 - stellar/js-stellar-base#602 and the rpc simulation endpoint enhancement for fees - https://github.com/stellar/soroban-tools/pull/636/files

sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 9, 2023
sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 11, 2023
sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 11, 2023
@sreuland
Copy link
Contributor

PR - #77

sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 11, 2023
@sreuland
Copy link
Contributor

moving this to blocked as dev and unit test complete, but tests are failing due a strange issue with the js xdr generation, investigating further on pr - #77 (comment)

sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 11, 2023
sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 14, 2023
sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 14, 2023
@sreuland
Copy link
Contributor

found a workaround and moved pr back to review - #77

sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 15, 2023
sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 15, 2023
sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 15, 2023
sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 15, 2023
sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 15, 2023
sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 16, 2023
sreuland added a commit to sreuland/js-soroban-client that referenced this issue May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants