@sei-js/create-sei 0.0.1 → 0.0.3
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/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +12 -0
- package/README.md +16 -25
- package/biome.json +8 -0
- package/dist/main.js +162 -0
- package/dist/templates/next-cosmos-template/.eslintrc.json +3 -0
- package/dist/templates/next-cosmos-template/README.md +60 -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 +31 -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 +168 -0
- package/dist/templates/next-cosmos-template/src/app/components/Homepage/Homepage.css +154 -0
- package/dist/templates/next-cosmos-template/src/app/components/Homepage/Homepage.tsx +83 -0
- package/dist/templates/next-cosmos-template/src/app/components/WalletConnectButton/WalletConnectButton.tsx +18 -0
- package/dist/templates/next-cosmos-template/src/app/components/Web3Provider.tsx +35 -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 +184 -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 +9814 -0
- package/dist/templates/next-wagmi-template/.eslintrc.json +3 -0
- package/dist/templates/next-wagmi-template/README.md +58 -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 +30 -0
- package/dist/templates/next-wagmi-template/public/sei-logotype.svg +15 -0
- package/dist/templates/next-wagmi-template/src/app/components/Homepage/Examples.tsx +257 -0
- package/dist/templates/next-wagmi-template/src/app/components/Homepage/Homepage.css +154 -0
- package/dist/templates/next-wagmi-template/src/app/components/Homepage/Homepage.tsx +87 -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 +7 -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 +184 -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 +4809 -0
- package/dist/templates/vite-cosmos-template/.eslintrc.cjs +11 -0
- package/dist/templates/vite-cosmos-template/README.md +72 -0
- package/dist/templates/vite-cosmos-template/favicon.ico +0 -0
- package/dist/templates/vite-cosmos-template/index.html +16 -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/src/App.tsx +15 -0
- package/dist/templates/vite-cosmos-template/src/assets/react.svg +1 -0
- package/dist/templates/vite-cosmos-template/src/components/Homepage/Examples.tsx +168 -0
- package/dist/templates/vite-cosmos-template/src/components/Homepage/Homepage.css +154 -0
- package/dist/templates/vite-cosmos-template/src/components/Homepage/Homepage.tsx +77 -0
- package/dist/templates/vite-cosmos-template/src/components/WalletConnectButton/WalletConnectButton.tsx +18 -0
- package/dist/templates/vite-cosmos-template/src/components/Web3Provider.tsx +41 -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 +184 -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 +25 -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 +11 -0
- package/dist/templates/vite-wagmi-template/README.md +72 -0
- package/dist/templates/vite-wagmi-template/favicon.ico +0 -0
- package/dist/templates/vite-wagmi-template/index.html +12 -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/src/App.tsx +21 -0
- package/dist/templates/vite-wagmi-template/src/assets/react.svg +1 -0
- package/dist/templates/vite-wagmi-template/src/components/Homepage/Examples.tsx +255 -0
- package/dist/templates/vite-wagmi-template/src/components/Homepage/Homepage.css +154 -0
- package/dist/templates/vite-wagmi-template/src/components/Homepage/Homepage.tsx +81 -0
- package/dist/templates/vite-wagmi-template/src/components/Web3Provider.tsx +72 -0
- package/dist/templates/vite-wagmi-template/src/constants/chain.ts +6 -0
- package/dist/templates/vite-wagmi-template/src/constants/index.ts +1 -0
- package/dist/templates/vite-wagmi-template/src/index.css +183 -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 +25 -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 +4603 -0
- package/package.json +3 -2
- package/src/main.ts +31 -33
- package/templates/next-cosmos-template/.eslintrc.json +1 -1
- package/templates/next-cosmos-template/next.config.mjs +9 -9
- package/templates/next-cosmos-template/package.json +29 -29
- package/templates/next-cosmos-template/src/app/components/Homepage/Examples.tsx +162 -171
- package/templates/next-cosmos-template/src/app/components/Homepage/Homepage.css +92 -94
- package/templates/next-cosmos-template/src/app/components/Homepage/Homepage.tsx +22 -49
- package/templates/next-cosmos-template/src/app/components/WalletConnectButton/WalletConnectButton.tsx +11 -19
- package/templates/next-cosmos-template/src/app/components/Web3Provider.tsx +13 -17
- package/templates/next-cosmos-template/src/app/components/index.ts +3 -3
- package/templates/next-cosmos-template/src/app/constants/chain.ts +9 -9
- package/templates/next-cosmos-template/src/app/constants/index.ts +1 -1
- package/templates/next-cosmos-template/src/app/index.css +99 -86
- package/templates/next-cosmos-template/src/app/layout.tsx +12 -12
- package/templates/next-cosmos-template/src/app/page.tsx +13 -13
- package/templates/next-cosmos-template/tsconfig.json +24 -24
- package/templates/next-wagmi-template/.eslintrc.json +1 -1
- package/templates/next-wagmi-template/package.json +28 -28
- package/templates/next-wagmi-template/src/app/components/Homepage/Examples.tsx +223 -237
- package/templates/next-wagmi-template/src/app/components/Homepage/Homepage.css +92 -94
- package/templates/next-wagmi-template/src/app/components/Homepage/Homepage.tsx +10 -36
- package/templates/next-wagmi-template/src/app/components/Web3Provider.tsx +29 -28
- package/templates/next-wagmi-template/src/app/components/index.ts +2 -2
- package/templates/next-wagmi-template/src/app/constants/chain.ts +2 -2
- package/templates/next-wagmi-template/src/app/constants/index.ts +1 -1
- package/templates/next-wagmi-template/src/app/index.css +99 -86
- package/templates/next-wagmi-template/src/app/layout.tsx +12 -12
- package/templates/next-wagmi-template/src/app/page.tsx +17 -17
- package/templates/next-wagmi-template/tsconfig.json +24 -24
- package/templates/vite-cosmos-template/.eslintrc.cjs +10 -17
- package/templates/vite-cosmos-template/package.json +33 -33
- package/templates/vite-cosmos-template/src/App.tsx +11 -12
- package/templates/vite-cosmos-template/src/components/Homepage/Examples.tsx +162 -171
- package/templates/vite-cosmos-template/src/components/Homepage/Homepage.css +92 -94
- package/templates/vite-cosmos-template/src/components/Homepage/Homepage.tsx +20 -45
- package/templates/vite-cosmos-template/src/components/WalletConnectButton/WalletConnectButton.tsx +11 -19
- package/templates/vite-cosmos-template/src/components/Web3Provider.tsx +14 -18
- package/templates/vite-cosmos-template/src/components/index.ts +4 -4
- package/templates/vite-cosmos-template/src/constants/chain.ts +9 -9
- package/templates/vite-cosmos-template/src/constants/index.ts +1 -1
- package/templates/vite-cosmos-template/src/index.css +99 -86
- package/templates/vite-cosmos-template/src/main.tsx +10 -10
- package/templates/vite-cosmos-template/tsconfig.app.json +21 -23
- package/templates/vite-cosmos-template/tsconfig.json +9 -9
- package/templates/vite-cosmos-template/tsconfig.node.json +11 -11
- package/templates/vite-cosmos-template/vite.config.ts +4 -4
- package/templates/vite-wagmi-template/.eslintrc.cjs +10 -17
- package/templates/vite-wagmi-template/package.json +31 -31
- package/templates/vite-wagmi-template/src/App.tsx +12 -13
- package/templates/vite-wagmi-template/src/components/Homepage/Examples.tsx +225 -239
- package/templates/vite-wagmi-template/src/components/Homepage/Homepage.css +92 -94
- package/templates/vite-wagmi-template/src/components/Homepage/Homepage.tsx +28 -53
- package/templates/vite-wagmi-template/src/components/Web3Provider.tsx +29 -28
- package/templates/vite-wagmi-template/src/constants/chain.ts +1 -1
- package/templates/vite-wagmi-template/src/constants/index.ts +1 -1
- package/templates/vite-wagmi-template/src/index.css +98 -85
- package/templates/vite-wagmi-template/src/main.tsx +10 -10
- package/templates/vite-wagmi-template/tsconfig.app.json +21 -23
- package/templates/vite-wagmi-template/tsconfig.json +9 -9
- package/templates/vite-wagmi-template/tsconfig.node.json +11 -11
- package/templates/vite-wagmi-template/vite.config.ts +7 -7
- package/tsconfig.json +24 -28
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './Homepage.css'
|
|
1
|
+
import './Homepage.css';
|
|
2
2
|
import Examples from './Examples';
|
|
3
3
|
import { selectedChain } from '../../constants';
|
|
4
4
|
import { WalletConnectButton } from '..';
|
|
@@ -13,13 +13,11 @@ const renderHelpItem = ({ title, description, link }: HelpItem) => (
|
|
|
13
13
|
<div className="card secondary">
|
|
14
14
|
<div className="card-header">
|
|
15
15
|
<p className="card__title">
|
|
16
|
-
<a href={link} target=
|
|
16
|
+
<a href={link} target="_blank" rel="noopener noreferrer" className="external-link">
|
|
17
17
|
{title} {externalIcon}
|
|
18
18
|
</a>
|
|
19
19
|
</p>
|
|
20
|
-
<small className="card__description">
|
|
21
|
-
{description}
|
|
22
|
-
</small>
|
|
20
|
+
<small className="card__description">{description}</small>
|
|
23
21
|
</div>
|
|
24
22
|
</div>
|
|
25
23
|
);
|
|
@@ -33,7 +31,7 @@ const helpItems: HelpItem[] = [
|
|
|
33
31
|
{
|
|
34
32
|
title: 'CosmosKit',
|
|
35
33
|
description: "Learn about CosmosKit and it's hooks for chain interaction.",
|
|
36
|
-
link: 'https://
|
|
34
|
+
link: 'https://hyperweb.io/stack/cosmos-kit'
|
|
37
35
|
},
|
|
38
36
|
{
|
|
39
37
|
title: 'sei-js',
|
|
@@ -43,58 +41,35 @@ const helpItems: HelpItem[] = [
|
|
|
43
41
|
];
|
|
44
42
|
|
|
45
43
|
const externalIcon = (
|
|
46
|
-
<svg
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
d="
|
|
55
|
-
stroke="#9F1239"
|
|
56
|
-
strokeWidth="1.33333"
|
|
57
|
-
strokeLinecap="round"
|
|
58
|
-
strokeLinejoin="round"
|
|
59
|
-
/>
|
|
60
|
-
<path
|
|
61
|
-
d="M10 2H14V6"
|
|
62
|
-
stroke="#9F1239"
|
|
63
|
-
strokeWidth="1.33333"
|
|
64
|
-
strokeLinecap="round"
|
|
65
|
-
strokeLinejoin="round"
|
|
66
|
-
/>
|
|
67
|
-
<path
|
|
68
|
-
d="M6.66663 9.33333L14 2"
|
|
69
|
-
stroke="#9F1239"
|
|
70
|
-
strokeWidth="1.33333"
|
|
71
|
-
strokeLinecap="round"
|
|
72
|
-
strokeLinejoin="round"
|
|
73
|
-
/>
|
|
44
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
45
|
+
<path
|
|
46
|
+
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"
|
|
47
|
+
stroke="#9F1239"
|
|
48
|
+
strokeWidth="1.33333"
|
|
49
|
+
strokeLinecap="round"
|
|
50
|
+
strokeLinejoin="round"
|
|
51
|
+
/>
|
|
52
|
+
<path d="M10 2H14V6" stroke="#9F1239" strokeWidth="1.33333" strokeLinecap="round" strokeLinejoin="round" />
|
|
53
|
+
<path d="M6.66663 9.33333L14 2" stroke="#9F1239" strokeWidth="1.33333" strokeLinecap="round" strokeLinejoin="round" />
|
|
74
54
|
</svg>
|
|
75
|
-
|
|
55
|
+
);
|
|
76
56
|
|
|
77
57
|
export function Homepage() {
|
|
78
|
-
|
|
79
58
|
return (
|
|
80
59
|
<div className="container">
|
|
81
60
|
<img src="sei-logotype.svg" className="logo" alt="SEI logotype" />
|
|
82
61
|
<div className="card intro">
|
|
83
62
|
<div className="card-header">
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
Connect wallet to see your address and balance
|
|
87
|
-
</small>
|
|
63
|
+
<p className="card__title">Wallet address</p>
|
|
64
|
+
<small className="card__description">Connect wallet to see your address and balance</small>
|
|
88
65
|
</div>
|
|
89
|
-
<WalletConnectButton/>
|
|
66
|
+
<WalletConnectButton />
|
|
90
67
|
</div>
|
|
91
|
-
<Examples chainId={selectedChain.chain_id}/>
|
|
68
|
+
<Examples chainId={selectedChain.chain_id} />
|
|
92
69
|
<div className="get-started">
|
|
93
70
|
Get started by editing <code>src/App.tsx</code>
|
|
94
71
|
</div>
|
|
95
|
-
<div className="grid docs">
|
|
96
|
-
{helpItems.map((item, _) => (renderHelpItem(item)))}
|
|
97
|
-
</div>
|
|
72
|
+
<div className="grid docs">{helpItems.map((item, _) => renderHelpItem(item))}</div>
|
|
98
73
|
</div>
|
|
99
74
|
);
|
|
100
75
|
}
|
package/templates/vite-cosmos-template/src/components/WalletConnectButton/WalletConnectButton.tsx
CHANGED
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import { useChain } from
|
|
1
|
+
import { useChain } from '@cosmos-kit/react';
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import '@interchain-ui/react/styles';
|
|
4
4
|
|
|
5
|
-
import { truncateSeiAddress } from
|
|
6
|
-
import { selectedChain } from
|
|
5
|
+
import { truncateSeiAddress } from '@sei-js/cosmjs';
|
|
6
|
+
import { selectedChain } from '../../constants';
|
|
7
7
|
|
|
8
8
|
export function WalletConnectButton() {
|
|
9
|
-
|
|
10
|
-
isWalletConnected,
|
|
11
|
-
address,
|
|
12
|
-
connect,
|
|
13
|
-
openView,
|
|
14
|
-
} = useChain(selectedChain.chain_name);
|
|
9
|
+
const { isWalletConnected, address, connect, openView } = useChain(selectedChain.chain_name);
|
|
15
10
|
|
|
16
|
-
|
|
11
|
+
const truncatedSeiAddr = address ? truncateSeiAddress(address) : '';
|
|
17
12
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{isWalletConnected ? truncateSeiAddress(truncatedSeiAddr) : "Connect"}
|
|
24
|
-
</button>
|
|
25
|
-
);
|
|
13
|
+
return (
|
|
14
|
+
<button className="primary" onClick={isWalletConnected ? openView : connect}>
|
|
15
|
+
{isWalletConnected ? truncateSeiAddress(truncatedSeiAddr) : 'Connect'}
|
|
16
|
+
</button>
|
|
17
|
+
);
|
|
26
18
|
}
|
|
@@ -5,12 +5,9 @@ import { Buffer } from 'buffer';
|
|
|
5
5
|
|
|
6
6
|
import { ChainProvider } from '@cosmos-kit/react';
|
|
7
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'
|
|
8
|
+
import { wallets as finWallets } from '@cosmos-kit/fin';
|
|
9
|
+
import { wallets as keplrWallets } from '@cosmos-kit/keplr';
|
|
10
|
+
import { CompassExtensionWallet, compassExtensionInfo } from '@cosmos-kit/compass-extension';
|
|
14
11
|
import { selectedChain } from '../constants';
|
|
15
12
|
|
|
16
13
|
interface Web3ProviderProps {
|
|
@@ -18,27 +15,26 @@ interface Web3ProviderProps {
|
|
|
18
15
|
}
|
|
19
16
|
|
|
20
17
|
const compassWallet = new CompassExtensionWallet({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
})
|
|
18
|
+
...compassExtensionInfo,
|
|
19
|
+
mobileDisabled: false
|
|
20
|
+
});
|
|
24
21
|
|
|
25
22
|
function Web3Provider({ children }: Web3ProviderProps) {
|
|
26
|
-
|
|
27
|
-
// Buffer polyfill
|
|
23
|
+
// Buffer polyfill
|
|
28
24
|
if (typeof window !== 'undefined') {
|
|
29
25
|
window.Buffer = window.Buffer ?? Buffer;
|
|
30
26
|
}
|
|
31
27
|
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
// Define your supported wallets here
|
|
29
|
+
const wallets = [compassWallet, ...finWallets, ...keplrWallets];
|
|
34
30
|
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
// Define the list of sei chain you would like to connect to here.
|
|
32
|
+
const chains = [selectedChain];
|
|
37
33
|
|
|
38
34
|
return (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
<ChainProvider chains={chains} assetLists={[COSMOS_KIT_ASSET_LIST]} wallets={wallets}>
|
|
36
|
+
{children}
|
|
37
|
+
</ChainProvider>
|
|
42
38
|
);
|
|
43
39
|
}
|
|
44
40
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './Homepage/Homepage'
|
|
2
|
-
export * from './WalletConnectButton/WalletConnectButton'
|
|
3
|
-
export * from './Web3Provider'
|
|
4
|
-
export * from './Homepage/Examples'
|
|
1
|
+
export * from './Homepage/Homepage';
|
|
2
|
+
export * from './WalletConnectButton/WalletConnectButton';
|
|
3
|
+
export * from './Web3Provider';
|
|
4
|
+
export * from './Homepage/Examples';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
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
2
|
|
|
3
3
|
export type Urls = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
4
|
+
rpc: string;
|
|
5
|
+
rest: string;
|
|
6
|
+
};
|
|
7
7
|
|
|
8
|
-
export const defaultUrls: {[chainName: string]: Urls} = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
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
13
|
|
|
14
14
|
// Set your selected chain here
|
|
15
15
|
// To point to mainnet, use PACIFIC_1_SEI_COSMOS_KIT_CHAIN
|
|
16
|
-
export const selectedChain = ARCTIC_1_SEI_COSMOS_KIT_CHAIN
|
|
16
|
+
export const selectedChain = ARCTIC_1_SEI_COSMOS_KIT_CHAIN;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './chain';
|
|
1
|
+
export * from './chain';
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
/*
|
|
2
2
|
1. Use a more-intuitive box-sizing model.
|
|
3
3
|
*/
|
|
4
|
-
*,
|
|
5
|
-
|
|
4
|
+
*,
|
|
5
|
+
*::before,
|
|
6
|
+
*::after {
|
|
7
|
+
box-sizing: border-box;
|
|
6
8
|
}
|
|
7
9
|
/*
|
|
8
10
|
2. Remove default margin
|
|
9
11
|
*/
|
|
10
12
|
* {
|
|
11
|
-
|
|
13
|
+
margin: 0;
|
|
12
14
|
}
|
|
13
15
|
/*
|
|
14
16
|
Typographic tweaks!
|
|
@@ -16,156 +18,167 @@
|
|
|
16
18
|
4. Improve text rendering
|
|
17
19
|
*/
|
|
18
20
|
body {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
line-height: 1.5;
|
|
22
|
+
-webkit-font-smoothing: antialiased;
|
|
21
23
|
}
|
|
22
24
|
/*
|
|
23
25
|
5. Improve media defaults
|
|
24
26
|
*/
|
|
25
|
-
img,
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
img,
|
|
28
|
+
picture,
|
|
29
|
+
video,
|
|
30
|
+
canvas,
|
|
31
|
+
svg {
|
|
32
|
+
display: block;
|
|
33
|
+
max-width: 100%;
|
|
28
34
|
}
|
|
29
35
|
/*
|
|
30
36
|
6. Remove built-in form typography styles
|
|
31
37
|
*/
|
|
32
|
-
input,
|
|
33
|
-
|
|
38
|
+
input,
|
|
39
|
+
button,
|
|
40
|
+
textarea,
|
|
41
|
+
select {
|
|
42
|
+
font: inherit;
|
|
34
43
|
}
|
|
35
44
|
/*
|
|
36
45
|
7. Avoid text overflows
|
|
37
46
|
*/
|
|
38
|
-
p,
|
|
39
|
-
|
|
40
|
-
|
|
47
|
+
p,
|
|
48
|
+
h1,
|
|
49
|
+
h2,
|
|
50
|
+
h3,
|
|
51
|
+
h4,
|
|
52
|
+
h5,
|
|
53
|
+
h6 {
|
|
54
|
+
overflow-wrap: break-word;
|
|
55
|
+
line-height: 1;
|
|
41
56
|
}
|
|
42
57
|
/*
|
|
43
58
|
8. Create a root stacking context
|
|
44
59
|
*/
|
|
45
|
-
#root,
|
|
46
|
-
|
|
60
|
+
#root,
|
|
61
|
+
#__next {
|
|
62
|
+
isolation: isolate;
|
|
47
63
|
}
|
|
48
64
|
|
|
49
|
-
|
|
50
65
|
:root {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
66
|
+
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
67
|
+
line-height: 1.5;
|
|
68
|
+
font-weight: 400;
|
|
54
69
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
70
|
+
color-scheme: light dark;
|
|
71
|
+
color: #000;
|
|
72
|
+
background: var(--background);
|
|
58
73
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
74
|
+
font-synthesis: none;
|
|
75
|
+
text-rendering: optimizeLegibility;
|
|
76
|
+
-webkit-font-smoothing: antialiased;
|
|
77
|
+
-moz-osx-font-smoothing: grayscale;
|
|
63
78
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
79
|
+
--primary-color: #9f1239;
|
|
80
|
+
--primary-color-hover: #7f0a2e;
|
|
81
|
+
--background: linear-gradient(180deg, #f5f5f4 0%, #fff 100%);
|
|
82
|
+
--border: #d6d3d1;
|
|
83
|
+
--card: #fff;
|
|
84
|
+
--card-foreground: #242424;
|
|
70
85
|
}
|
|
71
86
|
|
|
72
87
|
a {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
88
|
+
font-weight: 500;
|
|
89
|
+
color: var(--primary-color);
|
|
90
|
+
text-decoration: inherit;
|
|
76
91
|
}
|
|
77
92
|
a:hover {
|
|
78
|
-
|
|
93
|
+
color: var(--primary-color-hover);
|
|
79
94
|
}
|
|
80
95
|
|
|
81
96
|
body {
|
|
82
|
-
|
|
83
|
-
|
|
97
|
+
margin: 0;
|
|
98
|
+
padding: 0;
|
|
84
99
|
}
|
|
85
100
|
|
|
86
101
|
h1 {
|
|
87
|
-
|
|
88
|
-
|
|
102
|
+
font-size: 3.2em;
|
|
103
|
+
line-height: 1;
|
|
89
104
|
}
|
|
90
105
|
code {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
color: var(--card-foreground);
|
|
106
|
+
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
|
|
107
|
+
display: inline-flex;
|
|
108
|
+
border-radius: 4px;
|
|
109
|
+
padding: 0.1rem 0.4rem;
|
|
110
|
+
background-color: #d7cccc;
|
|
111
|
+
color: var(--card-foreground);
|
|
98
112
|
}
|
|
99
113
|
|
|
100
114
|
button {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
115
|
+
border-radius: 4rem;
|
|
116
|
+
border: 1px solid transparent;
|
|
117
|
+
padding: 0.6em 1.2em;
|
|
118
|
+
font-size: 1em;
|
|
119
|
+
font-weight: 500;
|
|
120
|
+
font-family: inherit;
|
|
121
|
+
background-color: #cec9c1;
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
transition: all 0.25s ease;
|
|
124
|
+
color: black;
|
|
111
125
|
}
|
|
112
126
|
button:hover {
|
|
113
|
-
|
|
127
|
+
background-color: #b5afa7;
|
|
114
128
|
}
|
|
115
129
|
|
|
116
130
|
button:disabled {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
131
|
+
filter: grayscale(1) opacity(0.5);
|
|
132
|
+
color: rgb(56, 55, 55);
|
|
133
|
+
pointer-events: none;
|
|
120
134
|
}
|
|
121
135
|
|
|
122
136
|
button.primary {
|
|
123
|
-
|
|
124
|
-
|
|
137
|
+
background-color: var(--primary-color);
|
|
138
|
+
color: #fff;
|
|
125
139
|
}
|
|
126
140
|
button.outline {
|
|
127
|
-
|
|
128
|
-
|
|
141
|
+
background-color: transparent;
|
|
142
|
+
border: 1px solid var(--border);
|
|
129
143
|
}
|
|
130
144
|
|
|
131
145
|
button.primary:hover {
|
|
132
|
-
|
|
146
|
+
background-color: var(--primary-color-hover);
|
|
133
147
|
}
|
|
134
148
|
|
|
135
149
|
button.secondary {
|
|
136
|
-
|
|
137
|
-
|
|
150
|
+
background-color: #000;
|
|
151
|
+
color: #fff;
|
|
138
152
|
}
|
|
139
153
|
|
|
140
154
|
button.secondary:hover {
|
|
141
|
-
|
|
155
|
+
background-color: #2b2b2b;
|
|
142
156
|
}
|
|
143
157
|
|
|
144
158
|
button:active {
|
|
145
|
-
|
|
159
|
+
transform: translateY(1px);
|
|
146
160
|
}
|
|
147
161
|
|
|
148
162
|
button.small {
|
|
149
|
-
|
|
150
|
-
|
|
163
|
+
padding: 0.4em 0.8em;
|
|
164
|
+
font-size: 0.8em;
|
|
151
165
|
}
|
|
152
166
|
|
|
153
|
-
|
|
154
167
|
button:focus-visible {
|
|
155
|
-
|
|
156
|
-
|
|
168
|
+
outline: 4px auto -webkit-focus-ring-color;
|
|
169
|
+
outline-offset: 4px;
|
|
157
170
|
}
|
|
158
171
|
|
|
159
172
|
.header {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
173
|
+
width: 100%;
|
|
174
|
+
height: 4rem;
|
|
175
|
+
padding: 0 1%;
|
|
176
|
+
display: flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
justify-content: right;
|
|
179
|
+
background-color: transparent;
|
|
180
|
+
border-bottom: 1px solid var(--border);
|
|
181
|
+
position: sticky;
|
|
182
|
+
top: 0;
|
|
183
|
+
background: #f5f5f4;
|
|
171
184
|
}
|
|
@@ -1,12 +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'
|
|
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
5
|
|
|
6
6
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
)
|
|
7
|
+
<React.StrictMode>
|
|
8
|
+
<Web3Provider>
|
|
9
|
+
<App />
|
|
10
|
+
</Web3Provider>
|
|
11
|
+
</React.StrictMode>
|
|
12
|
+
);
|
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"jsx": "react-jsx",
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"allowImportingTsExtensions": true,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"isolatedModules": true,
|
|
15
|
+
"moduleDetection": "force",
|
|
16
|
+
"noEmit": true,
|
|
17
|
+
"jsx": "react-jsx",
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"include": ["src"]
|
|
19
|
+
"strict": true,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"noUnusedParameters": true,
|
|
22
|
+
"noFallthroughCasesInSwitch": true
|
|
23
|
+
},
|
|
24
|
+
"include": ["src"]
|
|
27
25
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
"files": [],
|
|
3
|
+
"references": [
|
|
4
|
+
{
|
|
5
|
+
"path": "./tsconfig.app.json"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"path": "./tsconfig.node.json"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
11
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
9
|
"allowImportingTsExtensions": true,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
"strict": true,
|
|
11
|
+
"noEmit": true
|
|
12
|
+
},
|
|
13
|
+
"include": ["vite.config.ts"]
|
|
14
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import react from '@vitejs/plugin-react'
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import react from '@vitejs/plugin-react';
|
|
3
3
|
|
|
4
4
|
// https://vitejs.dev/config/
|
|
5
5
|
export default defineConfig({
|
|
6
|
-
|
|
7
|
-
})
|
|
6
|
+
plugins: [react()]
|
|
7
|
+
});
|