@sei-js/create-sei 0.0.0-internal-20240708184136
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/.eslintignore +2 -0
- package/CHANGELOG.md +30 -0
- package/README.md +40 -0
- package/dist/main.js +94 -0
- package/dist/templates/next-cosmos-template/.eslintrc.json +3 -0
- package/dist/templates/next-cosmos-template/README.md +57 -0
- package/dist/templates/next-cosmos-template/next-env.d.ts +5 -0
- package/dist/templates/next-cosmos-template/next.config.mjs +14 -0
- package/dist/templates/next-cosmos-template/package.json +30 -0
- package/dist/templates/next-cosmos-template/public/next.svg +1 -0
- package/dist/templates/next-cosmos-template/public/sei-logotype.svg +15 -0
- package/dist/templates/next-cosmos-template/public/vercel.svg +1 -0
- package/dist/templates/next-cosmos-template/src/app/components/Homepage/Examples.tsx +177 -0
- package/dist/templates/next-cosmos-template/src/app/components/Homepage/Homepage.css +156 -0
- package/dist/templates/next-cosmos-template/src/app/components/Homepage/Homepage.tsx +104 -0
- package/dist/templates/next-cosmos-template/src/app/components/WalletConnectButton/WalletConnectButton.tsx +26 -0
- package/dist/templates/next-cosmos-template/src/app/components/Web3Provider.tsx +39 -0
- package/dist/templates/next-cosmos-template/src/app/components/index.ts +3 -0
- package/dist/templates/next-cosmos-template/src/app/constants/chain.ts +16 -0
- package/dist/templates/next-cosmos-template/src/app/constants/index.ts +1 -0
- package/dist/templates/next-cosmos-template/src/app/favicon.ico +0 -0
- package/dist/templates/next-cosmos-template/src/app/index.css +170 -0
- package/dist/templates/next-cosmos-template/src/app/layout.tsx +21 -0
- package/dist/templates/next-cosmos-template/src/app/page.tsx +17 -0
- package/dist/templates/next-cosmos-template/tsconfig.json +26 -0
- package/dist/templates/next-cosmos-template/yarn.lock +9716 -0
- package/dist/templates/next-wagmi-template/.eslintrc.json +3 -0
- package/dist/templates/next-wagmi-template/README.md +53 -0
- package/dist/templates/next-wagmi-template/next-env.d.ts +5 -0
- package/dist/templates/next-wagmi-template/next.config.mjs +4 -0
- package/dist/templates/next-wagmi-template/package.json +28 -0
- package/dist/templates/next-wagmi-template/public/next.svg +1 -0
- package/dist/templates/next-wagmi-template/public/sei-logotype.svg +15 -0
- package/dist/templates/next-wagmi-template/public/vercel.svg +1 -0
- package/dist/templates/next-wagmi-template/src/app/components/Homepage/Examples.tsx +269 -0
- package/dist/templates/next-wagmi-template/src/app/components/Homepage/Homepage.css +156 -0
- package/dist/templates/next-wagmi-template/src/app/components/Homepage/Homepage.tsx +108 -0
- package/dist/templates/next-wagmi-template/src/app/components/Web3Provider.tsx +74 -0
- package/dist/templates/next-wagmi-template/src/app/components/index.ts +2 -0
- package/dist/templates/next-wagmi-template/src/app/constants/chain.ts +5 -0
- package/dist/templates/next-wagmi-template/src/app/constants/index.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 +170 -0
- package/dist/templates/next-wagmi-template/src/app/layout.tsx +21 -0
- package/dist/templates/next-wagmi-template/src/app/page.tsx +21 -0
- package/dist/templates/next-wagmi-template/tsconfig.json +26 -0
- package/dist/templates/next-wagmi-template/yarn.lock +4692 -0
- package/dist/templates/templates/next-cosmos-template/.eslintrc.json +3 -0
- package/dist/templates/templates/next-cosmos-template/README.md +57 -0
- package/dist/templates/templates/next-cosmos-template/next-env.d.ts +5 -0
- package/dist/templates/templates/next-cosmos-template/next.config.mjs +14 -0
- package/dist/templates/templates/next-cosmos-template/package.json +30 -0
- package/dist/templates/templates/next-cosmos-template/public/next.svg +1 -0
- package/dist/templates/templates/next-cosmos-template/public/sei-logotype.svg +15 -0
- package/dist/templates/templates/next-cosmos-template/public/vercel.svg +1 -0
- package/dist/templates/templates/next-cosmos-template/src/app/components/Homepage/Examples.tsx +177 -0
- package/dist/templates/templates/next-cosmos-template/src/app/components/Homepage/Homepage.css +156 -0
- package/dist/templates/templates/next-cosmos-template/src/app/components/Homepage/Homepage.tsx +104 -0
- package/dist/templates/templates/next-cosmos-template/src/app/components/WalletConnectButton/WalletConnectButton.tsx +26 -0
- package/dist/templates/templates/next-cosmos-template/src/app/components/Web3Provider.tsx +39 -0
- package/dist/templates/templates/next-cosmos-template/src/app/components/index.ts +3 -0
- package/dist/templates/templates/next-cosmos-template/src/app/constants/chain.ts +16 -0
- package/dist/templates/templates/next-cosmos-template/src/app/constants/index.ts +1 -0
- package/dist/templates/templates/next-cosmos-template/src/app/favicon.ico +0 -0
- package/dist/templates/templates/next-cosmos-template/src/app/index.css +170 -0
- package/dist/templates/templates/next-cosmos-template/src/app/layout.tsx +21 -0
- package/dist/templates/templates/next-cosmos-template/src/app/page.tsx +17 -0
- package/dist/templates/templates/next-cosmos-template/tsconfig.json +26 -0
- package/dist/templates/templates/next-cosmos-template/yarn.lock +9716 -0
- package/dist/templates/templates/next-wagmi-template/.eslintrc.json +3 -0
- package/dist/templates/templates/next-wagmi-template/README.md +53 -0
- package/dist/templates/templates/next-wagmi-template/next-env.d.ts +5 -0
- package/dist/templates/templates/next-wagmi-template/next.config.mjs +4 -0
- package/dist/templates/templates/next-wagmi-template/package.json +28 -0
- package/dist/templates/templates/next-wagmi-template/public/next.svg +1 -0
- package/dist/templates/templates/next-wagmi-template/public/sei-logotype.svg +15 -0
- package/dist/templates/templates/next-wagmi-template/public/vercel.svg +1 -0
- package/dist/templates/templates/next-wagmi-template/src/app/components/Homepage/Examples.tsx +269 -0
- package/dist/templates/templates/next-wagmi-template/src/app/components/Homepage/Homepage.css +156 -0
- package/dist/templates/templates/next-wagmi-template/src/app/components/Homepage/Homepage.tsx +108 -0
- package/dist/templates/templates/next-wagmi-template/src/app/components/Web3Provider.tsx +74 -0
- package/dist/templates/templates/next-wagmi-template/src/app/components/index.ts +2 -0
- package/dist/templates/templates/next-wagmi-template/src/app/constants/chain.ts +5 -0
- package/dist/templates/templates/next-wagmi-template/src/app/constants/index.ts +1 -0
- package/dist/templates/templates/next-wagmi-template/src/app/favicon.ico +0 -0
- package/dist/templates/templates/next-wagmi-template/src/app/index.css +170 -0
- package/dist/templates/templates/next-wagmi-template/src/app/layout.tsx +21 -0
- package/dist/templates/templates/next-wagmi-template/src/app/page.tsx +21 -0
- package/dist/templates/templates/next-wagmi-template/tsconfig.json +26 -0
- package/dist/templates/templates/next-wagmi-template/yarn.lock +4692 -0
- package/dist/templates/templates/vite-cosmos-template/.eslintrc.cjs +18 -0
- package/dist/templates/templates/vite-cosmos-template/README.md +51 -0
- package/dist/templates/templates/vite-cosmos-template/_gitignore +24 -0
- package/dist/templates/templates/vite-cosmos-template/index.html +17 -0
- package/dist/templates/templates/vite-cosmos-template/package.json +35 -0
- package/dist/templates/templates/vite-cosmos-template/public/sei-logotype.svg +15 -0
- package/dist/templates/templates/vite-cosmos-template/public/vite.svg +1 -0
- package/dist/templates/templates/vite-cosmos-template/src/App.tsx +16 -0
- package/dist/templates/templates/vite-cosmos-template/src/assets/react.svg +1 -0
- package/dist/templates/templates/vite-cosmos-template/src/components/Homepage/Examples.tsx +177 -0
- package/dist/templates/templates/vite-cosmos-template/src/components/Homepage/Homepage.css +156 -0
- package/dist/templates/templates/vite-cosmos-template/src/components/Homepage/Homepage.tsx +102 -0
- package/dist/templates/templates/vite-cosmos-template/src/components/WalletConnectButton/WalletConnectButton.tsx +26 -0
- package/dist/templates/templates/vite-cosmos-template/src/components/Web3Provider.tsx +45 -0
- package/dist/templates/templates/vite-cosmos-template/src/components/index.ts +4 -0
- package/dist/templates/templates/vite-cosmos-template/src/constants/chain.ts +16 -0
- package/dist/templates/templates/vite-cosmos-template/src/constants/index.ts +1 -0
- package/dist/templates/templates/vite-cosmos-template/src/index.css +170 -0
- package/dist/templates/templates/vite-cosmos-template/src/main.tsx +12 -0
- package/dist/templates/templates/vite-cosmos-template/src/vite-env.d.ts +1 -0
- package/dist/templates/templates/vite-cosmos-template/tsconfig.app.json +27 -0
- package/dist/templates/templates/vite-cosmos-template/tsconfig.json +11 -0
- package/dist/templates/templates/vite-cosmos-template/tsconfig.node.json +14 -0
- package/dist/templates/templates/vite-cosmos-template/vite.config.ts +7 -0
- package/dist/templates/templates/vite-cosmos-template/yarn.lock +9323 -0
- package/dist/templates/templates/vite-wagmi-template/.eslintrc.cjs +18 -0
- package/dist/templates/templates/vite-wagmi-template/README.md +49 -0
- package/dist/templates/templates/vite-wagmi-template/_gitignore +24 -0
- package/dist/templates/templates/vite-wagmi-template/index.html +13 -0
- package/dist/templates/templates/vite-wagmi-template/package.json +33 -0
- package/dist/templates/templates/vite-wagmi-template/public/sei-logotype.svg +15 -0
- package/dist/templates/templates/vite-wagmi-template/public/vite.svg +1 -0
- package/dist/templates/templates/vite-wagmi-template/src/App.tsx +22 -0
- package/dist/templates/templates/vite-wagmi-template/src/assets/react.svg +1 -0
- package/dist/templates/templates/vite-wagmi-template/src/components/Homepage/Examples.tsx +269 -0
- package/dist/templates/templates/vite-wagmi-template/src/components/Homepage/Homepage.css +156 -0
- package/dist/templates/templates/vite-wagmi-template/src/components/Homepage/Homepage.tsx +107 -0
- package/dist/templates/templates/vite-wagmi-template/src/components/Web3Provider.tsx +71 -0
- package/dist/templates/templates/vite-wagmi-template/src/constants/chain.ts +5 -0
- package/dist/templates/templates/vite-wagmi-template/src/constants/index.ts +1 -0
- package/dist/templates/templates/vite-wagmi-template/src/index.css +170 -0
- package/dist/templates/templates/vite-wagmi-template/src/main.tsx +12 -0
- package/dist/templates/templates/vite-wagmi-template/src/vite-env.d.ts +1 -0
- package/dist/templates/templates/vite-wagmi-template/tsconfig.app.json +27 -0
- package/dist/templates/templates/vite-wagmi-template/tsconfig.json +11 -0
- package/dist/templates/templates/vite-wagmi-template/tsconfig.node.json +14 -0
- package/dist/templates/templates/vite-wagmi-template/vite.config.ts +10 -0
- package/dist/templates/templates/vite-wagmi-template/yarn.lock +4522 -0
- package/dist/templates/vite-cosmos-template/.eslintrc.cjs +18 -0
- package/dist/templates/vite-cosmos-template/README.md +51 -0
- package/dist/templates/vite-cosmos-template/_gitignore +24 -0
- package/dist/templates/vite-cosmos-template/index.html +17 -0
- package/dist/templates/vite-cosmos-template/package.json +35 -0
- package/dist/templates/vite-cosmos-template/public/sei-logotype.svg +15 -0
- package/dist/templates/vite-cosmos-template/public/vite.svg +1 -0
- package/dist/templates/vite-cosmos-template/src/App.tsx +16 -0
- package/dist/templates/vite-cosmos-template/src/assets/react.svg +1 -0
- package/dist/templates/vite-cosmos-template/src/components/Homepage/Examples.tsx +177 -0
- package/dist/templates/vite-cosmos-template/src/components/Homepage/Homepage.css +156 -0
- package/dist/templates/vite-cosmos-template/src/components/Homepage/Homepage.tsx +102 -0
- package/dist/templates/vite-cosmos-template/src/components/WalletConnectButton/WalletConnectButton.tsx +26 -0
- package/dist/templates/vite-cosmos-template/src/components/Web3Provider.tsx +45 -0
- package/dist/templates/vite-cosmos-template/src/components/index.ts +4 -0
- package/dist/templates/vite-cosmos-template/src/constants/chain.ts +16 -0
- package/dist/templates/vite-cosmos-template/src/constants/index.ts +1 -0
- package/dist/templates/vite-cosmos-template/src/index.css +170 -0
- package/dist/templates/vite-cosmos-template/src/main.tsx +12 -0
- package/dist/templates/vite-cosmos-template/src/vite-env.d.ts +1 -0
- package/dist/templates/vite-cosmos-template/tsconfig.app.json +27 -0
- package/dist/templates/vite-cosmos-template/tsconfig.json +11 -0
- package/dist/templates/vite-cosmos-template/tsconfig.node.json +14 -0
- package/dist/templates/vite-cosmos-template/vite.config.ts +7 -0
- package/dist/templates/vite-cosmos-template/yarn.lock +9323 -0
- package/dist/templates/vite-wagmi-template/.eslintrc.cjs +18 -0
- package/dist/templates/vite-wagmi-template/README.md +49 -0
- package/dist/templates/vite-wagmi-template/_gitignore +24 -0
- package/dist/templates/vite-wagmi-template/index.html +13 -0
- package/dist/templates/vite-wagmi-template/package.json +33 -0
- package/dist/templates/vite-wagmi-template/public/sei-logotype.svg +15 -0
- package/dist/templates/vite-wagmi-template/public/vite.svg +1 -0
- package/dist/templates/vite-wagmi-template/src/App.tsx +22 -0
- package/dist/templates/vite-wagmi-template/src/assets/react.svg +1 -0
- package/dist/templates/vite-wagmi-template/src/components/Homepage/Examples.tsx +269 -0
- package/dist/templates/vite-wagmi-template/src/components/Homepage/Homepage.css +156 -0
- package/dist/templates/vite-wagmi-template/src/components/Homepage/Homepage.tsx +107 -0
- package/dist/templates/vite-wagmi-template/src/components/Web3Provider.tsx +71 -0
- package/dist/templates/vite-wagmi-template/src/constants/chain.ts +5 -0
- package/dist/templates/vite-wagmi-template/src/constants/index.ts +1 -0
- package/dist/templates/vite-wagmi-template/src/index.css +170 -0
- package/dist/templates/vite-wagmi-template/src/main.tsx +12 -0
- package/dist/templates/vite-wagmi-template/src/vite-env.d.ts +1 -0
- package/dist/templates/vite-wagmi-template/tsconfig.app.json +27 -0
- package/dist/templates/vite-wagmi-template/tsconfig.json +11 -0
- package/dist/templates/vite-wagmi-template/tsconfig.node.json +14 -0
- package/dist/templates/vite-wagmi-template/vite.config.ts +10 -0
- package/dist/templates/vite-wagmi-template/yarn.lock +4522 -0
- package/eslintrc.json +3 -0
- package/package.json +27 -0
- package/src/main.ts +113 -0
- package/templates/next-cosmos-template/.eslintrc.json +3 -0
- package/templates/next-cosmos-template/README.md +57 -0
- package/templates/next-cosmos-template/next-env.d.ts +5 -0
- package/templates/next-cosmos-template/next.config.mjs +14 -0
- package/templates/next-cosmos-template/package.json +30 -0
- package/templates/next-cosmos-template/public/next.svg +1 -0
- package/templates/next-cosmos-template/public/sei-logotype.svg +15 -0
- package/templates/next-cosmos-template/public/vercel.svg +1 -0
- package/templates/next-cosmos-template/src/app/components/Homepage/Examples.tsx +177 -0
- package/templates/next-cosmos-template/src/app/components/Homepage/Homepage.css +156 -0
- package/templates/next-cosmos-template/src/app/components/Homepage/Homepage.tsx +104 -0
- package/templates/next-cosmos-template/src/app/components/WalletConnectButton/WalletConnectButton.tsx +26 -0
- package/templates/next-cosmos-template/src/app/components/Web3Provider.tsx +39 -0
- package/templates/next-cosmos-template/src/app/components/index.ts +3 -0
- package/templates/next-cosmos-template/src/app/constants/chain.ts +16 -0
- package/templates/next-cosmos-template/src/app/constants/index.ts +1 -0
- package/templates/next-cosmos-template/src/app/favicon.ico +0 -0
- package/templates/next-cosmos-template/src/app/index.css +170 -0
- package/templates/next-cosmos-template/src/app/layout.tsx +21 -0
- package/templates/next-cosmos-template/src/app/page.tsx +17 -0
- package/templates/next-cosmos-template/tsconfig.json +26 -0
- package/templates/next-cosmos-template/yarn.lock +9716 -0
- package/templates/next-wagmi-template/.eslintrc.json +3 -0
- package/templates/next-wagmi-template/README.md +53 -0
- package/templates/next-wagmi-template/next-env.d.ts +5 -0
- package/templates/next-wagmi-template/next.config.mjs +4 -0
- package/templates/next-wagmi-template/package.json +28 -0
- package/templates/next-wagmi-template/public/next.svg +1 -0
- package/templates/next-wagmi-template/public/sei-logotype.svg +15 -0
- package/templates/next-wagmi-template/public/vercel.svg +1 -0
- package/templates/next-wagmi-template/src/app/components/Homepage/Examples.tsx +269 -0
- package/templates/next-wagmi-template/src/app/components/Homepage/Homepage.css +156 -0
- package/templates/next-wagmi-template/src/app/components/Homepage/Homepage.tsx +108 -0
- package/templates/next-wagmi-template/src/app/components/Web3Provider.tsx +74 -0
- package/templates/next-wagmi-template/src/app/components/index.ts +2 -0
- package/templates/next-wagmi-template/src/app/constants/chain.ts +5 -0
- package/templates/next-wagmi-template/src/app/constants/index.ts +1 -0
- package/templates/next-wagmi-template/src/app/favicon.ico +0 -0
- package/templates/next-wagmi-template/src/app/index.css +170 -0
- package/templates/next-wagmi-template/src/app/layout.tsx +21 -0
- package/templates/next-wagmi-template/src/app/page.tsx +21 -0
- package/templates/next-wagmi-template/tsconfig.json +26 -0
- package/templates/next-wagmi-template/yarn.lock +4692 -0
- package/templates/vite-cosmos-template/.eslintrc.cjs +18 -0
- package/templates/vite-cosmos-template/README.md +51 -0
- package/templates/vite-cosmos-template/_gitignore +24 -0
- package/templates/vite-cosmos-template/index.html +17 -0
- package/templates/vite-cosmos-template/package.json +35 -0
- package/templates/vite-cosmos-template/public/sei-logotype.svg +15 -0
- package/templates/vite-cosmos-template/public/vite.svg +1 -0
- package/templates/vite-cosmos-template/src/App.tsx +16 -0
- package/templates/vite-cosmos-template/src/assets/react.svg +1 -0
- package/templates/vite-cosmos-template/src/components/Homepage/Examples.tsx +177 -0
- package/templates/vite-cosmos-template/src/components/Homepage/Homepage.css +156 -0
- package/templates/vite-cosmos-template/src/components/Homepage/Homepage.tsx +102 -0
- package/templates/vite-cosmos-template/src/components/WalletConnectButton/WalletConnectButton.tsx +26 -0
- package/templates/vite-cosmos-template/src/components/Web3Provider.tsx +45 -0
- package/templates/vite-cosmos-template/src/components/index.ts +4 -0
- package/templates/vite-cosmos-template/src/constants/chain.ts +16 -0
- package/templates/vite-cosmos-template/src/constants/index.ts +1 -0
- package/templates/vite-cosmos-template/src/index.css +170 -0
- package/templates/vite-cosmos-template/src/main.tsx +12 -0
- package/templates/vite-cosmos-template/src/vite-env.d.ts +1 -0
- package/templates/vite-cosmos-template/tsconfig.app.json +27 -0
- package/templates/vite-cosmos-template/tsconfig.json +11 -0
- package/templates/vite-cosmos-template/tsconfig.node.json +14 -0
- package/templates/vite-cosmos-template/vite.config.ts +7 -0
- package/templates/vite-cosmos-template/yarn.lock +9323 -0
- package/templates/vite-wagmi-template/.eslintrc.cjs +18 -0
- package/templates/vite-wagmi-template/README.md +49 -0
- package/templates/vite-wagmi-template/_gitignore +24 -0
- package/templates/vite-wagmi-template/index.html +13 -0
- package/templates/vite-wagmi-template/package.json +33 -0
- package/templates/vite-wagmi-template/public/sei-logotype.svg +15 -0
- package/templates/vite-wagmi-template/public/vite.svg +1 -0
- package/templates/vite-wagmi-template/src/App.tsx +22 -0
- package/templates/vite-wagmi-template/src/assets/react.svg +1 -0
- package/templates/vite-wagmi-template/src/components/Homepage/Examples.tsx +269 -0
- package/templates/vite-wagmi-template/src/components/Homepage/Homepage.css +156 -0
- package/templates/vite-wagmi-template/src/components/Homepage/Homepage.tsx +107 -0
- package/templates/vite-wagmi-template/src/components/Web3Provider.tsx +71 -0
- package/templates/vite-wagmi-template/src/constants/chain.ts +5 -0
- package/templates/vite-wagmi-template/src/constants/index.ts +1 -0
- package/templates/vite-wagmi-template/src/index.css +170 -0
- package/templates/vite-wagmi-template/src/main.tsx +12 -0
- package/templates/vite-wagmi-template/src/vite-env.d.ts +1 -0
- package/templates/vite-wagmi-template/tsconfig.app.json +27 -0
- package/templates/vite-wagmi-template/tsconfig.json +11 -0
- package/templates/vite-wagmi-template/tsconfig.node.json +14 -0
- package/templates/vite-wagmi-template/vite.config.ts +10 -0
- package/templates/vite-wagmi-template/yarn.lock +4522 -0
- package/tsconfig.json +29 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ConnectButton } from '@rainbow-me/rainbowkit';
|
|
3
|
+
import Examples from './Examples';
|
|
4
|
+
import "./Homepage.css"
|
|
5
|
+
|
|
6
|
+
type HelpItem = {
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
link: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const renderHelpItem = ({ title, description, link }: HelpItem) => (
|
|
13
|
+
<div className="card secondary">
|
|
14
|
+
<div className="card-header">
|
|
15
|
+
<p className="card__title">
|
|
16
|
+
<a href={link} target='_blank' rel='noopener noreferrer' className="external-link">
|
|
17
|
+
{title} {externalIcon}
|
|
18
|
+
</a>
|
|
19
|
+
</p>
|
|
20
|
+
<small className="card__description">
|
|
21
|
+
{description}
|
|
22
|
+
</small>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
const helpItems: HelpItem[] = [
|
|
28
|
+
{
|
|
29
|
+
title: 'Sei Docs',
|
|
30
|
+
description: 'Find in-depth information about Sei.',
|
|
31
|
+
link: 'https://docs.sei.io/'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: 'Wagmi',
|
|
35
|
+
description: "Learn about Wagmi and it's hooks for chain interaction.",
|
|
36
|
+
link: 'https://wagmi.sh/'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
title: 'Viem',
|
|
40
|
+
description: 'Interact with Sei using Viem modules + Wagmi.',
|
|
41
|
+
link: 'https://viem.sh/'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
title: 'EVM JSON-RPC API',
|
|
45
|
+
description: 'Learn about the EVM api available on Sei.',
|
|
46
|
+
link: 'https://ethereum.org/en/developers/docs/apis/json-rpc/'
|
|
47
|
+
}
|
|
48
|
+
];
|
|
49
|
+
|
|
50
|
+
const externalIcon = (
|
|
51
|
+
<svg
|
|
52
|
+
width="16"
|
|
53
|
+
height="16"
|
|
54
|
+
viewBox="0 0 16 16"
|
|
55
|
+
fill="none"
|
|
56
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
57
|
+
>
|
|
58
|
+
<path
|
|
59
|
+
d="M12 8.66667V12.6667C12 13.0203 11.8595 13.3594 11.6095 13.6095C11.3594 13.8595 11.0203 14 10.6667 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V5.33333C2 4.97971 2.14048 4.64057 2.39052 4.39052C2.64057 4.14048 2.97971 4 3.33333 4H7.33333"
|
|
60
|
+
stroke="#9F1239"
|
|
61
|
+
strokeWidth="1.33333"
|
|
62
|
+
strokeLinecap="round"
|
|
63
|
+
strokeLinejoin="round"
|
|
64
|
+
/>
|
|
65
|
+
<path
|
|
66
|
+
d="M10 2H14V6"
|
|
67
|
+
stroke="#9F1239"
|
|
68
|
+
strokeWidth="1.33333"
|
|
69
|
+
strokeLinecap="round"
|
|
70
|
+
strokeLinejoin="round"
|
|
71
|
+
/>
|
|
72
|
+
<path
|
|
73
|
+
d="M6.66663 9.33333L14 2"
|
|
74
|
+
stroke="#9F1239"
|
|
75
|
+
strokeWidth="1.33333"
|
|
76
|
+
strokeLinecap="round"
|
|
77
|
+
strokeLinejoin="round"
|
|
78
|
+
/>
|
|
79
|
+
</svg>
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
function Homepage() {
|
|
83
|
+
|
|
84
|
+
return (
|
|
85
|
+
<div className="container">
|
|
86
|
+
<img src="sei-logotype.svg" className="logo" alt="SEI logotype" />
|
|
87
|
+
<div className="card intro">
|
|
88
|
+
<div className="card-header">
|
|
89
|
+
<p className="card__title">Wallet address</p>
|
|
90
|
+
<small className="card__description">
|
|
91
|
+
Connect wallet to see your address and balance
|
|
92
|
+
</small>
|
|
93
|
+
</div>
|
|
94
|
+
<ConnectButton/>
|
|
95
|
+
</div>
|
|
96
|
+
<Examples />
|
|
97
|
+
<div className="get-started">
|
|
98
|
+
Get started by editing <code>src/App.tsx</code>
|
|
99
|
+
</div>
|
|
100
|
+
<div className="grid docs">
|
|
101
|
+
{helpItems.map((item, index) => (renderHelpItem(item)))}
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export default Homepage;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { RainbowKitProvider, connectorsForWallets, lightTheme } from '@rainbow-me/rainbowkit';
|
|
2
|
+
import { metaMaskWallet } from '@rainbow-me/rainbowkit/wallets';
|
|
3
|
+
import { Buffer } from 'buffer';
|
|
4
|
+
import { ReactNode, useMemo } from 'react';
|
|
5
|
+
import { WagmiProvider, createConfig, http } from 'wagmi';
|
|
6
|
+
|
|
7
|
+
import '@rainbow-me/rainbowkit/styles.css';
|
|
8
|
+
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
9
|
+
import { selectedChain } from '../constants';
|
|
10
|
+
|
|
11
|
+
const queryClient = new QueryClient();
|
|
12
|
+
|
|
13
|
+
interface Web3ProviderProps {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const connectors = connectorsForWallets(
|
|
18
|
+
[
|
|
19
|
+
{
|
|
20
|
+
groupName: 'Recommended',
|
|
21
|
+
wallets: [metaMaskWallet],
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
{
|
|
25
|
+
appName: '<YOUR_APPNAME_HERE>',
|
|
26
|
+
projectId: "<YOUR_ID_HERE>",
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
function Web3Provider({ children }: Web3ProviderProps) {
|
|
31
|
+
// Buffer polyfill
|
|
32
|
+
if (typeof window !== 'undefined') {
|
|
33
|
+
window.Buffer = window.Buffer ?? Buffer;
|
|
34
|
+
}
|
|
35
|
+
const chainConfig = selectedChain;
|
|
36
|
+
const config = useMemo(
|
|
37
|
+
() =>
|
|
38
|
+
createConfig({
|
|
39
|
+
chains: [chainConfig],
|
|
40
|
+
connectors,
|
|
41
|
+
transports: {
|
|
42
|
+
[chainConfig.id]: http()
|
|
43
|
+
}
|
|
44
|
+
}),
|
|
45
|
+
[chainConfig]
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<WagmiProvider config={config}>
|
|
50
|
+
<QueryClientProvider client={queryClient}>
|
|
51
|
+
<RainbowKitProvider
|
|
52
|
+
theme={lightTheme({
|
|
53
|
+
accentColor: '#7e1914',
|
|
54
|
+
accentColorForeground: 'white',
|
|
55
|
+
borderRadius: 'medium',
|
|
56
|
+
fontStack: 'system',
|
|
57
|
+
})}
|
|
58
|
+
appInfo={{
|
|
59
|
+
appName: '<APP-NAME-HERE>',
|
|
60
|
+
learnMoreUrl: 'https://www.docs.sei.io/user-guides/wallet-setup'
|
|
61
|
+
}}
|
|
62
|
+
modalSize='compact'
|
|
63
|
+
initialChain={chainConfig.id}>
|
|
64
|
+
{children}
|
|
65
|
+
</RainbowKitProvider>
|
|
66
|
+
</QueryClientProvider>
|
|
67
|
+
</WagmiProvider>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default Web3Provider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './chain';
|
|
@@ -0,0 +1,170 @@
|
|
|
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
|
+
}
|
|
111
|
+
button:hover {
|
|
112
|
+
background-color: #b5afa7;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
button:disabled {
|
|
116
|
+
filter:grayscale(1) opacity(0.5);
|
|
117
|
+
color: rgb(56, 55, 55);
|
|
118
|
+
pointer-events: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
button.primary {
|
|
122
|
+
background-color: var(--primary-color);
|
|
123
|
+
color: #fff;
|
|
124
|
+
}
|
|
125
|
+
button.outline {
|
|
126
|
+
background-color: transparent;
|
|
127
|
+
border: 1px solid var(--border);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
button.primary:hover {
|
|
131
|
+
background-color: var(--primary-color-hover);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
button.secondary {
|
|
135
|
+
background-color: #000;
|
|
136
|
+
color: #fff;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
button.secondary:hover {
|
|
140
|
+
background-color: #2b2b2b;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
button:active {
|
|
144
|
+
transform: translateY(1px);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
button.small {
|
|
148
|
+
padding: 0.4em 0.8em;
|
|
149
|
+
font-size: 0.8em;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
button:focus-visible {
|
|
154
|
+
outline: 4px auto -webkit-focus-ring-color;
|
|
155
|
+
outline-offset: 4px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.header {
|
|
159
|
+
width: 100%;
|
|
160
|
+
height: 4rem;
|
|
161
|
+
padding: 0 1%;
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: right;
|
|
165
|
+
background-color: transparent;
|
|
166
|
+
border-bottom: 1px solid var(--border);
|
|
167
|
+
position: sticky;
|
|
168
|
+
top: 0;
|
|
169
|
+
background: #F5F5F4;
|
|
170
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|