UNPKG

@effectai/sdk

Version:

Effect Network Javscript/Typescript SDK (for [https://effect.network](https://effect.network))

18 lines 554 B
export const getForceSettings = async ({ client }) => { const { provider, network } = client; const { tasks } = network.config.efx.contracts; try { const response = (await provider.v1.chain.get_table_rows({ code: tasks, scope: tasks, table: "settings", })); const [config] = response.rows; return config; } catch (error) { console.error(error); throw new Error("Error retrieving Force settings"); } }; //# sourceMappingURL=getForceSettings.js.map