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
5 changes: 5 additions & 0 deletions .changeset/shaky-dragons-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Replace celo alfajores with celoSepoliaTestnet

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineChain } from "../utils.js";

/**
* @chain
*/
export const celoSepoliaTestnet = /* @__PURE__ */ defineChain({
blockExplorers: [
{
name: "Celo Sepolia Explorer",
url: "https://celo-sepolia.blockscout.com/",
},
],
id: 11142220,
name: "Celo Sepolia Testnet",
nativeCurrency: { decimals: 18, name: "CELO", symbol: "CELO-S" },
testnet: true,
});
Comment on lines +3 to +17
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion | 🟠 Major

Add comprehensive TSDoc documentation with example and custom tags.

The public export celoSepoliaTestnet is missing comprehensive TSDoc as required by the coding guidelines. Public symbols must include a description, at least one compiling @example block, and a custom annotation tag.

Based on coding guidelines.

Apply this diff:

 /**
+ * The Celo Sepolia Testnet chain.
+ *
+ * @example
+ * ```ts
+ * import { celoSepoliaTestnet } from "thirdweb/chains";
+ * const tx = await sendTransaction({
+ *   to: "0x...",
+ *   chain: celoSepoliaTestnet,
+ * });
+ * ```
+ * 
  * @chain
+ * @beta
  */

2 changes: 1 addition & 1 deletion packages/thirdweb/src/exports/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export { blastSepolia } from "../chains/chain-definitions/blast-sepolia.js";
export { bsc } from "../chains/chain-definitions/bsc.js";
export { bscTestnet } from "../chains/chain-definitions/bsc-testnet.js";
export { celo } from "../chains/chain-definitions/celo.js";
export { celoAlfajoresTestnet } from "../chains/chain-definitions/celo-alfajores-testnet.js";
export { celoSepoliaTestnet } from "../chains/chain-definitions/celo-sepolia-testnet.js";
export { coreMainnet } from "../chains/chain-definitions/core-mainnet.js";
export { coreTestnet } from "../chains/chain-definitions/core-testnet.js";
export { cronos } from "../chains/chain-definitions/cronos.js";
Expand Down
Loading