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 | 1x 1x 1x 1x | interface Config {
networkId: string,
nodeUrl: string,
contractName: null,
walletUrl: string,
initialBalance: string
}
export function getConfig(networkName: string, nodeUrl?: string): Config {
let network: Config;
switch(networkName) {
default :
network = {
networkId: 'testnet',
nodeUrl: nodeUrl || 'https://rpc.testnet.near.org',
contractName: null,
walletUrl: 'https://wallet.testnet.near.org',
initialBalance: "100000000"
};
}
return network;
} |