mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-27 10:48:11 -07:00
global: renames + refactor + p2a support
This commit is contained in:
@@ -15,8 +15,8 @@ pub enum Index {
|
||||
P2WPKHindex,
|
||||
P2WSHindex,
|
||||
Txindex,
|
||||
Txinindex,
|
||||
Txoutindex,
|
||||
Inputindex,
|
||||
Outputindex,
|
||||
Weekindex,
|
||||
Monthindex,
|
||||
Quarterindex,
|
||||
@@ -25,7 +25,7 @@ pub enum Index {
|
||||
Difficultyepoch,
|
||||
Halvingepoch,
|
||||
Emptyindex,
|
||||
Multisigindex,
|
||||
P2MSindex,
|
||||
Opreturnindex,
|
||||
Pushonlyindex,
|
||||
Unknownindex,
|
||||
@@ -52,10 +52,10 @@ impl Index {
|
||||
Self::P2WPKHindex,
|
||||
Self::P2WSHindex,
|
||||
Self::Txindex,
|
||||
Self::Txinindex,
|
||||
Self::Txoutindex,
|
||||
Self::Inputindex,
|
||||
Self::Outputindex,
|
||||
Self::Emptyindex,
|
||||
Self::Multisigindex,
|
||||
Self::P2MSindex,
|
||||
Self::Opreturnindex,
|
||||
Self::Pushonlyindex,
|
||||
Self::Unknownindex,
|
||||
@@ -75,8 +75,8 @@ impl Index {
|
||||
Self::Decadeindex => &["decade", "decadeindex"],
|
||||
Self::Halvingepoch => &["h", "halving", "halvingepoch"],
|
||||
Self::Txindex => &["tx", "txindex"],
|
||||
Self::Txinindex => &["txin", "txinindex"],
|
||||
Self::Txoutindex => &["txout", "txoutindex"],
|
||||
Self::Inputindex => &["txin", "inputindex"],
|
||||
Self::Outputindex => &["txout", "outputindex"],
|
||||
Self::Addressindex => &["a", "address", "addressindex"],
|
||||
Self::P2PK33index => &["p2pk33", "p2pk33index"],
|
||||
Self::P2PK65index => &["p2pk65", "p2pk65index"],
|
||||
@@ -85,11 +85,11 @@ impl Index {
|
||||
Self::P2TRindex => &["p2tr", "p2trindex"],
|
||||
Self::P2WPKHindex => &["p2wpkh", "p2wpkhindex"],
|
||||
Self::P2WSHindex => &["p2wsh", "p2wshindex"],
|
||||
Self::Emptyindex => &["empty", "emptyindex"],
|
||||
Self::Multisigindex => &["multisig", "multisigindex"],
|
||||
Self::Emptyindex => &["empty", "emptyoutputindex"],
|
||||
Self::P2MSindex => &["multisig", "p2msindex"],
|
||||
Self::Opreturnindex => &["opreturn", "opreturnindex"],
|
||||
Self::Pushonlyindex => &["pushonly", "pushonlyindex"],
|
||||
Self::Unknownindex => &["unknown", "unknownindex"],
|
||||
Self::Unknownindex => &["unknown", "unknownoutputindex"],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,8 +120,8 @@ impl TryFrom<&str> for Index {
|
||||
v if (Self::Dateindex).possible_values().contains(&v) => Self::Dateindex,
|
||||
v if (Self::Height).possible_values().contains(&v) => Self::Height,
|
||||
v if (Self::Txindex).possible_values().contains(&v) => Self::Txindex,
|
||||
v if (Self::Txinindex).possible_values().contains(&v) => Self::Txinindex,
|
||||
v if (Self::Txoutindex).possible_values().contains(&v) => Self::Txoutindex,
|
||||
v if (Self::Inputindex).possible_values().contains(&v) => Self::Inputindex,
|
||||
v if (Self::Outputindex).possible_values().contains(&v) => Self::Outputindex,
|
||||
v if (Self::Addressindex).possible_values().contains(&v) => Self::Addressindex,
|
||||
v if (Self::P2PK33index).possible_values().contains(&v) => Self::P2PK33index,
|
||||
v if (Self::P2PK65index).possible_values().contains(&v) => Self::P2PK65index,
|
||||
@@ -139,7 +139,7 @@ impl TryFrom<&str> for Index {
|
||||
v if (Self::Quarterindex).possible_values().contains(&v) => Self::Quarterindex,
|
||||
v if (Self::Quarterindex).possible_values().contains(&v) => Self::Quarterindex,
|
||||
v if (Self::Emptyindex).possible_values().contains(&v) => Self::Emptyindex,
|
||||
v if (Self::Multisigindex).possible_values().contains(&v) => Self::Multisigindex,
|
||||
v if (Self::P2MSindex).possible_values().contains(&v) => Self::P2MSindex,
|
||||
v if (Self::Opreturnindex).possible_values().contains(&v) => Self::Opreturnindex,
|
||||
v if (Self::Pushonlyindex).possible_values().contains(&v) => Self::Pushonlyindex,
|
||||
v if (Self::Unknownindex).possible_values().contains(&v) => Self::Unknownindex,
|
||||
|
||||
Reference in New Issue
Block a user