@sei-js/create-sei 0.0.0-internal-20240718212746 → 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.
Files changed (89) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +1 -1
  3. package/dist/templates/templates/next-cosmos-template/.eslintrc.json +0 -3
  4. package/dist/templates/templates/next-cosmos-template/README.md +0 -60
  5. package/dist/templates/templates/next-cosmos-template/next-env.d.ts +0 -5
  6. package/dist/templates/templates/next-cosmos-template/next.config.mjs +0 -14
  7. package/dist/templates/templates/next-cosmos-template/package.json +0 -31
  8. package/dist/templates/templates/next-cosmos-template/public/next.svg +0 -1
  9. package/dist/templates/templates/next-cosmos-template/public/sei-logotype.svg +0 -15
  10. package/dist/templates/templates/next-cosmos-template/public/vercel.svg +0 -1
  11. package/dist/templates/templates/next-cosmos-template/src/app/components/Homepage/Examples.tsx +0 -177
  12. package/dist/templates/templates/next-cosmos-template/src/app/components/Homepage/Homepage.css +0 -156
  13. package/dist/templates/templates/next-cosmos-template/src/app/components/Homepage/Homepage.tsx +0 -110
  14. package/dist/templates/templates/next-cosmos-template/src/app/components/WalletConnectButton/WalletConnectButton.tsx +0 -26
  15. package/dist/templates/templates/next-cosmos-template/src/app/components/Web3Provider.tsx +0 -39
  16. package/dist/templates/templates/next-cosmos-template/src/app/components/index.ts +0 -3
  17. package/dist/templates/templates/next-cosmos-template/src/app/constants/chain.ts +0 -16
  18. package/dist/templates/templates/next-cosmos-template/src/app/constants/index.ts +0 -1
  19. package/dist/templates/templates/next-cosmos-template/src/app/favicon.ico +0 -0
  20. package/dist/templates/templates/next-cosmos-template/src/app/index.css +0 -171
  21. package/dist/templates/templates/next-cosmos-template/src/app/layout.tsx +0 -21
  22. package/dist/templates/templates/next-cosmos-template/src/app/page.tsx +0 -17
  23. package/dist/templates/templates/next-cosmos-template/tsconfig.json +0 -26
  24. package/dist/templates/templates/next-cosmos-template/yarn.lock +0 -9814
  25. package/dist/templates/templates/next-wagmi-template/.eslintrc.json +0 -3
  26. package/dist/templates/templates/next-wagmi-template/README.md +0 -58
  27. package/dist/templates/templates/next-wagmi-template/next-env.d.ts +0 -5
  28. package/dist/templates/templates/next-wagmi-template/next.config.mjs +0 -4
  29. package/dist/templates/templates/next-wagmi-template/package.json +0 -30
  30. package/dist/templates/templates/next-wagmi-template/public/sei-logotype.svg +0 -15
  31. package/dist/templates/templates/next-wagmi-template/src/app/components/Homepage/Examples.tsx +0 -271
  32. package/dist/templates/templates/next-wagmi-template/src/app/components/Homepage/Homepage.css +0 -156
  33. package/dist/templates/templates/next-wagmi-template/src/app/components/Homepage/Homepage.tsx +0 -113
  34. package/dist/templates/templates/next-wagmi-template/src/app/components/Web3Provider.tsx +0 -73
  35. package/dist/templates/templates/next-wagmi-template/src/app/components/index.ts +0 -2
  36. package/dist/templates/templates/next-wagmi-template/src/app/constants/chain.ts +0 -7
  37. package/dist/templates/templates/next-wagmi-template/src/app/constants/index.ts +0 -1
  38. package/dist/templates/templates/next-wagmi-template/src/app/favicon.ico +0 -0
  39. package/dist/templates/templates/next-wagmi-template/src/app/index.css +0 -171
  40. package/dist/templates/templates/next-wagmi-template/src/app/layout.tsx +0 -21
  41. package/dist/templates/templates/next-wagmi-template/src/app/page.tsx +0 -21
  42. package/dist/templates/templates/next-wagmi-template/tsconfig.json +0 -26
  43. package/dist/templates/templates/next-wagmi-template/yarn.lock +0 -4809
  44. package/dist/templates/templates/vite-cosmos-template/.eslintrc.cjs +0 -18
  45. package/dist/templates/templates/vite-cosmos-template/README.md +0 -72
  46. package/dist/templates/templates/vite-cosmos-template/favicon.ico +0 -0
  47. package/dist/templates/templates/vite-cosmos-template/index.html +0 -16
  48. package/dist/templates/templates/vite-cosmos-template/package.json +0 -35
  49. package/dist/templates/templates/vite-cosmos-template/public/sei-logotype.svg +0 -15
  50. package/dist/templates/templates/vite-cosmos-template/src/App.tsx +0 -16
  51. package/dist/templates/templates/vite-cosmos-template/src/assets/react.svg +0 -1
  52. package/dist/templates/templates/vite-cosmos-template/src/components/Homepage/Examples.tsx +0 -177
  53. package/dist/templates/templates/vite-cosmos-template/src/components/Homepage/Homepage.css +0 -156
  54. package/dist/templates/templates/vite-cosmos-template/src/components/Homepage/Homepage.tsx +0 -102
  55. package/dist/templates/templates/vite-cosmos-template/src/components/WalletConnectButton/WalletConnectButton.tsx +0 -26
  56. package/dist/templates/templates/vite-cosmos-template/src/components/Web3Provider.tsx +0 -45
  57. package/dist/templates/templates/vite-cosmos-template/src/components/index.ts +0 -4
  58. package/dist/templates/templates/vite-cosmos-template/src/constants/chain.ts +0 -16
  59. package/dist/templates/templates/vite-cosmos-template/src/constants/index.ts +0 -1
  60. package/dist/templates/templates/vite-cosmos-template/src/index.css +0 -171
  61. package/dist/templates/templates/vite-cosmos-template/src/main.tsx +0 -12
  62. package/dist/templates/templates/vite-cosmos-template/src/vite-env.d.ts +0 -1
  63. package/dist/templates/templates/vite-cosmos-template/tsconfig.app.json +0 -27
  64. package/dist/templates/templates/vite-cosmos-template/tsconfig.json +0 -11
  65. package/dist/templates/templates/vite-cosmos-template/tsconfig.node.json +0 -14
  66. package/dist/templates/templates/vite-cosmos-template/vite.config.ts +0 -7
  67. package/dist/templates/templates/vite-cosmos-template/yarn.lock +0 -9323
  68. package/dist/templates/templates/vite-wagmi-template/.eslintrc.cjs +0 -18
  69. package/dist/templates/templates/vite-wagmi-template/README.md +0 -72
  70. package/dist/templates/templates/vite-wagmi-template/favicon.ico +0 -0
  71. package/dist/templates/templates/vite-wagmi-template/index.html +0 -12
  72. package/dist/templates/templates/vite-wagmi-template/package.json +0 -33
  73. package/dist/templates/templates/vite-wagmi-template/public/sei-logotype.svg +0 -15
  74. package/dist/templates/templates/vite-wagmi-template/src/App.tsx +0 -22
  75. package/dist/templates/templates/vite-wagmi-template/src/assets/react.svg +0 -1
  76. package/dist/templates/templates/vite-wagmi-template/src/components/Homepage/Examples.tsx +0 -269
  77. package/dist/templates/templates/vite-wagmi-template/src/components/Homepage/Homepage.css +0 -156
  78. package/dist/templates/templates/vite-wagmi-template/src/components/Homepage/Homepage.tsx +0 -106
  79. package/dist/templates/templates/vite-wagmi-template/src/components/Web3Provider.tsx +0 -71
  80. package/dist/templates/templates/vite-wagmi-template/src/constants/chain.ts +0 -6
  81. package/dist/templates/templates/vite-wagmi-template/src/constants/index.ts +0 -1
  82. package/dist/templates/templates/vite-wagmi-template/src/index.css +0 -170
  83. package/dist/templates/templates/vite-wagmi-template/src/main.tsx +0 -12
  84. package/dist/templates/templates/vite-wagmi-template/src/vite-env.d.ts +0 -1
  85. package/dist/templates/templates/vite-wagmi-template/tsconfig.app.json +0 -27
  86. package/dist/templates/templates/vite-wagmi-template/tsconfig.json +0 -11
  87. package/dist/templates/templates/vite-wagmi-template/tsconfig.node.json +0 -14
  88. package/dist/templates/templates/vite-wagmi-template/vite.config.ts +0 -10
  89. package/dist/templates/templates/vite-wagmi-template/yarn.lock +0 -4603
@@ -1,45 +0,0 @@
1
- 'use client';
2
-
3
- import { ReactNode } from 'react';
4
- import { Buffer } from 'buffer';
5
-
6
- import { ChainProvider } from '@cosmos-kit/react';
7
- import { COSMOS_KIT_ASSET_LIST } from '@sei-js/cosmjs';
8
- import { wallets as finWallets } from '@cosmos-kit/fin'
9
- import { wallets as keplrWallets } from '@cosmos-kit/keplr'
10
- import {
11
- CompassExtensionWallet,
12
- compassExtensionInfo,
13
- } from '@cosmos-kit/compass-extension'
14
- import { selectedChain } from '../constants';
15
-
16
- interface Web3ProviderProps {
17
- children: ReactNode;
18
- }
19
-
20
- const compassWallet = new CompassExtensionWallet({
21
- ...compassExtensionInfo,
22
- mobileDisabled: false,
23
- })
24
-
25
- function Web3Provider({ children }: Web3ProviderProps) {
26
-
27
- // Buffer polyfill
28
- if (typeof window !== 'undefined') {
29
- window.Buffer = window.Buffer ?? Buffer;
30
- }
31
-
32
- // Define your supported wallets here
33
- const wallets = [compassWallet, ...finWallets, ...keplrWallets];
34
-
35
- // Define the list of sei chain you would like to connect to here.
36
- const chains = [selectedChain]
37
-
38
- return (
39
- <ChainProvider chains={chains} assetLists={[COSMOS_KIT_ASSET_LIST]} wallets={wallets}>
40
- {children}
41
- </ChainProvider>
42
- );
43
- }
44
-
45
- export default Web3Provider;
@@ -1,4 +0,0 @@
1
- export * from './Homepage/Homepage'
2
- export * from './WalletConnectButton/WalletConnectButton'
3
- export * from './Web3Provider'
4
- export * from './Homepage/Examples'
@@ -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,12 +0,0 @@
1
- import React from 'react'
2
- import ReactDOM from 'react-dom/client'
3
- import App from './App.tsx'
4
- import Web3Provider from './components/Web3Provider.tsx'
5
-
6
- ReactDOM.createRoot(document.getElementById('root')!).render(
7
- <React.StrictMode>
8
- <Web3Provider>
9
- <App />
10
- </Web3Provider>
11
- </React.StrictMode>,
12
- )
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />
@@ -1,27 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
5
- "target": "ES2020",
6
- "useDefineForClassFields": true,
7
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
8
- "module": "ESNext",
9
- "skipLibCheck": true,
10
-
11
- /* Bundler mode */
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "resolveJsonModule": true,
15
- "isolatedModules": true,
16
- "moduleDetection": "force",
17
- "noEmit": true,
18
- "jsx": "react-jsx",
19
-
20
- /* Linting */
21
- "strict": true,
22
- "noUnusedLocals": true,
23
- "noUnusedParameters": true,
24
- "noFallthroughCasesInSwitch": true
25
- },
26
- "include": ["src"]
27
- }
@@ -1,11 +0,0 @@
1
- {
2
- "files": [],
3
- "references": [
4
- {
5
- "path": "./tsconfig.app.json"
6
- },
7
- {
8
- "path": "./tsconfig.node.json"
9
- }
10
- ]
11
- }
@@ -1,14 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5
- "skipLibCheck": true,
6
- "module": "ESNext",
7
- "moduleResolution": "bundler",
8
- "allowSyntheticDefaultImports": true,
9
- "allowImportingTsExtensions": true,
10
- "strict": true,
11
- "noEmit": true
12
- },
13
- "include": ["vite.config.ts"]
14
- }
@@ -1,7 +0,0 @@
1
- import { defineConfig } from 'vite'
2
- import react from '@vitejs/plugin-react'
3
-
4
- // https://vitejs.dev/config/
5
- export default defineConfig({
6
- plugins: [react()],
7
- })