Loading coins
What the factory emits.
Emitted once per coin, in the launch transaction.
event Launched(
address indexed token,
address indexed creator,
address pool,
uint256 tokenId,
string name,
string symbol,
string persona,
string imageCid
);
The picture and the character description are on chain, which is why they survive independently of any database.
Emitted whenever anyone collects a coin's fees.
event FeesCollected(
address indexed token,
uint256 wethCollected,
uint256 tokenCollected,
uint256 at
);
at is the block timestamp of the collection. All four parameters are part of
the event signature, so subscribe to
FeesCollected(address,uint256,uint256,uint256): a three-parameter signature
hashes to a different topic and never matches.
Trades are ordinary Uniswap V3 Swap events on the coin's pool:
Swap(address indexed sender, address indexed recipient,
int256 amount0, int256 amount1,
uint160 sqrtPriceX96, uint128 liquidity, int24 tick)
Use recipient, not sender, to attribute a trade. A launch dev buy is sent by the factory on the creator's behalf, so sender names the factory every time.