From d10baa47a5a20ac6e5d1abb61669451c49999e11 Mon Sep 17 00:00:00 2001 From: Spencer Graham Date: Thu, 30 May 2024 16:23:11 -0500 Subject: [PATCH 1/3] Update baalStakingEligibility.json Temporary adjustment to enable the hats app to accept user input for the min stake creation parameter. When the app encounters the `amountWithDecimals` display type, it tries to call the token contract to get number of decimals. But this module sets the token address (read from the Baal contract) when its deployed, so the app doesn't know which token contract to call before deployment. Changing the display type to `default` gets around this by putting the onus on the user to know how many decimals the token has. --- modules/baalStakingEligibility.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/baalStakingEligibility.json b/modules/baalStakingEligibility.json index df0828c..0d06c8c 100644 --- a/modules/baalStakingEligibility.json +++ b/modules/baalStakingEligibility.json @@ -23,7 +23,7 @@ { "label": "Minimum Stake", "functionName": "minStake", - "displayType": "amountWithDecimals" + "displayType": "default" }, { "label": "Cooldown Period", From 13b6867f41731ab8c960aca84ab5b177c17c0824 Mon Sep 17 00:00:00 2001 From: spengrah Date: Tue, 4 Jun 2024 14:41:52 -0500 Subject: [PATCH 2/3] update judge description --- modules/baalStakingEligibility.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/baalStakingEligibility.json b/modules/baalStakingEligibility.json index 0d06c8c..c1dd0d6 100644 --- a/modules/baalStakingEligibility.json +++ b/modules/baalStakingEligibility.json @@ -81,7 +81,7 @@ }, { "name": "Judge Hat", - "description": "The hat that can slash wearers", + "description": "The hat that can set wearers' standing, enabling them to be slashed", "type": "uint256", "example": "26959946667150639794667015087019630673637144422540572481103610249216", "displayType": "hat" From 7b08eb4313ce99266ce784dc1846aee2fdf2777b Mon Sep 17 00:00:00 2001 From: spengrah Date: Tue, 4 Jun 2024 14:42:15 -0500 Subject: [PATCH 3/3] remove judge role id collision w/ `stakingEligibility` --- modules/baalStakingEligibility.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/baalStakingEligibility.json b/modules/baalStakingEligibility.json index c1dd0d6..340392f 100644 --- a/modules/baalStakingEligibility.json +++ b/modules/baalStakingEligibility.json @@ -97,7 +97,7 @@ }, "customRoles": [ { - "id": "stakingJudge", + "id": "baalStakingJudge", "name": "Staking Judge", "criteria": "judge" } @@ -246,7 +246,7 @@ ] }, { - "roles": ["stakingJudge"], + "roles": ["baalStakingJudge"], "functionName": "setStanding", "label": "Set Wearer Standing", "description": "Set a wearer's standing",