I was wondering, is there any way to dissect Solidity mappings, for example, getting all currently available on-chain pool addresses from cons mapping of Factory contract.
mapping(address => mapping(address => mapping(uint24 => address))) public override getPool;
https://etherscan.io/address/0x1F98431c8aD98523631AE4a59f267346ea31F984#code#L20
Jun 15, 2022, 10:10 AM
In fact, maybe it will be conveniently to use subgraph or something like this for getting all currently available pools.
Just for sure, is there any way to get this kind of data by interacting with Factory contract without calling getPool method?
Just for sure, is there any way to get this kind of data by interacting with Factory contract without calling getPool method?
Jun 15, 2022, 10:10 AM