telosnetwork / teloscan

Telos EVM block explorer for viewing blocks, transactions, contracts, staking, and more
https://teloscan.io
Apache License 2.0
22 stars 25 forks source link

#821 | Addresses cache added with name display info #830

Closed Viterbo closed 3 months ago

Viterbo commented 3 months ago

Fixes #821

Description

This PR implements a cache for each network where all addresses ever queried get stored with the relevant information for the name display. In the case of contracts, the data remains forever in the local cache. In the case of being a normal address, it is qued in a list of non-contract addresses and when a limit of 1000 entries is reached it drops the oldest addresses to keep a manageable cache size.

Test scenarios

https://deploy-preview-830--dev-mainnet-teloscan.netlify.app/

netlify[bot] commented 3 months ago

Deploy Preview for teloscan-stage ready!

Name Link
Latest commit af0dc563c39b54a8f2817d8597b8a053b8e60ac7
Latest deploy log https://app.netlify.com/sites/teloscan-stage/deploys/66bef1f4017fe90008238ec3
Deploy Preview https://deploy-preview-830--teloscan-stage.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 3 months ago

Deploy Preview for testnet-teloscan ready!

Name Link
Latest commit af0dc563c39b54a8f2817d8597b8a053b8e60ac7
Latest deploy log https://app.netlify.com/sites/testnet-teloscan/deploys/66bef1f403ebfd0008b1efb2
Deploy Preview https://deploy-preview-830--testnet-teloscan.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 3 months ago

Deploy Preview for dev-mainnet-teloscan ready!

Name Link
Latest commit af0dc563c39b54a8f2817d8597b8a053b8e60ac7
Latest deploy log https://app.netlify.com/sites/dev-mainnet-teloscan/deploys/66bef1f4e1c5a00008f5bc04
Deploy Preview https://deploy-preview-830--dev-mainnet-teloscan.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.