2019-10-23 13:04:54 +01:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package paymentsconfig
|
|
|
|
|
2019-11-15 14:27:44 +00:00
|
|
|
import (
|
|
|
|
"storj.io/storj/satellite/payments/stripecoinpayments"
|
|
|
|
)
|
2019-10-23 13:04:54 +01:00
|
|
|
|
|
|
|
// Config defines global payments config.
|
|
|
|
type Config struct {
|
2020-04-08 11:19:06 +01:00
|
|
|
Provider string `help:"payments provider to use" default:""`
|
|
|
|
StripeCoinPayments stripecoinpayments.Config
|
2021-08-27 01:51:26 +01:00
|
|
|
StorageTBPrice string `help:"price user should pay for storing TB per month" default:"4" testDefault:"10"`
|
|
|
|
EgressTBPrice string `help:"price user should pay for each TB of egress" default:"7" testDefault:"45"`
|
|
|
|
ObjectPrice string `help:"price user should pay for each object stored in network per month" default:"0" testDefault:"0.0000022"`
|
|
|
|
BonusRate int64 `help:"amount of percents that user will earn as bonus credits by depositing in STORJ tokens" default:"10"`
|
|
|
|
NodeEgressBandwidthPrice int64 `help:"price node receive for storing TB of egress in cents" default:"2000"`
|
|
|
|
NodeRepairBandwidthPrice int64 `help:"price node receive for storing TB of repair in cents" default:"1000"`
|
|
|
|
NodeAuditBandwidthPrice int64 `help:"price node receive for storing TB of audit in cents" default:"1000"`
|
|
|
|
NodeDiskSpacePrice int64 `help:"price node receive for storing disk space in cents/TB" default:"150"`
|
2021-03-30 00:37:46 +01:00
|
|
|
}
|
|
|
|
|
2021-04-15 18:53:09 +01:00
|
|
|
// PricingValues holds pricing model for satellite.
|
|
|
|
type PricingValues struct {
|
|
|
|
StorageTBPrice string
|
|
|
|
EgressTBPrice string
|
|
|
|
ObjectPrice string
|
|
|
|
}
|