MCPcopy Create free account
hub / github.com/cardstack/cardstack / getConstantByNetwork

Function getConstantByNetwork

packages/cardpay-sdk/sdk/constants.ts:104–110  ·  view source on GitHub ↗
(name: ConstantKeys, network: string)

Source from the content-addressed store, hash-verified

102};
103
104export function getConstantByNetwork(name: ConstantKeys, network: string): string {
105 let value = constants[network][name];
106 if (!value) {
107 throw new Error(`Don't know about the constant '${name}' for network ${network}`);
108 }
109 return value;
110}
111
112export async function getConstant(name: ConstantKeys, network: string): Promise<string>;
113export async function getConstant(name: ConstantKeys, web3: Web3): Promise<string>;

Callers 7

viewTokenBalanceFunction · 0.90
getWeb3Function · 0.90
initializeFunction · 0.90
blockExplorerUrlFunction · 0.90
bridgeExplorerUrlFunction · 0.90
blockExplorerUrlFunction · 0.90
bridgeExplorerUrlFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected