Skip to content

Commit a8ac98b

Browse files
committed
feat: allowedToCreateChains in TeamResponse (#6172)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on adding the `canCreatePublicChains` property to the `mocks.ts` and modifying its type in `api.ts` to enhance the API's capabilities regarding public chain creation. ### Detailed summary - Added `canCreatePublicChains: false` to the object in `mocks.ts`. - Updated the type of `canCreatePublicChains` in `api.ts` to `boolean | null`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 0781da9 commit a8ac98b

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.changeset/chatty-geese-burn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@thirdweb-dev/service-utils": patch
3+
---
4+
5+
add `canCreatePublicChains` to TeamResponse

packages/service-utils/src/core/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export type TeamResponse = {
5151
billingEmail: string | null;
5252
billingStatus: "noPayment" | "validPayment" | "invalidPayment" | null;
5353
growthTrialEligible: false;
54+
canCreatePublicChains: boolean | null;
5455
enabledScopes: ServiceName[];
5556
};
5657

packages/service-utils/src/mocks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export const validTeamResponse: TeamResponse = {
4646
billingEmail: "test@example.com",
4747
billingStatus: "noPayment",
4848
growthTrialEligible: false,
49+
canCreatePublicChains: false,
4950
enabledScopes: ["storage", "rpc", "bundler"],
5051
};
5152

0 commit comments

Comments
 (0)