Skip to content

Commit

Permalink
feature: adopt environment names to reality
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Nov 16, 2023
1 parent a076394 commit 68aed43
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 9 additions & 1 deletion src/interface/environment-name.ts
@@ -1 +1,9 @@
export type EnvironmentName = "dev" | "test" | "beta" | "production";
export type EnvironmentName =
// local development
| "local"
// development stage
| "dev"
// stage stage
| "stage"
// production stage
| "production";
9 changes: 2 additions & 7 deletions src/utils/environments.ts
Expand Up @@ -4,14 +4,12 @@ import type { MasaArgs } from "../interface";

// special type for env config that makes wallet optional
export type Environment = {
name: "local" | "dev" | "test" | "stage" | "production";
wallet?: Signer;
} & MasaArgs;

export const environments: Environment[] = [
{
name: "local",
environment: "dev",
environment: "local",
apiUrl: "http://localhost:4000/",
networkName: "goerli",
arweave: {
Expand All @@ -22,7 +20,6 @@ export const environments: Environment[] = [
},
} as Environment,
{
name: "dev",
environment: "dev",
apiUrl: "https://dev.middleware.masa.finance/",
networkName: "goerli",
Expand All @@ -34,8 +31,7 @@ export const environments: Environment[] = [
},
} as Environment,
{
name: "stage",
environment: "beta",
environment: "stage",
apiUrl: "https://beta.middleware.masa.finance/",
networkName: "goerli",
arweave: {
Expand All @@ -46,7 +42,6 @@ export const environments: Environment[] = [
},
} as Environment,
{
name: "production",
environment: "production",
apiUrl: "https://middleware.masa.finance/",
networkName: "ethereum",
Expand Down

0 comments on commit 68aed43

Please sign in to comment.