WIP
getValues
getValues
contains functions that return a stringified value or array from dAppโs configuration files and parameters.
Functions
getChainDeploy
Returns the chain deployment configuration for the specified chain ID.
Arguments
Argument | Type | Description |
---|---|---|
chainID | string | The chain ID to return the chain deployment configuration for |
parameter | string | The parameter to return the value for |
Parameter Options
Parameter | Type | Description |
---|---|---|
name | string | The Network Name |
lcd | string | The LCD URL |
forge | string | The forge contract address |
token | string | The governance token ($YFD) contract address |
Import
import getChainDeploy from '@utilities/getValues';
Parameters
Return Value
Usage
const tokenContract = getChainDeploy(chainID, 'token');