Lens SDK 1.1 - Improvements in this release
LensClient
improvementsWhat's new?
Momoka support
The Lens SDK React hooks now support Momoka publications. To start using Momoka today just upgrade to [localhost:3000/u/lens-protocol/react-webhttp://localhost:3000/u/latest
](@lens-protocol/react-webhttp://localhost:3000) and the SDK will take care of the rest.
The Lens SDK will choose Momoka posts over on-chain posts automatically based on your collect settings. It will also know when comments and mirrors need to be on Momoka infrastructure based on the referencing publication.
Self-funded transactions fallback
Occasionally gasless transactions might not be available for a given profile. To provide continuity in your user experience you can now fallback to execute transactions using the user's funds to cover gas costs. More documentation is available here: docs.lens.xyz/docs/self-funded-transactions
Bi-directional pagination traversing
It's now possible to traverse paginated results in both directions (older and newer results).
This allows you to implement functionalities such as "pull to refresh" on a mobile app or fetch newer feed entries. See this example as a reference: github.com/lens-protocol/lens-sdk/blob/main/examples/web-wagmi/src/discovery/UseFeed.tsx#L63
Supports limited free collects
Last month we launched a new collect module called SimpleCollectModule
. In this SDK release, you can leverage all its potential. For example, you can define a Free Collect with a limited number of NFTs to be minted.
LensClient
improvements
We added client.authentication.verify
and client.authentication.getAccessToken
methods to enable extraction and verification of someone's API credentials.
Improvements in this release
We have added several new hooks in this release to help our community, highlights below 👇
📰 Ability to collect a publication
✅ Enabled approving modules (gas efficient with support for EIP-1559 gas estimation)
🪞 A new feature that allows you to see who mirrored a publication
💬 Expanded the filtering of feed, with explore publications and comments data
What's new?
Added useCollect
hook enables the collection of publications
Added useApproveModule
and internal toolings for EIP-1559 gas estimation Added useWhoMirroredPublication
hook Added metadataFilter
to useFeed
, useExplorePublications
and useComments
Added IStorageProvider
StorageSubscription
StorageProviderSubscriber
and IObservableStorageProvider
to the package exports
Removed the walletType
argument from the login
method of useWalletLogin
hook Removed IStorageProvider.subscribe
method (use IObservableStorageProvider
when custom subscription logic is required)
Lens devs keep shipping 🛳️ 💨. A lot of cool things have been added with 1.26.0.
Features
·Ability to create Nft galleries
·Added support for data availability for mirror with signed typed data (staging only)
·Add support for data availability for comment with signed typed data (staging only)
·Added support for 'ar://' protocol in metadata
·Added support for 'ar://' protocol in metadata
·Added support authentication with EIP1271-compatible smart wallets
·Added indexes to the database
·Added support for MultirecipientFeeCollectModule
·Added support for AaveFeeCollectModule
·Added support for ERC4626FeeCollectModule
·Added more relays to load balance to spread out traffic
·Enabled hasTxHashBeenIndexed to be accessible without auth token
·Moved the Follow Proxy action to RabbitMQ.
·Moved the Collect Proxy action to RabbitMQ.
·Removed Internal endpoints
·Rewrote the notification service to improve performance
·Removed wallets from showing in the of follower list
·Handle validation internal extensions
·Lensqueue granular error handling
·Rabbitmq metrics and alerts
·Improved speed latency on redis
·Improved Estimate of gas
·Improved Contain memory spikes
·Whitelisted new apps for gasless transactions
Bug fixes
·Added optional pretty name to whitelisted currencies
·Added block timestamp to indexer
·Added optional pretty name to whitelisted currencies
·Fixed typo in GraphQL schema doc
·Fixed collect records mismatch on the backend
·Fixed typo in GraphQL schema doc
·Fixed nft population in nft gallery
·Fixed Internal error counts
·Fixed typo in GraphQL schema doc
·Gated working on the dispatcher
·Resolved issue on collect modules circular references
·Resolved issue: When using the whoMirroredPublicationId field in the request and querying a publication with multiple mirrors by the same profile profiles repeated in the response
·Resolved issue on collect modules circular references
·Resolved uncaught exceptions for graphql validation errors
·Redis expiry times made dynamic
·Resolved deadlocks on db
·Stopped supporting kovan, rinkeby and ropsten testnets
·Validation metadata fixes
Breaking changes
·Feed and feedHighlights now require auth to call them
Breaking changes actioned
·ACTIONED: breaking change: timeline has been removed
Today is my and @dabit3 birthdays 🥳there is some serious Capricorn energy in web3 🐐 Guess how old we are, measured in DeFi years? 🎂