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
Special allocation is a generic solution to represent shares of the campaign that are allocated for a specific purpose interpreted off-chain.
This solution allows to have accounts with a token balance in a custom initial genesis for the chain and having them tracked by the allocated shares of the campaign.
The client must manually verify the initial genesis of the chain is valid depending on the special allocation of the campaign.
Each campaign can have special allocations for the mainnet.
Two different special allocations identified:
GenesisDistribution: coins distributed in genesis accounts in a custom initial genesis
ClaimableAirdrop: coins that can be claimed as airdrop from a claim module
SpecialAllocations
Proposed structure:
type SpecialAllocations struct {
GenesisDistribution Shares
ClaimableAirdrop Shares
}
The type should implement TotalShares to get the total shares for special allocations
// SpecialAllocation implements a totalShares methods to return total shares of special allocation
func (as SpecialAllocations) TotalShares() Shares {
return as.ClaimableAirdrop + as.GenesisDistribution
}
Store
We must determine if SpecialAllocations should have its own entry in the store:
Special allocation is a generic solution to represent shares of the campaign that are allocated for a specific purpose interpreted off-chain.
This solution allows to have accounts with a token balance in a custom initial genesis for the chain and having them tracked by the allocated shares of the campaign.
The client must manually verify the initial genesis of the chain is valid depending on the special allocation of the campaign.
Each campaign can have special allocations for the mainnet.
Two different special allocations identified:
GenesisDistribution
: coins distributed in genesis accounts in a custom initial genesisClaimableAirdrop
: coins that can be claimed as airdrop from aclaim
moduleSpecialAllocations
Proposed structure:
The type should implement
TotalShares
to get the total shares for special allocationsStore
We must determine if
SpecialAllocations
should have its own entry in the store:Or if the type can be embedded in campaigns
IMO the type is not large and could be embedded in the campaign
The text was updated successfully, but these errors were encountered: