Skip to content

Commit cfd6c72

Browse files
committed
removing human from human sparta
1 parent 59c3155 commit cfd6c72

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+307
-5375
lines changed

tooling/sparta/.env.example

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,13 @@ BOT_TOKEN=your_discord_bot_token_here
1313
BOT_CLIENT_ID=your_discord_client_id_here
1414
# ID of the Discord Server (Guild) where the bot operates
1515
GUILD_ID=your_discord_guild_id_here
16-
# Role ID for the base 'Passport Verified' role
17-
PASSPORT_VERIFIED_ROLE_ID=your_verified_role_id_here
18-
# Minimum score required to verify
19-
MINIMUM_SCORE=10
20-
VITE_MINIMUM_SCORE=10 # for vite frontend
21-
22-
# -------------------------------------
23-
# Gitcoin Passport Configuration
24-
# -------------------------------------
25-
# API Key for Gitcoin Passport API v2
26-
PASSPORT_API_KEY=your_passport_api_key_here
27-
# Your Scorer ID from Gitcoin Passport
28-
PASSPORT_SCORER_ID=your_scorer_id_here
2916

3017
# -------------------------------------
3118
# Verification Web App (Vite Frontend)
3219
# -------------------------------------
3320
# Base URL of the verification web app (e.g., http://localhost:5173 or your deployed URL)
3421
# Used to generate the verification link sent to the user.
3522
VITE_APP_API_URL=http://localhost:3000 # for vite frontend
36-
VITE_REOWN_PROJECT_ID=your_reown_project_id_here # for vite frontend
3723

3824
# -------------------------------------
3925
# DynamoDB Configuration

tooling/sparta/.github/workflows/terraform-deploy.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,12 @@ jobs:
1616
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
1717
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
1818
TF_VAR_bot_token: ${{ secrets.BOT_TOKEN }}
19-
TF_VAR_passport_api_key: ${{ secrets.PASSPORT_API_KEY }}
2019
TF_VAR_ethereum_host: ${{ secrets.ETHEREUM_HOST }}
2120
TF_VAR_backend_api_key: ${{ secrets.BACKEND_API_KEY }}
2221
TF_VAR_aws_region: "eu-west-2"
2322
TF_VAR_environment: "production"
2423
TF_VAR_bot_client_id: "1329079356785688616"
2524
TF_VAR_guild_id: "1144692727120937080"
26-
TF_VAR_passport_verified_role_id: "1364982673604345886"
27-
TF_VAR_minimum_score: "10"
28-
TF_VAR_passport_scorer_id: "11493"
29-
TF_VAR_vite_reown_project_id: "d037e9da5c5c9b24cfcd94c509d88dce"
3025
TF_VAR_staking_asset_handler_address: "0xF739D03e98e23A7B65940848aBA8921fF3bAc4b2"
3126
TF_VAR_l1_chain_id: "11155111"
3227
TF_VAR_local_dynamo_db: "false"

tooling/sparta/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@ COPY . .
4747

4848
# Declare the build argument for the Vite frontend URL
4949
ARG VITE_APP_API_URL
50-
ARG VITE_REOWN_PROJECT_ID
5150
ARG VITE_MINIMUM_SCORE
5251

5352
ENV VITE_APP_API_URL=$VITE_APP_API_URL
54-
ENV VITE_REOWN_PROJECT_ID=$VITE_REOWN_PROJECT_ID
5553

5654
# Generate Swagger docs during build
5755
RUN bun run swagger
@@ -62,7 +60,6 @@ RUN bun run prep
6260
# The ARG variables will be available as environment variables here
6361
RUN cd packages/vite && \
6462
VITE_APP_API_URL=$VITE_APP_API_URL \
65-
VITE_REOWN_PROJECT_ID=$VITE_REOWN_PROJECT_ID \
6663
bun run build
6764

6865
# Expose the port the Express server will listen on

tooling/sparta/README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,9 @@ cp .env.example .env
6262
BOT_TOKEN=your_discord_bot_token
6363
BOT_CLIENT_ID=your_discord_client_id
6464
GUILD_ID=your_discord_server_id
65-
PASSPORT_VERIFIED_ROLE_ID=your_discord_role_id
66-
MINIMUM_SCORE=10
67-
68-
# Gitcoin Passport Configuration
69-
PASSPORT_API_KEY=your_passport_api_key
70-
PASSPORT_SCORER_ID=your_passport_scorer_id
7165
7266
# Verification Web App
7367
VITE_APP_API_URL=http://localhost:3000
74-
VITE_REOWN_PROJECT_ID=your_reown_project_id
7568
7669
# Session Storage
7770
LOCAL_DYNAMO_DB=true

tooling/sparta/packages/discord/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ The bot supports the following slash commands:
1717

1818
| Command | Subcommand | Description | Parameters |
1919
| ----------- | -------------- | ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
20-
| `/human` | `verify` | Verify your identity with Human Passport | None |
21-
| `/human` | `status` | Check your Human Passport verification status | None |
2220
| `/operator` | `chain-info` | Get current chain information including pending/proven blocks, epoch, slot, and current proposer | None |
2321
| `/operator` | `my-stats` | Check validator statistics | `address` (required): The validator address to check |
2422
| `/operator` | `register` | Register as a validator and get the Apprentice role | `address` (optional): Your validator address<br>`block-number` (optional): Block number for verification<br>`proof` (optional): Your sync proof |
Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,2 @@
1-
import { logger } from "@sparta/utils/logger";
2-
import { NodeOperatorSubcommands } from "./types";
3-
4-
const commandsCount = {
5-
[NodeOperatorSubcommands.MyStats]: 0,
6-
[NodeOperatorSubcommands.ChainInfo]: 0,
7-
[NodeOperatorSubcommands.Start]: 0,
8-
[NodeOperatorSubcommands.Help]: 0,
9-
};
10-
11-
export function incrementCommandsCount(command: NodeOperatorSubcommands) {
12-
commandsCount[command]++;
13-
logger.debug({ command, count: commandsCount[command] }, "Commands count");
14-
}
1+
// Debug utilities can be added here as needed
2+
export {};

tooling/sparta/packages/discord/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ export { Discord, getDiscordInstance } from "./clients/discord";
1515
export { DiscordService, discordService } from "./services";
1616

1717
// Export utils
18-
export { _handleUserRoleAssignment } from "./utils/roleAssigner";
18+
export { _handleUserRolesAssignment } from "./utils/roleAssigner";

tooling/sparta/packages/discord/src/slashCommands/humans/index.ts

Lines changed: 0 additions & 81 deletions
This file was deleted.

tooling/sparta/packages/discord/src/slashCommands/humans/status.ts

Lines changed: 0 additions & 141 deletions
This file was deleted.

0 commit comments

Comments
 (0)