[WIP] feature / lz gated follow, reference, collect modules - #3
Closed
imthatcarlos wants to merge 16 commits into
Closed
[WIP] feature / lz gated follow, reference, collect modules#3imthatcarlos wants to merge 16 commits into
imthatcarlos wants to merge 16 commits into
Conversation
…fee and testing the follow module
…bs/lz-collect-module into feature/lz-gated-follow-and-mirror
Contributor
Author
|
Closing in favor of the PR in the lens modules repo: lens-protocol/modules#26 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
cross-chain, token gated follow + reference + collect modules
#followWithSigLZGatedProxycontract on Optimism, which relays the payload to theLZGatedFollowModulecontract on Polygon via LayerZeroLZGatedFollowModule.solA Lens Follow Module that allows profile holders to gate their following with ERC20 or ERC721 balances held on other chains
gatedFollowPerProfilewhich points to the chain/token/balancefollowWithSigDatafor a given profileLZGatedProxycontract on the other chainLZGatedProxymakes the token check, and relays the message to theLZGatedFollowModuleon polygonLZGatedFollowModulecontract validates the input, submits sig toLensHub#followWithSigLZGatedReferenceModule.solA Lens Reference Module that allows publication creators to gate who can comment/mirror their post with ERC20 or ERC721 balances held on other chains.
LZGatedCollectModule.solA Lens Collect Module that allows publication creators to gate who can collect their post with ERC20 or ERC721 balances held on other chains.
LZGatedProxy.solThis contract acts as a proxy for
LZGatedFollowModule,LZGatedReferenceModule, andLZGatedCollectModulein order to read token balances from remote contracts on any chain supported by LayerZero.TODO
fill in commentsfill in testsLZGatedCollectModuletestnet deploymentestimate gasend to end test