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

Check smart contracts resource consumption (mainnet release) #42

Open
eloylp opened this issue Aug 24, 2023 · 0 comments
Open

Check smart contracts resource consumption (mainnet release) #42

eloylp opened this issue Aug 24, 2023 · 0 comments

Comments

@eloylp
Copy link
Member

eloylp commented Aug 24, 2023

Context

The release of Soroban smart contract platform to mainnet appears to be close. In terms of resource limits, Stellar network its going to be more conservative than in Futurenet, adding the possibility of the contracts to break.

Sources:

Its recommended in the above links to use the preflight service for calculating costs of contracts transactions. They also mention that some of the resources can also be obtained with sosrban --verbose invoke ... .

Problem

We are not very aware of how much resources our contracts use and we can be in risk our contracts would not work in mainnet.

Goals

  1. Measure and document the current cost of our contracts with the commented preflight service.
  2. Compare the values with the specified resource limits tables.
  3. Study/evaluate the automation of this. Like doing it in the CI and writting the results somewhere. This could need syncronization with E2E testing tools for Soroban contracts #34 . This could allow us to set limit in the CI if the contract exceeds certain thresholds.
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

No branches or pull requests

1 participant