Releases: liteflow-labs/liteflow-js
v3.0.0
@liteflow/core@3.0.0
Major Changes
- #238
a2bdad8Thanks @NicolasMahe! - Replace Ethers.js by Viem
Patch Changes
-
#226
6aa847bThanks @NicolasMahe! - ReplaceassetIdbychainId,collectionAddressandtokenId, and deprecatetakerAddressinlistTokenandplaceBid. -
#224
3f577d3Thanks @NicolasMahe! - Use mutationcreateCancelOfferTransactioninstead of deprecated queryoffer.cancel -
#225
ca11e0bThanks @NicolasMahe! - Use new querieslistingandopenOfferinstead of now deprecatedoffer -
#221
40c1fd6Thanks @ismailToyran! - Export BatchPurchaseStep
@liteflow/react@3.0.0
Major Changes
- #238
a2bdad8Thanks @NicolasMahe! - Replace Ethers.js by Viem
Patch Changes
v2.0.0
@liteflow/core
2.0.0
Major Changes
-
#215
d6c7c60Thanks @antho1404! - Remove auction system. -
#216
43247ccThanks @antho1404! - Remove unlockable content
@liteflow/react
2.0.0
Major Changes
-
#215
d6c7c60Thanks @antho1404! - Remove auction system. -
#216
43247ccThanks @antho1404! - Remove unlockable content
Patch Changes
v1.3.1
@liteflow/core
1.3.1
Patch Changes
- #212
2e5cecfThanks @antho1404! - Add missing graphql-tag dependency
@liteflow/react
1.3.1
Patch Changes
-
#212
2e5cecfThanks @antho1404! - Add missing graphql-tag dependency -
#214
64268deThanks @antho1404! - Fix invalid event sent when accepting an offer or doing a batch purchase -
Updated dependencies [
2e5cecf]:- @liteflow/core@1.3.1
v1.3.0
@liteflow/core
1.3.0
Minor Changes
- #202
426e3fdThanks @antho1404! - Add batch purchase feature to purchase multiple offers in a single transaction
Patch Changes
- #199
69b5307Thanks @NicolasMahe! - Remove unnecessary fields fromFetchOfferquery
@liteflow/react
1.3.0
Minor Changes
- #202
426e3fdThanks @antho1404! - Add batch purchase feature to purchase multiple offers in a single transaction
Patch Changes
@liteflow/core@v1.1.1
What's Changed
- Fetch asset + ownership on polling by @antho1404 in #173
Full Changelog: https://github.com/liteflow-labs/liteflow-js/compare/v1.1.0...core@v1.1.1
v1.1.0
What's Changed
- Add changesets by @antho1404 in #168
- Add metadata to offer/bid/listing creation by @NicolasMahe in #165
Full Changelog: v1.0.0...v1.1.0
v1.0.0
Migration Guide from @nft/hooks to @liteflow/react
We've made significant changes to our libraries to deliver the most efficient and up-to-date solutions for your development needs. This guide will walk you through the steps to transition from the legacy @nft/hooks library to our new and improved @liteflow/react library.
1. Update LiteflowProvider
The LiteflowProvider now utilizes an apiKey for authentication. You can obtain your apiKey from your dashboard:
- Go to the Liteflow Dashboard
- Your
apiKeycan be found under theAPI Keyssection. Copy this key. - Replace the previous authentication method in your LiteflowProvider initialization with the
apiKey.
Here is a simple example:
import { LiteflowProvider } from "@liteflow/react";
<LiteflowProvider apiKey="your-api-key">
// your app
</LiteflowProvider>2. Update Offer Handling
Hooks such as useAcceptOffer and useCancelOffer have been updated to accept the id of the offer directly. You no longer need to pass an object containing the id.
Here is how you can update your hooks:
const [acceptOffer] = useAcceptOffer();
// Before
acceptOffer({ id: "your-offer-id" })
// After
acceptOffer("your-offer-id");3. Replace assetId with Chain, Collection, and Token
We've replaced assetId with a combination of chain, collection, and token identifiers. This change provides better granularity for your applications.
Replace your asset ID references as follows:
// Before
const assetId = "chain-address-token";
// After
const chain = "chain";
const collection = "address";
const token = "token";4. Change Price Definition
Price definitions have been updated. Previously, they were a combination of xxxPrice and currencyId. Now, you should use xxx of type price which contains an amount and a currency.
currency can be the address of the currency or null for a native token.
Here is an example:
// Before
const price = {
xxxPrice: "your-xxx-price",
currencyId: "your-currency-id",
};
// After
const price = {
xxx: {
amount: "your-amount",
currency: "your-currency-or-null",
},
};Remember to check your application thoroughly after making these changes. As always, don't hesitate to reach out if you encounter any difficulties or have any questions regarding this migration. We're here to help! Happy coding!
What's Changed
- update changelog of api with beta.14 by @NicolasMahe in #140
- Update env for starter kit by @antho1404 in #141
- Update documentation for webhooks by @antho1404 in #145
- update changelog for beta 15 by @NicolasMahe in #147
- update @nft/api-graphql to v1.0.0-beta.15 by @NicolasMahe in #149
- Add new auction expired webhook by @antho1404 in #148
- Update @nft/api-graphql and changelog by @NicolasMahe in #150
- update changelogs of graphql-api and webhook packages by @NicolasMahe in #153
- add api changelog for v1.0.0-beta.17 by @NicolasMahe in #154
- Add changelog of beta 18 by @NicolasMahe in #156
- Core package base -- placeBid and listToken by @antho1404 in #142
- Core package -- cancel and accept offer by @antho1404 in #144
- Auction SDK by @antho1404 in #159
- Create asset sdk by @antho1404 in #160
- Account core SDK by @antho1404 in #161
- Rename @nft/hooks to @liteflow/react by @antho1404 in #162
- SDK v1 by @antho1404 in #158
- Documentation update by @ismailToyran in #163
- Update docs for react SDK by @antho1404 in #164
Full Changelog: v1.0.0-beta.13...v1.0.0
v1.0.0-beta.13
v1.0.0-beta.12
Hooks
Added
- Added new stable hook
useIsLoggedInto check is an address is logged in on the SDK #122- Check https://docs.liteflow.com/hooks/useIsLoggedIn for more detail
Changed
- Use mutations
createCurrencyApprovalTransactionandcreateCollectionApprovalTransactioninstead oftoken.approvalandcurrency.approvalinuseCreateOfferanduseAcceptOfferhooks #117 - Use use
createOfferFillTransactioninstead of deprecatedoffer.fillinuseAcceptOfferhook #118 - Use new flow of offer creation using the new mutation
createOfferSignature#119 - Update dependency
@nft/api-graphqltov1.0.0-beta.11#129 #119
Fixed
- Invalid jwt with expired date #123