All files / src networks.ts

100% Statements 16/16
100% Branches 0/0
100% Functions 0/0
100% Lines 16/16

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110      29x 29x 29x 29x 29x 29x 29x 29x                                           29x           29x           29x                             29x                             29x                 29x                 29x               29x                  
export {
  blockchain,
  MinaNetwork,
  networks,
  Mainnet,
  Berkeley,
  Devnet,
  Zeko,
  TestWorld2,
  Lightnet,
  Local,
};
 
type blockchain =
  | "local"
  | "berkeley"
  | "devnet"
  | "lighnet"
  | "mainnet"
  | "testworld2"
  | "zeko";
 
interface MinaNetwork {
  mina: string[];
  archive: string[];
  chainId: blockchain;
  name?: string;
  accountManager?: string;
  explorerAccountUrl?: string;
  explorerTransactionUrl?: string;
}
 
const Mainnet: MinaNetwork = {
  mina: [],
  archive: [],
  chainId: "mainnet",
};
 
const Local: MinaNetwork = {
  mina: [],
  archive: [],
  chainId: "local",
};
 
const Berkeley: MinaNetwork = {
  mina: [
    "https://api.minascan.io/node/berkeley/v1/graphql",
    "https://proxy.berkeley.minaexplorer.com/graphql",
  ],
  archive: [
    "https://api.minascan.io/archive/berkeley/v1/graphql",
    "https://archive.berkeley.minaexplorer.com",
  ],
  explorerAccountUrl: "https://minascan.io/berkeley/account/",
  explorerTransactionUrl: "https://minascan.io/berkeley/tx/",
  chainId: "berkeley",
  name: "Berkeley",
};
 
const Devnet: MinaNetwork = {
  mina: [
    "https://proxy.devnet.minaexplorer.com/graphql",
    //"https://api.minascan.io/node/devnet/v1/graphql",
  ],
  archive: [
    //"https://api.minascan.io/archive/devnet/v1/graphql",
    "https://archive.devnet.minaexplorer.com",
  ],
  explorerAccountUrl: "https://minascan.io/devnet/account/",
  explorerTransactionUrl: "https://minascan.io/devnet/tx/",
  chainId: "devnet",
  name: "Devnet",
};
 
const Zeko: MinaNetwork = {
  mina: ["https://devnet.zeko.io/graphql"], //["http://sequencer-zeko-dev.dcspark.io/graphql"], //
  archive: [],
  chainId: "zeko",
  name: "Zeko",
  explorerAccountUrl: "https://zekoscan.io/devnet/account/",
  explorerTransactionUrl: "https://zekoscan.io/devnet/tx/",
};
 
const TestWorld2: MinaNetwork = {
  mina: ["https://api.minascan.io/node/testworld/v1/graphql"],
  archive: ["https://archive.testworld.minaexplorer.com"],
  explorerAccountUrl: "https://minascan.io/testworld/account/",
  explorerTransactionUrl: "https://minascan.io/testworld/tx/",
  chainId: "testworld2",
  name: "TestWorld2",
};
 
const Lightnet: MinaNetwork = {
  mina: ["http://localhost:8080/graphql"],
  archive: ["http://localhost:8282"],
  accountManager: "http://localhost:8181",
  chainId: "lighnet",
  name: "Lightnet",
};
 
const networks: MinaNetwork[] = [
  Mainnet,
  Local,
  Berkeley,
  Devnet,
  Zeko,
  TestWorld2,
  Lightnet,
];