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 1 commit
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
Prev Previous commit
Next Next commit
tx-sweeper-worker implementation
  • Loading branch information
me-imfhd committed May 13, 2024
commit d43b8e53a8d38b92fde49e60dc2f04d2db863081
2 changes: 1 addition & 1 deletion sk-distribution-mock/server-1/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ app.get("/share", (req, res) => {
console.log(req.headers);
const share = process.env.SHARE;
if (!share) {
return res.status(404).json({ msg: "Share not found." });
return res.status(404).json({ message: "Share not found." });
}
res.status(200).json({ share });
});
Expand Down
2 changes: 1 addition & 1 deletion sk-distribution-mock/server-2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ app.get("/share", (req, res) => {
console.log(req.headers);
const share = process.env.SHARE;
if (!share) {
return res.status(404).json({ msg: "Share not found." });
return res.status(404).json({ message: "Share not found." });
}
res.status(200).json({ share });
});
Expand Down
2 changes: 1 addition & 1 deletion sk-distribution-mock/server-3/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ app.get("/share", (req, res) => {
console.log(req.headers);
const share = process.env.SHARE;
if (!share) {
return res.status(404).json({ msg: "Share not found." });
return res.status(404).json({ message: "Share not found." });
}
res.status(200).json({ share });
});
Expand Down
2 changes: 1 addition & 1 deletion sk-distribution-mock/server-4/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ app.get("/share", (req, res) => {
console.log(req.headers);
const share = process.env.SHARE;
if (!share) {
return res.status(404).json({ msg: "Share not found." });
return res.status(404).json({ message: "Share not found." });
}
res.status(200).json({ share });
});
Expand Down
2 changes: 1 addition & 1 deletion sk-distribution-mock/server-5/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ app.get("/share", (req, res) => {
console.log(req.headers);
const share = process.env.SHARE;
if (!share) {
return res.status(404).json({ msg: "Share not found." });
return res.status(404).json({ message: "Share not found." });
}
res.status(200).json({ share });
});
Expand Down
2 changes: 2 additions & 0 deletions txn-sweeper-worker/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
RPC_URL=
DATABASE_URL=
3 changes: 3 additions & 0 deletions txn-sweeper-worker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
.env
dist
Loading