diff --git a/.changeset/free-pandas-reply.md b/.changeset/free-pandas-reply.md deleted file mode 100644 index 1f8fb51d827..00000000000 --- a/.changeset/free-pandas-reply.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Add thirdweb branding to PayEmbed diff --git a/.changeset/huge-berries-call.md b/.changeset/huge-berries-call.md deleted file mode 100644 index f5ef003c50d..00000000000 --- a/.changeset/huge-berries-call.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Use insight for 1155 getNFTs, getOwnedNFTs and getNFT diff --git a/.changeset/open-ends-melt.md b/.changeset/open-ends-melt.md deleted file mode 100644 index 73b0be5dde8..00000000000 --- a/.changeset/open-ends-melt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@thirdweb-dev/service-utils": patch ---- - -Update rate limit to sliding window diff --git a/.changeset/orange-icons-hide.md b/.changeset/orange-icons-hide.md deleted file mode 100644 index 344374b34e2..00000000000 --- a/.changeset/orange-icons-hide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Simplify RPC request handling diff --git a/.changeset/purple-bats-march.md b/.changeset/purple-bats-march.md deleted file mode 100644 index 6b92c289bb2..00000000000 --- a/.changeset/purple-bats-march.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -"thirdweb": patch ---- - -Use insight for erc821/getNFT, erc721/getNFTs and erc721/getOwnedNFTs - -Standard ERC721 getNFT, getNFTs and getOwnedNFTs now use insight, our in house indexer by default. If indexer is not availbale, will fallback to RPC. - -You can also use the indexer directly using the Insight API: - -for an entire collection - -```ts -import { Insight } from "thirdweb"; - -const events = await Insight.getContractNFTs({ - client, - chains: [sepolia], - contractAddress: "0x1234567890123456789012345678901234567890", -}); -``` - -or for a single NFT - -```ts -import { Insight } from "thirdweb"; - -const events = await Insight.getNFT({ - client, - chains: [sepolia], - contractAddress: "0x1234567890123456789012345678901234567890", - tokenId: 1n, -}); -``` diff --git a/.changeset/quick-bugs-remain.md b/.changeset/quick-bugs-remain.md deleted file mode 100644 index 525ca470d98..00000000000 --- a/.changeset/quick-bugs-remain.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -"@thirdweb-dev/insight": major ---- - -Initial release of dedicated insight TS sdk - -This package is a thin openAPI wrapper for insight, our in-house indexer. - -## Configuration - -```ts -import { configure } from "@thirdweb-dev/insight"; - -// call this once at the startup of your application -configure({ - clientId: "", -}); -``` - -## Example Usage - -```ts -import { getV1Events } from "@thirdweb-dev/insight"; - -const events = await getV1Events({ - query: { - chain: [1, 137], - filter_address: "0x1234567890123456789012345678901234567890", - }, -}); -``` diff --git a/.changeset/ready-tigers-pump.md b/.changeset/ready-tigers-pump.md deleted file mode 100644 index ac7f8c80264..00000000000 --- a/.changeset/ready-tigers-pump.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -"thirdweb": patch ---- - -Get indexed events from `getContractEvents` - -You can now automatically query indexed events on supported chains when calling getContractEvents - -```ts -import { getContractEvents } from "thirdweb"; - -const events = await getContractEvents({ - contract: DOODLES_CONTRACT, - events: [transferEvent()], -}); -``` - -This method falls back to RPC eth_getLogs if the indexer is not available. - -You can also use the dedicated indexer function via the Insight export - -```ts -import { Insight } from "thirdweb"; - -const events = await Insight.getContractEvents({ - client, - chains: [sepolia], - contractAddress: "0x1234567890123456789012345678901234567890", - event: transferEvent(), - decodeLogs: true, -}); -``` diff --git a/.changeset/tired-windows-clean.md b/.changeset/tired-windows-clean.md deleted file mode 100644 index 99b87b860ab..00000000000 --- a/.changeset/tired-windows-clean.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Improve pay error messages diff --git a/.changeset/twenty-cows-take.md b/.changeset/twenty-cows-take.md deleted file mode 100644 index d913c800805..00000000000 --- a/.changeset/twenty-cows-take.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Better error message for getUser diff --git a/.changeset/wicked-pianos-carry.md b/.changeset/wicked-pianos-carry.md deleted file mode 100644 index 618c33eda5c..00000000000 --- a/.changeset/wicked-pianos-carry.md +++ /dev/null @@ -1,45 +0,0 @@ ---- -"thirdweb": minor ---- - -Expose getOwnedTokens, getOwnedNFTs and getTransaction functions - -You can now use Insight, our in-house indexer directly from the SDK with a simple API: - -## Get Owned ERC20 tokens - -```ts -import { Insight } from "thirdweb"; - -const tokens = await Insight.getOwnedTokens({ - client, - ownerAddress, - chains: [base, polygon, arbitrum], -}); -``` - -## Get Owned NFTs (ERC721 and ERC1155) - -```ts -import { Insight } from "thirdweb"; - -const nfts = await Insight.getOwnedNFTs({ - client, - ownerAddress, - chains: [sepolia], -}); -``` - -## Get Transactions for a given wallet address - -```ts -import { Insight } from "thirdweb"; - -const transactions = await Insight.getTransactions({ - client, - walletAddress, - chains: [sepolia], -}); -``` - -All functions come with extra query filters for more granular queries, refer to the documentation for more details. diff --git a/.changeset/yummy-toys-hug.md b/.changeset/yummy-toys-hug.md deleted file mode 100644 index d31d331cf1d..00000000000 --- a/.changeset/yummy-toys-hug.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"thirdweb": patch ---- - -Better error messages for failed requests diff --git a/packages/insight/CHANGELOG.md b/packages/insight/CHANGELOG.md new file mode 100644 index 00000000000..2654a69bd10 --- /dev/null +++ b/packages/insight/CHANGELOG.md @@ -0,0 +1,33 @@ +# @thirdweb-dev/insight + +## 1.0.0 + +### Major Changes + +- [#6706](https://github.com/thirdweb-dev/js/pull/6706) [`185d2f3`](https://github.com/thirdweb-dev/js/commit/185d2f309c349e37ac84bd3a2ce5a1c9c7011083) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Initial release of dedicated insight TS sdk + + This package is a thin openAPI wrapper for insight, our in-house indexer. + + ## Configuration + + ```ts + import { configure } from "@thirdweb-dev/insight"; + + // call this once at the startup of your application + configure({ + clientId: "", + }); + ``` + + ## Example Usage + + ```ts + import { getV1Events } from "@thirdweb-dev/insight"; + + const events = await getV1Events({ + query: { + chain: [1, 137], + filter_address: "0x1234567890123456789012345678901234567890", + }, + }); + ``` diff --git a/packages/insight/package.json b/packages/insight/package.json index 8559bd956fb..fd7cead9dc3 100644 --- a/packages/insight/package.json +++ b/packages/insight/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/insight", - "version": "0.0.1", + "version": "1.0.0", "repository": { "type": "git", "url": "git+https://github.com/thirdweb-dev/js.git#main" @@ -23,7 +23,10 @@ }, "./package.json": "./package.json" }, - "files": ["dist/*", "src/*"], + "files": [ + "dist/*", + "src/*" + ], "dependencies": { "@hey-api/client-fetch": "0.10.0", "tslib": "^2.8.1" diff --git a/packages/service-utils/CHANGELOG.md b/packages/service-utils/CHANGELOG.md index c2bda98a9c4..e7c8e2e1698 100644 --- a/packages/service-utils/CHANGELOG.md +++ b/packages/service-utils/CHANGELOG.md @@ -1,5 +1,11 @@ # @thirdweb-dev/service-utils +## 0.9.2 + +### Patch Changes + +- [#6730](https://github.com/thirdweb-dev/js/pull/6730) [`ec099a7`](https://github.com/thirdweb-dev/js/commit/ec099a781a144dfbd5f7558228ce4371c00e9a06) Thanks [@arcoraven](https://github.com/arcoraven)! - Update rate limit to sliding window + ## 0.9.1 ### Patch Changes diff --git a/packages/service-utils/package.json b/packages/service-utils/package.json index cf090b1b48f..4705b762217 100644 --- a/packages/service-utils/package.json +++ b/packages/service-utils/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/service-utils", - "version": "0.9.1", + "version": "0.9.2", "type": "module", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", diff --git a/packages/thirdweb/CHANGELOG.md b/packages/thirdweb/CHANGELOG.md index 1f70c0ed00b..eb9c0015a94 100644 --- a/packages/thirdweb/CHANGELOG.md +++ b/packages/thirdweb/CHANGELOG.md @@ -1,5 +1,128 @@ # thirdweb +## 5.95.0 + +### Minor Changes + +- [#6706](https://github.com/thirdweb-dev/js/pull/6706) [`185d2f3`](https://github.com/thirdweb-dev/js/commit/185d2f309c349e37ac84bd3a2ce5a1c9c7011083) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Expose getOwnedTokens, getOwnedNFTs and getTransaction functions + + You can now use Insight, our in-house indexer directly from the SDK with a simple API: + + ## Get Owned ERC20 tokens + + ```ts + import { Insight } from "thirdweb"; + + const tokens = await Insight.getOwnedTokens({ + client, + ownerAddress, + chains: [base, polygon, arbitrum], + }); + ``` + + ## Get Owned NFTs (ERC721 and ERC1155) + + ```ts + import { Insight } from "thirdweb"; + + const nfts = await Insight.getOwnedNFTs({ + client, + ownerAddress, + chains: [sepolia], + }); + ``` + + ## Get Transactions for a given wallet address + + ```ts + import { Insight } from "thirdweb"; + + const transactions = await Insight.getTransactions({ + client, + walletAddress, + chains: [sepolia], + }); + ``` + + All functions come with extra query filters for more granular queries, refer to the documentation for more details. + +### Patch Changes + +- [#6760](https://github.com/thirdweb-dev/js/pull/6760) [`7ecfcb9`](https://github.com/thirdweb-dev/js/commit/7ecfcb95afaeca56fd8dbf8b157ac6a1eb2339b2) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Add thirdweb branding to PayEmbed + +- [#6753](https://github.com/thirdweb-dev/js/pull/6753) [`4cf15a2`](https://github.com/thirdweb-dev/js/commit/4cf15a2475fce1c5b55d19f7cf51ab080e80e33f) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Use insight for 1155 getNFTs, getOwnedNFTs and getNFT + +- [#6752](https://github.com/thirdweb-dev/js/pull/6752) [`23d3757`](https://github.com/thirdweb-dev/js/commit/23d375778b900468409bb2435f60f1aff33823c9) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Simplify RPC request handling + +- [#6741](https://github.com/thirdweb-dev/js/pull/6741) [`8d4d991`](https://github.com/thirdweb-dev/js/commit/8d4d991e5710cbed668a52522686cc2dce4e4790) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Use insight for erc821/getNFT, erc721/getNFTs and erc721/getOwnedNFTs + + Standard ERC721 getNFT, getNFTs and getOwnedNFTs now use insight, our in house indexer by default. If indexer is not availbale, will fallback to RPC. + + You can also use the indexer directly using the Insight API: + + for an entire collection + + ```ts + import { Insight } from "thirdweb"; + + const events = await Insight.getContractNFTs({ + client, + chains: [sepolia], + contractAddress: "0x1234567890123456789012345678901234567890", + }); + ``` + + or for a single NFT + + ```ts + import { Insight } from "thirdweb"; + + const events = await Insight.getNFT({ + client, + chains: [sepolia], + contractAddress: "0x1234567890123456789012345678901234567890", + tokenId: 1n, + }); + ``` + +- [#6683](https://github.com/thirdweb-dev/js/pull/6683) [`a3e7300`](https://github.com/thirdweb-dev/js/commit/a3e73007230120f2e2d79b894cf1a3c81e062a21) Thanks [@kumaryash90](https://github.com/kumaryash90)! - Get indexed events from `getContractEvents` + + You can now automatically query indexed events on supported chains when calling getContractEvents + + ```ts + import { getContractEvents } from "thirdweb"; + + const events = await getContractEvents({ + contract: DOODLES_CONTRACT, + events: [transferEvent()], + }); + ``` + + This method falls back to RPC eth_getLogs if the indexer is not available. + + You can also use the dedicated indexer function via the Insight export + + ```ts + import { Insight } from "thirdweb"; + + const events = await Insight.getContractEvents({ + client, + chains: [sepolia], + contractAddress: "0x1234567890123456789012345678901234567890", + event: transferEvent(), + decodeLogs: true, + }); + ``` + +- [#6732](https://github.com/thirdweb-dev/js/pull/6732) [`a45c558`](https://github.com/thirdweb-dev/js/commit/a45c558e06a7104c0e54df9647343e9681f73e1d) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Improve pay error messages + +- [#6758](https://github.com/thirdweb-dev/js/pull/6758) [`62ce05e`](https://github.com/thirdweb-dev/js/commit/62ce05ec35aa362df25eaf46824651c7f0792f99) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Better error message for getUser + +- [#6734](https://github.com/thirdweb-dev/js/pull/6734) [`2a7df33`](https://github.com/thirdweb-dev/js/commit/2a7df337f790051d7eaf9258428349e162b4ed01) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Better error messages for failed requests + +- Updated dependencies [[`185d2f3`](https://github.com/thirdweb-dev/js/commit/185d2f309c349e37ac84bd3a2ce5a1c9c7011083)]: + - @thirdweb-dev/insight@1.0.0 + ## 5.94.2 ### Patch Changes diff --git a/packages/thirdweb/package.json b/packages/thirdweb/package.json index 5d25f4b594b..4f26ebbeb02 100644 --- a/packages/thirdweb/package.json +++ b/packages/thirdweb/package.json @@ -1,6 +1,6 @@ { "name": "thirdweb", - "version": "5.94.2", + "version": "5.95.0", "repository": { "type": "git", "url": "git+https://github.com/thirdweb-dev/js.git#main" @@ -142,26 +142,66 @@ }, "typesVersions": { "*": { - "adapters/*": ["./dist/types/exports/adapters/*.d.ts"], - "auth": ["./dist/types/exports/auth.d.ts"], - "chains": ["./dist/types/exports/chains.d.ts"], - "contract": ["./dist/types/exports/contract.d.ts"], - "deploys": ["./dist/types/exports/deploys.d.ts"], - "event": ["./dist/types/exports/event.d.ts"], - "extensions/*": ["./dist/types/exports/extensions/*.d.ts"], - "pay": ["./dist/types/exports/pay.d.ts"], - "react": ["./dist/types/exports/react.d.ts"], - "react-native": ["./dist/types/exports/react-native.d.ts"], - "rpc": ["./dist/types/exports/rpc.d.ts"], - "storage": ["./dist/types/exports/storage.d.ts"], - "transaction": ["./dist/types/exports/transaction.d.ts"], - "utils": ["./dist/types/exports/utils.d.ts"], - "wallets": ["./dist/types/exports/wallets.d.ts"], - "wallets/*": ["./dist/types/exports/wallets/*.d.ts"], - "modules": ["./dist/types/exports/modules.d.ts"], - "social": ["./dist/types/exports/social.d.ts"], - "ai": ["./dist/types/exports/ai.d.ts"], - "bridge": ["./dist/types/exports/bridge.d.ts"] + "adapters/*": [ + "./dist/types/exports/adapters/*.d.ts" + ], + "auth": [ + "./dist/types/exports/auth.d.ts" + ], + "chains": [ + "./dist/types/exports/chains.d.ts" + ], + "contract": [ + "./dist/types/exports/contract.d.ts" + ], + "deploys": [ + "./dist/types/exports/deploys.d.ts" + ], + "event": [ + "./dist/types/exports/event.d.ts" + ], + "extensions/*": [ + "./dist/types/exports/extensions/*.d.ts" + ], + "pay": [ + "./dist/types/exports/pay.d.ts" + ], + "react": [ + "./dist/types/exports/react.d.ts" + ], + "react-native": [ + "./dist/types/exports/react-native.d.ts" + ], + "rpc": [ + "./dist/types/exports/rpc.d.ts" + ], + "storage": [ + "./dist/types/exports/storage.d.ts" + ], + "transaction": [ + "./dist/types/exports/transaction.d.ts" + ], + "utils": [ + "./dist/types/exports/utils.d.ts" + ], + "wallets": [ + "./dist/types/exports/wallets.d.ts" + ], + "wallets/*": [ + "./dist/types/exports/wallets/*.d.ts" + ], + "modules": [ + "./dist/types/exports/modules.d.ts" + ], + "social": [ + "./dist/types/exports/social.d.ts" + ], + "ai": [ + "./dist/types/exports/ai.d.ts" + ], + "bridge": [ + "./dist/types/exports/bridge.d.ts" + ] } }, "browser": { diff --git a/packages/wagmi-adapter/CHANGELOG.md b/packages/wagmi-adapter/CHANGELOG.md index fb6a7b9e44d..2c97dade1eb 100644 --- a/packages/wagmi-adapter/CHANGELOG.md +++ b/packages/wagmi-adapter/CHANGELOG.md @@ -1,5 +1,7 @@ # @thirdweb-dev/wagmi-adapter +## 0.2.56 + ## 0.2.55 ## 0.2.54 diff --git a/packages/wagmi-adapter/package.json b/packages/wagmi-adapter/package.json index e4756bbd3a9..fd0f74254ad 100644 --- a/packages/wagmi-adapter/package.json +++ b/packages/wagmi-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@thirdweb-dev/wagmi-adapter", - "version": "0.2.55", + "version": "0.2.56", "repository": { "type": "git", "url": "git+https://github.com/thirdweb-dev/js.git#main"