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

Export stats of deployed smart contracts #9387

Closed
aborg-dev opened this issue Aug 3, 2023 · 0 comments
Closed

Export stats of deployed smart contracts #9387

aborg-dev opened this issue Aug 3, 2023 · 0 comments
Labels
A-contract-runtime Area: contract compilation and execution, virtual machines, etc

Comments

@aborg-dev
Copy link
Contributor

For the purpose of stateless validation and ZK proofs it would be valuable to track and be able to analyze various characteristics of deployed smart contracts such as:

  • Size of the contract
  • WASM features used in a contract (e.g. does it use floating point operations?)
  • Number functions
  • Size and number of data segments

We already enforce a number of limits for smart contracts: https://nomicon.io/RuntimeSpec/Preparation#validation
So we can start by exporting these stats after contract preparation, for example by storing them in the RocksDB.

@aborg-dev aborg-dev added the A-contract-runtime Area: contract compilation and execution, virtual machines, etc label Aug 3, 2023
@aborg-dev aborg-dev closed this as not planned Won't fix, can't repro, duplicate, stale Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-contract-runtime Area: contract compilation and execution, virtual machines, etc
Projects
None yet
Development

No branches or pull requests

1 participant