Skip to content

State Change Indexer: Add Contract Cache Store and DB Tables #190

Closed
2 of 2 issues completed
Closed
@aditya1702

Description

@aditya1702

This is an optimization where we store a DB backend in-memory cache:

contractID : {
      name
      symbol
      expiry
}

This helps store the name and symbol values for contract tokens and avoid calling the simulation endpoint on RPC each time to fetch the information. Each item will have an expiry after which we will refresh the cache again using simulateTransaction calls.

We will also store the mapping in the postgres table to prevent loss of in-memory cache in case of restarts/shutdowns

Sub-issues

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions