github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/jsonrpc/interfaces.go (about)

     1  package jsonrpc
     2  
     3  import (
     4  	"github.com/gorilla/websocket"
     5  )
     6  
     7  // storageInterface json rpc internal storage to persist data
     8  type storageInterface interface {
     9  	GetAllBlockFiltersWithWSConn() ([]*Filter, error)
    10  	GetAllLogFiltersWithWSConn() ([]*Filter, error)
    11  	GetFilter(filterID string) (*Filter, error)
    12  	NewBlockFilter(wsConn *websocket.Conn) (string, error)
    13  	NewLogFilter(wsConn *websocket.Conn, filter LogFilter) (string, error)
    14  	NewPendingTransactionFilter(wsConn *websocket.Conn) (string, error)
    15  	UninstallFilter(filterID string) error
    16  	UninstallFilterByWSConn(wsConn *websocket.Conn) error
    17  	UpdateFilterLastPoll(filterID string) error
    18  }