contains all post objects
contains a array list of posts created, this can be used as a list of keys to traverse the postItems mapping.
Post Value (Length)
Sets post Live Round = CurrentBlock + 0x708
Sets post Live Round = CurrentBlock + 0x2a30
Sets post Live Round = CurrentBlock + 0xA8C0
Indicator if this stake has ever been created.
Used to indicate if the staker has closed their stake. A stake can only be closed once.
The amount of currency staked after fee has been sent to fee pool.
Earnings amount after closing stake.This is empty before the staker has closed their stake.
When the stake was opened.
When the stake was closed.
Indicator if this post has ever been created, required because of how solidity stores bytes.
All tips incoming from tippers is stored here, this tipping pool is payed out amongst stakers when they claim their earnings. When there are not stakers this pool is paid out to the creator.
When a staker places a stake on a post their fees go here, the creator of the post is the only person who can withdraw from this pool.
This keeps track of how much a creator has earned. It is updated every time the creator calls the claimPostEarnings() function.
An array list containing the wallets of all stakers on this current post.
mapping (address => Stake)
A mapping to places each created stake object into, each stake object is created when a staker places their stake. The object is mapped with their wallet address.
Total amount of currency staked, used in payout calculation.
Used to keep track when this post was created, needed for historical reasons.
This indicates when a post has started its Live Round, staking is allowed up until this block.
This keeps a tally of how many stakers their are, it is equivalent to the length of the stakers array.
Used to track how many stakes are not paid out. When this is = 0 then any tips that come into post are paid to the creator instead of the stakers, because there aren't any anymore.