-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathguild.sh
More file actions
54 lines (43 loc) · 1.07 KB
/
guild.sh
File metadata and controls
54 lines (43 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
# Guild Administration Tool for Structs
# Version 1.0
# Constants
CONFIG_DIR="$HOME/.structs-guild-admin"
CONFIG_FILE="$CONFIG_DIR/config.json"
GUILD_CONFIG_FILE="$CONFIG_DIR/guild.json"
SLEEP_TIME=6
PARAMS_TX=" --gas auto --yes=true "
PARAMS_QUERY=" --output json "
PARAMS_KEYS=" --output json "
# Colors for better UI
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
NC='\033[0m' # No Color
# Create config directory if it doesn't exist
mkdir -p "$CONFIG_DIR"
# Source all module files
source "guild-common.sh"
source "guild-setup.sh"
source "guild-energy-grid.sh"
source "guild-central-bank.sh"
source "guild-membership.sh"
source "guild-config.sh"
source "guild-permission.sh"
# Initialize the tool
function initialize() {
print_header
echo -e "${CYAN}Initializing Structs Guild Administration Tool...${NC}"
echo ""
# Load configuration
load_config
# Load guild configuration
load_guild_config
# Display main screen
display_main_screen
}
# Start the tool
initialize