-
Notifications
You must be signed in to change notification settings - Fork 122
Support sponsored transactions #176
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #176 +/- ##
==========================================
- Coverage 58.37% 58.36% -0.02%
==========================================
Files 42 43 +1
Lines 2722 2757 +35
Branches 429 435 +6
==========================================
+ Hits 1589 1609 +20
- Misses 1131 1146 +15
Partials 2 2
Continue to review full report at Codecov.
|
| INSERT INTO txs( | ||
| ${TX_COLUMNS} | ||
| ) values($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27) | ||
| ) values($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there no way to do this without having to manually type out a series of numbers? Seems like a hassle 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'd think the sql driver would support a spread operator or something (maybe it does and I haven't found it idk).
At this point, probably makes sense to make a helper function that generates this string based off the array of input values.
c0385d8 to
2f69e17
Compare
|
🎉 This PR is included in version 0.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Depends on stacks-archive/stacks-transactions-js#99
This PR updates the sidecar to support processing and returning sponsored tx data.
Testing
The
/sidecar/v1/debug/broadcastendpoints now have a checkbox to create and broadcast a sponsored transaction.For example:
http://localhost:3999/sidecar/v1/debug/broadcast/contract-deploy[x] Create sponsored transactionand click Submit