Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete Scrappy Turkify #13

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
83f4f53
adds shamir secrets sharing utils, dotenv
me-imfhd May 12, 2024
4a1276c
secret-key distribution among different servers
me-imfhd May 12, 2024
d43b8e5
tx-sweeper-worker implementation
me-imfhd May 13, 2024
ef28756
queuing payouts, recovering keys with shamirs secret, sending payout …
me-imfhd May 13, 2024
ae8b571
fixes wallet conn & signin & hydration error
me-imfhd May 13, 2024
734943a
docker compose to start redis and postgres server
me-imfhd May 13, 2024
ea1dc73
env imports, zod safeparse, error handling & cleanup
me-imfhd May 13, 2024
7239ce7
managing envs & a script to gen shamir's secret
me-imfhd May 13, 2024
eb9c328
successful img uploads, paymt txs, tasks creation and env management
me-imfhd May 13, 2024
7523c33
fix task page
me-imfhd May 13, 2024
3a8bf71
removing tx-sweeper, owed the work to redisqueues
me-imfhd May 14, 2024
f334dcd
reference payout to worker instead of user
me-imfhd May 14, 2024
fe2331f
fix recover private key function
me-imfhd May 14, 2024
15fa78e
user router: add /me and /task/all get endpoints
me-imfhd May 14, 2024
a01f0b8
workers me endpoint, processing payout with bull and more
me-imfhd May 14, 2024
1ea9cfa
login when connect wallet only
me-imfhd May 14, 2024
e25381d
sonner notifications
me-imfhd May 14, 2024
d0b106c
wallet button for login & connecting wallet
me-imfhd May 14, 2024
0d51227
show balance make payouts, and next task
me-imfhd May 14, 2024
d2cc31f
smol changes
me-imfhd May 14, 2024
8717b6d
get all tasks, adds checks in uploads, fixes rest
me-imfhd May 14, 2024
28220c6
all workers payout, endpoint and ui implemented
me-imfhd May 14, 2024
ac2bdc6
show wallet address in appbar properly
me-imfhd May 14, 2024
7c33744
using docker to start all sk-distributed-services
me-imfhd May 14, 2024
885c84f
fix login with phantom
me-imfhd May 21, 2024
8dc0598
doube wallet opening, only phantom works
me-imfhd May 21, 2024
b5a9a62
support login with phantom and backpack both
me-imfhd May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
RPC_URL=https://api.devnet.solana.com
DATABASE_URL=postgresql://dev:dev@localhost:5959/repo?schema=public
BUCKET_NAME=
ACCESS_KEY_ID=
ACCESS_SECRET=
JWT_SECRET=
REGION=

SWEEPER_WORKER_ENDPOINT="http://localhost:7777"
SERVER_1_ENDPOINT="http://localhost:8080"
SERVER_2_ENDPOINT="http://localhost:7070"
SERVER_3_ENDPOINT="http://localhost:6060"
SERVER_4_ENDPOINT="http://localhost:5050"
SERVER_5_ENDPOINT="http://localhost:4040"
REDIS_URI="redis://127.0.0.1:6379";
PARENT_WALLET_PUBLIC_KEY=
27 changes: 27 additions & 0 deletions backend/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: "3.8"

services:
db:
image: postgres:latest
ports:
- 5959:5432
restart: always
environment:
POSTGRES_USER: dev
POSTGRES_PASSWORD: dev
POSTGRES_DB: repo
volumes:
- db:/var/lib/postgresql/data
queues:
image: redis:6.2-alpine
restart: always
ports:
- "6379:6379"
command: redis-server --save 20 1 --loglevel warning
volumes:
- queues:/var/lib/redies/data
volumes:
db:
driver: local
queues:
driver: local
Loading