Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for placeholder-based artifacts #321

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

Open
mainnet-pat wants to merge 2 commits into CashScript:master
base: master
Choose a base branch
Loading
from mainnet-pat:placeholder_artifacts

Conversation

@mainnet-pat
Copy link
Contributor

@mainnet-pat mainnet-pat commented Jun 26, 2025

Placeholder-based artifacts are those which might be produced elsewhere or contain raw bitcoin script. Placeholders are used to insert the properly encoded variables at certain places in the script to produce a valid contract.

This pattern first emerged in our work for bch-xmr atomic swaps, now in another project where I had to support the EC-compatible 2 of 3 multisig contract.

Also add a sample 2 of 3 multisig contract and tests to highlight the feature and demonstrate the usage patterns.

kiok46 reacted with rocket emoji
Copy link

vercel bot commented Jun 26, 2025
edited
Loading

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

Name Status Preview Comments Updated (UTC)
cashscript ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 14, 2025 2:30pm

Copy link

codecov bot commented Jul 14, 2025

Codecov Report

Attention: Patch coverage is 98.05825% with 2 lines in your changes missing coverage. Please review.

Project coverage is 97.41%. Comparing base (47a9dbc) to head (7428e37).
Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
packages/cashscript/src/Argument.ts 96.07% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@ Coverage Diff @@
## master #321 +/- ##
==========================================
+ Coverage 97.35% 97.41% +0.06% 
==========================================
 Files 76 79 +3 
 Lines 17440 17743 +303 
 Branches 1274 1317 +43 
==========================================
+ Hits 16978 17285 +307 
+ Misses 455 447 -8 
- Partials 7 11 +4 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mr-zwets mr-zwets linked an issue Sep 11, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Consider adding support for placeholder-based artifacts

1 participant

AltStyle によって変換されたページ (->オリジナル) /