Skip to content

Commit 9989c3b

Browse files
update dependencies
1 parent fb4d0a2 commit 9989c3b

File tree

34 files changed

+400
-289
lines changed

34 files changed

+400
-289
lines changed

.changeset/violet-tables-travel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Updated dependencies

apps/dashboard/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"ioredis": "^5.4.1",
6969
"ipaddr.js": "^2.2.0",
7070
"lucide-react": "0.468.0",
71-
"next": "15.1.3",
71+
"next": "15.1.4",
7272
"next-plausible": "^3.12.4",
7373
"next-themes": "^0.4.4",
7474
"nextjs-toploader": "^1.6.12",
@@ -104,8 +104,8 @@
104104
"devDependencies": {
105105
"@chakra-ui/cli": "^2.4.1",
106106
"@chromatic-com/storybook": "3.2.2",
107-
"@next/bundle-analyzer": "15.1.0",
108-
"@next/eslint-plugin-next": "15.1.3",
107+
"@next/bundle-analyzer": "15.1.4",
108+
"@next/eslint-plugin-next": "15.1.4",
109109
"@playwright/test": "1.49.1",
110110
"@storybook/addon-essentials": "8.4.7",
111111
"@storybook/addon-interactions": "8.4.7",

apps/playground-web/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"fix": "eslint ./src --fix"
1414
},
1515
"dependencies": {
16-
"@abstract-foundation/agw-client": "^1.0.1",
17-
"@abstract-foundation/agw-react": "^1.0.1",
16+
"@abstract-foundation/agw-client": "^1.3.0",
17+
"@abstract-foundation/agw-react": "^1.4.1",
1818
"@radix-ui/react-accordion": "^1.2.2",
1919
"@radix-ui/react-checkbox": "^1.1.3",
2020
"@radix-ui/react-dialog": "1.1.4",
@@ -34,7 +34,7 @@
3434
"class-variance-authority": "^0.7.1",
3535
"clsx": "^2.1.1",
3636
"lucide-react": "0.468.0",
37-
"next": "15.1.3",
37+
"next": "15.1.4",
3838
"next-themes": "^0.4.4",
3939
"prettier": "3.3.3",
4040
"react": "19.0.0",

apps/portal/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@dirtycajunrice/klee": "^1.0.6",
2222
"@mdx-js/loader": "^2.3.0",
2323
"@mdx-js/react": "^2.3.0",
24-
"@next/mdx": "15.1.0",
24+
"@next/mdx": "15.1.4",
2525
"@radix-ui/react-dialog": "1.1.4",
2626
"@radix-ui/react-dropdown-menu": "^2.1.3",
2727
"@radix-ui/react-select": "^2.1.3",
@@ -35,7 +35,7 @@
3535
"flexsearch": "^0.7.43",
3636
"github-slugger": "^2.0.0",
3737
"lucide-react": "0.468.0",
38-
"next": "15.1.3",
38+
"next": "15.1.4",
3939
"nextjs-toploader": "^1.6.12",
4040
"node-html-parser": "^6.1.13",
4141
"posthog-js": "1.67.1",
@@ -53,7 +53,7 @@
5353
"typedoc-better-json": "0.9.4"
5454
},
5555
"devDependencies": {
56-
"@next/eslint-plugin-next": "15.1.3",
56+
"@next/eslint-plugin-next": "15.1.4",
5757
"@types/flexsearch": "^0.7.6",
5858
"@types/mdx": "^2.0.13",
5959
"@types/node": "22.10.2",

apps/wallet-ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"clsx": "^2.1.1",
2222
"cmdk": "^1.0.4",
2323
"lucide-react": "0.468.0",
24-
"next": "15.1.3",
24+
"next": "15.1.4",
2525
"next-themes": "^0.4.4",
2626
"react": "19.0.0",
2727
"react-dom": "19.0.0",
@@ -35,7 +35,7 @@
3535
"zod": "3.24.1"
3636
},
3737
"devDependencies": {
38-
"@next/eslint-plugin-next": "15.1.3",
38+
"@next/eslint-plugin-next": "15.1.4",
3939
"@types/node": "22.10.2",
4040
"@types/react": "19.0.2",
4141
"@types/react-dom": "19.0.3",

packages/thirdweb/package.json

Lines changed: 20 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -132,63 +132,25 @@
132132
},
133133
"typesVersions": {
134134
"*": {
135-
"adapters/*": [
136-
"./dist/types/exports/adapters/*.d.ts"
137-
],
138-
"auth": [
139-
"./dist/types/exports/auth.d.ts"
140-
],
141-
"chains": [
142-
"./dist/types/exports/chains.d.ts"
143-
],
144-
"contract": [
145-
"./dist/types/exports/contract.d.ts"
146-
],
147-
"deploys": [
148-
"./dist/types/exports/deploys.d.ts"
149-
],
150-
"event": [
151-
"./dist/types/exports/event.d.ts"
152-
],
153-
"extensions/*": [
154-
"./dist/types/exports/extensions/*.d.ts"
155-
],
156-
"pay": [
157-
"./dist/types/exports/pay.d.ts"
158-
],
159-
"react": [
160-
"./dist/types/exports/react.d.ts"
161-
],
162-
"react-native": [
163-
"./dist/types/exports/react-native.d.ts"
164-
],
165-
"rpc": [
166-
"./dist/types/exports/rpc.d.ts"
167-
],
168-
"storage": [
169-
"./dist/types/exports/storage.d.ts"
170-
],
171-
"transaction": [
172-
"./dist/types/exports/transaction.d.ts"
173-
],
174-
"utils": [
175-
"./dist/types/exports/utils.d.ts"
176-
],
177-
"wallets": [
178-
"./dist/types/exports/wallets.d.ts"
179-
],
180-
"wallets/*": [
181-
"./dist/types/exports/wallets/*.d.ts"
182-
],
183-
"modules": [
184-
"./dist/types/exports/modules.d.ts"
185-
],
186-
"social": [
187-
"./dist/types/exports/social.d.ts"
188-
],
189-
"ai": [
190-
"./dist/types/exports/ai.d.ts"
191-
]
135+
"adapters/*": ["./dist/types/exports/adapters/*.d.ts"],
136+
"auth": ["./dist/types/exports/auth.d.ts"],
137+
"chains": ["./dist/types/exports/chains.d.ts"],
138+
"contract": ["./dist/types/exports/contract.d.ts"],
139+
"deploys": ["./dist/types/exports/deploys.d.ts"],
140+
"event": ["./dist/types/exports/event.d.ts"],
141+
"extensions/*": ["./dist/types/exports/extensions/*.d.ts"],
142+
"pay": ["./dist/types/exports/pay.d.ts"],
143+
"react": ["./dist/types/exports/react.d.ts"],
144+
"react-native": ["./dist/types/exports/react-native.d.ts"],
145+
"rpc": ["./dist/types/exports/rpc.d.ts"],
146+
"storage": ["./dist/types/exports/storage.d.ts"],
147+
"transaction": ["./dist/types/exports/transaction.d.ts"],
148+
"utils": ["./dist/types/exports/utils.d.ts"],
149+
"wallets": ["./dist/types/exports/wallets.d.ts"],
150+
"wallets/*": ["./dist/types/exports/wallets/*.d.ts"],
151+
"modules": ["./dist/types/exports/modules.d.ts"],
152+
"social": ["./dist/types/exports/social.d.ts"],
153+
"ai": ["./dist/types/exports/ai.d.ts"]
192154
}
193155
},
194156
"browser": {
@@ -228,7 +190,7 @@
228190
"mipd": "0.0.7",
229191
"ox": "0.4.2",
230192
"uqr": "0.1.2",
231-
"viem": "2.21.55"
193+
"viem": "2.22.15"
232194
},
233195
"peerDependencies": {
234196
"@aws-sdk/client-lambda": "^3",

packages/thirdweb/src/adapters/viem.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { getRpcClient } from "../rpc/rpc.js";
1919
import { estimateGas } from "../transaction/actions/estimate-gas.js";
2020
import { sendTransaction } from "../transaction/actions/send-transaction.js";
2121
import { prepareTransaction } from "../transaction/prepare-transaction.js";
22+
import { getAddress } from "../utils/address.js";
2223
import type { Account } from "../wallets/interfaces/wallet.js";
2324

2425
/**
@@ -201,7 +202,7 @@ export async function toViemContract<const TAbi extends Abi>(options: {
201202
thirdwebContract: ThirdwebContract<TAbi>;
202203
}): Promise<GetContractReturnType<TAbi>> {
203204
return {
204-
address: options.thirdwebContract.address,
205+
address: getAddress(options.thirdwebContract.address),
205206
abi: await resolveContractAbi(options.thirdwebContract),
206207
};
207208
}
@@ -310,7 +311,7 @@ function toViemWalletClient(options: ToViemWalletClientOptions): WalletClient {
310311

311312
return createWalletClient({
312313
transport,
313-
account: account.address,
314+
account: getAddress(account.address),
314315
chain: viemChain,
315316
key: "thirdweb-wallet",
316317
});

packages/thirdweb/src/auth/verify-hash.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { type ThirdwebContract, getContract } from "../contract/contract.js";
99
import { isValidSignature } from "../extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.js";
1010
import { eth_call } from "../rpc/actions/eth_call.js";
1111
import { getRpcClient } from "../rpc/rpc.js";
12+
import type { Address } from "../utils/address.js";
1213
import { isZkSyncChain } from "../utils/any-evm/zksync/isZkSyncChain.js";
1314
import { isContractDeployed } from "../utils/bytecode/is-contract-deployed.js";
1415
import { fromBytes } from "../utils/encoding/from-bytes.js";
@@ -27,7 +28,8 @@ export type VerifyHashParams = {
2728
};
2829
};
2930

30-
const ZKSYNC_VALIDATOR_ADDRESS = "0xfB688330379976DA81eB64Fe4BF50d7401763B9C";
31+
const ZKSYNC_VALIDATOR_ADDRESS: Address =
32+
"0xfB688330379976DA81eB64Fe4BF50d7401763B9C";
3133

3234
/**
3335
* @description Verify that an address created the provided signature for a given hash using [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492). This function is interoperable with all wallet types, including EOAs.
@@ -120,7 +122,7 @@ export async function verifyHash({
120122
})();
121123

122124
let verificationData: {
123-
to?: string;
125+
to?: Address;
124126
data: Hex;
125127
};
126128

packages/thirdweb/src/contract/actions/get-bytecode.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import type { Abi } from "abitype";
21
import { eth_getCode } from "../../rpc/actions/eth_getCode.js";
32
import { getRpcClient } from "../../rpc/rpc.js";
43
import type { Hex } from "../../utils/encoding/hex.js";
54
import type { ThirdwebContract } from "../contract.js";
65

7-
const BYTECODE_CACHE = new WeakMap<ThirdwebContract<Abi>, Promise<Hex>>();
6+
const BYTECODE_CACHE = new WeakMap<ThirdwebContract, Promise<Hex>>();
87

98
/**
109
* Retrieves the bytecode of a contract.
@@ -17,9 +16,7 @@ const BYTECODE_CACHE = new WeakMap<ThirdwebContract<Abi>, Promise<Hex>>();
1716
* ```
1817
* @contract
1918
*/
20-
export function getBytecode<abi extends Abi>(
21-
contract: ThirdwebContract<abi>,
22-
): Promise<Hex> {
19+
export function getBytecode(contract: ThirdwebContract): Promise<Hex> {
2320
if (BYTECODE_CACHE.has(contract)) {
2421
return BYTECODE_CACHE.get(contract) as Promise<Hex>;
2522
}

packages/thirdweb/src/contract/actions/resolve-abi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type Abi, formatAbi, parseAbi } from "abitype";
22
import { download } from "../../storage/download.js";
33
import { getClientFetch } from "../../utils/fetch.js";
4-
import type { ThirdwebContract } from "../contract.js";
4+
import { type ThirdwebContract, getContract } from "../contract.js";
55

66
const ABI_RESOLUTION_CACHE = new WeakMap<ThirdwebContract<Abi>, Promise<Abi>>();
77

@@ -419,10 +419,10 @@ async function getAbisForPlugins(
419419
): Promise<Abi[]> {
420420
return Promise.all(
421421
options.plugins.map((pluginAddress) => {
422-
const newContract = {
422+
const newContract = getContract({
423423
...options.contract,
424424
address: pluginAddress,
425-
};
425+
});
426426
// if we have a method passed in that tells us how to resove the sub-api, use that
427427
if (options.resolveSubAbi) {
428428
return options.resolveSubAbi(newContract);

0 commit comments

Comments
 (0)