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

Feature offline evaluator #349

Merged
merged 24 commits into from
Nov 15, 2024
Merged

Feature offline evaluator #349

merged 24 commits into from
Nov 15, 2024

Conversation

lisicky
Copy link
Collaborator

@lisicky lisicky commented Oct 28, 2024

Summary

This PR implements offline script evaluation functionality and updates dependencies. Key changes include:

  • Added new OfflineEvaluator class for evaluating Plutus scripts without network connection
  • Updated @sidan-lab/sidan-csl-rs dependencies to version 0.9.4
  • Added new redeemer tag types: "VOTE" and "PROPOSE"
  • Added utility functions for transaction evaluation and input extraction
  • Added tests for offline evaluation functionality

Affect components

  • @meshsdk/common
  • @meshsdk/contract
  • @meshsdk/core-csl
  • @meshsdk/core-cst
  • @meshsdk/provider
  • @meshsdk/react
  • @meshsdk/transaction
  • @meshsdk/wallet
  • Mesh playground
  • Mesh CLI

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Breaking change
  • Bug fix (non-breaking change which fixes an issue)
  • Code refactoring
  • Documentation update

Related Issues

No related issues specified in the patch.

Checklist

  • My code is appropriately commented and includes relevant documentation
  • I have added tests to cover my changes
  • I have updated the documentation
  • All new and existing tests pass
  • The build passes

Additional Information

The PR includes several key components:

  1. New Files:

    • packages/mesh-provider/src/offline/offline-evaluator.ts
    • packages/mesh-provider/test/offline/evaluator.test.ts
    • packages/mesh-provider/src/offline/index.ts
  2. Major Changes:

    • Enhanced RedeemerTagType with new types in action.ts
    • Updated CSL dependencies in multiple package.json files
    • Added new transaction utility functions in transaction.ts
    • Added offline evaluation test cases

The changes are focused on improving offline functionality and script evaluation capabilities while maintaining backward compatibility.

Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mesh-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 10:42am
mesh-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 10:42am

@lisicky lisicky requested review from HinsonSIDAN and twwu123 and removed request for HinsonSIDAN October 28, 2024 07:06
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.

3 participants