Page MenuHomePhabricator

[Chronik] Add basic structs and consts for SLP and ALP txs
ClosedPublic

Authored by tobias_ruck on Dec 19 2023, 23:47.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC03c4e155cd54: [Chronik] Add basic structs and consts for SLP and ALP txs
Summary

We use a shared representation for both SLP and ALP, which simplifies the implementation of the verification etc.

This adds support to represent 5 token types:

Depends on D15007.

Test Plan

cargo test -p bitcoinsuite-slp

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien added inline comments.
chronik/bitcoinsuite-slp/src/token_type.rs
46 ↗(On Diff #43677)

Add the link to the eMPP protocol ?

182 ↗(On Diff #43677)

nice, so we can differentiate SLP UNKNOWN and ALP UNKNOWN

This revision is now accepted and ready to land.Dec 20 2023, 13:38