Skip to content

Commit b6f189c

Browse files
[SDK] update dependencies (#6057)
1 parent fb4d0a2 commit b6f189c

File tree

43 files changed

+366
-362
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+366
-362
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/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/modules/components/InstalledModulesTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { ScrollShadow } from "@/components/ui/ScrollShadow/ScrollShadow";
44
import { Alert, AlertTitle } from "@/components/ui/alert";
55
import type { Account as TWAccount } from "@3rdweb-sdk/react/hooks/useApi";
66
import { CircleSlash } from "lucide-react";
7-
import type { ContractOptions } from "thirdweb";
7+
import type { ThirdwebContract } from "thirdweb/contract";
88
import type { Account } from "thirdweb/wallets";
99
import { ModuleCard } from "./module-card";
1010
import { useAllModuleContractInfo } from "./moduleContractInfo";
1111

1212
export const InstalledModulesTable = (props: {
13-
contract: ContractOptions;
13+
contract: ThirdwebContract;
1414
installedModules: {
1515
data?: string[];
1616
isPending: boolean;

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/modules/components/ModuleForm.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ import { FormProvider, type UseFormReturn, useForm } from "react-hook-form";
1515
import { toast } from "sonner";
1616
import {
1717
type Chain,
18-
type ContractOptions,
1918
type ThirdwebClient,
19+
type ThirdwebContract,
20+
getContract,
2021
sendTransaction,
2122
waitForReceipt,
2223
} from "thirdweb";
@@ -47,7 +48,7 @@ type FormData = {
4748
};
4849

4950
type InstallModuleFormProps = {
50-
contract: ContractOptions;
51+
contract: ThirdwebContract;
5152
refetchModules: () => void;
5253
account: Account;
5354
installedModules: {
@@ -180,11 +181,13 @@ export const InstallModuleForm = (props: InstallModuleFormProps) => {
180181

181182
return Promise.all(
182183
moduleAddress.map(async (address) => {
183-
const result = await resolveImplementation({
184-
client,
185-
address,
186-
chain: contract.chain,
187-
});
184+
const result = await resolveImplementation(
185+
getContract({
186+
client,
187+
address,
188+
chain: contract.chain,
189+
}),
190+
);
188191

189192
if (!result) {
190193
throw new Error("Failed to fetch bytecode for module");

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/modules/components/module-card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { Suspense, useEffect, useState } from "react";
2323
import { ErrorBoundary, type FallbackProps } from "react-error-boundary";
2424
import { toast } from "sonner";
2525
import {
26-
type ContractOptions,
26+
type ThirdwebContract,
2727
getContract,
2828
sendTransaction,
2929
waitForReceipt,
@@ -35,7 +35,7 @@ import { useModuleContractInfo } from "./moduleContractInfo";
3535

3636
type ModuleCardProps = {
3737
moduleAddress: string;
38-
contract: ContractOptions;
38+
contract: ThirdwebContract;
3939
onRemoveModule: () => void;
4040
ownerAccount: Account | undefined;
4141
allModuleContractInfo: {

apps/dashboard/src/components/contract-components/contract-deploy-form/custom-contract.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { CircleAlertIcon, ExternalLinkIcon, InfoIcon } from "lucide-react";
2525
import Link from "next/link";
2626
import { useCallback, useMemo } from "react";
2727
import { FormProvider, type UseFormReturn, useForm } from "react-hook-form";
28-
import { ZERO_ADDRESS } from "thirdweb";
28+
import { ZERO_ADDRESS, getContract } from "thirdweb";
2929
import type { FetchDeployMetadataResult } from "thirdweb/contract";
3030
import {
3131
deployContractfromDeployMetadata,
@@ -567,11 +567,13 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
567567
const contractAddr = await deployMutation.mutateAsync(formData);
568568

569569
// send verification request - no need to await
570-
verifyContract({
571-
address: contractAddr,
572-
chain: walletChain,
573-
client: thirdwebClient,
574-
});
570+
verifyContract(
571+
getContract({
572+
address: contractAddr,
573+
chain: walletChain,
574+
client: thirdwebClient,
575+
}),
576+
);
575577

576578
trackEvent({
577579
category: "custom-contract",

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",

0 commit comments

Comments
 (0)