Skip to content

Commit 848c236

Browse files
authored
Remove cosmos from @sei-js/create-sei templates (#283)
* Removed Cosmos from @sei-js/create-sei - removed the cosmos templates - removed unnecessary config in commands - updated docs to remove unnecessary CLI commands * Added changeset for release
1 parent 3179b0a commit 848c236

95 files changed

Lines changed: 15 additions & 21098 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/tiny-mails-press.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sei-js/create-sei": patch
3+
---
4+
5+
Remove cosmos from templates

docs/create-sei/quick-start.mdx

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,6 @@ The CLI provides an interactive wizard to guide you through project setup:
3838
- **Vite** - Fast build tool with React
3939
</Step>
4040

41-
<Step title="Select Ecosystem">
42-
Choose your blockchain integration:
43-
- **EVM** - Ethereum-compatible development (recommended)
44-
- **Cosmos** - Native Cosmos SDK (deprecated per SIP-3)
45-
</Step>
46-
47-
<Step title="Pick Library (EVM only)">
48-
For EVM ecosystem, choose your wallet library:
49-
- **Wagmi** - Type-safe React hooks for Ethereum
50-
- **Ethers.js** - Traditional Ethereum library
51-
</Step>
52-
5341
<Step title="Project Setup">
5442
The CLI automatically configures:
5543
- TypeScript configuration
@@ -67,15 +55,11 @@ Skip the interactive setup by specifying all options directly:
6755
<CodeGroup>
6856

6957
```bash Next.js + Wagmi
70-
npx @sei-js/create-sei app -n my-app -f next -e evm -l wagmi
58+
npx @sei-js/create-sei app -n my-app -f next
7159
```
7260

7361
```bash Vite + Ethers.js
74-
npx @sei-js/create-sei app -n my-app -f vite -e evm
75-
```
76-
77-
```bash Next.js + CosmJS (Deprecated)
78-
npx @sei-js/create-sei app -n my-app -f next -e cosmos
62+
npx @sei-js/create-sei app -n my-app -f vite
7963
```
8064

8165
</CodeGroup>
@@ -86,8 +70,6 @@ npx @sei-js/create-sei app -n my-app -f next -e cosmos
8670
|------|-----------|-------------|---------|
8771
| `-n` | `--name` | Project name (must be valid package name) | Any valid npm package name |
8872
| `-f` | `--framework` | Frontend framework | `vite`, `next` |
89-
| `-e` | `--ecosystem` | Blockchain ecosystem | `evm`, `cosmos` |
90-
| `-l` | `--library` | EVM library (EVM ecosystem only) | `wagmi` |
9173

9274
<Info>
9375
**Template Combinations**: The CLI creates different project templates based on your flag combinations. See all available combinations on the [Templates page](/create-sei/templates).
@@ -99,7 +81,7 @@ After running the CLI, you'll have a fully configured Sei dApp ready for develop
9981

10082
- **Project Structure Created** - Organized file structure with components, hooks, and utilities properly scaffolded for your chosen framework and ecosystem.
10183

102-
- **Wallet Integration Ready** - Pre-configured wallet connections for your chosen ecosystem (Wagmi/Ethers.js for EVM, CosmJS for Cosmos) with connection hooks ready to use.
84+
- **Wallet Integration Ready** - Pre-configured wallet connections and connection hooks ready to use.
10385

10486
- **Development Tools Configured** - TypeScript, ESLint, Prettier, and Tailwind CSS automatically configured with sensible defaults and ready for immediate development.
10587

docs/create-sei/templates.mdx

Lines changed: 3 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ icon: "grid-2"
88
**New to @sei-js/create-sei?** Check out our [Quick Start guide](/create-sei/quick-start) for step-by-step instructions on getting started. This page is a reference for all available template combinations.
99
</Info>
1010

11-
## Next.js Templates
12-
13-
Choose from these Next.js-based templates for building production-ready frontend dApps with server-side rendering, SEO optimization, and full-stack capabilities. Each template includes pre-configured wallet connections and Sei blockchain integration.
11+
## Choose a Template
1412

1513
<CardGroup cols={1}>
1614
<Card
@@ -32,56 +30,6 @@ Choose from these Next.js-based templates for building production-ready frontend
3230
```
3331
</Card>
3432

35-
<Card
36-
title="Next.js + Ethers.js (EVM)"
37-
icon="react"
38-
>
39-
Next.js application using Ethers.js for blockchain interactions with custom React hooks for wallet management. Includes pre-configured Sei precompile contract integrations for native blockchain functionality like token operations, staking, and governance. Ideal for developers familiar with Ethers.js who need direct access to Sei's unique features.
40-
41-
<br/>
42-
43-
**CLI Flags:** `-f next -e evm`
44-
45-
<br/>
46-
47-
**Tech Stack:** `Next.js 14` `Ethers.js v6` `Custom Hooks` `Sei Precompiles` `Tailwind CSS`
48-
49-
```bash
50-
npx @sei-js/create-sei app -n my-app -f next -e evm
51-
```
52-
</Card>
53-
54-
<Card
55-
title="Next.js + CosmJS (Cosmos) - Deprecated"
56-
icon="atom"
57-
>
58-
<Warning>
59-
**Deprecated**: CosmWasm and Cosmos functionality will be removed from Sei as part of [SIP-3](https://github.com/sei-protocol/sips/blob/main/sips/sip-3.md). Please use EVM templates for new projects.
60-
</Warning>
61-
62-
Legacy Next.js application with CosmJS for Cosmos SDK interactions and Keplr wallet integration. Supports native Cosmos transaction signing and IBC transfers. Only recommended for maintaining existing Cosmos-based applications before migrating to EVM templates.
63-
64-
<br/>
65-
66-
**CLI Flags:** `-f next -e cosmos`
67-
68-
<br/>
69-
70-
**Tech Stack:** `Next.js 14` `CosmJS` `Keplr Wallet` `Cosmos SDK` `Tailwind CSS`
71-
72-
```bash
73-
npx @sei-js/create-sei app -n my-app -f next -e cosmos
74-
```
75-
</Card>
76-
</CardGroup>
77-
78-
---
79-
80-
## Vite Templates
81-
82-
Select from these Vite-based templates for rapid frontend dApp development with instant hot module replacement and lightning-fast build times. Perfect for prototyping, single-page applications, and development environments requiring quick iteration cycles.
83-
84-
<CardGroup cols={1}>
8533
<Card
8634
title="Vite + Wagmi (EVM)"
8735
icon="bolt"
@@ -100,53 +48,12 @@ Select from these Vite-based templates for rapid frontend dApp development with
10048
npx @sei-js/create-sei app -n my-app -f vite -e evm -l wagmi
10149
```
10250
</Card>
103-
104-
<Card
105-
title="Vite + Ethers.js (EVM)"
106-
icon="bolt"
107-
>
108-
Lightweight Vite application with Ethers.js for direct blockchain interactions and custom wallet connection setup. Includes Sei precompile contract factories for accessing native functionality like bank operations, staking rewards, and oracle price feeds. Best for developers who prefer minimal abstractions and direct control over wallet connections.
109-
110-
<br/>
111-
112-
**CLI Flags:** `-f vite -e evm`
113-
114-
<br/>
115-
116-
**Tech Stack:** `Vite` `React 18` `TypeScript` `Ethers.js v6` `Sei Precompiles`
117-
118-
```bash
119-
npx @sei-js/create-sei app -n my-app -f vite -e evm
120-
```
121-
</Card>
122-
123-
<Card
124-
title="Vite + CosmJS (Cosmos) - Deprecated"
125-
icon="atom"
126-
>
127-
<Warning>
128-
**Deprecated**: CosmWasm and Cosmos functionality will be removed from Sei as part of [SIP-3](https://github.com/sei-protocol/sips/blob/main/sips/sip-3.md). Please use EVM templates for new projects.
129-
</Warning>
130-
131-
Legacy Vite application with CosmJS for Cosmos SDK interactions, Keplr wallet integration, and native Cosmos transaction signing. Supports IBC transfers and CosmWasm contract interactions. Only use for maintaining existing Cosmos applications during the transition period to EVM-based architecture.
132-
133-
<br/>
134-
135-
**CLI Flags:** `-f vite -e cosmos`
136-
137-
<br/>
138-
139-
**Tech Stack:** `Vite` `React 18` `TypeScript` `CosmJS` `Keplr Wallet`
140-
141-
```bash
142-
npx @sei-js/create-sei app -n my-app -f vite -e cosmos
143-
```
144-
</Card>
14551
</CardGroup>
14652

53+
---
14754
## What's Included
14855

149-
Every template includes these essential features:
56+
Each template includes these essential features:
15057

15158
<CardGroup cols={2}>
15259
<Card title="Wallet Connection" icon="wallet">

docs/create-sei/welcome.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ icon: "hammer"
99
`@sei-js/create-sei` is a CLI tool that scaffolds production-ready Sei dApps in seconds. Choose from EVM or Cosmos templates with Next.js/Vite, modern wallet integration, and TypeScript support.
1010

1111
```bash
12-
npx @sei-js/create-sei app -n my-sei-app
12+
npx @sei-js/create-sei app -n my-sei-app -f next
1313
```
1414

1515
<Warning>
@@ -20,9 +20,6 @@ npx @sei-js/create-sei app -n my-sei-app
2020
<Card title="EVM Templates" icon="ethereum">
2121
Modern Ethereum-compatible development with Wagmi/Viem or Ethers.js
2222
</Card>
23-
<Card title="Cosmos Templates" icon="atom">
24-
Native Cosmos SDK integration (deprecated per SIP-3)
25-
</Card>
2623
<Card title="Multiple Frameworks" icon="layer-group">
2724
Next.js for full-stack apps, Vite for lightweight builds
2825
</Card>
468 Bytes
Binary file not shown.

packages/create-sei/src/main.ts

Lines changed: 1 addition & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,9 @@ enum FrontendScaffolding {
3030
Next = 'next'
3131
}
3232

33-
export enum RPCIntegrationType {
34-
EVM = 'evm',
35-
CosmJS = 'cosmos'
36-
}
37-
38-
export enum EVMLibrary {
39-
Wagmi = 'wagmi'
40-
}
41-
4233
interface WizardOptions {
4334
name?: string;
4435
framework?: FrontendScaffolding;
45-
ecosystem?: RPCIntegrationType;
46-
library?: EVMLibrary;
4736
}
4837

4938
const promptFramework = async () => {
@@ -59,32 +48,6 @@ const promptFramework = async () => {
5948
return appFramework;
6049
};
6150

62-
const promptRpcIntegrations = async () => {
63-
const { rpcIntegrationType } = await inquirer.prompt([
64-
{
65-
type: 'list',
66-
name: 'rpcIntegrationType',
67-
message: 'Select the wallet connection type you want to include:',
68-
choices: Object.values(RPCIntegrationType)
69-
}
70-
]);
71-
72-
return rpcIntegrationType;
73-
};
74-
75-
const promptEVMLibrary = async () => {
76-
const { evmLibrary } = await inquirer.prompt([
77-
{
78-
type: 'list',
79-
name: 'evmLibrary',
80-
message: 'Choose your preferred EVM library:',
81-
choices: Object.values(EVMLibrary)
82-
}
83-
]);
84-
85-
return evmLibrary;
86-
};
87-
8851
function isValidDirectoryName(dirName) {
8952
const illegalRe = /[<>:"/\\|?*]/g;
9053
const windowsReservedRe = /^(con|prn|aux|nul|com[1-9]|lpt[1-9])$/i;
@@ -121,22 +84,6 @@ const validateOptions = (options: WizardOptions): boolean => {
12184
}
12285
}
12386

124-
if (options.ecosystem) {
125-
const validEcosystems = Object.values(RPCIntegrationType);
126-
if (!validEcosystems.includes(options.ecosystem)) {
127-
console.log(`Invalid Ecosystem '${options.ecosystem}' provided. Framework must be one of: [${validEcosystems.join(', ')}]`);
128-
valid = false;
129-
}
130-
}
131-
132-
if (options.library) {
133-
const validEVMLibraries = Object.values(EVMLibrary);
134-
if (!validEVMLibraries.includes(options.library)) {
135-
console.log(`Invalid EVM Library '${options.library}' provided. Framework must be one of: [${validEVMLibraries.join(', ')}]`);
136-
valid = false;
137-
}
138-
}
139-
14087
return valid;
14188
};
14289

@@ -166,12 +113,8 @@ async function runWizard(options: WizardOptions): Promise<void> {
166113
}
167114

168115
const appFramework = options.framework || (await promptFramework());
169-
let appConnectionType = options.ecosystem || (await promptRpcIntegrations());
170-
if (appConnectionType === RPCIntegrationType.EVM) {
171-
appConnectionType = options.library || (await promptEVMLibrary());
172-
}
173116

174-
const templateName = `${appFramework}-${appConnectionType}-template`;
117+
const templateName = `${appFramework}-template`;
175118
const templatePath = path.join(__dirname, 'templates', templateName);
176119
const dst = path.join(process.cwd(), dAppName);
177120
await fs.promises.cp(templatePath, dst, { recursive: true });
@@ -185,8 +128,6 @@ program
185128
.description('Create a new SEI dApp')
186129
.option('-n, --name <name>', 'Specify the name of your dApp. Name must be a valid package name.')
187130
.option('-f, --framework <framework>', `Specify the app framework to use: [${Object.values(FrontendScaffolding).join(', ')}]`)
188-
.option('-e, --ecosystem <ecosystem>', `Specify the ecosystem to use: [${Object.values(RPCIntegrationType).join(', ')}]`)
189-
.option('-l, --library <library>', `Specify the EVM library to use: [${Object.values(EVMLibrary).join(', ')}]. Only used if ecosystem chosen is 'EVM'`)
190131
.action(async (options: WizardOptions) => {
191132
try {
192133
await runWizard(options);

packages/create-sei/templates/next-cosmos-template/README.md

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

packages/create-sei/templates/next-cosmos-template/next.config.mjs

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

0 commit comments

Comments
 (0)