File tree Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Expand file tree Collapse file tree 2 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,6 @@ strict_encoding_derive = "1"
47
47
lightning_encoding = " 0.4.0-beta.1"
48
48
client_side_validation = " 0.4"
49
49
descriptor-wallet = " 0.4"
50
- # We use these to simplify enum strict encoding, but once the required
51
- # functionality will become part of either amplify_derive or lnpbp_derive
52
- # crates they should be removed
53
- num-traits = " ~0.2.11"
54
- num-derive = " ~0.3.0"
55
50
# Dependencies on core rust-bitcoin ecosystem projects
56
51
# ----------------------------------------------------
57
52
bitcoin = { version = " ~0.26.0" , features = [" rand" ] }
Original file line number Diff line number Diff line change @@ -412,8 +412,6 @@ lazy_static! {
412
412
Hash ,
413
413
StrictEncode ,
414
414
StrictDecode ,
415
- FromPrimitive ,
416
- ToPrimitive ,
417
415
) ]
418
416
#[ display( Debug ) ]
419
417
#[ cfg_attr(
@@ -443,8 +441,6 @@ pub enum ChainFormat {
443
441
Hash ,
444
442
StrictEncode ,
445
443
StrictDecode ,
446
- FromPrimitive ,
447
- ToPrimitive ,
448
444
) ]
449
445
#[ display( Debug ) ]
450
446
#[ cfg_attr(
@@ -457,11 +453,11 @@ pub enum AssetLayer {
457
453
/// Native chain asset(s), which can operate both on the layer of
458
454
/// blockchain and payment/state channels (Bitcoin, sidechain-specific
459
455
/// asset(s), like liquidBTC or confidential assets in Liquid)
460
- Layer1and2 = 0 ,
456
+ Layer1and2 = 1 ,
461
457
462
458
/// Derived assets, which are created and defined above blockchain (like
463
459
/// RGB), but also can be used on top of payment/state channels
464
- Layer2and3 = 1 ,
460
+ Layer2and3 = 2 ,
465
461
}
466
462
467
463
#[ derive(
@@ -476,8 +472,6 @@ pub enum AssetLayer {
476
472
Hash ,
477
473
StrictEncode ,
478
474
StrictDecode ,
479
- FromPrimitive ,
480
- ToPrimitive ,
481
475
) ]
482
476
#[ cfg_attr(
483
477
feature = "serde" ,
@@ -1176,8 +1170,8 @@ mod test {
1176
1170
) ;
1177
1171
1178
1172
test_enum_u8_exhaustive ! ( AssetLayer ;
1179
- AssetLayer :: Layer1and2 => 0 ,
1180
- AssetLayer :: Layer2and3 => 1
1173
+ AssetLayer :: Layer1and2 => 1 ,
1174
+ AssetLayer :: Layer2and3 => 2
1181
1175
) ;
1182
1176
1183
1177
test_enum_u8_exhaustive ! ( AssetSystem ;
You can’t perform that action at this time.
0 commit comments