2022-05-10 13:13:06 +01:00
|
|
|
// Copyright (C) 2022 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package storjscan
|
|
|
|
|
2022-07-08 16:23:56 +01:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/spacemonkeygo/monkit/v3"
|
|
|
|
)
|
2022-05-10 13:13:06 +01:00
|
|
|
|
|
|
|
var mon = monkit.Package()
|
2022-06-06 13:42:45 +01:00
|
|
|
|
|
|
|
// Config stores needed information for storjscan service initialization.
|
|
|
|
type Config struct {
|
|
|
|
Endpoint string `help:"storjscan API endpoint"`
|
|
|
|
Auth struct {
|
|
|
|
Identifier string `help:"basic auth identifier"`
|
|
|
|
Secret string `help:"basic auth secret"`
|
|
|
|
}
|
2022-07-08 16:23:56 +01:00
|
|
|
Interval time.Duration `help:"storjscan chore interval to query new payments for all satellite deposit wallets" default:"1m"`
|
|
|
|
Confirmations int `help:"required number of following blocks in the chain to accept payment as confirmed" default:"12"`
|
|
|
|
DisableLoop bool `help:"flag to disable querying new storjscan payments by storjscan chore" default:"true"`
|
2022-06-06 13:42:45 +01:00
|
|
|
}
|