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
Branch
chronik-slp-structs
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 26002
Build 51578: Build Diffchronik-client-integration-tests · build-chronik
Build 51577: arc lint + arc unit

Event Timeline

Fabien added inline comments.
chronik/bitcoinsuite-slp/src/token_type.rs
46

Add the link to the eMPP protocol ?

182

nice, so we can differentiate SLP UNKNOWN and ALP UNKNOWN

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