-
Notifications
You must be signed in to change notification settings - Fork 2
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
[WIP] feature / lz gated follow, reference, collect modules #3
Closed
Conversation
This file contains 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
imthatcarlos
changed the title
[WIP] feature / lz gated follow and reference modules
[WIP] feature / lz gated follow, reference, collect modules
Dec 12, 2022
…fee and testing the follow module
…bs/lz-collect-module into feature/lz-gated-follow-and-mirror
Closing in favor of the PR in the lens modules repo: lens-protocol/modules#26 |
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
#followWithSig
LZGatedProxy
contract on Optimism, which relays the payload to theLZGatedFollowModule
contract on Polygon via LayerZeroLZGatedFollowModule.sol
A Lens Follow Module that allows profile holders to gate their following with ERC20 or ERC721 balances held on other chains
gatedFollowPerProfile
which points to the chain/token/balancefollowWithSigData
for a given profileLZGatedProxy
contract on the other chainLZGatedProxy
makes the token check, and relays the message to theLZGatedFollowModule
on polygonLZGatedFollowModule
contract validates the input, submits sig toLensHub#followWithSig
LZGatedReferenceModule.sol
A 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.sol
A Lens Collect Module that allows publication creators to gate who can collect their post with ERC20 or ERC721 balances held on other chains.
LZGatedProxy.sol
This contract acts as a proxy for
LZGatedFollowModule
,LZGatedReferenceModule
, andLZGatedCollectModule
in 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