cic-custodial/internal/noncestore/noncestore.go
Mohammed Sohail fb2091da17
noncestore: disable dev noncestore
* system noncestore defaults to redis
* remove system account init, move to action provider
2022-10-23 10:42:19 +00:00

13 lines
385 B
Go

package noncestore
import "context"
// Noncestore represents a persistent distributed noncestore
type Noncestore interface {
Peek(context.Context, string) (uint64, error)
Acquire(context.Context, string) (uint64, error)
Return(context.Context, string) (uint64, error)
SyncNetworkNonce(context.Context, string) (uint64, error)
SetNewAccountNonce(context.Context, string) error
}