Skip to content

Commit a9d5a6c

Browse files
reecejohnsonjoshstevens19desferoya7yaPaul Xu
authored
feat: update examples to v2 schema (#135)
* feat: add broadcast on chain follow example * feat: add updated wait for tx to be complete * feat: add broacast to momoka example * feat: add changer profile manager and USE_GASLESS & ORIGIN env vars * feat: require ORIGIN when gasless is enabled * feat: authentication * feat: typings * new ABI new typings * feat: add change profile manager typed data part * feat: follow + unfollow * feat: add broadcast with unfollow and follow * feat: extra logging for debugging etc * remove unused console log * fix: remove use_gasless parsing * feat: give more info on error * feat: unfollow, follow lens manager * feat: set profile metadata sig + manager * feat: cleanup v1 queries not needed anymore * feat: create profile with handle * fix waitUntilLensManagerTransactionIsComplete * feat: block, unblock + lens manager for both * cleanup: remove unused methods * feat: set follow module + lens profile manager * feat: unlink handle and link handle * feat: handle unlink and handle link * feat: post onchain * feat: comment onchain * feat: quote onchain * feat: mirror onchain * feat: open actions + reference modules + fixing some follow module stuff * generate * feat: more examples of modules and lens profiles + fixes for safety * fix: resolve new graphql typings * unfollow request input changed * refactor: more collect open actions in an object * feat: add check tx status, wait until complete * feat: update generated * update types * generate * revert codegen * feat: metadata to reuse * use the shared metadata typings * feat: post momoka * feat: update schema config * feat: add comment on momoka * feat: add mirror on momoka * fix: format package.json scripts * feat: add quote on momoka * fix: update `lensTransactionStatus` implementation * get profile * Lens v2 more examples (#136) * get profiles * following * followers * mutual followers * profile recommendations * feat: profile - get invited profiles * feat: poap mutual poaps example * nft examples * profile action history + feed highlights * Profile already invited example * get publications * get publications, legacy media items debugging * explore profiles and publications * following and followed-by * feat: get transaction has been indexed logic working * fix better pub id * fixes * remove some stuff not needed * search profiles, search publications * who reacted to publication * revenues * nfts * module examples + some notes * notifications * more examples * who collected * bookmarks * publications tags * tx-id-to-tx-hash * hide publication * reactions mutations * updating package.json * Add more examples * nft gallery operations example * swapping burnWithSig for burn * reporting * profile-feed * not interested * fix: cleanup the passing of parent parameter down chain * claims * fix: mocking of publication ids and profile ids * Add momoka examples * does-follow resolver * for you * Add remaining examples * Add note about not working example * paginated does-follow * fix: handle link unlink etc * generate * feat: remove `isEncrypted` from publication root * publication fixes * feat: cleanup momoka broadcast helpers * fix dismiss * generate * feat: act on lens manager + fix * config * fix: queries for new LegacyPublicationMetadata * feat: reanme file * feat: renames inline with schema and docs * feat: move for you to feed module * feat: refresh publication * does follow * does-follow working * cleanup old stuff * Support for https://github.com/lens-protocol/lens-monorepo/pull/195 * Squeeze one small refinement * Supports for https://github.com/lens-protocol/lens-monorepo/pull/198 * fixes + approval allowance of modules * generate * fix: approve module * fix: who blocked example * feat: tx id to tx hash * Sync naming for queries (#142) * Sync naming for queries * Generate schema from deployed code * feat: get search publication working * fix build * fix: Support paginated nft galleries * Support for https://github.com/lens-protocol/lens-monorepo/pull/205 * poap event fix * fixes * feat: profile manager * remove comment * fix: reactions * fix: invite profiles * feat: notifications * removing foryou * user-sig-nonces * publication tags fix * new contracts + mirror * update docs * fix: cleanup client facing naming of keys (`mirrorOf`, `commentsOf`, etc) * fix: tsc error on momoka transaction * map to new known * update profile fragment * fix revenue * Fix some api examples * fix: feed after fixes * Supports for https://github.com/lens-protocol/lens-monorepo/pull/242 * Support for https://github.com/lens-protocol/lens-monorepo/pull/262 * add missing nft + publication revenue examples * Supports breaking changes to PublicationMetadata and ProfileMetadata * Add momoka subscription example * Add notification subscription example * Add publication stats subscription example * add default profile examples * fix notifications queries * Fix graphql queries * fix: supports MetadataAttribute.type * Support most recent API breaking changes * add revoke * add follow status example * Add POST_ID for open action * Fix codegen --------- Co-authored-by: Josh Stevens <joshstevens19@hotmail.co.uk> Co-authored-by: Paweł Lula <pavloblack@hotmail.com> Co-authored-by: Yahya <ya7yaz@gmail.com> Co-authored-by: Paul Xu <paul@aave.com> Co-authored-by: Paul Xu <paulxuca@gmail.com> Co-authored-by: Cesare Naldi <naldi.cesare@gmail.com> Co-authored-by: zannis <zannis@aave.com> Co-authored-by: Zannis <zannis@users.noreply.github.com>
1 parent f7fc37c commit a9d5a6c

File tree

357 files changed

+15767
-18725
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

357 files changed

+15767
-18725
lines changed

.env.template

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ PROFILE_ID=PROFILE_ID
44
LENS_API=https://api-mumbai.lens.dev/
55

66
# Check the address provided here : https://docs.lens.dev/docs/testnet-addresses
7-
LENS_HUB_CONTRACT=0x60Ae865ee4C725cd04353b5AAb364553f56ceF82
8-
LENS_PERIPHERY_CONTRACT=0xD5037d72877808cdE7F669563e9389930AF404E8
7+
LENS_HUB_CONTRACT=0xC1E77eE73403B8a7478884915aA599932A677870
8+
LENS_TOKEN_HANDLE_REGISTRY_CONTRACT=0xc3a1fabd7f8d290f7b0C45AA88af6e9c9E267843
99

1010
INFURA_PROJECT_ID=YOUR_PROJECT_ID
11-
INFURA_SECRET=YOUR_SECRET
11+
INFURA_SECRET=YOUR_SECRET
12+
LENS_API_WEBSOCKET=

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
dist
22
.env
33
node_modules
4-
src/random-sign.ts
5-
src/mock-upload.ts
4+
.idea

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,15 @@ PK=YOUR_PK
1515
MUMBAI_RPC_URL=https://rpc-mumbai.matic.today
1616
PROFILE_ID=PROFILE_ID
1717
LENS_API=https://api-mumbai.lens.dev/
18-
LENS_HUB_CONTRACT=0x60Ae865ee4C725cd04353b5AAb364553f56ceF82
19-
LENS_PERIPHERY_CONTRACT=0xD5037d72877808cdE7F669563e9389930AF404E8
18+
LENS_HUB_CONTRACT=0xC1E77eE73403B8a7478884915aA599932A677870
19+
LENS_PERIPHERY_CONTRACT=0xc3a1fabd7f8d290f7b0C45AA88af6e9c9E267843
2020
INFURA_PROJECT_ID=YOUR_INFURA_PROJECT_ID
2121
INFURA_SECRET=YOUR_INFURA_SECRET
2222
```
2323

24-
- Note 1:`PROFILE_ID` is optional but required on some endpoints! Also, make sure to insert the `PROFILE_ID` in hexadecimal format.
25-
- Note 2: Highly advised to create an API key and use the Alchemy RPC provider for Mumbai to avoid rate limiting.
26-
- Note 3: `PK` represents Private key here.
27-
- Note 4: This project uses infura ipfs to pin content which now is API keys only so you have to create an API key on their side. You can also use another storage provider or pinning service if you which, feel free to do a PR with that service and we can change the .env to include option to pick.
24+
- `PROFILE_ID` is optional but required on some endpoints! Also, make sure to insert the `PROFILE_ID` in hexadecimal format.
25+
- Highly advised to create an API key and use the Alchemy RPC provider for Mumbai to avoid rate limiting. -`PK` represents Private key here.
26+
- This project uses infura ipfs to pin content which now is API keys only so you have to create an API key on their side. You can also use another storage provider or pinning service if you which, feel free to do a PR with that service and we can change the .env to include option to pick.
2827

2928
## How to run
3029

codegen.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
schema: 'https://api-mumbai.lens.dev'
2-
documents: './src/graphql/*.graphql'
1+
# schema: 'https://api-v2-mumbai.lens.dev/graphql'
2+
schema: 'http://localhost:4000/'
3+
documents: './src/**/*.graphql'
34
generates:
45
./src/graphql/generated.ts:
56
plugins:
@@ -9,4 +10,4 @@ generates:
910
- fragment-matcher
1011
config:
1112
fetcher: fetch
12-
dedupeFragments: true
13+
dedupeFragments: true

0 commit comments

Comments
 (0)