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

Integrate Stateful Precompiled Contracts v1 #2403

Closed
13 tasks done
lumtis opened this issue Jul 1, 2024 · 0 comments
Closed
13 tasks done

Integrate Stateful Precompiled Contracts v1 #2403

lumtis opened this issue Jul 1, 2024 · 0 comments
Assignees
Labels
epic Group issues under a high-level objective feature:idea An early idea for a feature. Used as reference to follow new feature integrations feature:protocol Feature extending the capability of the protocol zetacore Issues related to ZetaCore

Comments

@lumtis
Copy link
Member

lumtis commented Jul 1, 2024

Integrate first version of Stateful Precompiled Contracts into the protocol.

A PoC has been developed, the object of the epic is to track issues to complete the PoC into production.

Example of expected interactions: staking ZETA from smart contracts, vote on governance, etc..

PoC work:

High-level view of work to move to production:

Additional Functionality

  • Gas calculating precisely as Evmos does. current PoC, Cronos does pre-define a constant gas per call
  • Event Emit: Establish standards and interfaces for special events or cosmos state events emitted by stateful precompiled contracts and implement emit functionality
  • Beyond the simple view, static, pure function, or contract calls invoked in the first depth, implement, test, and verify deeper and complex call depth scenarios such as delegate calls or system contract calls

Enhance Completeness

  • Refactor to a better directory and package structure considering the addition of various precompiled contracts, and interfaces
  • Provide scripts and makefile commands or tools for easy wiring
  • Enhance the overall code quality, maintainability, and integration with existing ZetaChain modules to ensure smooth and reliable operations in a production environment.

Develop Integration, E2E Tests Without Evmos License Dependencies

  • Develop integration test codes for precompiled contracts while avoiding any dependencies on Evmos commercial licensed code
  • not only Integration tests but also E2E tests to ensure all functionalities are thoroughly tested to maintain reliability

Rebase Upstream

  • Reflect changes and rebase work in line with the rapidly updating upstream develop branch of ZetaChain.

Integration and Implement Precompiled Contracts with ZetaChain Modules, Features

  • Identify and prioritize required use cases that would benefit from precompiled contracts.
  • Develop and integrate precompiled contracts to address these specific needs with existing ZetaChain such as crosschain, cctx and new features like ibc-crosschain and multichain staking
  • Perform rigorous testing to validate the integration and functionality across various modules, system contracts, and major 3rd party contracts.

Tasks

  1. fbac
  2. fbac
  3. fbac
  4. fbac
  5. fbac
  6. Type: CI
    fbac
  7. Type: CI
    gartnera
  8. Type: CI Type: Tests
    fbac
  9. docs
    fbac
  10. feature:idea feature:smart-contracts stateful-precompile zeta-utility
    skosito
  11. stateful-precompile
    skosito
  12. skosito
  13. skosito
@lumtis lumtis added zetacore Issues related to ZetaCore epic Group issues under a high-level objective labels Jul 1, 2024
@lumtis lumtis added this to the August milestone Jul 1, 2024
@fbac fbac self-assigned this Jul 5, 2024
@fbac fbac added epic Group issues under a high-level objective and removed epic Group issues under a high-level objective labels Jul 18, 2024
@fbac fbac removed this from the August milestone Jul 18, 2024
@fbac fbac added epic Group issues under a high-level objective and removed epic Group issues under a high-level objective labels Jul 18, 2024
@lumtis lumtis added this to the August milestone Jul 25, 2024
@lumtis lumtis added feature:idea An early idea for a feature. Used as reference to follow new feature integrations feature:protocol Feature extending the capability of the protocol labels Aug 19, 2024
@lumtis lumtis closed this as completed Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Group issues under a high-level objective feature:idea An early idea for a feature. Used as reference to follow new feature integrations feature:protocol Feature extending the capability of the protocol zetacore Issues related to ZetaCore
Projects
None yet
Development

No branches or pull requests

3 participants