Skip to content

Commit

Permalink
added presets for different environments
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Oct 28, 2022
1 parent 6fb6ed0 commit 929e152
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
70 changes: 70 additions & 0 deletions src/utils/environments.ts
@@ -0,0 +1,70 @@
import { MasaArgs } from "../interface";
import { createRandomWallet } from "../account";

export const environments: ({ name: string } & MasaArgs)[] = [
{
name: "local",
environment: "dev",
apiUrl: "http://localhost:4000/",
network: "goerli",
wallet: createRandomWallet(),
arweave: {
host: "arweave.net",
port: 443,
protocol: "https",
logging: false,
},
},
{
name: "dev",
environment: "dev",
apiUrl: "https://dev.middleware.masa.finance/",
network: "goerli",
wallet: createRandomWallet(),
arweave: {
host: "arweave.net",
port: 443,
protocol: "https",
logging: false,
},
},
{
name: "test",
environment: "test",
apiUrl: "https://test.middleware.masa.finance/",
network: "goerli",
wallet: createRandomWallet(),
arweave: {
host: "arweave.net",
port: 443,
protocol: "https",
logging: false,
},
},
{
name: "stage",
environment: "stage",
apiUrl: "https://beta.middleware.masa.finance/",
network: "goerli",
wallet: createRandomWallet(),
arweave: {
host: "arweave.net",
port: 443,
protocol: "https",
logging: false,
},
},
{
name: "production",
environment: "production",
apiUrl: "https://middleware.masa.finance/",
network: "mainnet",
wallet: createRandomWallet(),
arweave: {
host: "arweave.net",
port: 443,
protocol: "https",
logging: false,
},
},
];
1 change: 1 addition & 0 deletions src/utils/index.ts
@@ -1 +1,2 @@
export * from "./clients";
export * from "./environments";

0 comments on commit 929e152

Please sign in to comment.