@opendatalabs/vana-sdk
Version:
A TypeScript library for interacting with Vana Network smart contracts.
63 lines • 1.13 kB
JavaScript
import { mainnetServices, mokshaServices } from "../config/default-services.js";
const vanaMainnet = {
id: 1480,
name: "Vana",
nativeCurrency: {
name: "VANA",
symbol: "VANA",
decimals: 18
},
rpcUrls: {
default: {
http: [mainnetServices.rpcUrl]
}
},
blockExplorers: {
default: {
name: "Vanascan",
url: mainnetServices.blockExplorerUrl
}
}
};
const moksha = {
id: 14800,
name: "Moksha Testnet",
nativeCurrency: {
name: "VANA",
symbol: "VANA",
decimals: 18
},
rpcUrls: {
default: {
http: [mokshaServices.rpcUrl]
}
},
blockExplorers: {
default: {
name: "Vanascan - Moksha",
url: mokshaServices.blockExplorerUrl
}
}
};
function getChainConfig(chainId) {
switch (chainId) {
case 1480:
return vanaMainnet;
case 14800:
return moksha;
default:
return void 0;
}
}
const mokshaTestnet = moksha;
function getAllChains() {
return [vanaMainnet, moksha];
}
export {
getAllChains,
getChainConfig,
moksha,
mokshaTestnet,
vanaMainnet
};
//# sourceMappingURL=definitions.js.map