Skip to content

Commit 2a70d25

Browse files
Version Packages
1 parent a45c558 commit 2a70d25

File tree

13 files changed

+191
-143
lines changed

13 files changed

+191
-143
lines changed

.changeset/open-ends-melt.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/quick-bugs-remain.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

.changeset/ready-tigers-pump.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

.changeset/tired-windows-clean.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/wicked-pianos-carry.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

packages/insight/CHANGELOG.md

Lines changed: 33 additions & 0 deletions
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+
```

packages/insight/package.json

Lines changed: 5 additions & 2 deletions
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"

packages/service-utils/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
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

packages/service-utils/package.json

Lines changed: 1 addition & 1 deletion
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",

packages/thirdweb/CHANGELOG.md

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,87 @@
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+
- [#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`
52+
53+
You can now automatically query indexed events on supported chains when calling getContractEvents
54+
55+
```ts
56+
import { getContractEvents } from "thirdweb";
57+
58+
const events = await getContractEvents({
59+
contract: DOODLES_CONTRACT,
60+
events: [transferEvent()],
61+
});
62+
```
63+
64+
This method falls back to RPC eth_getLogs if the indexer is not available.
65+
66+
You can also use the dedicated indexer function via the Insight export
67+
68+
```ts
69+
import { Insight } from "thirdweb";
70+
71+
const events = await Insight.getContractEvents({
72+
client,
73+
chains: [sepolia],
74+
contractAddress: "0x1234567890123456789012345678901234567890",
75+
event: transferEvent(),
76+
decodeLogs: true,
77+
});
78+
```
79+
80+
- [#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
81+
82+
- Updated dependencies [[`185d2f3`](https://github.com/thirdweb-dev/js/commit/185d2f309c349e37ac84bd3a2ce5a1c9c7011083)]:
83+
- @thirdweb-dev/[email protected]
84+
385
## 5.94.2
486

587
### Patch Changes

0 commit comments

Comments
 (0)