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

feat(client): initial POC of smart_equation #2802

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maqi
Copy link
Member

@maqi maqi commented Mar 3, 2025

Description

Initial POC of SmartEquation, which using Pointer pointing to a chunk.
This can be used to replace part of the quote verification flow: get a cost based on the QuotingMetrices
To be the sole place holding the equations of how to calculate the cose, which doesn't need to use smart_contract.

The PR contains an E2E test to demo that:

  1. publish an equation of a + b to the network
  2. fetch the equation and use it to calculate
  3. update the equation to (a+5)*b
  4. fetch the equation from the network again and use it to calculate (result shall be new)

This answers one concern in the original native notken re-introduction RFC regarding having a smart_contract styple quoting verification.
This also shows a potential that with further design and expansion, we could have a non-block-chain-based smart_contract

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.

1 participant