@sei-js/create-sei 0.0.0-internal-20240718212405 → 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/templates/next-cosmos-template/src/app/components/Homepage/Examples.tsx +6 -6
- package/dist/templates/next-cosmos-template/src/app/favicon.ico +0 -0
- package/dist/templates/next-cosmos-template/src/app/index.css +1 -0
- package/dist/templates/next-cosmos-template/src/app/layout.tsx +2 -2
- package/dist/templates/next-wagmi-template/src/app/components/Homepage/Examples.tsx +9 -9
- package/dist/templates/next-wagmi-template/src/app/constants/chain.ts +1 -0
- package/dist/templates/next-wagmi-template/src/app/favicon.ico +0 -0
- package/dist/templates/next-wagmi-template/src/app/index.css +1 -0
- package/dist/templates/next-wagmi-template/src/app/layout.tsx +2 -2
- package/dist/templates/next-wagmi-template/yarn.lock +8 -13
- package/dist/templates/vite-cosmos-template/index.html +1 -2
- package/dist/templates/vite-cosmos-template/src/components/Homepage/Examples.tsx +6 -6
- package/dist/templates/vite-cosmos-template/src/index.css +1 -0
- package/dist/templates/vite-wagmi-template/index.html +1 -2
- package/dist/templates/vite-wagmi-template/src/components/Homepage/Examples.tsx +27 -27
- package/dist/templates/vite-wagmi-template/src/constants/chain.ts +4 -3
- package/dist/templates/vite-wagmi-template/src/index.css +2 -2
- package/dist/templates/vite-wagmi-template/yarn.lock +325 -244
- package/package.json +1 -1
- package/dist/templates/next-wagmi-template/public/next.svg +0 -1
- package/dist/templates/next-wagmi-template/public/vercel.svg +0 -1
- package/dist/templates/templates/next-cosmos-template/.eslintrc.json +0 -3
- package/dist/templates/templates/next-cosmos-template/README.md +0 -60
- package/dist/templates/templates/next-cosmos-template/next-env.d.ts +0 -5
- package/dist/templates/templates/next-cosmos-template/next.config.mjs +0 -14
- package/dist/templates/templates/next-cosmos-template/package.json +0 -31
- package/dist/templates/templates/next-cosmos-template/public/next.svg +0 -1
- package/dist/templates/templates/next-cosmos-template/public/sei-logotype.svg +0 -15
- package/dist/templates/templates/next-cosmos-template/public/vercel.svg +0 -1
- package/dist/templates/templates/next-cosmos-template/src/app/components/Homepage/Examples.tsx +0 -177
- package/dist/templates/templates/next-cosmos-template/src/app/components/Homepage/Homepage.css +0 -156
- package/dist/templates/templates/next-cosmos-template/src/app/components/Homepage/Homepage.tsx +0 -110
- package/dist/templates/templates/next-cosmos-template/src/app/components/WalletConnectButton/WalletConnectButton.tsx +0 -26
- package/dist/templates/templates/next-cosmos-template/src/app/components/Web3Provider.tsx +0 -39
- package/dist/templates/templates/next-cosmos-template/src/app/components/index.ts +0 -3
- package/dist/templates/templates/next-cosmos-template/src/app/constants/chain.ts +0 -16
- package/dist/templates/templates/next-cosmos-template/src/app/constants/index.ts +0 -1
- package/dist/templates/templates/next-cosmos-template/src/app/index.css +0 -171
- package/dist/templates/templates/next-cosmos-template/src/app/layout.tsx +0 -21
- package/dist/templates/templates/next-cosmos-template/src/app/page.tsx +0 -17
- package/dist/templates/templates/next-cosmos-template/tsconfig.json +0 -26
- package/dist/templates/templates/next-cosmos-template/yarn.lock +0 -9814
- package/dist/templates/templates/next-wagmi-template/.eslintrc.json +0 -3
- package/dist/templates/templates/next-wagmi-template/README.md +0 -58
- package/dist/templates/templates/next-wagmi-template/next-env.d.ts +0 -5
- package/dist/templates/templates/next-wagmi-template/next.config.mjs +0 -4
- package/dist/templates/templates/next-wagmi-template/package.json +0 -30
- package/dist/templates/templates/next-wagmi-template/public/sei-logotype.svg +0 -15
- package/dist/templates/templates/next-wagmi-template/src/app/components/Homepage/Examples.tsx +0 -271
- package/dist/templates/templates/next-wagmi-template/src/app/components/Homepage/Homepage.css +0 -156
- package/dist/templates/templates/next-wagmi-template/src/app/components/Homepage/Homepage.tsx +0 -113
- package/dist/templates/templates/next-wagmi-template/src/app/components/Web3Provider.tsx +0 -73
- package/dist/templates/templates/next-wagmi-template/src/app/components/index.ts +0 -2
- package/dist/templates/templates/next-wagmi-template/src/app/constants/chain.ts +0 -7
- package/dist/templates/templates/next-wagmi-template/src/app/constants/index.ts +0 -1
- package/dist/templates/templates/next-wagmi-template/src/app/index.css +0 -171
- package/dist/templates/templates/next-wagmi-template/src/app/layout.tsx +0 -21
- package/dist/templates/templates/next-wagmi-template/src/app/page.tsx +0 -21
- package/dist/templates/templates/next-wagmi-template/tsconfig.json +0 -26
- package/dist/templates/templates/next-wagmi-template/yarn.lock +0 -4809
- package/dist/templates/templates/vite-cosmos-template/.eslintrc.cjs +0 -18
- package/dist/templates/templates/vite-cosmos-template/README.md +0 -72
- package/dist/templates/templates/vite-cosmos-template/favicon.ico +0 -0
- package/dist/templates/templates/vite-cosmos-template/index.html +0 -16
- package/dist/templates/templates/vite-cosmos-template/package.json +0 -35
- package/dist/templates/templates/vite-cosmos-template/public/sei-logotype.svg +0 -15
- package/dist/templates/templates/vite-cosmos-template/src/App.tsx +0 -16
- package/dist/templates/templates/vite-cosmos-template/src/assets/react.svg +0 -1
- package/dist/templates/templates/vite-cosmos-template/src/components/Homepage/Examples.tsx +0 -177
- package/dist/templates/templates/vite-cosmos-template/src/components/Homepage/Homepage.css +0 -156
- package/dist/templates/templates/vite-cosmos-template/src/components/Homepage/Homepage.tsx +0 -102
- package/dist/templates/templates/vite-cosmos-template/src/components/WalletConnectButton/WalletConnectButton.tsx +0 -26
- package/dist/templates/templates/vite-cosmos-template/src/components/Web3Provider.tsx +0 -45
- package/dist/templates/templates/vite-cosmos-template/src/components/index.ts +0 -4
- package/dist/templates/templates/vite-cosmos-template/src/constants/chain.ts +0 -16
- package/dist/templates/templates/vite-cosmos-template/src/constants/index.ts +0 -1
- package/dist/templates/templates/vite-cosmos-template/src/index.css +0 -171
- package/dist/templates/templates/vite-cosmos-template/src/main.tsx +0 -12
- package/dist/templates/templates/vite-cosmos-template/src/vite-env.d.ts +0 -1
- package/dist/templates/templates/vite-cosmos-template/tsconfig.app.json +0 -27
- package/dist/templates/templates/vite-cosmos-template/tsconfig.json +0 -11
- package/dist/templates/templates/vite-cosmos-template/tsconfig.node.json +0 -14
- package/dist/templates/templates/vite-cosmos-template/vite.config.ts +0 -7
- package/dist/templates/templates/vite-cosmos-template/yarn.lock +0 -9323
- package/dist/templates/templates/vite-wagmi-template/.eslintrc.cjs +0 -18
- package/dist/templates/templates/vite-wagmi-template/README.md +0 -72
- package/dist/templates/templates/vite-wagmi-template/favicon.ico +0 -0
- package/dist/templates/templates/vite-wagmi-template/index.html +0 -12
- package/dist/templates/templates/vite-wagmi-template/package.json +0 -33
- package/dist/templates/templates/vite-wagmi-template/public/sei-logotype.svg +0 -15
- package/dist/templates/templates/vite-wagmi-template/src/App.tsx +0 -22
- package/dist/templates/templates/vite-wagmi-template/src/assets/react.svg +0 -1
- package/dist/templates/templates/vite-wagmi-template/src/components/Homepage/Examples.tsx +0 -269
- package/dist/templates/templates/vite-wagmi-template/src/components/Homepage/Homepage.css +0 -156
- package/dist/templates/templates/vite-wagmi-template/src/components/Homepage/Homepage.tsx +0 -106
- package/dist/templates/templates/vite-wagmi-template/src/components/Web3Provider.tsx +0 -71
- package/dist/templates/templates/vite-wagmi-template/src/constants/chain.ts +0 -6
- package/dist/templates/templates/vite-wagmi-template/src/constants/index.ts +0 -1
- package/dist/templates/templates/vite-wagmi-template/src/index.css +0 -170
- package/dist/templates/templates/vite-wagmi-template/src/main.tsx +0 -12
- package/dist/templates/templates/vite-wagmi-template/src/vite-env.d.ts +0 -1
- package/dist/templates/templates/vite-wagmi-template/tsconfig.app.json +0 -27
- package/dist/templates/templates/vite-wagmi-template/tsconfig.json +0 -11
- package/dist/templates/templates/vite-wagmi-template/tsconfig.node.json +0 -14
- package/dist/templates/templates/vite-wagmi-template/vite.config.ts +0 -10
- package/dist/templates/templates/vite-wagmi-template/yarn.lock +0 -4603
- package/dist/templates/vite-cosmos-template/_gitignore +0 -24
- package/dist/templates/vite-cosmos-template/public/vite.svg +0 -1
- package/dist/templates/vite-wagmi-template/_gitignore +0 -24
- package/dist/templates/vite-wagmi-template/public/vite.svg +0 -1
- /package/dist/templates/{templates/next-cosmos-template/src/app → vite-cosmos-template}/favicon.ico +0 -0
- /package/dist/templates/{templates/next-wagmi-template/src/app → vite-wagmi-template}/favicon.ico +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ARCTIC_1_SEI_COSMOS_KIT_CHAIN, ATLANTIC_2_SEI_COSMOS_KIT_CHAIN, PACIFIC_1_SEI_COSMOS_KIT_CHAIN } from '@sei-js/cosmjs';
|
|
2
|
-
|
|
3
|
-
export type Urls = {
|
|
4
|
-
rpc: string,
|
|
5
|
-
rest: string,
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const defaultUrls: {[chainName: string]: Urls} = {
|
|
9
|
-
[PACIFIC_1_SEI_COSMOS_KIT_CHAIN.chain_id]: {rpc: "https://rpc.sei-apis.com", rest: 'https://rest-arctic-1.sei-apis.com'},
|
|
10
|
-
[ATLANTIC_2_SEI_COSMOS_KIT_CHAIN.chain_id]: {rpc: "https://rpc-testnet.sei-apis.com", rest: "https://rest-testnet.sei-apis.com"},
|
|
11
|
-
[ARCTIC_1_SEI_COSMOS_KIT_CHAIN.chain_id]: {rpc: "https://rpc-arctic-1.sei-apis.com", rest: "https://rest-arctic-1.sei-apis.com"}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// Set your selected chain here
|
|
15
|
-
// To point to mainnet, use PACIFIC_1_SEI_COSMOS_KIT_CHAIN
|
|
16
|
-
export const selectedChain = ARCTIC_1_SEI_COSMOS_KIT_CHAIN
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './chain';
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
1. Use a more-intuitive box-sizing model.
|
|
3
|
-
*/
|
|
4
|
-
*, *::before, *::after {
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
}
|
|
7
|
-
/*
|
|
8
|
-
2. Remove default margin
|
|
9
|
-
*/
|
|
10
|
-
* {
|
|
11
|
-
margin: 0;
|
|
12
|
-
}
|
|
13
|
-
/*
|
|
14
|
-
Typographic tweaks!
|
|
15
|
-
3. Add accessible line-height
|
|
16
|
-
4. Improve text rendering
|
|
17
|
-
*/
|
|
18
|
-
body {
|
|
19
|
-
line-height: 1.5;
|
|
20
|
-
-webkit-font-smoothing: antialiased;
|
|
21
|
-
}
|
|
22
|
-
/*
|
|
23
|
-
5. Improve media defaults
|
|
24
|
-
*/
|
|
25
|
-
img, picture, video, canvas, svg {
|
|
26
|
-
display: block;
|
|
27
|
-
max-width: 100%;
|
|
28
|
-
}
|
|
29
|
-
/*
|
|
30
|
-
6. Remove built-in form typography styles
|
|
31
|
-
*/
|
|
32
|
-
input, button, textarea, select {
|
|
33
|
-
font: inherit;
|
|
34
|
-
}
|
|
35
|
-
/*
|
|
36
|
-
7. Avoid text overflows
|
|
37
|
-
*/
|
|
38
|
-
p, h1, h2, h3, h4, h5, h6 {
|
|
39
|
-
overflow-wrap: break-word;
|
|
40
|
-
line-height: 1;
|
|
41
|
-
}
|
|
42
|
-
/*
|
|
43
|
-
8. Create a root stacking context
|
|
44
|
-
*/
|
|
45
|
-
#root, #__next {
|
|
46
|
-
isolation: isolate;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
:root {
|
|
51
|
-
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
52
|
-
line-height: 1.5;
|
|
53
|
-
font-weight: 400;
|
|
54
|
-
|
|
55
|
-
color-scheme: light dark;
|
|
56
|
-
color:#000;
|
|
57
|
-
background: var(--background);
|
|
58
|
-
|
|
59
|
-
font-synthesis: none;
|
|
60
|
-
text-rendering: optimizeLegibility;
|
|
61
|
-
-webkit-font-smoothing: antialiased;
|
|
62
|
-
-moz-osx-font-smoothing: grayscale;
|
|
63
|
-
|
|
64
|
-
--primary-color: #9F1239;
|
|
65
|
-
--primary-color-hover: #7F0A2E;
|
|
66
|
-
--background: linear-gradient(180deg, #F5F5F4 0%, #FFF 100%);
|
|
67
|
-
--border: #D6D3D1;
|
|
68
|
-
--card: #FFF;
|
|
69
|
-
--card-foreground: #242424;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
a {
|
|
73
|
-
font-weight: 500;
|
|
74
|
-
color: var(--primary-color);
|
|
75
|
-
text-decoration: inherit;
|
|
76
|
-
}
|
|
77
|
-
a:hover {
|
|
78
|
-
color: var(--primary-color-hover)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
body {
|
|
82
|
-
margin: 0;
|
|
83
|
-
padding: 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
h1 {
|
|
87
|
-
font-size: 3.2em;
|
|
88
|
-
line-height: 1;
|
|
89
|
-
}
|
|
90
|
-
code {
|
|
91
|
-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
|
92
|
-
monospace;
|
|
93
|
-
display: inline-flex;
|
|
94
|
-
border-radius: 4px;
|
|
95
|
-
padding: 0.1rem 0.4rem;
|
|
96
|
-
background-color: #d7cccc;
|
|
97
|
-
color: var(--card-foreground);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
button {
|
|
101
|
-
border-radius: 4rem;
|
|
102
|
-
border: 1px solid transparent;
|
|
103
|
-
padding: 0.6em 1.2em;
|
|
104
|
-
font-size: 1em;
|
|
105
|
-
font-weight: 500;
|
|
106
|
-
font-family: inherit;
|
|
107
|
-
background-color: #cec9c1;
|
|
108
|
-
cursor: pointer;
|
|
109
|
-
transition: all 0.25s ease;
|
|
110
|
-
color: black;
|
|
111
|
-
}
|
|
112
|
-
button:hover {
|
|
113
|
-
background-color: #b5afa7;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
button:disabled {
|
|
117
|
-
filter:grayscale(1) opacity(0.5);
|
|
118
|
-
color: rgb(56, 55, 55);
|
|
119
|
-
pointer-events: none;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
button.primary {
|
|
123
|
-
background-color: var(--primary-color);
|
|
124
|
-
color: #fff;
|
|
125
|
-
}
|
|
126
|
-
button.outline {
|
|
127
|
-
background-color: transparent;
|
|
128
|
-
border: 1px solid var(--border);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
button.primary:hover {
|
|
132
|
-
background-color: var(--primary-color-hover);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
button.secondary {
|
|
136
|
-
background-color: #000;
|
|
137
|
-
color: #fff;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
button.secondary:hover {
|
|
141
|
-
background-color: #2b2b2b;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
button:active {
|
|
145
|
-
transform: translateY(1px);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
button.small {
|
|
149
|
-
padding: 0.4em 0.8em;
|
|
150
|
-
font-size: 0.8em;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
button:focus-visible {
|
|
155
|
-
outline: 4px auto -webkit-focus-ring-color;
|
|
156
|
-
outline-offset: 4px;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.header {
|
|
160
|
-
width: 100%;
|
|
161
|
-
height: 4rem;
|
|
162
|
-
padding: 0 1%;
|
|
163
|
-
display: flex;
|
|
164
|
-
align-items: center;
|
|
165
|
-
justify-content: right;
|
|
166
|
-
background-color: transparent;
|
|
167
|
-
border-bottom: 1px solid var(--border);
|
|
168
|
-
position: sticky;
|
|
169
|
-
top: 0;
|
|
170
|
-
background: #F5F5F4;
|
|
171
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Metadata } from "next";
|
|
2
|
-
import { Inter } from "next/font/google";
|
|
3
|
-
|
|
4
|
-
const inter = Inter({ subsets: ["latin"] });
|
|
5
|
-
|
|
6
|
-
export const metadata: Metadata = {
|
|
7
|
-
title: "Sei Next App (Cosmos)",
|
|
8
|
-
description: "Generated by create sei app",
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export default function RootLayout({
|
|
12
|
-
children,
|
|
13
|
-
}: Readonly<{
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}>) {
|
|
16
|
-
return (
|
|
17
|
-
<html lang="en">
|
|
18
|
-
<body className={inter.className}>{children}</body>
|
|
19
|
-
</html>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import './index.css'
|
|
4
|
-
import Homepage from "./components/Homepage/Homepage";
|
|
5
|
-
import Web3Provider from "./components/Web3Provider";
|
|
6
|
-
import { WalletConnectButton } from "./components/WalletConnectButton/WalletConnectButton";
|
|
7
|
-
|
|
8
|
-
export default function Home() {
|
|
9
|
-
return (
|
|
10
|
-
<Web3Provider>
|
|
11
|
-
<div className="header">
|
|
12
|
-
<WalletConnectButton/>
|
|
13
|
-
</div>
|
|
14
|
-
<Homepage/>
|
|
15
|
-
</Web3Provider>
|
|
16
|
-
);
|
|
17
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
4
|
-
"allowJs": true,
|
|
5
|
-
"skipLibCheck": true,
|
|
6
|
-
"strict": true,
|
|
7
|
-
"noEmit": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"module": "esnext",
|
|
10
|
-
"moduleResolution": "bundler",
|
|
11
|
-
"resolveJsonModule": true,
|
|
12
|
-
"isolatedModules": true,
|
|
13
|
-
"jsx": "preserve",
|
|
14
|
-
"incremental": true,
|
|
15
|
-
"plugins": [
|
|
16
|
-
{
|
|
17
|
-
"name": "next"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"paths": {
|
|
21
|
-
"@/*": ["./src/*"]
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
25
|
-
"exclude": ["node_modules"]
|
|
26
|
-
}
|