feat: change transfer event lookup to enforce both token AND address existence before emitting event

* Add ExistsNetwork cache lookup
* Exists now only accepts a single param
This commit is contained in:
2024-11-20 09:53:54 +03:00
parent faa428c583
commit cf263c7d15
4 changed files with 45 additions and 31 deletions

View File

@@ -11,7 +11,8 @@ type (
Cache interface {
Add(context.Context, string) error
Remove(context.Context, string) error
Exists(context.Context, ...string) (bool, error)
Exists(context.Context, string) (bool, error)
ExistsNetwork(context.Context, string, ...string) (bool, error)
Size(context.Context) (int64, error)
}