Skip to content

Commit 0405f8c

Browse files
Version Packages
1 parent 4cf15a2 commit 0405f8c

18 files changed

+230
-197
lines changed

Diff for: .changeset/huge-berries-call.md

-5
This file was deleted.

Diff for: .changeset/open-ends-melt.md

-5
This file was deleted.

Diff for: .changeset/orange-icons-hide.md

-5
This file was deleted.

Diff for: .changeset/purple-bats-march.md

-34
This file was deleted.

Diff for: .changeset/quick-bugs-remain.md

-31
This file was deleted.

Diff for: .changeset/ready-tigers-pump.md

-32
This file was deleted.

Diff for: .changeset/tired-windows-clean.md

-5
This file was deleted.

Diff for: .changeset/twenty-cows-take.md

-5
This file was deleted.

Diff for: .changeset/wicked-pianos-carry.md

-45
This file was deleted.

Diff for: .changeset/yummy-toys-hug.md

-5
This file was deleted.

Diff for: packages/insight/CHANGELOG.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# @thirdweb-dev/insight
2+
3+
## 1.0.0
4+
5+
### Major Changes
6+
7+
- [#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
8+
9+
This package is a thin openAPI wrapper for insight, our in-house indexer.
10+
11+
## Configuration
12+
13+
```ts
14+
import { configure } from "@thirdweb-dev/insight";
15+
16+
// call this once at the startup of your application
17+
configure({
18+
clientId: "<YOUR_CLIENT_ID>",
19+
});
20+
```
21+
22+
## Example Usage
23+
24+
```ts
25+
import { getV1Events } from "@thirdweb-dev/insight";
26+
27+
const events = await getV1Events({
28+
query: {
29+
chain: [1, 137],
30+
filter_address: "0x1234567890123456789012345678901234567890",
31+
},
32+
});
33+
```

Diff for: packages/insight/package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thirdweb-dev/insight",
3-
"version": "0.0.1",
3+
"version": "1.0.0",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -23,7 +23,10 @@
2323
},
2424
"./package.json": "./package.json"
2525
},
26-
"files": ["dist/*", "src/*"],
26+
"files": [
27+
"dist/*",
28+
"src/*"
29+
],
2730
"dependencies": {
2831
"@hey-api/client-fetch": "0.10.0",
2932
"tslib": "^2.8.1"

Diff for: packages/service-utils/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @thirdweb-dev/service-utils
22

3+
## 0.9.2
4+
5+
### Patch Changes
6+
7+
- [#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
8+
39
## 0.9.1
410

511
### Patch Changes

Diff for: packages/service-utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thirdweb-dev/service-utils",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"type": "module",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

Diff for: packages/thirdweb/CHANGELOG.md

+121
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,126 @@
11
# thirdweb
22

3+
## 5.95.0
4+
5+
### Minor Changes
6+
7+
- [#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
8+
9+
You can now use Insight, our in-house indexer directly from the SDK with a simple API:
10+
11+
## Get Owned ERC20 tokens
12+
13+
```ts
14+
import { Insight } from "thirdweb";
15+
16+
const tokens = await Insight.getOwnedTokens({
17+
client,
18+
ownerAddress,
19+
chains: [base, polygon, arbitrum],
20+
});
21+
```
22+
23+
## Get Owned NFTs (ERC721 and ERC1155)
24+
25+
```ts
26+
import { Insight } from "thirdweb";
27+
28+
const nfts = await Insight.getOwnedNFTs({
29+
client,
30+
ownerAddress,
31+
chains: [sepolia],
32+
});
33+
```
34+
35+
## Get Transactions for a given wallet address
36+
37+
```ts
38+
import { Insight } from "thirdweb";
39+
40+
const transactions = await Insight.getTransactions({
41+
client,
42+
walletAddress,
43+
chains: [sepolia],
44+
});
45+
```
46+
47+
All functions come with extra query filters for more granular queries, refer to the documentation for more details.
48+
49+
### Patch Changes
50+
51+
- [#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
52+
53+
- [#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
54+
55+
- [#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
56+
57+
Standard ERC721 getNFT, getNFTs and getOwnedNFTs now use insight, our in house indexer by default. If indexer is not availbale, will fallback to RPC.
58+
59+
You can also use the indexer directly using the Insight API:
60+
61+
for an entire collection
62+
63+
```ts
64+
import { Insight } from "thirdweb";
65+
66+
const events = await Insight.getContractNFTs({
67+
client,
68+
chains: [sepolia],
69+
contractAddress: "0x1234567890123456789012345678901234567890",
70+
});
71+
```
72+
73+
or for a single NFT
74+
75+
```ts
76+
import { Insight } from "thirdweb";
77+
78+
const events = await Insight.getNFT({
79+
client,
80+
chains: [sepolia],
81+
contractAddress: "0x1234567890123456789012345678901234567890",
82+
tokenId: 1n,
83+
});
84+
```
85+
86+
- [#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`
87+
88+
You can now automatically query indexed events on supported chains when calling getContractEvents
89+
90+
```ts
91+
import { getContractEvents } from "thirdweb";
92+
93+
const events = await getContractEvents({
94+
contract: DOODLES_CONTRACT,
95+
events: [transferEvent()],
96+
});
97+
```
98+
99+
This method falls back to RPC eth_getLogs if the indexer is not available.
100+
101+
You can also use the dedicated indexer function via the Insight export
102+
103+
```ts
104+
import { Insight } from "thirdweb";
105+
106+
const events = await Insight.getContractEvents({
107+
client,
108+
chains: [sepolia],
109+
contractAddress: "0x1234567890123456789012345678901234567890",
110+
event: transferEvent(),
111+
decodeLogs: true,
112+
});
113+
```
114+
115+
- [#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
116+
117+
- [#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
118+
119+
- [#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
120+
121+
- Updated dependencies [[`185d2f3`](https://github.com/thirdweb-dev/js/commit/185d2f309c349e37ac84bd3a2ce5a1c9c7011083)]:
122+
- @thirdweb-dev/[email protected]
123+
3124
## 5.94.2
4125

5126
### Patch Changes

0 commit comments

Comments
 (0)