You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use primitives::Balance;pubstructRewardInfo{/// Total amount of rewards for stakers in an era #[codec(compact)]pubstakers:Balance,/// Total amount of rewards for dapps in an era #[codec(compact)]pubdapps:Balance,}
The text was updated successfully, but these errors were encountered:
Introduce primitives types in a dedicated primitives crate, something like Polkadot core primitives, including
Balance
,BlockNumber
,AccountId
, etc.They would help to get rid of repeating primitive types definition across local/Shibuya/Shiden/Astar runtimes and collator:
Astar/runtime/astar/src/lib.rs
Lines 1064 to 1067 in 5187393
Astar/runtime/shiden/src/lib.rs
Lines 1053 to 1056 in 5187393
They can also be imported into astar pallets, making defining complex types easier by removing verbose trait bounds. For instance,
Astar/pallets/dapps-staking/src/lib.rs
Lines 173 to 180 in 5187393
The text was updated successfully, but these errors were encountered: