-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ECO-1749] Register market functionality (#83)
Co-authored-by: matt <[email protected]>
- Loading branch information
Showing
73 changed files
with
839 additions
and
509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ merperson | |
moai | ||
mybuilder | ||
nazar | ||
nextjs | ||
nohup | ||
octa | ||
oden | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
# To run your own local node for e2e testing, set this to "false" | ||
START_LOCAL_NODE_FOR_TEST="true" | ||
|
||
# The Aptos network to use | ||
NEXT_PUBLIC_APTOS_NETWORK="local" | ||
|
||
# Randomly generated private key for tests | ||
PUBLISHER_PK="29479e9e5fe47ba9a8af509dd6da1f907510bcf8917bfb19b7079d8c63c0b720" | ||
|
||
# The address of the main `emojicoin_dot_fun` contract module | ||
NEXT_PUBLIC_MODULE_ADDRESS="0x4bab58978ec1b1bef032eeb285ad47a6a9b997d646c19b598c35f46b26ff9ece" | ||
|
||
# The default URL for a local inbox deployment. Do not add a slash to the end | ||
INBOX_URL="http://localhost:3000" | ||
|
||
## A `nextjs` setting to determine the query revalidation length | ||
SHORT_REVALIDATE="true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
START_LOCAL_NODE_FOR_TEST="false" | ||
SHORT_REVALIDATE="true" | ||
|
||
NEXT_PUBLIC_APTOS_NETWORK="local" | ||
NEXT_PUBLIC_INTEGRATOR_ADDRESS="0x4bab58978ec1b1bef032eeb285ad47a6a9b997d646c19b598c35f46b26ff9ece" | ||
NEXT_PUBLIC_MODULE_ADDRESS="0x4bab58978ec1b1bef032eeb285ad47a6a9b997d646c19b598c35f46b26ff9ece" | ||
|
||
PUBLISHER_PK="29479e9e5fe47ba9a8af509dd6da1f907510bcf8917bfb19b7079d8c63c0b720" | ||
|
||
INBOX_URL="http://localhost:3000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ build/** | |
dist/** | ||
.next/** | ||
node_modules/ | ||
.env*.local | ||
**/*.env*.local | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# How to build and deploy this application | ||
|
||
## Ensure the environment variables are loaded | ||
|
||
This repository loads environment variables in multiple ways. | ||
|
||
To load environment variables while running test scripts, each `package.json` | ||
file in the `sdk` folder specifies how to load these environment variables. Most | ||
scripts run the `dotenv-cli` package as a wrapper, like so: | ||
|
||
```shell | ||
# In sdk/package.json: | ||
"test": "dotenv -e ../.env.test -- pnpm jest", | ||
|
||
# I run this command | ||
pnpm run test | ||
|
||
# Which loads the env variables in `../.env.test` and runs `jest` | ||
``` | ||
|
||
Where `../.env.test` is the environment file located in the `typescript` parent | ||
directory. | ||
|
||
To avoid having to define environment variables in multiple places, we've | ||
intentionally omitted environment variables from the `frontend` directory to | ||
enforce that the project be built and run in a certain order. | ||
|
||
## Copy the `.env.example` file to an `.env` or `.env.local` file | ||
|
||
Most commands load `.env.local` first then `.env`, so copy the environment | ||
example file to your own file. | ||
|
||
```shell | ||
# With the highest precedence. | ||
cp .env.example .env.local | ||
# or just `.env.`, which will be superseded by `.env.local` in loading order | ||
cp .env.example .env | ||
``` | ||
|
||
## Run the `frontend` application | ||
|
||
```shell | ||
cd src/typescript | ||
pnpm i | ||
|
||
# to rebuild everything and run | ||
pnpm run build | ||
pnpm run start | ||
|
||
# or, for hot reloads (does not rebuild) | ||
pnpm run dev | ||
``` | ||
|
||
Sometimes, `turbo` and `next` have build caches that persist and cause errors. | ||
This can be avoided with a clever build process, however, you can also just | ||
delete the `.next` and `.turbo` folders in each directory. | ||
|
||
You can also run: | ||
|
||
```shell | ||
pnpm run full-clean | ||
``` | ||
|
||
Note this remove's each project's `node_modules`, although it does not remove | ||
the `pnpm-lock.yaml` file. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import Home from "components/pages/home"; | ||
import ClientHomePage from "components/pages/home/ClientHomePage"; | ||
import { fetchTopMarkets } from "lib/queries/initial/markets"; | ||
|
||
export default async function HomePage() { | ||
const data = await fetchTopMarkets(); | ||
|
||
return <Home data={data} />; | ||
return <ClientHomePage data={data} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import LaunchEmojicoin from "components/pages/launch-emojicoin"; | ||
import ClientLaunchEmojicoinPage from "../../components/pages/launch-emojicoin/ClientLaunchEmojicoinPage"; | ||
|
||
export default function LaunchEmojicoinPage() { | ||
return <LaunchEmojicoin />; | ||
return <ClientLaunchEmojicoinPage />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import Pools from "components/pages/pools"; | ||
import ClientPoolsPage from "components/pages/pools/ClientPoolsPage"; | ||
|
||
export default function PoolsPage() { | ||
return <Pools />; | ||
return <ClientPoolsPage />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
src/typescript/frontend/src/components/pages/connect-wallet/index.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
export * from "./not-found"; | ||
export * from "./connect-wallet"; | ||
export * from "./emojicoin"; | ||
export * from "./launch-emojicoin"; | ||
export * from "./emojicoin/ClientEmojicoinPage"; | ||
export * from "./launch-emojicoin/ClientLaunchEmojicoinPage"; | ||
export * from "./pools/components"; |
Oops, something went wrong.