I'm developing subgraph for indexing blockchain events, but I get error when defining and object
⠋ Compile subgraphERROR TS2322: Type '<object>' is not assignable to type 'i32'.
export const FARMS_CONTRACT_NAMES = {
BALANCER_LIQUIDITY: 'balancerLiquidity',
GIV_LIQUIDITY: 'givLiquidity',
GIV_ETH: 'givETH',
GIV_HNY: 'givHny'
};
After some trial and error changing that in this way solved my problem:
I think assembly script has problems with defining objects ( in the functions input parameters you cant use object {} )