mirror of
https://github.com/aljazceru/ark.git
synced 2026-01-29 08:14:20 +01:00
* [btc-embedded] add chainfee.Estimator and extraAPI interfaces * dynamic fee amount * dynamic dust amount * [client] fix linter errors * [domain] fix unit tests * [server] return dust amount in GetInfo RPC * [sdk] fix lnd dependencie * go work sync * fix witness stack size forfeit tx size estimator * remove hardcoded fee values in covenant txbuilder * lower liquid feerate * fix after reviews * go work sync
34 lines
756 B
Go
34 lines
756 B
Go
package store
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/ark-network/ark/common"
|
|
"github.com/decred/dcrd/dcrec/secp256k1/v4"
|
|
)
|
|
|
|
const (
|
|
InMemoryStore = "inmemory"
|
|
FileStore = "file"
|
|
)
|
|
|
|
type StoreData struct {
|
|
AspUrl string
|
|
AspPubkey *secp256k1.PublicKey
|
|
WalletType string
|
|
ClientType string
|
|
Network common.Network
|
|
RoundLifetime int64
|
|
UnilateralExitDelay int64
|
|
Dust uint64
|
|
BoardingDescriptorTemplate string
|
|
}
|
|
|
|
type ConfigStore interface {
|
|
GetType() string
|
|
GetDatadir() string
|
|
AddData(ctx context.Context, data StoreData) error
|
|
GetData(ctx context.Context) (*StoreData, error)
|
|
CleanData(ctx context.Context) error
|
|
}
|