Skip to content

Commit e1f4901

Browse files
[SDK] Remove page and set up redirect (#7565)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent 028f871 commit e1f4901

File tree

6 files changed

+34
-116
lines changed

6 files changed

+34
-116
lines changed

apps/portal/public/llms-full.txt

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -5533,60 +5533,7 @@ let returnType: Promise<string>;
55335533
The deployed contract address.
55345534
---
55355535

5536-
## DEPLOY.deployPackContract
55375536

5538-
Deprecated
5539-
5540-
\[Pack contract is incompatible with Pectra update. Support for this contract is being removed in next release.\]
5541-
5542-
Deploy a thirdweb Pack contract
5543-
5544-
### Example
5545-
5546-
```ts
5547-
import { deployPackContract } from "thirdweb/extensions/deploy";
5548-
5549-
const packAddress = await deployPackContract({
5550-
account,
5551-
client,
5552-
chain,
5553-
params: {
5554-
name: "Pack contract name",
5555-
symbol: "PACK1155",
5556-
},
5557-
});
5558-
```
5559-
5560-
```ts
5561-
function deployPackContract(options: {
5562-
account: Account;
5563-
chain: Readonly;
5564-
client: ThirdwebClient;
5565-
params: PackContractParams;
5566-
}): Promise<string>;
5567-
```
5568-
5569-
### Parameters
5570-
5571-
params for deploying [Pack contract](https://thirdweb.com/thirdweb.eth/Pack)
5572-
5573-
#### Type
5574-
5575-
```ts
5576-
let options: {
5577-
account: Account;
5578-
chain: Readonly;
5579-
client: ThirdwebClient;
5580-
params: PackContractParams;
5581-
};
5582-
```
5583-
5584-
### Returns
5585-
5586-
```ts
5587-
let returnType: Promise<string>;
5588-
```
5589-
---
55905537

55915538
## DEPLOY.deployPublishedContract
55925539

apps/portal/public/llms.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
* [DEPLOY.deployERC1155Contract](https://portal.thirdweb.com/references/typescript/v5/deploy/deployERC1155Contract): Deploys an thirdweb ERC1155 contract of the given type. On chains where the thirdweb infrastructure contracts are not deployed, this function will deploy them as well.
136136
* [DEPLOY.deployERC20Contract](https://portal.thirdweb.com/references/typescript/v5/deploy/deployERC20Contract): Deploys an thirdweb ERC20 contract of the given type. On chains where the thirdweb infrastructure contracts are not deployed, this function will deploy them as well.
137137
* [DEPLOY.deployERC721Contract](https://portal.thirdweb.com/references/typescript/v5/deploy/deployERC721Contract): Deploys an thirdweb ERC721 contract of the given type. On chains where the thirdweb infrastructure contracts are not deployed, this function will deploy them as well.
138-
* [DEPLOY.deployPackContract](https://portal.thirdweb.com/references/typescript/v5/deploy/deployPackContract): \[Pack contract is incompatible with Pectra update. Support for this contract is being removed in next release.\]
138+
139139
* [DEPLOY.deployPublishedContract](https://portal.thirdweb.com/references/typescript/v5/deploy/deployPublishedContract): Deploy an instance of a published contract on a given chain
140140
* [DEPLOY.deploySplitContract](https://portal.thirdweb.com/references/typescript/v5/deploy/deploySplitContract): Deploys a thirdweb [Split contract](https://thirdweb.com/thirdweb.eth/Split)On chains where the thirdweb infrastructure contracts are not deployed, this function will deploy them as well.
141141
* [DEPLOY.prepareDeterministicDeployTransaction](https://portal.thirdweb.com/references/typescript/v5/deploy/prepareDeterministicDeployTransaction): Deploy a contract deterministically - will maintain the same address across chains. This is meant to be used with published contracts configured with the 'direct deploy' method. Under the hood, this uses a keyless transaction with a common create2 factory.

apps/portal/redirects.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,8 @@ const typescriptRedirects = {
369369
"/typescript/sdk.thirdwebsdk.fromwallet":
370370
"/references/typescript/v4/ThirdwebSDK#fromWallet",
371371
"/typescript/sdk.thirdwebsdk.smartcontract": "/typescript/v4/extensions",
372+
// v5 deploy redirects
373+
"/references/typescript/v5/deploy/deployPackContract": "/contracts",
372374
};
373375

374376
const reactNativeRedirects = {
@@ -803,7 +805,7 @@ const contractRedirects = {
803805
"/contracts/explore/pre-built-contracts/nft-drop",
804806
"/pre-built-contracts/open-edition-erc721":
805807
"/contracts/explore/pre-built-contracts/open-edition",
806-
"/pre-built-contracts/pack": "/contracts/explore/pre-built-contracts/pack",
808+
"/pre-built-contracts/pack": "/contracts",
807809
"/pre-built-contracts/signature-drop": "/contracts",
808810
"/pre-built-contracts/split": "/contracts/explore/pre-built-contracts/split",
809811
"/pre-built-contracts/stake-erc20":
@@ -816,6 +818,8 @@ const contractRedirects = {
816818
"/pre-built-contracts/token-drop":
817819
"/contracts/explore/pre-built-contracts/token-drop",
818820
"/pre-built-contracts/vote": "/contracts/explore/pre-built-contracts/vote",
821+
// pack contract deprecation redirect
822+
"/contracts/explore/pre-built-contracts/pack": "/contracts",
819823
//publish
820824
"/publish": "/contracts/publish/overview",
821825
"/publish/deployment-options": "/contracts/publish/publish-options",
@@ -940,7 +944,7 @@ const otherRedirects = {
940944
// solidity sdk
941945
"/contracts/nft-drop": "/contracts/explore/pre-built-contracts/nft-drop",
942946
"/contracts/nfts-and-tokens": "/contracts",
943-
"/contracts/pack": "/contracts/explore/pre-built-contracts/pack",
947+
"/contracts/pack": "/contracts",
944948
"/contracts/split": "/contracts/explore/pre-built-contracts/split",
945949
"/contracts/token": "/contracts/explore/pre-built-contracts/token",
946950
"/contracts/token-drop": "/contracts/explore/pre-built-contracts/token-drop",

apps/portal/src/app/contracts/explore/pre-built-contracts/pack/page.mdx

Lines changed: 0 additions & 56 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { createMetadata, Details } from "@doc";
2+
3+
export const metadata = createMetadata({
4+
title: "Contracts FAQs",
5+
description: "Frequently asked questions about thirdweb contracts",
6+
image: {
7+
title: "Contracts FAQs",
8+
icon: "contract",
9+
},
10+
});
11+
12+
# Contracts FAQs
13+
14+
<Details summary="Why can I no longer deploy a pack contract?">
15+
Pack contracts were officially deprecated after the Pectra release from Ethereum. The pack contract implementation is incompatible with the Pectra update, which introduced breaking changes to the Ethereum protocol. As a result, support for pack contracts has been removed from thirdweb's deployment tools to ensure compatibility and security.
16+
17+
If you need similar functionality, consider using:
18+
- **Edition Drop contracts** for distributing multiple quantities of NFTs
19+
- **Marketplace contracts** for trading and bundle functionality
20+
- **Custom smart contracts** built with our modular contract framework
21+
22+
For existing pack contracts, they will continue to function on-chain, but new deployments are no longer supported.
23+
</Details>

apps/portal/src/app/contracts/sidebar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,6 @@ export const sidebar: SideBar = {
212212
href: `${prebuiltSlug}/multiwrap`,
213213
name: "Multiwrap",
214214
},
215-
{
216-
href: `${prebuiltSlug}/pack`,
217-
name: "Pack",
218-
},
219215
{
220216
href: `${prebuiltSlug}/split`,
221217
name: "Split",
@@ -810,6 +806,10 @@ export const sidebar: SideBar = {
810806
{
811807
isCollapsible: false,
812808
links: [
809+
{
810+
href: "/contracts/faq",
811+
name: "FAQs",
812+
},
813813
{
814814
links: [
815815
{

0 commit comments

Comments
 (0)