-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change how relationships are represented #266
Comments
I guess we could open an opportunity for users to decide whether they would like to add the same relationship when they open another dapp. This could be done on the dapp level. For a more dapp-scope environment, |
This can be done even better by tracking the subspace of the other relationships. The user could decide to add all of its relationships coming from Facebook but not from Twitter.
I don't see in which cases this might be useful to us, could you please elaborate on how smart contracts might be interesting for this feature? |
I originally suggested to add a subspace field here so I'm totally fine in doing so. I will adapt this after I've finished the user blocking feature. |
AFAIK, |
Context
With #168 we've introduced user relationships as a simple
sdk.AccAddress -> []sdk.AccAddress
map. This was done in order to allow applications to handle their relationship however they wanted on their level.With the current system the following is possible:
The blockchain should represent the data storage. Since Desmos is a protocol, applications should not see the data they use changed if they don't want to.
Solution
To fix this error, I think that we should revisit the relationship definition in order to include the subspace of the application for which the relationship is being created as well:
Then, the storage can be a simple
sdk.AccAddress -> []Relationship
.The text was updated successfully, but these errors were encountered: