Content pfp
Content
@
https://opensea.io/collection/evm-6
0 reply
0 recast
2 reactions

Joe Petrich 🟪 pfp
Joe Petrich 🟪
@jpetrich
Any ideas for maintaining tests that depend on goerli node RPCs now that goerli is unreliable and will soon be dead?
2 replies
0 recast
1 reaction

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
I don't know best practices since I've done little work that requires a chain. When I did, I just relied on spinning up my own geth, getting it to the state needed for the tests and then running them.
1 reply
0 recast
0 reaction

Joe Petrich 🟪 pfp
Joe Petrich 🟪
@jpetrich
I think this makes sense if you're developing smart contracts; it's what we do in our solidity repo. But I'm testing an indexer, and I need data that comes from quite a few places - Seaport, Gelato, payment providers, and our own contracts.
1 reply
0 recast
1 reaction

Gabriel Ayuso pfp
Gabriel Ayuso
@gabrielayuso.eth
I see. For the indexer I worked on, I just stubbed everything and returned test data. My use case wasn't very complicated though. Also, because we mirrored the state in spanner, each indexing layer read spanner more than the chain.
1 reply
0 recast
0 reaction

Joe Petrich 🟪 pfp
Joe Petrich 🟪
@jpetrich
You know what, you're making me realize there's a good argument for directly mirroring the on chain stuff I care about in the DB, and then indexing that, because then I can test the layers separately. Whereas today I do some transformation of the onchain data before storing it... Maybe time to look at shovel again
0 reply
0 recast
1 reaction