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

poc: tx-template #798

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

poc: tx-template #798

wants to merge 6 commits into from

Conversation

r4mmer
Copy link
Member

@r4mmer r4mmer commented Nov 11, 2024

Acceptance Criteria

  • POC for transaction template

Simple usage

const interpreter = new WalletTxTemplateInterpreter(wallet);
const template = new TransactionTemplateBuilder()
                                      .addRawInput(inputTxId, inputIndex)
                                      .addRawOutput(100, 'a-script')
                                      .export();

const tx = await interpreter.build(template);

@r4mmer r4mmer self-assigned this Nov 11, 2024
Copy link

codecov bot commented Nov 11, 2024

Codecov Report

Attention: Patch coverage is 0.26525% with 376 lines in your changes missing coverage. Please review.

Project coverage is 76.13%. Comparing base (c9905b9) to head (b0e86dd).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
src/template/transaction/executor.ts 0.00% 163 Missing ⚠️
src/template/transaction/builder.ts 0.00% 67 Missing ⚠️
src/template/transaction/interpreter.ts 0.00% 62 Missing ⚠️
src/template/transaction/context.ts 0.00% 47 Missing ⚠️
src/template/transaction/instructions.ts 0.00% 21 Missing ⚠️
src/utils/transaction.ts 0.00% 14 Missing ⚠️
src/template/transaction/setvarcommands.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #798      +/-   ##
==========================================
- Coverage   80.53%   76.13%   -4.40%     
==========================================
  Files          81       87       +6     
  Lines        6462     6847     +385     
  Branches     1393     1516     +123     
==========================================
+ Hits         5204     5213       +9     
- Misses       1245     1621     +376     
  Partials       13       13              

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant