From c6b1b8c9e14ee53d734b3f4cd88535c6ed333d71 Mon Sep 17 00:00:00 2001 From: tbro Date: Fri, 13 Dec 2024 18:14:54 -0300 Subject: [PATCH] rename `DAStakeTable` to `DaMembers` --- types/src/v0/impls/stake_table.rs | 4 ++-- types/src/v0/v0_3/stake_table.rs | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/types/src/v0/impls/stake_table.rs b/types/src/v0/impls/stake_table.rs index 09d652def..9076e9cbb 100644 --- a/types/src/v0/impls/stake_table.rs +++ b/types/src/v0/impls/stake_table.rs @@ -1,5 +1,5 @@ use super::{ - v0_3::{DAStakeTable, StakeTable, StakeTables}, + v0_3::{DaMembers, StakeTable, StakeTables}, L1Client, NodeState, PubKey, SeqTypes, }; @@ -33,7 +33,7 @@ use url::Url; type Epoch = ::Epoch; impl StakeTables { - pub fn new(stake_table: StakeTable, da_members: DAStakeTable) -> Self { + pub fn new(stake_table: StakeTable, da_members: DaMembers) -> Self { Self { stake_table, da_members, diff --git a/types/src/v0/v0_3/stake_table.rs b/types/src/v0/v0_3/stake_table.rs index c427d3e4c..8cfdd7b7d 100644 --- a/types/src/v0/v0_3/stake_table.rs +++ b/types/src/v0/v0_3/stake_table.rs @@ -11,15 +11,16 @@ pub struct PermissionedStakeTableEntry(NodeInfoJf); #[derive(Debug, Clone, Serialize, Deserialize, From)] pub struct CombinedStakeTable(Vec>); -// NewTypes for two types of stake tables to avoid confusion #[derive(Clone, Debug, From, Into)] -pub struct DAStakeTable(pub Vec>); +/// NewType to disambiguate DA Membership +pub struct DaMembers(pub Vec>); #[derive(Clone, Debug, From, Into)] +/// NewType to disambiguate StakeTable pub struct StakeTable(pub Vec>); #[derive(Clone, Debug)] pub struct StakeTables { pub stake_table: StakeTable, - pub da_members: DAStakeTable, + pub da_members: DaMembers, }