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

Next into curr #147

Merged
merged 115 commits into from
Sep 8, 2023
Merged

Next into curr #147

merged 115 commits into from
Sep 8, 2023

Conversation

sisuresh
Copy link
Contributor

@sisuresh sisuresh commented Sep 7, 2023

Marked as draft because the history includes every commit in next for some reason... Edit: I don't think we have another choice with the merge because there's no common history between the two branches.

I had to merge with git merge --allow-unrelated-histories upstream/next to get this to work.

stellar-terraform and others added 30 commits June 29, 2022 20:04
Defines the 'complete' status check.
* add ENVELOPE_TYPE_CONTRACT_ID_FROM_ASSET

* add new HostFunction type and HashIDPreimage for using the source account in the host
sisuresh and others added 21 commits June 22, 2023 23:00
* XDR for RestoreFootprintOp

* Use extension point instead
- Remove the flat fee
- Rename the fields that contribute to the write fee for clarity
- Use dedicated struct for `InvokeContract` host fn
- Replace `ScVec` with `SCVal` or `SCVal<>` depending on the context
…lar#127)

Also renamed a couple tx-size related fields for clarity.
* Add errors for exceeding the refundable fee.

These have to be operation errors, as core is hard-wired to only return `txFAILED` on transaction failure and modifying this behavior is risky/slow.

* Remove `contractEventsSizeBytes` from `SorobanResources`.

This field is almost redundant and only helps to avoid apply-time error in the rare cases when the user sets the events resource, but forgets to set high enough refundable fee. It does, on the other hand, introduce another apply-time failure condition if the contracts emits a bit more events than expected (even if the refundable fee is high enough to cover that).

The total size of the events emitted is still governed by the network setting.
* expand SCError comments, no functional change

* Update Stellar-contract.x

Co-authored-by: Siddharth Suresh <[email protected]>

---------

Co-authored-by: Siddharth Suresh <[email protected]>
@sisuresh sisuresh marked this pull request as ready for review September 8, 2023 00:03
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.