tx · Go5UgopjnF97yGrHXUvkL6fagLYimdbbY8Q3gEg5MRpp 3MytA8Kwu7X74fVDNfGayUNhSnuySrhjKNc: -0.01000000 Waves 2020.09.22 00:44 [1187630] smart account 3MytA8Kwu7X74fVDNfGayUNhSnuySrhjKNc > SELF 0.00000000 Waves
{ "type": 13, "id": "Go5UgopjnF97yGrHXUvkL6fagLYimdbbY8Q3gEg5MRpp", "fee": 1000000, "feeAssetId": null, "timestamp": 1600724655468, "version": 2, "chainId": 84, "sender": "3MytA8Kwu7X74fVDNfGayUNhSnuySrhjKNc", "senderPublicKey": "EfaPstL4W1ByTJB1vCsdh9L2utQ8GjFSDbUeb3WbxmWs", "proofs": [ "5zsnTWVfqeSAcWv7RaRSLLJSjYqrQQEc5WNUHxRBfsDB3coE3aDLqLnWuE69idf6Wzttxqp55ZeWeSUyU6yxZAcn" ], "script": "base64:AAIDAAAAAAAAAD0IARIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgSBAoCCAgSBQoDCAgBEgMKAQgSAwoBCBIDCgEIAAAACQAAAAAEd2dmZwEAAAAaAVRbeoehs52P1eKbuJlwg5Ny9LYwuVjtsCAAAAAACkJPQVJEdG9rZW4FAAAABHVuaXQAAAAABlFVT1JVTQAAAAAAAAAAMgEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIAAAAAAAAAAAAFAAAAA3ZhbAEAAAAHaXNPd25lcgAAAAEAAAAHYWRkcmVzcwkAAAAAAAACBQAAAAdhZGRyZXNzBQAAAAR0aGlzAQAAAAhnZXRHcm91cAAAAAAEAAAAA3ZhbAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzAgAAAA13b3JraW5nX2dyb3VwAwkAAAEAAAACBQAA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AACCQABLAAAAAIJAAEsAAAAAgUAAAAGdGFza0lkAgAAAAtfYXBwbGljYW50XwUAAAAIdGVhbU5hbWUCAAAAB19sZWFkZXIJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABnRhc2tJZAIAAAAHX3N0YXR1cwIAAAANd29ya19maW5pc2hlZAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAGdGFza0lkAgAAAAtfYXBwbGljYW50XwUAAAAIdGVhbU5hbWUCAAAADV93b3JrX3Byb2Nlc3MCAAAADXdvcmtfZmluaXNoZWQFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAAC3RlYW1BZGRyZXNzBQAAAAxyZXdhcmRBbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAABNHNqK", "height": 1187630, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = base58'3MxFn3u1ujdSadCaCPSzpDKLqXxzZMCdtoy' | |
5 | + | ||
6 | + | let b = unit | |
7 | + | ||
8 | + | let c = 50 | |
9 | + | ||
10 | + | func d (e) = { | |
11 | + | let f = { | |
12 | + | let g = getInteger(this, e) | |
13 | + | if ($isInstanceOf(g, "Int")) | |
14 | + | then { | |
15 | + | let h = g | |
16 | + | h | |
17 | + | } | |
18 | + | else 0 | |
19 | + | } | |
20 | + | f | |
21 | + | } | |
22 | + | ||
23 | + | ||
24 | + | func i (j) = (j == this) | |
25 | + | ||
26 | + | ||
27 | + | func k () = { | |
28 | + | let f = { | |
29 | + | let g = getString(this, "working_group") | |
30 | + | if ($isInstanceOf(g, "String")) | |
31 | + | then { | |
32 | + | let h = g | |
33 | + | h | |
34 | + | } | |
35 | + | else "" | |
36 | + | } | |
37 | + | f | |
38 | + | } | |
39 | + | ||
40 | + | ||
41 | + | func l () = { | |
42 | + | let f = { | |
43 | + | let g = getString(this, "dao_members") | |
44 | + | if ($isInstanceOf(g, "String")) | |
45 | + | then { | |
46 | + | let h = g | |
47 | + | h | |
48 | + | } | |
49 | + | else "" | |
50 | + | } | |
51 | + | f | |
52 | + | } | |
53 | + | ||
54 | + | ||
55 | + | func m (n) = (d(("group_member_weight_" + toString(n))) > 0) | |
56 | + | ||
57 | + | ||
58 | + | func o (p) = (d(("dao_member_weight_" + toString(p.caller))) > 0) | |
59 | + | ||
60 | + | ||
61 | + | @Callable(p) | |
62 | + | func addDAOMember (q) = if (!(i(p.caller))) | |
63 | + | then throw("access only to the DAO owner") | |
64 | + | else { | |
65 | + | let r = l() | |
66 | + | let s = ((r + ";") + q) | |
67 | + | let t = d("dao_size") | |
68 | + | let u = (t + 1) | |
69 | + | WriteSet([DataEntry("dao_members", s), DataEntry("dao_size", u), DataEntry(("dao_member_weight_" + q), 1)]) | |
70 | + | } | |
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | @Callable(p) | |
75 | + | func addGroupMember (q) = if (!(i(p.caller))) | |
76 | + | then throw("access only to the DAO owner") | |
77 | + | else { | |
78 | + | let r = k() | |
79 | + | let s = ((r + ";") + q) | |
80 | + | let t = d("working_group_size") | |
81 | + | let u = (t + 1) | |
82 | + | WriteSet([DataEntry("working_group", s), DataEntry("working_group_size", u), DataEntry(("group_member_weight_" + q), 1)]) | |
83 | + | } | |
84 | + | ||
85 | + | ||
86 | + | ||
87 | + | @Callable(p) | |
88 | + | func addTask (v) = if (!(m(p.caller))) | |
89 | + | then throw("grants working group access only") | |
90 | + | else WriteSet([DataEntry((toBase58String(p.transactionId) + "_task"), v)]) | |
91 | + | ||
92 | + | ||
93 | + | ||
94 | + | @Callable(p) | |
95 | + | func addTaskDetails (w) = if (!(m(p.caller))) | |
96 | + | then throw("grants working group access only") | |
97 | + | else { | |
98 | + | let x = extract(p.payment).amount | |
99 | + | WriteSet([DataEntry((w + "_reward"), x), DataEntry((w + "_status"), "proposed")]) | |
100 | + | } | |
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | @Callable(p) | |
105 | + | func voteForTaskProposal (w,y) = if (!(o(p))) | |
106 | + | then throw("you can't vote") | |
107 | + | else if ((getStringValue(this, (w + "_status")) != "proposed")) | |
108 | + | then throw("voting is closed or not started") | |
109 | + | else if (if ((y != -1)) | |
110 | + | then (y != 1) | |
111 | + | else false) | |
112 | + | then throw("you need to vote 1 or -1") | |
113 | + | else { | |
114 | + | let z = (((w + "_") + toString(p.caller)) + "_vote1") | |
115 | + | let A = d(z) | |
116 | + | if (!((A == 0))) | |
117 | + | then throw("you have already voted") | |
118 | + | else { | |
119 | + | let B = (w + "_voting1") | |
120 | + | let C = d(B) | |
121 | + | let D = (w + "_voting1_amount") | |
122 | + | let E = (d(B) + 1) | |
123 | + | let F = (C + y) | |
124 | + | ScriptResult(WriteSet([DataEntry(B, F), DataEntry(z, y), DataEntry(D, E)]), TransferSet([ScriptTransfer(p.caller, 500000, unit)])) | |
125 | + | } | |
126 | + | } | |
127 | + | ||
128 | + | ||
129 | + | ||
130 | + | @Callable(p) | |
131 | + | func finishTaskProposalVoting (w) = if ((c > ((d((w + "_voting1_amount")) * 100) / d("dao_size")))) | |
132 | + | then throw((("more than " + toString(c)) + "% members have to vote before finishing the voting")) | |
133 | + | else if (!(m(p.caller))) | |
134 | + | then throw("grants working group access only") | |
135 | + | else { | |
136 | + | let B = (w + "_voting1") | |
137 | + | let C = d(B) | |
138 | + | if ((C > 0)) | |
139 | + | then { | |
140 | + | let G = "ready_to_apply" | |
141 | + | WriteSet([DataEntry((w + "_status"), G)]) | |
142 | + | } | |
143 | + | else { | |
144 | + | let G = "rejected" | |
145 | + | WriteSet([DataEntry((w + "_status"), G)]) | |
146 | + | } | |
147 | + | } | |
148 | + | ||
149 | + | ||
150 | + | ||
151 | + | @Callable(p) | |
152 | + | func applyForTask (w,H) = { | |
153 | + | let I = (w + "_applicants") | |
154 | + | let J = { | |
155 | + | let g = getString(this, I) | |
156 | + | if ($isInstanceOf(g, "String")) | |
157 | + | then { | |
158 | + | let h = g | |
159 | + | h | |
160 | + | } | |
161 | + | else "" | |
162 | + | } | |
163 | + | let K = ((J + ";") + H) | |
164 | + | WriteSet([DataEntry((((w + "_applicant_") + H) + "_leader"), toString(p.caller)), DataEntry(I, K)]) | |
165 | + | } | |
166 | + | ||
167 | + | ||
168 | + | ||
169 | + | @Callable(p) | |
170 | + | func voteForApplicant (w,H,y) = if (!(o(p))) | |
171 | + | then throw("you can't vote") | |
172 | + | else { | |
173 | + | let z = ((((w + "_") + toString(p.caller)) + "_vote_") + H) | |
174 | + | let L = d(z) | |
175 | + | if ((L != 0)) | |
176 | + | then throw("you have already voted on this team") | |
177 | + | else { | |
178 | + | let M = (((w + "_applicant_") + H) + "_votes") | |
179 | + | let N = (((w + "_applicant_") + H) + "_score") | |
180 | + | let O = (1 + d(M)) | |
181 | + | let P = (y + d(N)) | |
182 | + | WriteSet([DataEntry(z, y), DataEntry(N, P)]) | |
183 | + | } | |
184 | + | } | |
185 | + | ||
186 | + | ||
187 | + | ||
188 | + | @Callable(p) | |
189 | + | func finishApplicantsVoting (w) = { | |
190 | + | func Q (R,S) = { | |
191 | + | let I = (w + "_applicants") | |
192 | + | let T = split(getStringValue(this, I), ";") | |
193 | + | let H = T[R] | |
194 | + | let M = (((w + "_applicant_") + H) + "_votes") | |
195 | + | let O = d(M) | |
196 | + | if ((O > 0)) | |
197 | + | then 1 | |
198 | + | else throw(("not enough votes to make decision on " + H)) | |
199 | + | } | |
200 | + | ||
201 | + | func U (R,S) = { | |
202 | + | let I = (w + "_applicants") | |
203 | + | let T = split(getStringValue(this, I), ";") | |
204 | + | let H = T[R] | |
205 | + | let M = (((w + "_applicant_") + H) + "_votes") | |
206 | + | let O = d(M) | |
207 | + | let V = T[S] | |
208 | + | let W = (((w + "_applicant_") + V) + "_votes") | |
209 | + | let X = d(W) | |
210 | + | if ((O > X)) | |
211 | + | then R | |
212 | + | else S | |
213 | + | } | |
214 | + | ||
215 | + | if (!(m(p.caller))) | |
216 | + | then throw("grants working group access only") | |
217 | + | else { | |
218 | + | let Y = { | |
219 | + | let Z = [0, 1] | |
220 | + | let aa = size(Z) | |
221 | + | let ab = 0 | |
222 | + | if ((aa == 0)) | |
223 | + | then ab | |
224 | + | else { | |
225 | + | let ac = U(ab, Z[0]) | |
226 | + | if ((aa == 1)) | |
227 | + | then ac | |
228 | + | else { | |
229 | + | let ad = U(ac, Z[1]) | |
230 | + | if ((aa == 2)) | |
231 | + | then ad | |
232 | + | else { | |
233 | + | let ae = U(ad, Z[2]) | |
234 | + | throw("List size exceed 2") | |
235 | + | } | |
236 | + | } | |
237 | + | } | |
238 | + | } | |
239 | + | let I = (w + "_applicants") | |
240 | + | let T = split(getStringValue(this, I), ";") | |
241 | + | let H = T[Y] | |
242 | + | WriteSet([DataEntry((w + "_status"), "team_chosen"), DataEntry((w + "_performer"), H), DataEntry((((w + "_applicant_") + H) + "_work_process"), "can_begin")]) | |
243 | + | } | |
244 | + | } | |
245 | + | ||
246 | + | ||
247 | + | ||
248 | + | @Callable(p) | |
249 | + | func startWork (w) = { | |
250 | + | let H = getStringValue(this, (w + "_performer")) | |
251 | + | if ((toString(p.caller) != getStringValue(this, (((w + "_applicant_") + H) + "_leader")))) | |
252 | + | then throw("team leader only") | |
253 | + | else WriteSet([DataEntry((w + "_status"), "work_started"), DataEntry((((w + "_applicant_") + H) + "_work_process"), "work_started")]) | |
254 | + | } | |
255 | + | ||
256 | + | ||
257 | + | ||
258 | + | @Callable(p) | |
259 | + | func acceptWorkResult (w) = if (!(m(p.caller))) | |
260 | + | then throw("grants working group access only") | |
261 | + | else { | |
262 | + | let af = d((w + "_reward")) | |
263 | + | let H = getStringValue(this, (w + "_performer")) | |
264 | + | let ag = getStringValue(this, (((w + "_applicant_") + H) + "_leader")) | |
265 | + | ScriptResult(WriteSet([DataEntry((w + "_status"), "work_finished"), DataEntry((((w + "_applicant_") + H) + "_work_process"), "work_finished")]), TransferSet([ScriptTransfer(addressFromStringValue(ag), af, unit)])) | |
266 | + | } | |
267 | + | ||
268 | + |
github/deemru/w8io/026f985 20.75 ms ◑