Skip to content

Commit b6caee9

Browse files
update dependencies
1 parent fb4d0a2 commit b6caee9

File tree

38 files changed

+342
-343
lines changed

38 files changed

+342
-343
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/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_components/claim-conditions/claim-conditions-form/hooks.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
toTokens,
55
toUnits,
66
} from "thirdweb";
7+
import { getContract } from "thirdweb/contract";
78
import type { OverrideEntry } from "thirdweb/dist/types/utils/extensions/drops/types";
89
import type { Prettify } from "thirdweb/dist/types/utils/type-utils";
910
import { getContractMetadata } from "thirdweb/extensions/common";
@@ -71,7 +72,10 @@ export async function getClaimPhasesInLegacyFormat(
7172
conditions.map(async (condition) => {
7273
const [currencyMetadata, metadata, contractMetadata] = await Promise.all([
7374
await ERC20Ext.getCurrencyMetadata({
74-
contract: { ...options.contract, address: condition.currency },
75+
contract: getContract({
76+
...options.contract,
77+
address: condition.currency,
78+
}),
7579
}).then((m) => ({
7680
...m,
7781
displayValue: toTokens(condition.pricePerToken, m.decimals),

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { defineChain } from "../utils.js";
2+
3+
/**
4+
* @chain
5+
*/
6+
export const abstract = /* @__PURE__ */ defineChain({
7+
id: 2741,
8+
name: "Abstract",
9+
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
10+
blockExplorers: [
11+
{
12+
name: "Abstract Block Explorer",
13+
url: "https://explorer.abs.xyz",
14+
},
15+
],
16+
});

0 commit comments

Comments
 (0)