@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
package/CHANGELOG.md
CHANGED
|
@@ -22,7 +22,7 @@ function Examples({ chainId }: ExampleProps) {
|
|
|
22
22
|
setPool(result.pool)
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const
|
|
25
|
+
const renderStakingPoolExample = () => {
|
|
26
26
|
return (
|
|
27
27
|
<div className="card">
|
|
28
28
|
<div className="card-header">
|
|
@@ -60,7 +60,7 @@ function Examples({ chainId }: ExampleProps) {
|
|
|
60
60
|
setBalance(seiBalance);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
const
|
|
63
|
+
const renderBalanceExample = () => {
|
|
64
64
|
return (
|
|
65
65
|
<div className="card">
|
|
66
66
|
<div className="card-header">
|
|
@@ -132,7 +132,7 @@ function Examples({ chainId }: ExampleProps) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
const
|
|
135
|
+
const renderCounterContractExample = () => {
|
|
136
136
|
return (
|
|
137
137
|
<div className="card">
|
|
138
138
|
<div className="card-header">
|
|
@@ -167,9 +167,9 @@ function Examples({ chainId }: ExampleProps) {
|
|
|
167
167
|
|
|
168
168
|
return (
|
|
169
169
|
<div className="grid">
|
|
170
|
-
{
|
|
171
|
-
{
|
|
172
|
-
{
|
|
170
|
+
{renderBalanceExample()}
|
|
171
|
+
{renderStakingPoolExample()}
|
|
172
|
+
{renderCounterContractExample()}
|
|
173
173
|
</div>
|
|
174
174
|
)
|
|
175
175
|
}
|
|
Binary file
|
|
@@ -4,8 +4,8 @@ import { Inter } from "next/font/google";
|
|
|
4
4
|
const inter = Inter({ subsets: ["latin"] });
|
|
5
5
|
|
|
6
6
|
export const metadata: Metadata = {
|
|
7
|
-
title: "
|
|
8
|
-
description: "Generated by create
|
|
7
|
+
title: "Sei Next App (Cosmos)",
|
|
8
|
+
description: "Generated by create sei app",
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export default function RootLayout({
|
|
@@ -34,7 +34,7 @@ function Examples() {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
const
|
|
37
|
+
const renderAddressExample = () => {
|
|
38
38
|
return (
|
|
39
39
|
<div className="card">
|
|
40
40
|
<div className="card-header">
|
|
@@ -84,7 +84,7 @@ function Examples() {
|
|
|
84
84
|
setBalance(seiBalance);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
const
|
|
87
|
+
const renderBalanceExample = () => {
|
|
88
88
|
return (
|
|
89
89
|
<div className="card">
|
|
90
90
|
<div className="card-header">
|
|
@@ -121,7 +121,7 @@ function Examples() {
|
|
|
121
121
|
args: ['usei']
|
|
122
122
|
}
|
|
123
123
|
try {
|
|
124
|
-
const response = await publicClient
|
|
124
|
+
const response = await publicClient.readContract(params) as BigInt;
|
|
125
125
|
const supply = formatLargeSeiNumber(response.toString(), 1)
|
|
126
126
|
setSupply(supply);
|
|
127
127
|
} catch (e) {
|
|
@@ -129,7 +129,7 @@ function Examples() {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
const
|
|
132
|
+
const renderBankSupplyExample = () => {
|
|
133
133
|
return (
|
|
134
134
|
<div className="card">
|
|
135
135
|
<div className="card-header">
|
|
@@ -216,7 +216,7 @@ function Examples() {
|
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
218
|
|
|
219
|
-
const
|
|
219
|
+
const renderCounterContractExample = () => {
|
|
220
220
|
return (
|
|
221
221
|
<div className="card">
|
|
222
222
|
<div className="card-header">
|
|
@@ -253,16 +253,16 @@ function Examples() {
|
|
|
253
253
|
<div className="container">
|
|
254
254
|
<div className="grid">
|
|
255
255
|
{/* First card */}
|
|
256
|
-
{
|
|
256
|
+
{renderAddressExample()}
|
|
257
257
|
|
|
258
258
|
{/* Second card */}
|
|
259
|
-
{
|
|
259
|
+
{renderBalanceExample()}
|
|
260
260
|
|
|
261
261
|
{/* Third card */}
|
|
262
|
-
{
|
|
262
|
+
{renderBankSupplyExample()}
|
|
263
263
|
|
|
264
264
|
{/* Fourth card */}
|
|
265
|
-
{
|
|
265
|
+
{renderCounterContractExample()}
|
|
266
266
|
</div>
|
|
267
267
|
</div>
|
|
268
268
|
)
|
|
Binary file
|
|
@@ -4,8 +4,8 @@ import { Inter } from "next/font/google";
|
|
|
4
4
|
const inter = Inter({ subsets: ["latin"] });
|
|
5
5
|
|
|
6
6
|
export const metadata: Metadata = {
|
|
7
|
-
title: "
|
|
8
|
-
description: "Generated by create
|
|
7
|
+
title: "Sei Next App (Wagmi)",
|
|
8
|
+
description: "Generated by create sei app",
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export default function RootLayout({
|
|
@@ -1215,11 +1215,6 @@ abitype@0.9.8:
|
|
|
1215
1215
|
resolved "https://registry.yarnpkg.com/abitype/-/abitype-0.9.8.tgz#1f120b6b717459deafd213dfbf3a3dd1bf10ae8c"
|
|
1216
1216
|
integrity sha512-puLifILdm+8sjyss4S+fsUN09obiT1g2YW6CtcQF+QDzxR0euzgEB29MZujC6zMk2a6SVmtttq1fc6+YFA7WYQ==
|
|
1217
1217
|
|
|
1218
|
-
abitype@1.0.4:
|
|
1219
|
-
version "1.0.4"
|
|
1220
|
-
resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.4.tgz#a817ff44860e8a84e9a37ed22aa9b738dbb51dba"
|
|
1221
|
-
integrity sha512-UivtYZOGJGE8rsrM/N5vdRkUpqEZVmuTumfTuolm7m/6O09wprd958rx8kUBwVAAAhQDveGAgD0GJdBuR8s6tw==
|
|
1222
|
-
|
|
1223
1218
|
abitype@1.0.5:
|
|
1224
1219
|
version "1.0.5"
|
|
1225
1220
|
resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.5.tgz#29d0daa3eea867ca90f7e4123144c1d1270774b6"
|
|
@@ -4580,16 +4575,16 @@ viem@^2.0.0:
|
|
|
4580
4575
|
ws "8.17.1"
|
|
4581
4576
|
|
|
4582
4577
|
viem@^2.15.1:
|
|
4583
|
-
version "2.
|
|
4584
|
-
resolved "https://registry.yarnpkg.com/viem/-/viem-2.
|
|
4585
|
-
integrity sha512-
|
|
4578
|
+
version "2.17.5"
|
|
4579
|
+
resolved "https://registry.yarnpkg.com/viem/-/viem-2.17.5.tgz#9610378e22ff478cd6857a14aea1311d43699fa4"
|
|
4580
|
+
integrity sha512-m0QIKQF1uqTFWAYNeAdhNUBFMaIs0Mwhu2VmZuXmBMkzJ0IL0ViblLH13JRwbDnOaY82KYzNhCARmfnLBWVdkA==
|
|
4586
4581
|
dependencies:
|
|
4587
4582
|
"@adraffy/ens-normalize" "1.10.0"
|
|
4588
|
-
"@noble/curves" "1.
|
|
4589
|
-
"@noble/hashes" "1.
|
|
4590
|
-
"@scure/bip32" "1.
|
|
4591
|
-
"@scure/bip39" "1.
|
|
4592
|
-
abitype "1.0.
|
|
4583
|
+
"@noble/curves" "1.4.0"
|
|
4584
|
+
"@noble/hashes" "1.4.0"
|
|
4585
|
+
"@scure/bip32" "1.4.0"
|
|
4586
|
+
"@scure/bip39" "1.3.0"
|
|
4587
|
+
abitype "1.0.5"
|
|
4593
4588
|
isows "1.0.4"
|
|
4594
4589
|
ws "8.17.1"
|
|
4595
4590
|
|
|
@@ -6,9 +6,8 @@
|
|
|
6
6
|
window.Buffer = Buffer;
|
|
7
7
|
</script>
|
|
8
8
|
<meta charset="UTF-8" />
|
|
9
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
10
9
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
11
|
-
<title>Vite
|
|
10
|
+
<title>Sei Vite App (Cosmos)</title>
|
|
12
11
|
</head>
|
|
13
12
|
<body>
|
|
14
13
|
<div id="root"></div>
|
|
@@ -22,7 +22,7 @@ function Examples({ chainId }: ExampleProps) {
|
|
|
22
22
|
setPool(result.pool)
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const
|
|
25
|
+
const renderStakingPoolExample = () => {
|
|
26
26
|
return (
|
|
27
27
|
<div className="card">
|
|
28
28
|
<div className="card-header">
|
|
@@ -60,7 +60,7 @@ function Examples({ chainId }: ExampleProps) {
|
|
|
60
60
|
setBalance(seiBalance);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
const
|
|
63
|
+
const renderBalanceExample = () => {
|
|
64
64
|
return (
|
|
65
65
|
<div className="card">
|
|
66
66
|
<div className="card-header">
|
|
@@ -132,7 +132,7 @@ function Examples({ chainId }: ExampleProps) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
const
|
|
135
|
+
const renderCounterContractExample = () => {
|
|
136
136
|
return (
|
|
137
137
|
<div className="card">
|
|
138
138
|
<div className="card-header">
|
|
@@ -167,9 +167,9 @@ function Examples({ chainId }: ExampleProps) {
|
|
|
167
167
|
|
|
168
168
|
return (
|
|
169
169
|
<div className="grid">
|
|
170
|
-
{
|
|
171
|
-
{
|
|
172
|
-
{
|
|
170
|
+
{renderBalanceExample()}
|
|
171
|
+
{renderStakingPoolExample()}
|
|
172
|
+
{renderCounterContractExample()}
|
|
173
173
|
</div>
|
|
174
174
|
)
|
|
175
175
|
}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>Vite
|
|
6
|
+
<title>Sei Vite App (Wagmi)</title>
|
|
8
7
|
</head>
|
|
9
8
|
<body>
|
|
10
9
|
<div id="root"></div>
|
|
@@ -32,7 +32,7 @@ function Examples() {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
const
|
|
35
|
+
const renderAddressExample = () => {
|
|
36
36
|
return (
|
|
37
37
|
<div className="card">
|
|
38
38
|
<div className="card-header">
|
|
@@ -82,7 +82,7 @@ function Examples() {
|
|
|
82
82
|
setBalance(seiBalance);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
const
|
|
85
|
+
const renderBalanceExample = () => {
|
|
86
86
|
return (
|
|
87
87
|
<div className="card">
|
|
88
88
|
<div className="card-header">
|
|
@@ -106,28 +106,28 @@ function Examples() {
|
|
|
106
106
|
)
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
try {
|
|
122
|
-
const response = await publicClient?.readContract(params) as BigInt;
|
|
123
|
-
const supply = formatLargeSeiNumber(response.toString(), 1)
|
|
124
|
-
setSupply(supply);
|
|
125
|
-
} catch (e) {
|
|
126
|
-
console.log(e);
|
|
127
|
-
}
|
|
109
|
+
// Example of using precompiles to query native Sei modules.
|
|
110
|
+
const getBankSupply = async () => {
|
|
111
|
+
if (!publicClient) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const params: ReadContractParameters = {
|
|
116
|
+
address: BANK_PRECOMPILE_ADDRESS,
|
|
117
|
+
abi: BANK_PRECOMPILE_ABI,
|
|
118
|
+
functionName: 'supply',
|
|
119
|
+
args: ['usei']
|
|
128
120
|
}
|
|
121
|
+
try {
|
|
122
|
+
const response = await publicClient.readContract(params) as BigInt;
|
|
123
|
+
const supply = formatLargeSeiNumber(response.toString(), 1)
|
|
124
|
+
setSupply(supply);
|
|
125
|
+
} catch (e) {
|
|
126
|
+
console.log(e);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
129
|
|
|
130
|
-
const
|
|
130
|
+
const renderBankSupplyExample = () => {
|
|
131
131
|
return (
|
|
132
132
|
<div className="card">
|
|
133
133
|
<div className="card-header">
|
|
@@ -214,7 +214,7 @@ function Examples() {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
-
const
|
|
217
|
+
const renderCounterContractExample = () => {
|
|
218
218
|
return (
|
|
219
219
|
<div className="card">
|
|
220
220
|
<div className="card-header">
|
|
@@ -251,16 +251,16 @@ function Examples() {
|
|
|
251
251
|
<div className="container">
|
|
252
252
|
<div className="grid">
|
|
253
253
|
{/* First card */}
|
|
254
|
-
{
|
|
254
|
+
{renderAddressExample()}
|
|
255
255
|
|
|
256
256
|
{/* Second card */}
|
|
257
|
-
{
|
|
257
|
+
{renderBalanceExample()}
|
|
258
258
|
|
|
259
259
|
{/* Third card */}
|
|
260
|
-
{
|
|
260
|
+
{renderBankSupplyExample()}
|
|
261
261
|
|
|
262
262
|
{/* Fourth card */}
|
|
263
|
-
{
|
|
263
|
+
{renderCounterContractExample()}
|
|
264
264
|
</div>
|
|
265
265
|
</div>
|
|
266
266
|
)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { seiDevnet } from 'viem/chains';
|
|
2
2
|
|
|
3
3
|
// Set your selected chain here
|
|
4
|
-
// To point to mainnet, use
|
|
5
|
-
|
|
4
|
+
// To point to mainnet, use sei.
|
|
5
|
+
// To point to testnet, use seiTestnet.
|
|
6
|
+
export const selectedChain = seiDevnet
|
|
@@ -107,6 +107,7 @@ button {
|
|
|
107
107
|
background-color: #cec9c1;
|
|
108
108
|
cursor: pointer;
|
|
109
109
|
transition: all 0.25s ease;
|
|
110
|
+
color: black
|
|
110
111
|
}
|
|
111
112
|
button:hover {
|
|
112
113
|
background-color: #b5afa7;
|
|
@@ -120,7 +121,6 @@ button:disabled {
|
|
|
120
121
|
|
|
121
122
|
button.primary {
|
|
122
123
|
background-color: var(--primary-color);
|
|
123
|
-
color: #fff;
|
|
124
124
|
}
|
|
125
125
|
button.outline {
|
|
126
126
|
background-color: transparent;
|
|
@@ -133,7 +133,7 @@ button.primary:hover {
|
|
|
133
133
|
|
|
134
134
|
button.secondary {
|
|
135
135
|
background-color: #000;
|
|
136
|
-
color:
|
|
136
|
+
color: black;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
button.secondary:hover {
|