pub type Block {
Micro(
hash: String,
size: Int,
batch: Int,
epoch: Int,
network: String,
version: Int,
number: Int,
timestamp: Int,
parent_hash: String,
seed: String,
extra_data: String,
state_hash: String,
body_hash: String,
history_hash: String,
transactions: option.Option(List(transaction.Transaction)),
producer: Producer,
equivocation_proofs: option.Option(List(dynamic.Dynamic)),
justification: option.Option(Justification),
)
Macro(
hash: String,
size: Int,
batch: Int,
epoch: Int,
network: String,
version: Int,
number: Int,
timestamp: Int,
parent_hash: String,
seed: String,
extra_data: String,
state_hash: String,
body_hash: String,
history_hash: String,
transactions: option.Option(List(transaction.Transaction)),
is_election_block: Bool,
justification: Justification,
next_batch_initial_punished_set: List(Int),
parent_election_hash: String,
interlink: option.Option(List(String)),
slots: option.Option(List(Slots)),
)
}
Constructors
-
Micro(
hash: String,
size: Int,
batch: Int,
epoch: Int,
network: String,
version: Int,
number: Int,
timestamp: Int,
parent_hash: String,
seed: String,
extra_data: String,
state_hash: String,
body_hash: String,
history_hash: String,
transactions: option.Option(List(transaction.Transaction)),
producer: Producer,
equivocation_proofs: option.Option(List(dynamic.Dynamic)),
justification: option.Option(Justification),
)
-
Macro(
hash: String,
size: Int,
batch: Int,
epoch: Int,
network: String,
version: Int,
number: Int,
timestamp: Int,
parent_hash: String,
seed: String,
extra_data: String,
state_hash: String,
body_hash: String,
history_hash: String,
transactions: option.Option(List(transaction.Transaction)),
is_election_block: Bool,
justification: Justification,
next_batch_initial_punished_set: List(Int),
parent_election_hash: String,
interlink: option.Option(List(String)),
slots: option.Option(List(Slots)),
)