mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-22 22:26:46 +01:00
13 lines
396 B
Go
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
|
|
}
|