mirror of
https://github.com/aljazceru/lspd.git
synced 2025-12-18 14:24:21 +01:00
22 lines
578 B
Go
22 lines
578 B
Go
package shared
|
|
|
|
import "time"
|
|
|
|
type OpeningFeeParamsSetting struct {
|
|
Validity time.Duration
|
|
Params *OpeningFeeParams
|
|
}
|
|
|
|
type OpeningFeeParams struct {
|
|
MinFeeMsat uint64 `json:"min_msat,string"`
|
|
Proportional uint32 `json:"proportional"`
|
|
ValidUntil string `json:"valid_until"`
|
|
MinLifetime uint32 `json:"max_idle_time"`
|
|
MaxClientToSelfDelay uint32 `json:"max_client_to_self_delay"`
|
|
Promise string `json:"promise"`
|
|
}
|
|
|
|
type OpeningStore interface {
|
|
GetFeeParamsSettings(token string) ([]*OpeningFeeParamsSetting, error)
|
|
}
|