UNPKG

@simbachain/web3-suites

Version:

common code for web3 suite plugins. Code in this repo can be used for truffle or hardhat, but is designed to be applicable to future web3 suite plugins as well.

94 lines 2.52 kB
/** * this class is used for printing chalked project info */ export declare class SimbaInfo { /** * helps us chalk nested objects * @param obj * @param objName * @returns {string} */ private static chalkObject; /** * prints a chalked object * @param obj * @param objName * @returns {void} */ static printChalkedObject(obj: Record<any, any> | string | number | Array<any>, objName?: string): void; /** * gets value for a key from simba.json * @param key * @returns */ private static getProjectConfig; /** * returns auth token from authconfig.json, or value for key in auth token in authconfig.json * @param key - if not specified, then entire auth token is returned from authconfig.json * @returns {any} */ private static getAuthToken; /** * prints chalked auth token * @returns {void} */ static printAuthToken(): void; /** * gets contracts_info from simba.json * @returns {Record<any, any>} */ private static getContractsInfo; /** * gets info for contractName from contracts_info in simba.json * @param contractName * @returns */ private static getSingleContractInfo; /** * prints chalked single contract from contracts_info in simba.json * @param contractName * @returns */ static printSingleContract(contractName: string): void; /** * prints chalked all contracts from contracts_info in simba.json * @returns {void} */ static printAllContracts(): void; /** * prints chalked simba.json * @returns {void} */ static printAllSimbaJson(): void; /** * prints chalked organisation from simba.json * @returns {void} */ static printOrg(): void; /** * prints chalked application from simba.json * @returns {void} */ static printApp(): void; /** * prints chalked most_recent_deployment_info from simba.json * @returns {void} */ static printMostRecentDeploymentInfo(): void; /** * prints chalked authProviderInfo from simba.json * @returns {void} */ static printAuthProviderInfo(): void; /** * prints chalked web3Suite from simba.json * @returns {void} */ static printWeb3Suite(): void; /** * prints chalked baseURL from simba.json * @returns {void} */ static printBaseURL(): void; } //# sourceMappingURL=simbainfo.d.ts.map