mirror of
https://github.com/AthanorLabs/atomic-swap.git
synced 2026-04-22 03:00:02 -04:00
15 lines
353 B
Go
15 lines
353 B
Go
package offers
|
|
|
|
import (
|
|
"github.com/athanorlabs/atomic-swap/common/types"
|
|
)
|
|
|
|
// Database contains the db functions used by the offer manager.
|
|
type Database interface {
|
|
PutOffer(offer *types.Offer) error
|
|
DeleteOffer(id types.Hash) error
|
|
GetOffer(id types.Hash) (*types.Offer, error)
|
|
GetAllOffers() ([]*types.Offer, error)
|
|
ClearAllOffers() error
|
|
}
|