diff --git a/README.md b/README.md index 6f388fe4f..62ffa3639 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Directory: [provider-proxy](/provider-proxy/) Provides data to the deploy website. The data is fetched from our Indexer database + coingecko for market data. This api also provides the endpoint for the [Web3 Index](https://web3index.org/) integration. -Url: [api.cloudmos.io](https://api.cloudmos.io) +Url: [console-api.akash.network](https://console-api.akash.network) Directory: [api](/api/) ## Indexer @@ -138,9 +138,9 @@ Due to the extensive time required to index Akash from block #1, it's recommende ### Available Backups -- **Mainnet Database (~30 GB):** [cloudmos-akash-mainnet.sql.gz](https://storage.googleapis.com/cloudmos-postgresql-backups/console-akash-mainnet.sql.gz) +- **Mainnet Database (~30 GB):** [console-akash-mainnet.sql.gz](https://storage.googleapis.com/console-postgresql-backups/console-akash-mainnet.sql.gz) - Suitable for scenarios requiring complete data. -- **Sandbox Database (< 300 MB):** [cloudmos-akash-sandbox.sql.gz](https://storage.googleapis.com/cloudmos-postgresql-backups/console-akash-sandbox.sql.gz) +- **Sandbox Database (< 300 MB):** [console-akash-sandbox.sql.gz](https://storage.googleapis.com/console-postgresql-backups/console-akash-sandbox.sql.gz) - Ideal for most development needs, although it may lack recent chain updates. ### Restoration Steps @@ -150,7 +150,7 @@ Due to the extensive time required to index Akash from block #1, it's recommende For a .sql.gz file: ```sh -gunzip -c /path/to/cloudmos-akash-sandbox.sql.gz | psql --host "localhost" --port "5432" --username "postgres" --dbname "cloudmos-akash" +gunzip -c /path/to/console-akash-sandbox.sql.gz | psql --host "localhost" --port "5432" --username "postgres" --dbname "console-akash" ``` After restoring the database, you can proceed with the specific project's README instructions for further setup and running the application. diff --git a/apps/api/README.md b/apps/api/README.md index 581a9ab00..29b490fce 100644 --- a/apps/api/README.md +++ b/apps/api/README.md @@ -1,4 +1,3 @@ - # Console API - [Environment Variables](#environment-variables) @@ -8,9 +7,9 @@ 1. Make sure you have a valid [Akash database](../README.md#how-to-run) first. 2. Make sure you have a valid User database. If the user database is empty, the necessary tables will be created automatically. -2. Create a `.env` file with the necessary [environment variables](#environment-variables). -3. Run `npm install` to install dependencies. -4. Start the app with `npm start`. +3. Create a `.env` file with the necessary [environment variables](#environment-variables). +4. Run `npm install` to install dependencies. +5. Start the app with `npm start`. You can make sure the api is working by accessing the status endpoint: `http://localhost:3080/status` @@ -32,6 +31,7 @@ This app utilizes `.env*` files to manage environment variables. The list of env - **Variable Precedence**: If a variable is already set in the environment, it will not be overridden by values in the `.env*` files. This behavior is critical when adjusting the loading order of these files. ## Testing + Project is configured to use [Jest](https://jestjs.io/) for testing. It is intended to be covered with unit and functional tests where applicable. ### Running tests @@ -40,7 +40,7 @@ To execute both **unit and functional** tests, run: ```shell npm test -```` +``` To run **unit** tests exclusively, use: @@ -55,6 +55,7 @@ npm run test:functional ``` #### Watch Mode + To automatically re-run tests upon any changes, use the following watch mode commands: ```shell @@ -62,8 +63,11 @@ npm test:watch npm run test:unit:watch npm run test:functional:watch ``` + #### Collecting Coverage + To collect and view test coverage, use the following commands: + ```shell npm test:coverage npm run test:unit:coverage @@ -71,6 +75,7 @@ npm run test:functional:coverage ``` ### Contributing to Tests + **Unit Tests**: Focus on testing individual functions and components in isolation, without external dependencies. **Test File Structure**: For consistency, each component tested with unit tests should reside in its own directory, named after the component. Place the test file alongside the component, suffixed with .spec. For example: @@ -89,14 +94,14 @@ src/ ### Api Versioning -The public api version will now be included in the url like so: api.cloudmos.io/**v1**/\ +The public api version will now be included in the url like so: console-api.akash.network/**v1**/\ Changes that are backward compatible like adding a new endpoint will be done in the existing version. Changes that are **not** backward compatible, such as removing an endpoint, will be done in a new version. When releasing a new version, a list of breaking changes will be made available. We will keep the old version available for a while to give users enough time to migrate their applications to the latest version. ### Swagger Documentation -A swagger documentation is now available at https://api.cloudmos.io/v1/swagger. You can use it to see the list of available endpoints and try them directly in your browser. +A swagger documentation is now available at https://console-api.akash.network/v1/swagger. You can use it to see the list of available endpoints and try them directly in your browser. ### Route Changes @@ -104,22 +109,21 @@ The `/api` prefix was removed from every public endpoints and instead the versio Here is a list of endpoints that have changed in this release. Old endpoints will temporarily redirect to the new ones. In future releases, the [versioning system](#api-versioning) will be used instead of redirects. - -|Old|New| -|-|- -|`/dashboardData`|`/dashboard-data` -|`/getNetworkCapacity`|`/network-capacity` -|`/getMainnetNodes`|`/nodes/mainnet` -|`/getSandboxNodes`|`/nodes/sandbox` -|`/getTestnetNodes`|`/nodes/testnet` -|`/getProviderAttributesSchema`|`/provider-attributes-schema` -|`/getMainnetVersion`|`/version/mainnet` -|`/getSandboxVersion`|`/version/sandbox` -|`/getTestnetVersion`|`/version/testnet` -|`/getProviderGraphData/`|`/provider-graph-data/` -|`/getProviderActiveLeasesGraphData/
`|`/provider-active-leases-graph-data/
` -|`/getGraphData/`|`/graph-data/` -|`/marketData`|`/market-data` -|`/predicted-block-date//` | `/predicted-block-date/?blockWindow=` -|`/predicted-date-height//` | `/predicted-date-height/?blockWindow=` -|`/providers//deployments///`|`/providers//deployments//?status=` +| Old | New | +| ---------------------------------------------------------- | ----------------------------------------------------------------- | +| `/dashboardData` | `/dashboard-data` | +| `/getNetworkCapacity` | `/network-capacity` | +| `/getMainnetNodes` | `/nodes/mainnet` | +| `/getSandboxNodes` | `/nodes/sandbox` | +| `/getTestnetNodes` | `/nodes/testnet` | +| `/getProviderAttributesSchema` | `/provider-attributes-schema` | +| `/getMainnetVersion` | `/version/mainnet` | +| `/getSandboxVersion` | `/version/sandbox` | +| `/getTestnetVersion` | `/version/testnet` | +| `/getProviderGraphData/` | `/provider-graph-data/` | +| `/getProviderActiveLeasesGraphData/
` | `/provider-active-leases-graph-data/
` | +| `/getGraphData/` | `/graph-data/` | +| `/marketData` | `/market-data` | +| `/predicted-block-date//` | `/predicted-block-date/?blockWindow=` | +| `/predicted-date-height//` | `/predicted-date-height/?blockWindow=` | +| `/providers//deployments///` | `/providers//deployments//?status=` | diff --git a/apps/api/deploy.yml b/apps/api/deploy.yml index e5bb66502..9067ad4c4 100644 --- a/apps/api/deploy.yml +++ b/apps/api/deploy.yml @@ -6,10 +6,10 @@ services: image: : depends-on: cloud-sql-proxy env: - - AkashlyticsGithubPAT= - - AkashSandboxDatabaseCS= - - UserDatabaseCS= - - SecretToken= + - GITHUB_PAT= + - AKASH_SANDBOX_DATABASE_CS= + - USER_DATABASE_CS= + - SECRET_TOKEN= - NETWORK= - MASTER_WALLET_MNEMONIC= - POSTGRES_DB_URI= @@ -23,7 +23,7 @@ services: - port: 3080 as: 80 accept: - - api-sandbox-staging.cloudmos.io + - console-api-sandbox-staging.akash.network to: - global: true cloud-sql-proxy: diff --git a/apps/api/env/.env b/apps/api/env/.env index 6a1f3ca6c..dd1435002 100644 --- a/apps/api/env/.env +++ b/apps/api/env/.env @@ -1,4 +1,4 @@ -AKASHLYTICS_CORS_WEBSITE_URLS=https://cloudmos.io,https://www.cloudmos.io,http://debug.cloudmos.io,https://deploy.cloudmos.io,https://beta.cloudmos.io,https://stats.akash.network,https://console.akash.network,https://akash.network,https://akash.hooman.digital,http://localhost:3000,http://localhost:3001,https://beta2.cloudmos.io,https://beta3.cloudmos.io,https://akashconsole.vercel.app,https://console-beta.akash.network +CORS_WEBSITE_URLS=https://stats.akash.network,https://console.akash.network,https://akash.network,https://akash.hooman.digital,http://localhost:3000,http://localhost:3001,https://akashconsole.vercel.app,https://console-beta.akash.network WEBSITE_URL=https://console-beta.akash.network TRIAL_DEPLOYMENT_ALLOWANCE_AMOUNT=10000000 DEPLOYMENT_ALLOWANCE_REFILL_AMOUNT=10000000 diff --git a/apps/api/env/.env.production b/apps/api/env/.env.production index 50846f66a..0dd990d4a 100644 --- a/apps/api/env/.env.production +++ b/apps/api/env/.env.production @@ -2,7 +2,7 @@ AUTH0_JWKS_URI=https://cloudmos-prod.us.auth0.com/.well-known/jwks.json AUTH0_AUDIENCE=https://api.cloudmos.io AUTH0_ISSUER=https://auth.cloudmos.io/ PORT=80 -SERVER_ORIGIN=https://api.cloudmos.io +SERVER_ORIGIN=https://console-api.akash.network DRIZZLE_MIGRATIONS_FOLDER=./dist/drizzle SENTRY_ENABLED=true BILLING_ENABLED=false diff --git a/apps/api/env/.env.sample b/apps/api/env/.env.sample index 879a0139c..ea7075e3a 100644 --- a/apps/api/env/.env.sample +++ b/apps/api/env/.env.sample @@ -1,6 +1,6 @@ # Secrets AKASH_DATABASE_CS= -AKASHLYTICS_GITHUB_PAT= +GITHUB_PAT= ANONYMOUS_USER_TOKEN_SECRET= HealthChecks_SyncAKTMarketData= MASTER_WALLET_MNEMONIC= @@ -12,7 +12,7 @@ STRIPE_PRICE_ID= USER_DATABASE_CS= # Configuration -AKASHLYTICS_CORS_WEBSITE_URLS= +CORS_WEBSITE_URLS= AUTH0_AUDIENCE= AUTH0_ISSUER= AUTH0_JWKS_URI= diff --git a/apps/api/env/.env.staging b/apps/api/env/.env.staging index 10768fc80..6c873385d 100644 --- a/apps/api/env/.env.staging +++ b/apps/api/env/.env.staging @@ -1,4 +1,4 @@ -SERVER_ORIGIN=https://api-sandbox.cloudmos.io +SERVER_ORIGIN=https://console-api-sandbox.akash.network DRIZZLE_MIGRATIONS_FOLDER=./dist/drizzle AUTH0_JWKS_URI=https://dev-5aprb0lr.us.auth0.com/.well-known/jwks.json AUTH0_AUDIENCE=https://api.cloudmos.io diff --git a/apps/api/src/app.ts b/apps/api/src/app.ts index d1dc65cf2..b1eab8539 100644 --- a/apps/api/src/app.ts +++ b/apps/api/src/app.ts @@ -33,7 +33,7 @@ const appHono = new Hono(); appHono.use( "/*", cors({ - origin: env.AKASHLYTICS_CORS_WEBSITE_URLS?.split(",") || ["http://localhost:3000", "http://localhost:3001"] + origin: env.CORS_WEBSITE_URLS?.split(",") || ["http://localhost:3000", "http://localhost:3001"] }) ); diff --git a/apps/api/src/services/external/githubService.ts b/apps/api/src/services/external/githubService.ts index 561a7143e..82f94e557 100644 --- a/apps/api/src/services/external/githubService.ts +++ b/apps/api/src/services/external/githubService.ts @@ -6,10 +6,10 @@ import { Auditor, ProviderAttributesSchema } from "@src/types/provider"; import { env } from "@src/utils/env"; export function getOctokit() { - const githubPAT = env.AKASHLYTICS_GITHUB_PAT; + const githubPAT = env.GITHUB_PAT; if (!githubPAT) { - throw new Error("AKASHLYTICS_GITHUB_PAT is missing"); + throw new Error("GITHUB_PAT is missing"); } return new Octokit({ diff --git a/apps/api/src/utils/env.ts b/apps/api/src/utils/env.ts index efa9de7bd..e9f7dca0d 100644 --- a/apps/api/src/utils/env.ts +++ b/apps/api/src/utils/env.ts @@ -2,7 +2,7 @@ import { z } from "zod"; export const env = z .object({ - AKASHLYTICS_CORS_WEBSITE_URLS: z.string().optional(), + CORS_WEBSITE_URLS: z.string().optional(), NODE_ENV: z.string().optional(), HEALTHCHECKS_ENABLED: z.string().optional(), AKASH_DATABASE_CS: z.string().optional(), @@ -12,7 +12,7 @@ export const env = z NETWORK: z.string().default("mainnet"), REST_API_NODE_URL: z.string().optional(), SERVER_ORIGIN: z.string().optional().default("http://localhost:3080"), - AKASHLYTICS_GITHUB_PAT: z.string().optional(), + GITHUB_PAT: z.string().optional(), AUTH0_JWKS_URI: z.string().optional(), AUTH0_AUDIENCE: z.string().optional(), AUTH0_ISSUER: z.string().optional(), diff --git a/apps/api/src/utils/templateReposLogos.ts b/apps/api/src/utils/templateReposLogos.ts index c164b3cd0..8c3310de4 100644 --- a/apps/api/src/utils/templateReposLogos.ts +++ b/apps/api/src/utils/templateReposLogos.ts @@ -2,7 +2,7 @@ export function getLogoFromPath(path: string) { return path in logos ? logoBaseUrl + logos[path] : null; } -const logoBaseUrl = "https://storage.googleapis.com/akashlytics-deploy-public/template_logos/"; +const logoBaseUrl = "https://storage.googleapis.com/console-deploy-public/template_logos/"; const logos: { [key: string]: string } = { "speedtest-cli": "speedtest-by-ookla.jpg", fast: "fast.svg", diff --git a/apps/api/test/mocks/hello-world-sdl.yml b/apps/api/test/mocks/hello-world-sdl.yml index f96c89d6e..efd2fddc1 100644 --- a/apps/api/test/mocks/hello-world-sdl.yml +++ b/apps/api/test/mocks/hello-world-sdl.yml @@ -2,7 +2,7 @@ version: "2.0" services: web: - image: akashlytics/hello-akash-world:0.2.0 + image: baktun/hello-akash-world:1.0.0 expose: - port: 3000 as: 80 diff --git a/apps/deploy-web/deploy.yml b/apps/deploy-web/deploy.yml index f4a411f4c..3e4c39132 100644 --- a/apps/deploy-web/deploy.yml +++ b/apps/deploy-web/deploy.yml @@ -24,7 +24,7 @@ services: - port: 3040 as: 80 accept: - - providerproxy.console.akash.network + - console-provider-proxy.akash.network to: - global: true profiles: diff --git a/apps/deploy-web/env/.env b/apps/deploy-web/env/.env index 647b328c1..62748f51e 100644 --- a/apps/deploy-web/env/.env +++ b/apps/deploy-web/env/.env @@ -3,4 +3,4 @@ AUTH0_SCOPE=openid profile email offline_access NEXT_PUBLIC_SENTRY_DSN="https://2d6f725d1cd34086995df50a5d7192f0@o877251.ingest.sentry.io/4504656428204032" NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID="2b2b3e1d953d33bd3b3e2c864edd2dea" -NEXT_PUBLIC_SENTRY_APPLICATION_KEY="AKASH-CONSOLE-WEB" \ No newline at end of file +NEXT_PUBLIC_SENTRY_APPLICATION_KEY="AKASH-CONSOLE-WEB" diff --git a/apps/deploy-web/env/.env.production b/apps/deploy-web/env/.env.production index 46e744415..df236cc4a 100644 --- a/apps/deploy-web/env/.env.production +++ b/apps/deploy-web/env/.env.production @@ -9,12 +9,12 @@ NEXT_PUBLIC_MANAGED_WALLET_DENOM=usdc NEXT_PUBLIC_MASTER_WALLET_ADDRESS=akash1ss0d2yw38r6e7ew8ndye9h7kg62sem36zak4d5 NEXT_PUBLIC_STATS_APP_URL=https://stats.akash.network -NEXT_PUBLIC_PROVIDER_PROXY_URL=https://providerproxy.cloudmos.io -NEXT_PUBLIC_PROVIDER_PROXY_URL_WS=wss://providerproxy.cloudmos.io +NEXT_PUBLIC_PROVIDER_PROXY_URL=https://console-provider-proxy.akash.network +NEXT_PUBLIC_PROVIDER_PROXY_URL_WS=wss://console-provider-proxy.akash.network NEXT_PUBLIC_NODE_ENV=$NODE_ENV -NEXT_PUBLIC_BASE_API_MAINNET_URL=https://api.cloudmos.io -NEXT_PUBLIC_BASE_API_SANDBOX_URL=https://api-sandbox.cloudmos.io -NEXT_PUBLIC_BASE_API_TESTNET_URL=https://api-testnet.cloudmos.io +NEXT_PUBLIC_BASE_API_MAINNET_URL=https://console-api.akash.network +NEXT_PUBLIC_BASE_API_SANDBOX_URL=https://console-api-sandbox.akash.network +NEXT_PUBLIC_BASE_API_TESTNET_URL=https://console-api-testnet.akash.network NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_BASE_API_MAINNET_URL BASE_API_MAINNET_URL=$NEXT_PUBLIC_BASE_API_MAINNET_URL diff --git a/apps/deploy-web/env/.env.staging b/apps/deploy-web/env/.env.staging index 4a86f793a..b083050f4 100644 --- a/apps/deploy-web/env/.env.staging +++ b/apps/deploy-web/env/.env.staging @@ -8,11 +8,11 @@ NEXT_PUBLIC_MANAGED_WALLET_DENOM=usdc NEXT_PUBLIC_MASTER_WALLET_ADDRESS=akash1ss0d2yw38r6e7ew8ndye9h7kg62sem36zak4d5 NEXT_PUBLIC_STATS_APP_URL=https://stats.akash.network -NEXT_PUBLIC_PROVIDER_PROXY_URL=https://providerproxy.cloudmos.io -NEXT_PUBLIC_PROVIDER_PROXY_URL_WS=wss://providerproxy.cloudmos.io +NEXT_PUBLIC_PROVIDER_PROXY_URL=https://console-provider-proxy.akash.network +NEXT_PUBLIC_PROVIDER_PROXY_URL_WS=wss://console-provider-proxy.akash.network NEXT_PUBLIC_NODE_ENV=$NODE_ENV -NEXT_PUBLIC_BASE_API_MAINNET_URL=https://api-mainnet-staging.cloudmos.io -NEXT_PUBLIC_BASE_API_SANDBOX_URL=https://api-sandbox-staging.cloudmos.io +NEXT_PUBLIC_BASE_API_MAINNET_URL=https://console-api-mainnet-staging.akash.network +NEXT_PUBLIC_BASE_API_SANDBOX_URL=https://console-api-sandbox-staging.akash.network NEXT_PUBLIC_BASE_API_TESTNET_URL=$NEXT_PUBLIC_BASE_API_MAINNET_URL NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_BASE_API_MAINNET_URL diff --git a/apps/deploy-web/src/components/get-started/GetStartedStepper.tsx b/apps/deploy-web/src/components/get-started/GetStartedStepper.tsx index fd6499622..dbabcc701 100644 --- a/apps/deploy-web/src/components/get-started/GetStartedStepper.tsx +++ b/apps/deploy-web/src/components/get-started/GetStartedStepper.tsx @@ -217,7 +217,7 @@ export const GetStartedStepper: React.FunctionComponent = () => {

Deploy your first web app on Akash! This is a simple Next.js app and you can see the{" "} - . + .

= ({ isMobileOpen, handleDr { title: "API", icon: props => , - url: "https://api.cloudmos.io/v1/swagger", + url: "https://console-api.akash.network/v1/swagger", activeRoutes: [], target: "_blank" }, diff --git a/apps/deploy-web/src/utils/templates.ts b/apps/deploy-web/src/utils/templates.ts index 284f3e352..4e54325d0 100644 --- a/apps/deploy-web/src/utils/templates.ts +++ b/apps/deploy-web/src/utils/templates.ts @@ -11,7 +11,7 @@ export const helloWorldTemplate = { code: "hello-world", category: "General", description: "Simple next.js web application showing hello world.", - githubUrl: "https://github.com/maxmaxlabs/hello-akash-world", + githubUrl: "https://github.com/akash-network/hello-akash-world", valuesToChange: [], content: `# Welcome to the Akash Network! 🚀☁ # This file is called a Stack Definition Laguage (SDL) @@ -29,7 +29,7 @@ services: # The name of the service "web" web: # The docker container image with version. You must specify a version, the "latest" tag doesn't work. - image: akashlytics/hello-akash-world:0.2.0 + image: baktun/hello-akash-world:1.0.0 # You can map ports here https://akash.network/docs/getting-started/stack-definition-language/#servicesexpose expose: - port: 3000 diff --git a/apps/indexer/README.md b/apps/indexer/README.md index 5daafb8e5..49467cf99 100644 --- a/apps/indexer/README.md +++ b/apps/indexer/README.md @@ -27,7 +27,7 @@ HEALTHCHECKS_SYNC_BLOCKS|ex: `041b2561-be28-4a36-bb3f-36a68f86224e`|[HealthCheck HEALTHCHECKS_SYNC_AKT_PRICE_HISTORY|ex: `041b2561-be28-4a36-bb3f-36a68f86224e`|[HealthChecks.io](https://healthchecks.io) check ID for the `SyncAKTPriceHistory` task. HEALTHCHECKS_SYNC_PROVIDER_INFO|ex: `041b2561-be28-4a36-bb3f-36a68f86224e`|[HealthChecks.io](https://healthchecks.io) check ID for the `SyncProviderInfo` task. HEALTHCHECKS_SYNC_KEYBASE_INFO|ex: `041b2561-be28-4a36-bb3f-36a68f86224e`|[HealthChecks.io](https://healthchecks.io) check ID for the `SyncKeybaseInfo` task. -AKASH_DATABASE_CS|ex: `postgres://user:password@localhost:5432/cloudmos-akash`|Akash Database Connection String +AKASH_DATABASE_CS|ex: `postgres://user:password@localhost:5432/console-akash`|Akash Database Connection String ACTIVE_CHAIN|ex: `akash`|Chain code from [chainDefinitions.ts](../shared/chainDefinitions.ts) KEEP_CACHE|`true` or `false`|Specify if the [block & block response cache](#block-cache-structure) should be kept on drive. Takes a lot of space, but allow rebuilding the database without redownloading every blocks. STANDBY|`true` or `false`|If `true`, indexer will not start. Useful for stopping an indexer deployed on akash without needing to close the lease. diff --git a/apps/indexer/UPGRADE.md b/apps/indexer/UPGRADE.md index 341adad80..8bf2f75d7 100644 --- a/apps/indexer/UPGRADE.md +++ b/apps/indexer/UPGRADE.md @@ -295,7 +295,7 @@ CREATE INDEX IF NOT EXISTS block_totaluusdspent_is_null ## v1.3.0 -Add columns to support multi-denom deployments ([PR #5](https://github.com/akash-network/console/pull/5)) and change fee type to numeric ([PR #40 in old repo](https://github.com/maxmaxlabs/cloudmos-mono/pull/40)) +Add columns to support multi-denom deployments ([PR #5](https://github.com/akash-network/console/pull/5)) and change fee type to numeric ``` ALTER TABLE public.block ADD COLUMN "totalUUsdcSpent" double precision DEFAULT 0; diff --git a/apps/provider-console/src/components/layout/Sidebar.tsx b/apps/provider-console/src/components/layout/Sidebar.tsx index 84f583a19..90c7dd820 100644 --- a/apps/provider-console/src/components/layout/Sidebar.tsx +++ b/apps/provider-console/src/components/layout/Sidebar.tsx @@ -73,7 +73,7 @@ export const Sidebar: React.FunctionComponent = ({ isMobileOpen, handleDr { title: "API", icon: props => , - url: "https://api.cloudmos.io/v1/swagger", + url: "https://console-api.akash.network/v1/swagger", activeRoutes: [], target: "_blank" }, diff --git a/apps/provider-console/src/utils/constants.ts b/apps/provider-console/src/utils/constants.ts index e3ff5d8de..95498e197 100644 --- a/apps/provider-console/src/utils/constants.ts +++ b/apps/provider-console/src/utils/constants.ts @@ -2,7 +2,7 @@ export const mainnetId = "mainnet"; export const testnetId = "testnet"; export const sandboxId = "sandbox"; -const productionHostnames = ["deploy.cloudmos.io", "console.akash.network", "staging-console.akash.network", "beta.cloudmos.io"]; +const productionHostnames = ["console.akash.network", "staging-console.akash.network"]; export const selectedRangeValues: { [key: string]: number } = { "7D": 7, @@ -11,9 +11,9 @@ export const selectedRangeValues: { [key: string]: number } = { }; -const productionMainnetApiUrl = "https://api.cloudmos.io"; -const productionTestnetApiUrl = "https://api-testnet.cloudmos.io"; -const productionSandboxApiUrl = "https://api-sandbox.cloudmos.io"; +const productionMainnetApiUrl = "https://console-api.akash.network"; +const productionTestnetApiUrl = "https://console-api-testnet.akash.network"; +const productionSandboxApiUrl = "https://console-api-sandbox.akash.network"; export const BASE_API_MAINNET_URL = getApiMainnetUrl(); export const BASE_API_TESTNET_URL = getApiTestnetUrl(); export const BASE_API_SANDBOX_URL = getApiSandboxUrl(); diff --git a/apps/provider-proxy/server.ts b/apps/provider-proxy/server.ts index a520f920e..cac52d5a1 100644 --- a/apps/provider-proxy/server.ts +++ b/apps/provider-proxy/server.ts @@ -19,11 +19,8 @@ const webSocketStats: ClientWebSocketStats[] = []; const whitelist = [ "http://localhost:3001", "http://localhost:3000", - "https://deploybeta.cloudmos.io", - "https://deploy.cloudmos.io", "https://cloudmos.grafana.net", "https://console.akash.network", - "https://beta.cloudmos.io", "https://staging-console.akash.network", "https://akashconsole.vercel.app", "https://console-beta.akash.network" diff --git a/apps/stats-web/src/lib/constants.ts b/apps/stats-web/src/lib/constants.ts index 88b85002b..3e2a46ed8 100644 --- a/apps/stats-web/src/lib/constants.ts +++ b/apps/stats-web/src/lib/constants.ts @@ -8,9 +8,9 @@ export const selectedRangeValues: { [key: string]: number } = { ALL: Number.MAX_SAFE_INTEGER }; -const productionMainnetApiUrl = "https://api.cloudmos.io"; -const productionTestnetApiUrl = "https://api-testnet.cloudmos.io"; -const productionSandboxApiUrl = "https://api-sandbox.cloudmos.io"; +const productionMainnetApiUrl = "https://console-api.akash.network"; +const productionTestnetApiUrl = "https://console-api-testnet.akash.network"; +const productionSandboxApiUrl = "https://console-api-sandbox.akash.network"; const productionHostnames = ["stats.akash.network"]; export const isProd = process.env.NODE_ENV === "production"; diff --git a/doc/Internal_Endpoints.md b/doc/Internal_Endpoints.md index 672a2cd3e..2012c8e87 100644 --- a/doc/Internal_Endpoints.md +++ b/doc/Internal_Endpoints.md @@ -7,7 +7,7 @@ Those endpoints are used for debugging and analytics purposes. ## GPU Stats -Url: https://api.cloudmos.io/internal/gpu +Url: https://console-api.akash.network/internal/gpu Returns a summary of the gpus on the network. @@ -54,11 +54,11 @@ Returns a summary of the gpus on the network. | memory_size | Ex: `16Gi` | All query parameters can be combined, ex: -`https://api.cloudmos.io/internal/gpu?provider=akash175llqyjvxfle9qwt740vm46772dzaznpzgm576&vendor=nvidia&model=rtx3060ti&memory_size=8Gi` +`https://console-api.akash.network/internal/gpu?provider=akash175llqyjvxfle9qwt740vm46772dzaznpzgm576&vendor=nvidia&model=rtx3060ti&memory_size=8Gi` ## Provider Versions -Url: https://api.cloudmos.io/internal/provider-versions +Url: https://console-api.akash.network/internal/provider-versions Returns a list of versions and the providers that are currently on that version. The `` version corresponds to providers where the version could not be determined. The `/version` endpoint was broken for a long time, but is now fixed in [v0.5.0-rc11](https://github.com/akash-network/provider/releases/tag/v0.5.0-rc11) diff --git a/docker/Dockerfile.nextjs b/docker/Dockerfile.nextjs index fd09ee6a8..80e536e91 100644 --- a/docker/Dockerfile.nextjs +++ b/docker/Dockerfile.nextjs @@ -7,6 +7,7 @@ ARG DEPLOYMENT_ENV ENV DEPLOYMENT_ENV $DEPLOYMENT_ENV ENV NEXT_TELEMETRY_DISABLED 1 +ENV HUSKY 0 WORKDIR /app diff --git a/docker/Dockerfile.node b/docker/Dockerfile.node index 60b66e092..630ccb489 100644 --- a/docker/Dockerfile.node +++ b/docker/Dockerfile.node @@ -3,6 +3,8 @@ FROM node:20-alpine AS base ARG WORKSPACE ENV WORKSPACE $WORKSPACE +ENV HUSKY 0 + WORKDIR /app FROM base AS development diff --git a/docker/bin/prepare-and-seed-postgres.sh b/docker/bin/prepare-and-seed-postgres.sh index 8d153aa74..ae60ff8a7 100644 --- a/docker/bin/prepare-and-seed-postgres.sh +++ b/docker/bin/prepare-and-seed-postgres.sh @@ -2,7 +2,7 @@ echo "DB_SEEDER: Importing databases from cloud storage..." -BASE_URL="https://storage.googleapis.com/cloudmos-postgresql-backups" +BASE_URL="https://storage.googleapis.com/console-postgresql-backups" if [ -z "${POSTGRES_USER:-}" ]; then echo "DB_SEEDER: POSTGRES_USER is not set. Skipping seeding." diff --git a/package.json b/package.json index 896b21b9f..ae63427d5 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "pretty": "prettier --write \"./**/*.{js,jsx,mjs,cjs,ts,tsx,json}\"", "stats:dev": "turbo dev --filter=\"./apps/stats-web/\" --filter=\"./apps/api\"", "stats:dev:no-db": "cross-env SKIP_DC_DB=true turbo dev --filter=\"./apps/stats-web/\" --filter=\"./apps/api\"", - "prepare": "husky" + "prepare": "husky || true" }, "dependencies": { "drizzle-orm": "^0.31.2",