Opcode: BURN #9
Labels
effort: epic
Multi-stage task that may require multiple PRs.
priority: 0
Do this first before everything else. This is critical and nothing works without this.
type: feature
New feature or request.
work: complex
Probe-sense-respond. The relationship between cause and effect can only be perceived in retrospect.
Milestone
Spec
This opcode burns
amount
tokens with the sub-identifiersub_id
from theholder
's account.Input
holder
of typeAddress
sub_id
of typeB256
amount
of typeU256
Output
Nothing.
Receipt
Burn
token_id
of typeU256
sub_id
of typeB256
U256
holder
balance of type U256 (maybe?)Errors
See https://github.com/sablier-labs/SRFs/blob/main/SRFs/srf-2.md#burn.
holder
has less thanamount
Notes
sub_id
passed to BURN will be used to generate the token ID. More concretely, the token ID will beKECCAK256(concat(address,sub_id))
.References
The text was updated successfully, but these errors were encountered: