@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.
Files changed (113) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/templates/next-cosmos-template/src/app/components/Homepage/Examples.tsx +6 -6
  3. package/dist/templates/next-cosmos-template/src/app/favicon.ico +0 -0
  4. package/dist/templates/next-cosmos-template/src/app/index.css +1 -0
  5. package/dist/templates/next-cosmos-template/src/app/layout.tsx +2 -2
  6. package/dist/templates/next-wagmi-template/src/app/components/Homepage/Examples.tsx +9 -9
  7. package/dist/templates/next-wagmi-template/src/app/constants/chain.ts +1 -0
  8. package/dist/templates/next-wagmi-template/src/app/favicon.ico +0 -0
  9. package/dist/templates/next-wagmi-template/src/app/index.css +1 -0
  10. package/dist/templates/next-wagmi-template/src/app/layout.tsx +2 -2
  11. package/dist/templates/next-wagmi-template/yarn.lock +8 -13
  12. package/dist/templates/vite-cosmos-template/index.html +1 -2
  13. package/dist/templates/vite-cosmos-template/src/components/Homepage/Examples.tsx +6 -6
  14. package/dist/templates/vite-cosmos-template/src/index.css +1 -0
  15. package/dist/templates/vite-wagmi-template/index.html +1 -2
  16. package/dist/templates/vite-wagmi-template/src/components/Homepage/Examples.tsx +27 -27
  17. package/dist/templates/vite-wagmi-template/src/constants/chain.ts +4 -3
  18. package/dist/templates/vite-wagmi-template/src/index.css +2 -2
  19. package/dist/templates/vite-wagmi-template/yarn.lock +325 -244
  20. package/package.json +1 -1
  21. package/dist/templates/next-wagmi-template/public/next.svg +0 -1
  22. package/dist/templates/next-wagmi-template/public/vercel.svg +0 -1
  23. package/dist/templates/templates/next-cosmos-template/.eslintrc.json +0 -3
  24. package/dist/templates/templates/next-cosmos-template/README.md +0 -60
  25. package/dist/templates/templates/next-cosmos-template/next-env.d.ts +0 -5
  26. package/dist/templates/templates/next-cosmos-template/next.config.mjs +0 -14
  27. package/dist/templates/templates/next-cosmos-template/package.json +0 -31
  28. package/dist/templates/templates/next-cosmos-template/public/next.svg +0 -1
  29. package/dist/templates/templates/next-cosmos-template/public/sei-logotype.svg +0 -15
  30. package/dist/templates/templates/next-cosmos-template/public/vercel.svg +0 -1
  31. package/dist/templates/templates/next-cosmos-template/src/app/components/Homepage/Examples.tsx +0 -177
  32. package/dist/templates/templates/next-cosmos-template/src/app/components/Homepage/Homepage.css +0 -156
  33. package/dist/templates/templates/next-cosmos-template/src/app/components/Homepage/Homepage.tsx +0 -110
  34. package/dist/templates/templates/next-cosmos-template/src/app/components/WalletConnectButton/WalletConnectButton.tsx +0 -26
  35. package/dist/templates/templates/next-cosmos-template/src/app/components/Web3Provider.tsx +0 -39
  36. package/dist/templates/templates/next-cosmos-template/src/app/components/index.ts +0 -3
  37. package/dist/templates/templates/next-cosmos-template/src/app/constants/chain.ts +0 -16
  38. package/dist/templates/templates/next-cosmos-template/src/app/constants/index.ts +0 -1
  39. package/dist/templates/templates/next-cosmos-template/src/app/index.css +0 -171
  40. package/dist/templates/templates/next-cosmos-template/src/app/layout.tsx +0 -21
  41. package/dist/templates/templates/next-cosmos-template/src/app/page.tsx +0 -17
  42. package/dist/templates/templates/next-cosmos-template/tsconfig.json +0 -26
  43. package/dist/templates/templates/next-cosmos-template/yarn.lock +0 -9814
  44. package/dist/templates/templates/next-wagmi-template/.eslintrc.json +0 -3
  45. package/dist/templates/templates/next-wagmi-template/README.md +0 -58
  46. package/dist/templates/templates/next-wagmi-template/next-env.d.ts +0 -5
  47. package/dist/templates/templates/next-wagmi-template/next.config.mjs +0 -4
  48. package/dist/templates/templates/next-wagmi-template/package.json +0 -30
  49. package/dist/templates/templates/next-wagmi-template/public/sei-logotype.svg +0 -15
  50. package/dist/templates/templates/next-wagmi-template/src/app/components/Homepage/Examples.tsx +0 -271
  51. package/dist/templates/templates/next-wagmi-template/src/app/components/Homepage/Homepage.css +0 -156
  52. package/dist/templates/templates/next-wagmi-template/src/app/components/Homepage/Homepage.tsx +0 -113
  53. package/dist/templates/templates/next-wagmi-template/src/app/components/Web3Provider.tsx +0 -73
  54. package/dist/templates/templates/next-wagmi-template/src/app/components/index.ts +0 -2
  55. package/dist/templates/templates/next-wagmi-template/src/app/constants/chain.ts +0 -7
  56. package/dist/templates/templates/next-wagmi-template/src/app/constants/index.ts +0 -1
  57. package/dist/templates/templates/next-wagmi-template/src/app/index.css +0 -171
  58. package/dist/templates/templates/next-wagmi-template/src/app/layout.tsx +0 -21
  59. package/dist/templates/templates/next-wagmi-template/src/app/page.tsx +0 -21
  60. package/dist/templates/templates/next-wagmi-template/tsconfig.json +0 -26
  61. package/dist/templates/templates/next-wagmi-template/yarn.lock +0 -4809
  62. package/dist/templates/templates/vite-cosmos-template/.eslintrc.cjs +0 -18
  63. package/dist/templates/templates/vite-cosmos-template/README.md +0 -72
  64. package/dist/templates/templates/vite-cosmos-template/favicon.ico +0 -0
  65. package/dist/templates/templates/vite-cosmos-template/index.html +0 -16
  66. package/dist/templates/templates/vite-cosmos-template/package.json +0 -35
  67. package/dist/templates/templates/vite-cosmos-template/public/sei-logotype.svg +0 -15
  68. package/dist/templates/templates/vite-cosmos-template/src/App.tsx +0 -16
  69. package/dist/templates/templates/vite-cosmos-template/src/assets/react.svg +0 -1
  70. package/dist/templates/templates/vite-cosmos-template/src/components/Homepage/Examples.tsx +0 -177
  71. package/dist/templates/templates/vite-cosmos-template/src/components/Homepage/Homepage.css +0 -156
  72. package/dist/templates/templates/vite-cosmos-template/src/components/Homepage/Homepage.tsx +0 -102
  73. package/dist/templates/templates/vite-cosmos-template/src/components/WalletConnectButton/WalletConnectButton.tsx +0 -26
  74. package/dist/templates/templates/vite-cosmos-template/src/components/Web3Provider.tsx +0 -45
  75. package/dist/templates/templates/vite-cosmos-template/src/components/index.ts +0 -4
  76. package/dist/templates/templates/vite-cosmos-template/src/constants/chain.ts +0 -16
  77. package/dist/templates/templates/vite-cosmos-template/src/constants/index.ts +0 -1
  78. package/dist/templates/templates/vite-cosmos-template/src/index.css +0 -171
  79. package/dist/templates/templates/vite-cosmos-template/src/main.tsx +0 -12
  80. package/dist/templates/templates/vite-cosmos-template/src/vite-env.d.ts +0 -1
  81. package/dist/templates/templates/vite-cosmos-template/tsconfig.app.json +0 -27
  82. package/dist/templates/templates/vite-cosmos-template/tsconfig.json +0 -11
  83. package/dist/templates/templates/vite-cosmos-template/tsconfig.node.json +0 -14
  84. package/dist/templates/templates/vite-cosmos-template/vite.config.ts +0 -7
  85. package/dist/templates/templates/vite-cosmos-template/yarn.lock +0 -9323
  86. package/dist/templates/templates/vite-wagmi-template/.eslintrc.cjs +0 -18
  87. package/dist/templates/templates/vite-wagmi-template/README.md +0 -72
  88. package/dist/templates/templates/vite-wagmi-template/favicon.ico +0 -0
  89. package/dist/templates/templates/vite-wagmi-template/index.html +0 -12
  90. package/dist/templates/templates/vite-wagmi-template/package.json +0 -33
  91. package/dist/templates/templates/vite-wagmi-template/public/sei-logotype.svg +0 -15
  92. package/dist/templates/templates/vite-wagmi-template/src/App.tsx +0 -22
  93. package/dist/templates/templates/vite-wagmi-template/src/assets/react.svg +0 -1
  94. package/dist/templates/templates/vite-wagmi-template/src/components/Homepage/Examples.tsx +0 -269
  95. package/dist/templates/templates/vite-wagmi-template/src/components/Homepage/Homepage.css +0 -156
  96. package/dist/templates/templates/vite-wagmi-template/src/components/Homepage/Homepage.tsx +0 -106
  97. package/dist/templates/templates/vite-wagmi-template/src/components/Web3Provider.tsx +0 -71
  98. package/dist/templates/templates/vite-wagmi-template/src/constants/chain.ts +0 -6
  99. package/dist/templates/templates/vite-wagmi-template/src/constants/index.ts +0 -1
  100. package/dist/templates/templates/vite-wagmi-template/src/index.css +0 -170
  101. package/dist/templates/templates/vite-wagmi-template/src/main.tsx +0 -12
  102. package/dist/templates/templates/vite-wagmi-template/src/vite-env.d.ts +0 -1
  103. package/dist/templates/templates/vite-wagmi-template/tsconfig.app.json +0 -27
  104. package/dist/templates/templates/vite-wagmi-template/tsconfig.json +0 -11
  105. package/dist/templates/templates/vite-wagmi-template/tsconfig.node.json +0 -14
  106. package/dist/templates/templates/vite-wagmi-template/vite.config.ts +0 -10
  107. package/dist/templates/templates/vite-wagmi-template/yarn.lock +0 -4603
  108. package/dist/templates/vite-cosmos-template/_gitignore +0 -24
  109. package/dist/templates/vite-cosmos-template/public/vite.svg +0 -1
  110. package/dist/templates/vite-wagmi-template/_gitignore +0 -24
  111. package/dist/templates/vite-wagmi-template/public/vite.svg +0 -1
  112. /package/dist/templates/{templates/next-cosmos-template/src/app → vite-cosmos-template}/favicon.ico +0 -0
  113. /package/dist/templates/{templates/next-wagmi-template/src/app → vite-wagmi-template}/favicon.ico +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @sei-js/create-sei-app
2
2
 
3
+ ## 0.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - e3a4c8e: First release
8
+
9
+ ## 0.0.0-internal-20240718212746
10
+
11
+ ### Major Changes
12
+
13
+ - test
14
+
3
15
  ## 0.0.0-internal-20240718212405
4
16
 
5
17
  ### Major Changes
@@ -22,7 +22,7 @@ function Examples({ chainId }: ExampleProps) {
22
22
  setPool(result.pool)
23
23
  }
24
24
 
25
- const getStakingPoolExample = () => {
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 getBalanceExample = () => {
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 counterContractExample = () => {
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
- {getBalanceExample()}
171
- {getStakingPoolExample()}
172
- {counterContractExample()}
170
+ {renderBalanceExample()}
171
+ {renderStakingPoolExample()}
172
+ {renderCounterContractExample()}
173
173
  </div>
174
174
  )
175
175
  }
@@ -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;
@@ -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: "Create Next App",
8
- description: "Generated by create next app",
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 getAddressExample = () => {
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 getBalanceExample = () => {
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?.readContract(params) as BigInt;
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 getBankSupplyExample = () => {
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 counterContractExample = () => {
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
- {getAddressExample()}
256
+ {renderAddressExample()}
257
257
 
258
258
  {/* Second card */}
259
- {getBalanceExample()}
259
+ {renderBalanceExample()}
260
260
 
261
261
  {/* Third card */}
262
- {getBankSupplyExample()}
262
+ {renderBankSupplyExample()}
263
263
 
264
264
  {/* Fourth card */}
265
- {counterContractExample()}
265
+ {renderCounterContractExample()}
266
266
  </div>
267
267
  </div>
268
268
  )
@@ -1,6 +1,7 @@
1
1
  // Set your selected chain here
2
2
  import { seiDevnet } from "viem/chains";
3
3
 
4
+ // Set your selected chain here
4
5
  // To point to mainnet, use sei.
5
6
  // To point to testnet, use seiTestnet.
6
7
  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;
@@ -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: "Create Next App",
8
- description: "Generated by create next app",
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.16.0"
4584
- resolved "https://registry.yarnpkg.com/viem/-/viem-2.16.0.tgz#646b7a872bc734de210e577f4b3630ffdc110b6d"
4585
- integrity sha512-qXakKfshaDOiQFgb3MgROKDa4bfr095GMUqrD2WN6UMdzH7WtlAYJ65vnrpoXpny9jXAyNoirEJeBBUF9KFNIQ==
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.2.0"
4589
- "@noble/hashes" "1.3.2"
4590
- "@scure/bip32" "1.3.2"
4591
- "@scure/bip39" "1.2.1"
4592
- abitype "1.0.4"
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 + React + TS</title>
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 getStakingPoolExample = () => {
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 getBalanceExample = () => {
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 counterContractExample = () => {
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
- {getBalanceExample()}
171
- {getStakingPoolExample()}
172
- {counterContractExample()}
170
+ {renderBalanceExample()}
171
+ {renderStakingPoolExample()}
172
+ {renderCounterContractExample()}
173
173
  </div>
174
174
  )
175
175
  }
@@ -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;
@@ -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 + React + TS</title>
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 getAddressExample = () => {
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 getBalanceExample = () => {
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
- // 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']
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 getBankSupplyExample = () => {
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 counterContractExample = () => {
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
- {getAddressExample()}
254
+ {renderAddressExample()}
255
255
 
256
256
  {/* Second card */}
257
- {getBalanceExample()}
257
+ {renderBalanceExample()}
258
258
 
259
259
  {/* Third card */}
260
- {getBankSupplyExample()}
260
+ {renderBankSupplyExample()}
261
261
 
262
262
  {/* Fourth card */}
263
- {counterContractExample()}
263
+ {renderCounterContractExample()}
264
264
  </div>
265
265
  </div>
266
266
  )
@@ -1,5 +1,6 @@
1
- import { ARCTIC_1_VIEM_CHAIN } from '@sei-js/evm';
1
+ import { seiDevnet } from 'viem/chains';
2
2
 
3
3
  // Set your selected chain here
4
- // To point to mainnet, use PACIFIC_1_VIEM_CHAIN
5
- export const selectedChain = ARCTIC_1_VIEM_CHAIN
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: #fff;
136
+ color: black;
137
137
  }
138
138
 
139
139
  button.secondary:hover {