-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks
More file actions
123 lines (89 loc) · 2.44 KB
/
tasks
File metadata and controls
123 lines (89 loc) · 2.44 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
- [ ] fix the rewards
rewards(pool_id) -> (claimed, earnings)
interface:
- connect contracts for env
- dash:
feature a set few pools
- pool:
load:
isMember
pool details
listen:
members events
torrent events
poll:
your total upload
unclaimed rewards
realtime download rate
aggregator:
serve endpoint for each pool:
(t, downloaded)
load download rates from aggregator
interactions:
join pool
leave pool
claim tokens
what's the simplest thing I can do today?
- package the node software for npm + publish
- deploy contracts to anvil
- run+build aggregator
- run node software
- create a pool using Init.s.sol
- view it in the dapp
- join the pool in the dapp
- watch as node autojoins and seeds torrent
- start a downloader
- watch as reports flow into aggregator
- check dapp
- (rewards, download) should refresh in realtime.
then for demo:
- issue the axon token
- user flow:
install the axon-miner
join the "stupid dummy dataset" pool
watch as other people download the dataset
view a video
earn tokens!
use those tokens to create your own pool
upload a file to arweave
then create an onchain pool
watch as nodes spin up to host the file
what does this entail?
- aggregator
serve endpoint for realtime upload/downloads
serve endpoint for "total uploaded"
- dapp
integrate wagmi
load pool data from on-chain
name
symbol
[x] build "join/leave" button
build "get rewards"
req from aggregator
build "get your upload"
req from aggregator
build "realtime view downloads"
req from aggregator
build "is node live" indicator
req from node
- token
issue axon token
setup pool so that people can earn axon for hosting
- integration
run node with key
other stuff:
- create pool
upload files
add tokens
- pool
edit details
propose new files
buy/sell tokens to propose new files??
issue AXON token to hosters
nodes earn it for hosting data
users can buy and stake it in order to get rewards
users can buy and pay it in order to get data hosted
zk gate tokens in pool
- earnings
- node
show if node is online / responding to heartbeat