Skip to content

Commit cb1cff4

Browse files
committed
Deploy config updates
1 parent ca6c913 commit cb1cff4

File tree

4 files changed

+10
-292
lines changed

4 files changed

+10
-292
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/settings/ContractSettingsPage.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Flex, GridItem, SimpleGrid } from "@chakra-ui/react";
44
import type { ThirdwebContract } from "thirdweb";
55
import * as CommonExt from "thirdweb/extensions/common";
66
import { SettingsMetadata } from "./components/metadata";
7-
import { SettingsPlatformFees } from "./components/platform-fees";
87
import { SettingsPrimarySale } from "./components/primary-sale";
98
import { SettingsRoyalties } from "./components/royalties";
109

@@ -22,7 +21,6 @@ const ContractSettingsPageInner: React.FC<ContractSettingsPageProps> = ({
2221
isContractMetadataSupported,
2322
isPrimarySaleSupported,
2423
isRoyaltiesSupported,
25-
isPlatformFeesSupported,
2624
twAccount,
2725
}) => {
2826
return (
@@ -59,16 +57,6 @@ const ContractSettingsPageInner: React.FC<ContractSettingsPageProps> = ({
5957
/>
6058
</GridItem>
6159
)}
62-
63-
{contract && (
64-
<GridItem order={isPlatformFeesSupported ? 4 : 103}>
65-
<SettingsPlatformFees
66-
contract={contract}
67-
detectedState={isPlatformFeesSupported ? "enabled" : "disabled"}
68-
twAccount={twAccount}
69-
/>
70-
</GridItem>
71-
)}
7260
</SimpleGrid>
7361
</Flex>
7462
</Flex>

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/settings/components/platform-fees.tsx

Lines changed: 0 additions & 197 deletions
This file was deleted.

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ import {
5252
showRoyaltyFieldset,
5353
} from "./modular-contract-default-modules-fieldset";
5454
import { Param } from "./param";
55-
import { PlatformFeeFieldset } from "./platform-fee-fieldset";
5655
import { PrimarySaleFieldset } from "./primary-sale-fieldset";
5756
import { RoyaltyFieldset } from "./royalty-fieldset";
5857
import { type Recipient, SplitFieldset } from "./split-fieldset";
@@ -110,6 +109,9 @@ const voteParamsSet = new Set([
110109
"_initialVoteQuorumFraction",
111110
]);
112111

112+
const DEFAULT_FEE_BPS = 300;
113+
const DEFAULT_FEE_RECIPIENT = "0x0000000000000000000000000000000000000000"; // TODO
114+
113115
function checkTwPublisher(publisher: string | undefined) {
114116
switch (publisher) {
115117
case "deployer.thirdweb.eth":
@@ -440,9 +442,8 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
440442
name: params.contractMetadata?.name || "",
441443
contractURI: _contractURI,
442444
defaultAdmin: params.deployParams._defaultAdmin as string,
443-
platformFeeBps: Number(params.deployParams._platformFeeBps),
444-
platformFeeRecipient: params.deployParams
445-
._platformFeeRecipient as string,
445+
platformFeeBps: DEFAULT_FEE_BPS,
446+
platformFeeRecipient: DEFAULT_FEE_RECIPIENT,
446447
trustedForwarders: params.deployParams._trustedForwarders
447448
? JSON.parse(params.deployParams._trustedForwarders as string)
448449
: undefined,
@@ -457,6 +458,8 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
457458
payees,
458459
shares,
459460
_contractURI,
461+
_platformFeeBps: DEFAULT_FEE_BPS,
462+
_platformFeeRecipient: DEFAULT_FEE_RECIPIENT,
460463
};
461464

462465
const salt = params.deployDeterministic
@@ -514,6 +517,9 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
514517

515518
return (
516519
<>
520+
<p className="mb-3 text-muted-foreground text-sm">
521+
Placeholder text for default configs
522+
</p>
517523
<FormProvider {...form}>
518524
<Flex
519525
flexGrow={1}
@@ -702,8 +708,6 @@ export const CustomContractForm: React.FC<CustomContractFormProps> = ({
702708
/>
703709
)}
704710

705-
{hasPlatformFee && <PlatformFeeFieldset form={form} />}
706-
707711
{isSplit && <SplitFieldset form={form} />}
708712

709713
{hasTrustedForwarders && (

apps/dashboard/src/components/contract-components/contract-deploy-form/platform-fee-fieldset.tsx

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)