Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 0 additions & 53 deletions apps/portal/public/llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5533,60 +5533,7 @@ let returnType: Promise<string>;
The deployed contract address.
---

## DEPLOY.deployPackContract

Deprecated

\[Pack contract is incompatible with Pectra update. Support for this contract is being removed in next release.\]

Deploy a thirdweb Pack contract

### Example

```ts
import { deployPackContract } from "thirdweb/extensions/deploy";

const packAddress = await deployPackContract({
account,
client,
chain,
params: {
name: "Pack contract name",
symbol: "PACK1155",
},
});
```

```ts
function deployPackContract(options: {
account: Account;
chain: Readonly;
client: ThirdwebClient;
params: PackContractParams;
}): Promise<string>;
```

### Parameters

params for deploying [Pack contract](https://thirdweb.com/thirdweb.eth/Pack)

#### Type

```ts
let options: {
account: Account;
chain: Readonly;
client: ThirdwebClient;
params: PackContractParams;
};
```

### Returns

```ts
let returnType: Promise<string>;
```
---

## DEPLOY.deployPublishedContract

Expand Down
2 changes: 1 addition & 1 deletion apps/portal/public/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
* [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.
* [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.
* [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.
* [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.\]

* [DEPLOY.deployPublishedContract](https://portal.thirdweb.com/references/typescript/v5/deploy/deployPublishedContract): Deploy an instance of a published contract on a given chain
* [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.
* [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.
Expand Down
8 changes: 6 additions & 2 deletions apps/portal/redirects.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ const typescriptRedirects = {
"/typescript/sdk.thirdwebsdk.fromwallet":
"/references/typescript/v4/ThirdwebSDK#fromWallet",
"/typescript/sdk.thirdwebsdk.smartcontract": "/typescript/v4/extensions",
// v5 deploy redirects
"/references/typescript/v5/deploy/deployPackContract": "/contracts",
};

const reactNativeRedirects = {
Expand Down Expand Up @@ -803,7 +805,7 @@ const contractRedirects = {
"/contracts/explore/pre-built-contracts/nft-drop",
"/pre-built-contracts/open-edition-erc721":
"/contracts/explore/pre-built-contracts/open-edition",
"/pre-built-contracts/pack": "/contracts/explore/pre-built-contracts/pack",
"/pre-built-contracts/pack": "/contracts",
"/pre-built-contracts/signature-drop": "/contracts",
"/pre-built-contracts/split": "/contracts/explore/pre-built-contracts/split",
"/pre-built-contracts/stake-erc20":
Expand All @@ -816,6 +818,8 @@ const contractRedirects = {
"/pre-built-contracts/token-drop":
"/contracts/explore/pre-built-contracts/token-drop",
"/pre-built-contracts/vote": "/contracts/explore/pre-built-contracts/vote",
// pack contract deprecation redirect
"/contracts/explore/pre-built-contracts/pack": "/contracts",
//publish
"/publish": "/contracts/publish/overview",
"/publish/deployment-options": "/contracts/publish/publish-options",
Expand Down Expand Up @@ -940,7 +944,7 @@ const otherRedirects = {
// solidity sdk
"/contracts/nft-drop": "/contracts/explore/pre-built-contracts/nft-drop",
"/contracts/nfts-and-tokens": "/contracts",
"/contracts/pack": "/contracts/explore/pre-built-contracts/pack",
"/contracts/pack": "/contracts",
"/contracts/split": "/contracts/explore/pre-built-contracts/split",
"/contracts/token": "/contracts/explore/pre-built-contracts/token",
"/contracts/token-drop": "/contracts/explore/pre-built-contracts/token-drop",
Expand Down

This file was deleted.

23 changes: 23 additions & 0 deletions apps/portal/src/app/contracts/faq/page.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { createMetadata, Details } from "@doc";

export const metadata = createMetadata({
title: "Contracts FAQs",
description: "Frequently asked questions about thirdweb contracts",
image: {
title: "Contracts FAQs",
icon: "contract",
},
});

# Contracts FAQs

<Details summary="Why can I no longer deploy a pack contract?">
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.

If you need similar functionality, consider using:
- **Edition Drop contracts** for distributing multiple quantities of NFTs
- **Marketplace contracts** for trading and bundle functionality
- **Custom smart contracts** built with our modular contract framework

For existing pack contracts, they will continue to function on-chain, but new deployments are no longer supported.
</Details>
8 changes: 4 additions & 4 deletions apps/portal/src/app/contracts/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,6 @@ export const sidebar: SideBar = {
href: `${prebuiltSlug}/multiwrap`,
name: "Multiwrap",
},
{
href: `${prebuiltSlug}/pack`,
name: "Pack",
},
{
href: `${prebuiltSlug}/split`,
name: "Split",
Expand Down Expand Up @@ -810,6 +806,10 @@ export const sidebar: SideBar = {
{
isCollapsible: false,
links: [
{
href: "/contracts/faq",
name: "FAQs",
},
{
links: [
{
Expand Down
Loading