Skip to content

Commit 1e74b5d

Browse files
Version Packages
1 parent a3e7300 commit 1e74b5d

File tree

12 files changed

+189
-138
lines changed

12 files changed

+189
-138
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/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: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,85 @@
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+
- Updated dependencies [[`185d2f3`](https://github.com/thirdweb-dev/js/commit/185d2f309c349e37ac84bd3a2ce5a1c9c7011083)]:
81+
- @thirdweb-dev/[email protected]
82+
383
## 5.94.2
484

585
### Patch Changes

packages/thirdweb/package.json

Lines changed: 61 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "thirdweb",
3-
"version": "5.94.2",
3+
"version": "5.95.0",
44
"repository": {
55
"type": "git",
66
"url": "git+https://github.com/thirdweb-dev/js.git#main"
@@ -142,26 +142,66 @@
142142
},
143143
"typesVersions": {
144144
"*": {
145-
"adapters/*": ["./dist/types/exports/adapters/*.d.ts"],
146-
"auth": ["./dist/types/exports/auth.d.ts"],
147-
"chains": ["./dist/types/exports/chains.d.ts"],
148-
"contract": ["./dist/types/exports/contract.d.ts"],
149-
"deploys": ["./dist/types/exports/deploys.d.ts"],
150-
"event": ["./dist/types/exports/event.d.ts"],
151-
"extensions/*": ["./dist/types/exports/extensions/*.d.ts"],
152-
"pay": ["./dist/types/exports/pay.d.ts"],
153-
"react": ["./dist/types/exports/react.d.ts"],
154-
"react-native": ["./dist/types/exports/react-native.d.ts"],
155-
"rpc": ["./dist/types/exports/rpc.d.ts"],
156-
"storage": ["./dist/types/exports/storage.d.ts"],
157-
"transaction": ["./dist/types/exports/transaction.d.ts"],
158-
"utils": ["./dist/types/exports/utils.d.ts"],
159-
"wallets": ["./dist/types/exports/wallets.d.ts"],
160-
"wallets/*": ["./dist/types/exports/wallets/*.d.ts"],
161-
"modules": ["./dist/types/exports/modules.d.ts"],
162-
"social": ["./dist/types/exports/social.d.ts"],
163-
"ai": ["./dist/types/exports/ai.d.ts"],
164-
"bridge": ["./dist/types/exports/bridge.d.ts"]
145+
"adapters/*": [
146+
"./dist/types/exports/adapters/*.d.ts"
147+
],
148+
"auth": [
149+
"./dist/types/exports/auth.d.ts"
150+
],
151+
"chains": [
152+
"./dist/types/exports/chains.d.ts"
153+
],
154+
"contract": [
155+
"./dist/types/exports/contract.d.ts"
156+
],
157+
"deploys": [
158+
"./dist/types/exports/deploys.d.ts"
159+
],
160+
"event": [
161+
"./dist/types/exports/event.d.ts"
162+
],
163+
"extensions/*": [
164+
"./dist/types/exports/extensions/*.d.ts"
165+
],
166+
"pay": [
167+
"./dist/types/exports/pay.d.ts"
168+
],
169+
"react": [
170+
"./dist/types/exports/react.d.ts"
171+
],
172+
"react-native": [
173+
"./dist/types/exports/react-native.d.ts"
174+
],
175+
"rpc": [
176+
"./dist/types/exports/rpc.d.ts"
177+
],
178+
"storage": [
179+
"./dist/types/exports/storage.d.ts"
180+
],
181+
"transaction": [
182+
"./dist/types/exports/transaction.d.ts"
183+
],
184+
"utils": [
185+
"./dist/types/exports/utils.d.ts"
186+
],
187+
"wallets": [
188+
"./dist/types/exports/wallets.d.ts"
189+
],
190+
"wallets/*": [
191+
"./dist/types/exports/wallets/*.d.ts"
192+
],
193+
"modules": [
194+
"./dist/types/exports/modules.d.ts"
195+
],
196+
"social": [
197+
"./dist/types/exports/social.d.ts"
198+
],
199+
"ai": [
200+
"./dist/types/exports/ai.d.ts"
201+
],
202+
"bridge": [
203+
"./dist/types/exports/bridge.d.ts"
204+
]
165205
}
166206
},
167207
"browser": {

0 commit comments

Comments
 (0)