Compare commits

...

9 Commits

Author SHA1 Message Date
Gala 9b1f4560ab Merge branch 'fix/selection-chance-buckets' of github.com:nymtech/nym into fix/selection-chance-buckets 2022-10-26 16:37:22 +02:00
Gala 84d68efdc2 Merge branch 'release/v1.1.0' into fix/selection-chance-buckets 2022-10-26 16:36:59 +02:00
pierre d0cd22c4da Revert "fix(explorer-api): geoip, ip address from domain"
This reverts commit a721e97c06.
2022-10-26 11:57:04 +02:00
pierre a721e97c06 fix(explorer-api): geoip, ip address from domain 2022-10-26 11:52:54 +02:00
Gala 4016d6b5a6 update storybook 2022-09-21 11:10:16 +02:00
Gala 8cb8297681 storybook update 2022-09-21 10:47:15 +02:00
Jon Häggblad 7998bd20a7 Lock file update 2022-09-21 08:49:25 +02:00
Jon Häggblad e9e53c8dff Fixup after rebase 2022-09-21 08:48:00 +02:00
Jon Häggblad a048cb9867 Update to latest set of selection chance buckets 2022-09-21 08:40:06 +02:00
5 changed files with 7 additions and 23 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
EXPLORER_API_URL=https://qa-explorer.nymtech.net/api/v1
VALIDATOR_API_URL=https://qa-validator-api.nymtech.net
VALIDATOR_URL=https://qa-validator.nymtech.net
BIG_DIPPER_URL=https://qa-blocks.nymtech.net
EXPLORER_API_URL=https://qwerty-network-explorer.qa.nymte.ch/api/v1
VALIDATOR_API_URL=https://qwerty-validator-api.qa.nymte.ch
VALIDATOR_URL=https://qwerty-validator.qa.nymte.ch
BIG_DIPPER_URL=https://qwerty-blocks.nymtech.net
CURRENCY_DENOM=unym
CURRENCY_STAKING_DENOM=unyx
CURRENCY_STAKING_DENOM=unyx
@@ -7,15 +7,9 @@ const selectionChance = (economicDynamicsStats: ApiState<MixNodeEconomicDynamics
const inclusionProbability = economicDynamicsStats?.data?.active_set_inclusion_probability;
// TODO: when v2 will be deployed, remove cases: VeryHigh, Moderate and VeryLow
switch (inclusionProbability) {
case 'VeryLow':
return 'Very Low';
case 'VeryHigh':
return 'Very High';
case 'High':
case 'Good':
case 'Low':
case 'Moderate':
return inclusionProbability;
default:
return '-';
}
@@ -19,16 +19,12 @@ const textColour = (value: EconomicsRowsType, field: string, theme: Theme) => {
return theme.palette.warning.main;
}
if (field === 'selectionChance') {
// TODO: when v2 will be deployed, remove cases: VeryHigh, Moderate and VeryLow
switch (fieldValue) {
case 'High':
case 'VeryHigh':
return theme.palette.nym.networkExplorer.selectionChance.overModerate;
case 'Good':
case 'Moderate':
return theme.palette.nym.networkExplorer.selectionChance.moderate;
case 'Low':
case 'VeryLow':
return theme.palette.nym.networkExplorer.selectionChance.underModerate;
default:
return theme.palette.nym.wallet.fee;
+1 -2
View File
@@ -215,8 +215,7 @@ export type UptimeStoryResponse = {
export type MixNodeEconomicDynamicsStatsResponse = {
stake_saturation: number;
// TODO: when v2 will be deployed, remove cases: VeryHigh, Moderate and VeryLow
active_set_inclusion_probability: 'High' | 'Good' | 'Low' | 'VeryLow' | 'Moderate' | 'VeryHigh';
active_set_inclusion_probability: 'High' | 'Good' | 'Low';
reserve_set_inclusion_probability: 'High' | 'Good' | 'Low';
estimated_total_node_reward: number;
estimated_operator_reward: number;
+1 -6
View File
@@ -752,9 +752,7 @@ name = "contracts-common"
version = "0.1.0"
dependencies = [
"cosmwasm-std",
"schemars",
"serde",
"thiserror",
]
[[package]]
@@ -6160,7 +6158,6 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
name = "vesting-contract"
version = "1.1.0"
dependencies = [
"contracts-common",
"cosmwasm-std",
"cw-storage-plus",
"mixnet-contract-common",
@@ -6174,9 +6171,7 @@ dependencies = [
name = "vesting-contract-common"
version = "0.1.0"
dependencies = [
"contracts-common",
"cosmwasm-std",
"log",
"mixnet-contract-common",
"schemars",
"serde",
@@ -6815,4 +6810,4 @@ dependencies = [
"byteorder",
"crc32fast",
"crossbeam-utils",
]
]