Skip to content

Commit

Permalink
Merge pull request #108 from mysteriumnetwork/update-defaults
Browse files Browse the repository at this point in the history
update default prices
  • Loading branch information
Guillembonet authored Jun 12, 2024
2 parents bca1142 + 2d3606c commit e75c9a1
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 89 deletions.
88 changes: 44 additions & 44 deletions e2e/price_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,48 +133,48 @@ func init() {

var expectedPricingConfig = `
{
"base_prices": {
"residential": {
"data_transfer": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
},
"dvpn": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
},
"scraping": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
},
"wireguard": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
}
},
"other": {
"data_transfer": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
},
"dvpn": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
},
"scraping": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
},
"wireguard": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
}
}
},
"country_modifiers": {
"US": {
"residential": 1.5,
"other": 1.2
}
}
"base_prices": {
"residential": {
"wireguard": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.2
},
"scraping": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.191
},
"data_transfer": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.016
},
"dvpn": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.05
}
},
"other": {
"wireguard": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.09
},
"scraping": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.0101
},
"data_transfer": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.012
},
"dvpn": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.03
}
}
},
"country_modifiers": {
"US": {
"residential": 1,
"other": 1
}
}
}`
90 changes: 45 additions & 45 deletions price/pricingbyservice/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,48 +174,48 @@ func (m Modifier) Validate() error {
}

var defaultPriceConfig = `{
"base_prices": {
"residential": {
"wireguard": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
},
"scraping": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
},
"data_transfer": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
},
"dvpn": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
}
},
"other": {
"wireguard": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
},
"scraping": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
},
"data_transfer": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
},
"dvpn": {
"price_per_hour_usd": 0.00036,
"price_per_gib_usd": 0.06
}
}
},
"country_modifiers": {
"US": {
"residential": 1.5,
"other": 1.2
}
}
}`
"base_prices": {
"residential": {
"wireguard": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.2
},
"scraping": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.191
},
"data_transfer": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.016
},
"dvpn": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.05
}
},
"other": {
"wireguard": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.09
},
"scraping": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.0101
},
"data_transfer": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.012
},
"dvpn": {
"price_per_hour_usd": 0.00005,
"price_per_gib_usd": 0.03
}
}
},
"country_modifiers": {
"US": {
"residential": 1,
"other": 1
}
}
}`

0 comments on commit e75c9a1

Please sign in to comment.