Eth 228 streamregistry contract upgrade #150
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Streamregistry: bulk set permissions + cleanup
1)
It should be possible to set multiple permissions for multiple streams in one transaction call. The caller needs to have grant permission on all of the streams.
The method should be added in the contract (it should be able to call the exisiting one-stream method in a loop) and in the client. (contracts need to be upgraded)
This would help applications to set permissions to many streams in one transaction, solving a possible situation where a user needs to sign many transactions with metamask, which not userfriendly.
new seperate methods to bulk create streams and bulk set permissions for the migrations. The old methods used inputs where there are cases wehere the stream metadata needs be set as parameter for each permission update on a stream-user combination, resulting in possible hundreds of time of overwriting the metadata with itself.
clean up permissions when setting them, and then it results in the permission for the user being all false/expired