-
Notifications
You must be signed in to change notification settings - Fork 137
Burn assets by group key #1812
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
base: main
Are you sure you want to change the base?
Burn assets by group key #1812
Conversation
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.
Great work!
return nil, err | ||
} | ||
|
||
for _, vPkt := range pkt.VPackets { |
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.
why was this moved here?
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.
As you can see, the old way was to run PrepareOutputAssets
inside createFundedPacketWithInputs
. But with the logic I introduced, we perform some operations on the vPkt
before calling PrepareOutputAssets
so we need to extract it to have control of when PrepareOutputAssets
is called (or call it twice, which is inefficient and could have side undesirable effects).
13a399f
to
9cd15a7
Compare
9cd15a7
to
7c6e2ba
Compare
Pull Request Test Coverage Report for Build 18141060997Details
💛 - Coveralls |
a9fc25c
to
544f5b4
Compare
544f5b4
to
c0a0cae
Compare
c0a0cae
to
c3082d6
Compare
Enable burning of assets by specifying a group key.
AssetSpecifier
totapcommon.proto
and use it in theBurnAssetRequest
tapcli
to acceptgroup_key
param intapd assets burn
commandstapfreighter
to support passing a group key in the asset specifierBurnAsset
RPC request to accept anAssetSpecifier
. Breaking change!Example: