cic-custodial/internal/nonce/nonce.go
Mohammed Sohail 8676450122
refactor: decouple sql queries, remove transfer
* add inline docs
* removed transfer taks in prep for re-write
2023-02-03 12:29:27 +03:00

13 lines
396 B
Go

package nonce
import "context"
// Noncestore defines how a nonce store should be implemented for any storage backend.
type Noncestore interface {
Peek(context.Context, string) (uint64, error)
Acquire(context.Context, string) (uint64, error)
Return(context.Context, string) error
SyncNetworkNonce(context.Context, string) (uint64, error)
SetNewAccountNonce(context.Context, string) error
}