@@ -39,6 +39,45 @@ pub enum OrdinalInscriptionCurseType {
3939 Generic ,
4040}
4141
42+ #[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
43+ pub struct OrdinalInscriptionCharms {
44+ pub coin : bool ,
45+ pub cursed : bool ,
46+ pub epic : bool ,
47+ pub legendary : bool ,
48+ pub lost : bool ,
49+ pub nineball : bool ,
50+ pub rare : bool ,
51+ pub reinscription : bool ,
52+ pub unbound : bool ,
53+ pub uncommon : bool ,
54+ pub vindicated : bool ,
55+ pub mythic : bool ,
56+ pub burned : bool ,
57+ pub palindrome : bool ,
58+ }
59+
60+ impl OrdinalInscriptionCharms {
61+ pub fn none ( ) -> Self {
62+ OrdinalInscriptionCharms {
63+ coin : false ,
64+ cursed : false ,
65+ epic : false ,
66+ legendary : false ,
67+ lost : false ,
68+ nineball : false ,
69+ rare : false ,
70+ reinscription : false ,
71+ unbound : false ,
72+ uncommon : false ,
73+ vindicated : false ,
74+ mythic : false ,
75+ burned : false ,
76+ palindrome : false ,
77+ }
78+ }
79+ }
80+
4281#[ derive( Debug , Clone , PartialEq , Deserialize , Serialize ) ]
4382pub struct OrdinalInscriptionRevealData {
4483 pub content_bytes : String ,
@@ -54,14 +93,15 @@ pub struct OrdinalInscriptionRevealData {
5493 pub delegate : Option < String > ,
5594 pub metaprotocol : Option < String > ,
5695 pub metadata : Option < Value > ,
57- pub parent : Option < String > ,
96+ pub parents : Vec < String > ,
5897 pub ordinal_number : u64 ,
5998 pub ordinal_block_height : u64 ,
6099 pub ordinal_offset : u64 ,
61100 pub tx_index : usize ,
62101 pub transfers_pre_inscription : u32 ,
63102 pub satpoint_post_inscription : String ,
64103 pub curse_type : Option < OrdinalInscriptionCurseType > ,
104+ pub charms : OrdinalInscriptionCharms ,
65105}
66106
67107impl OrdinalInscriptionNumber {
0 commit comments