tx · YdV15e9RL3QUZtEd7aGvtyEooBUpozk57ov2mCVXd7Z 3N2sQRGTRmL9NGZVVtzhfBEjEyVR7S9Mkum: -0.10000000 Waves 2020.11.30 16:53 [1288246] smart account 3N2sQRGTRmL9NGZVVtzhfBEjEyVR7S9Mkum > SELF 0.00000000 Waves
{ "type": 13, "id": "YdV15e9RL3QUZtEd7aGvtyEooBUpozk57ov2mCVXd7Z", "fee": 10000000, "feeAssetId": null, "timestamp": 1606744463000, "version": 2, "chainId": 84, "sender": "3N2sQRGTRmL9NGZVVtzhfBEjEyVR7S9Mkum", "senderPublicKey": "J8SeDz97kvV9MTtzmwVB965Dz8iEWst5MzMzgUgG1dfK", "proofs": [ "3RA28RtS9LiRRJaa4EuwjFo1EQQavnTzpjSEZDnhLciGs4ZkRZHxtToSokEfjB1eLSAg9GgEPeQ154n81HnJsGJN" ], "script": "base64:AAIDAAAAAAAAAFAIARIECgIICBIECgIICBIECgIIARIDCgEIEgUKAwgICBIFCgMICAESAwoBCBIECgIICBIECgIICBIDCgEIEgUKAwgIARIFCgMICAgSAwoBCAAAAAsAAAAABlFVT1JVTQAAAAAAAAAAAQEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIAAAAAAAAAAAAFAAAAA3ZhbAEAAAAMdHJ5R2V0U3RyaW5nAAAAAQAAAANrZXkEAAAAA3ZhbAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgIAAAAABQAAAAN2YWwAAAAADG1haW5Db250cmFjdAUAAAAEdGhpcwEAAAAHaXNPd25lcgAAAAEAAAAHYWRkcmVzcwM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AASwAAAACAgAAAAZ0YXNrc18FAAAABnRhc2tJZAIAAAAHX3N0YXR1cwIAAAAIcmVqZWN0ZWQFAAAAA25pbAAAAAA0ikck", "height": 1288246, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: C55mBGHXE4WypgeZ8cyyn9nyWgi15xiSfGWkP5dk6fui Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = 1 | |
5 | + | ||
6 | + | func b (c) = { | |
7 | + | let d = { | |
8 | + | let e = getInteger(this, c) | |
9 | + | if ($isInstanceOf(e, "Int")) | |
10 | + | then { | |
11 | + | let f = e | |
12 | + | f | |
13 | + | } | |
14 | + | else 0 | |
15 | + | } | |
16 | + | d | |
17 | + | } | |
18 | + | ||
19 | + | ||
20 | + | func g (c) = { | |
21 | + | let d = { | |
22 | + | let e = getString(this, c) | |
23 | + | if ($isInstanceOf(e, "String")) | |
24 | + | then { | |
25 | + | let f = e | |
26 | + | f | |
27 | + | } | |
28 | + | else "" | |
29 | + | } | |
30 | + | d | |
31 | + | } | |
32 | + | ||
33 | + | ||
34 | + | let h = this | |
35 | + | ||
36 | + | func i (j) = if ((j == this)) | |
37 | + | then true | |
38 | + | else (j == h) | |
39 | + | ||
40 | + | ||
41 | + | func k () = { | |
42 | + | let d = { | |
43 | + | let e = getString(h, "working_group_members") | |
44 | + | if ($isInstanceOf(e, "String")) | |
45 | + | then { | |
46 | + | let f = e | |
47 | + | f | |
48 | + | } | |
49 | + | else "" | |
50 | + | } | |
51 | + | d | |
52 | + | } | |
53 | + | ||
54 | + | ||
55 | + | func l () = { | |
56 | + | let d = { | |
57 | + | let e = getString(h, "dao_members") | |
58 | + | if ($isInstanceOf(e, "String")) | |
59 | + | then { | |
60 | + | let f = e | |
61 | + | f | |
62 | + | } | |
63 | + | else "" | |
64 | + | } | |
65 | + | d | |
66 | + | } | |
67 | + | ||
68 | + | ||
69 | + | func m (n) = { | |
70 | + | let d = { | |
71 | + | let e = getInteger(h, (("working_group_member_" + toString(n)) + "_weight")) | |
72 | + | if ($isInstanceOf(e, "Int")) | |
73 | + | then { | |
74 | + | let f = e | |
75 | + | f | |
76 | + | } | |
77 | + | else 0 | |
78 | + | } | |
79 | + | (d > 0) | |
80 | + | } | |
81 | + | ||
82 | + | ||
83 | + | func o (p) = { | |
84 | + | let d = { | |
85 | + | let e = getInteger(h, (("dao_member_" + toString(p.caller)) + "_weight")) | |
86 | + | if ($isInstanceOf(e, "Int")) | |
87 | + | then { | |
88 | + | let f = e | |
89 | + | f | |
90 | + | } | |
91 | + | else 0 | |
92 | + | } | |
93 | + | (d > 0) | |
94 | + | } | |
95 | + | ||
96 | + | ||
97 | + | func q (r) = (g((("tasks_" + r) + "_status")) == "work_started") | |
98 | + | ||
99 | + | ||
100 | + | func s (p,r) = true | |
101 | + | ||
102 | + | ||
103 | + | @Callable(p) | |
104 | + | func addTask (t,u) = if (!(m(p.caller))) | |
105 | + | then throw("grants working group access only") | |
106 | + | else WriteSet([DataEntry((("tasks_" + toBase58String(p.transactionId)) + "_title"), t), DataEntry((("tasks_" + toBase58String(p.transactionId)) + "_link"), u)]) | |
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | @Callable(p) | |
111 | + | func addTaskDetails (r,v) = if (!(m(p.caller))) | |
112 | + | then throw("grants working group access only") | |
113 | + | else { | |
114 | + | let w = extract(p.payment).amount | |
115 | + | WriteSet([DataEntry((("tasks_" + r) + "_reward"), w), DataEntry((("tasks_" + r) + "_details"), v), DataEntry((("tasks_" + r) + "_status"), "proposed")]) | |
116 | + | } | |
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | @Callable(p) | |
121 | + | func voteForTaskProposal (r,x) = if (!(o(p))) | |
122 | + | then throw("you can't vote") | |
123 | + | else if ((getStringValue(this, (("tasks_" + r) + "_status")) != "proposed")) | |
124 | + | then throw("voting is closed or not started") | |
125 | + | else if (if ((x != -1)) | |
126 | + | then (x != 1) | |
127 | + | else false) | |
128 | + | then throw("you need to vote 1 or -1") | |
129 | + | else { | |
130 | + | let y = ((("tasks_" + r) + "_voted_") + toString(p.caller)) | |
131 | + | let z = b(y) | |
132 | + | if (!((z == 0))) | |
133 | + | then throw("you have already voted") | |
134 | + | else { | |
135 | + | let A = (("tasks_" + r) + "_voting_state") | |
136 | + | let B = b(A) | |
137 | + | let C = (("tasks_" + r) + "_voting_amount") | |
138 | + | let D = (b(A) + 1) | |
139 | + | let E = (B + x) | |
140 | + | ScriptResult(WriteSet([DataEntry(A, E), DataEntry(y, x), DataEntry(C, D)]), TransferSet([ScriptTransfer(p.caller, 500000, unit)])) | |
141 | + | } | |
142 | + | } | |
143 | + | ||
144 | + | ||
145 | + | ||
146 | + | @Callable(p) | |
147 | + | func finishTaskProposalVoting (r) = if ((a > ((b((("tasks_" + r) + "_voting_amount")) * 100) / b("dao_size")))) | |
148 | + | then throw((("more than " + toString(a)) + "% members have to vote before finishing the voting")) | |
149 | + | else if (!(m(p.caller))) | |
150 | + | then throw("grants working group access only") | |
151 | + | else { | |
152 | + | let A = (("tasks_" + r) + "_voting_state") | |
153 | + | let B = b(A) | |
154 | + | if ((B > 0)) | |
155 | + | then { | |
156 | + | let F = "ready_to_apply" | |
157 | + | WriteSet([DataEntry((("tasks_" + r) + "_status"), F)]) | |
158 | + | } | |
159 | + | else { | |
160 | + | let F = "rejected" | |
161 | + | WriteSet([DataEntry((("tasks_" + r) + "_status"), F)]) | |
162 | + | } | |
163 | + | } | |
164 | + | ||
165 | + | ||
166 | + | ||
167 | + | @Callable(p) | |
168 | + | func applyForTask (r,G,u) = { | |
169 | + | let H = g((("tasks_" + r) + "_status")) | |
170 | + | if ((H != "ready_to_apply")) | |
171 | + | then throw("This grant has not yet been approved") | |
172 | + | else { | |
173 | + | let I = (("tasks_" + r) + "_applicants") | |
174 | + | let J = g(I) | |
175 | + | let K = drop(toString(p.caller), 10) | |
176 | + | let L = ((J + ";") + toString(p.caller)) | |
177 | + | WriteSet([DataEntry((((("tasks_" + r) + "_app_") + K) + "_name"), G), DataEntry((((("tasks_" + r) + "_app_") + K) + "_link"), u), DataEntry((((("tasks_" + r) + "_app_") + K) + "_leader"), toString(p.caller)), DataEntry((((("tasks_" + r) + "_app_") + K) + "_id"), K), DataEntry(I, L)]) | |
178 | + | } | |
179 | + | } | |
180 | + | ||
181 | + | ||
182 | + | ||
183 | + | @Callable(p) | |
184 | + | func voteForApplicant (r,M,x) = if (!(o(p))) | |
185 | + | then throw("you can't vote") | |
186 | + | else { | |
187 | + | let N = (drop(toString(p.caller), 10) + drop(M, 10)) | |
188 | + | let y = ((("tasks_" + r) + "_vote_") + N) | |
189 | + | let O = b(y) | |
190 | + | if ((O != 0)) | |
191 | + | then throw("you have already voted on this team") | |
192 | + | else { | |
193 | + | let P = (((("tasks_" + r) + "_app_") + M) + "_votes") | |
194 | + | let Q = (((("tasks_" + r) + "_app_") + M) + "_score") | |
195 | + | let R = (1 + b(P)) | |
196 | + | let S = (x + b(Q)) | |
197 | + | WriteSet([DataEntry(y, x), DataEntry(Q, S)]) | |
198 | + | } | |
199 | + | } | |
200 | + | ||
201 | + | ||
202 | + | ||
203 | + | @Callable(p) | |
204 | + | func finishApplicantsVoting (r) = { | |
205 | + | let T = 1 | |
206 | + | if (!(m(p.caller))) | |
207 | + | then throw("grants working group access only") | |
208 | + | else { | |
209 | + | let U = g((("tasks_" + r) + "_applicants")) | |
210 | + | let V = split(U, ";") | |
211 | + | let M = "TEAM_KEY_UNDEFINED" | |
212 | + | if ((size(V) == 0)) | |
213 | + | then throw("No one has applied to the hackathon, yet") | |
214 | + | else WriteSet([DataEntry((("tasks_" + r) + "_performer"), U), DataEntry((((("tasks_" + r) + "_app_") + M) + "_process"), "can_begin")]) | |
215 | + | } | |
216 | + | } | |
217 | + | ||
218 | + | ||
219 | + | ||
220 | + | @Callable(p) | |
221 | + | func enableSubmissions (r,W) = if (!(m(p.caller))) | |
222 | + | then throw("grants working group access only") | |
223 | + | else WriteSet([DataEntry((("tasks_" + r) + "_status"), "work_started"), DataEntry((("tasks_" + r) + "_jury"), W)]) | |
224 | + | ||
225 | + | ||
226 | + | ||
227 | + | @Callable(p) | |
228 | + | func submitSolution (r,X) = { | |
229 | + | let M = getStringValue(this, (("tasks_" + r) + "_performer")) | |
230 | + | if (!(q(r))) | |
231 | + | then throw("not possible to upload solution now") | |
232 | + | else if ((toString(p.caller) != getStringValue(this, (((("tasks_" + r) + "_app_") + M) + "_leader")))) | |
233 | + | then throw("team leader only") | |
234 | + | else WriteSet([DataEntry((((("tasks_" + r) + "_app_") + M) + "_process"), "work_submitted"), DataEntry((((("tasks_" + r) + "_app_") + M) + "_solution"), X)]) | |
235 | + | } | |
236 | + | ||
237 | + | ||
238 | + | ||
239 | + | @Callable(p) | |
240 | + | func stopSubmissions (r) = if (!(m(p.caller))) | |
241 | + | then throw("grants working group access only") | |
242 | + | else WriteSet([DataEntry((("tasks_" + r) + "_status"), "work_finished")]) | |
243 | + | ||
244 | + | ||
245 | + | ||
246 | + | @Callable(p) | |
247 | + | func voteForSolution (r,M,x) = if (!(s(p, r))) | |
248 | + | then throw("you can't vote") | |
249 | + | else { | |
250 | + | let N = (drop(toString(p.caller), 10) + drop(M, 10)) | |
251 | + | let y = ((("tasks_" + r) + "_solutionvote_") + N) | |
252 | + | let O = b(y) | |
253 | + | if ((O != 0)) | |
254 | + | then throw("you have already voted on this solution") | |
255 | + | else { | |
256 | + | let P = (((("tasks_" + r) + "_app_") + M) + "_solutionvotes") | |
257 | + | let Q = (((("tasks_" + r) + "_app_") + M) + "_solutionscore") | |
258 | + | let R = (1 + b(P)) | |
259 | + | let S = (x + b(Q)) | |
260 | + | WriteSet([DataEntry(y, x), DataEntry(Q, S)]) | |
261 | + | } | |
262 | + | } | |
263 | + | ||
264 | + | ||
265 | + | ||
266 | + | @Callable(p) | |
267 | + | func acceptWorkResult (r,Y,Z) = if (!(m(p.caller))) | |
268 | + | then throw("grants working group access only") | |
269 | + | else { | |
270 | + | let M = "TEAM_KEY_UNDEFINED" | |
271 | + | let aa = b((("tasks_" + r) + "_reward")) | |
272 | + | let ab = getStringValue(this, (((("tasks_" + r) + "_app_") + M) + "_leader")) | |
273 | + | ScriptResult(WriteSet([DataEntry((("tasks_" + r) + "_status"), "work_finished"), DataEntry((((("tasks_" + r) + "_app_") + M) + "_process"), "winner"), DataEntry((("tasks_" + r) + "_report"), Z)]), TransferSet([ScriptTransfer(addressFromStringValue(ab), aa, unit)])) | |
274 | + | } | |
275 | + | ||
276 | + | ||
277 | + | ||
278 | + | @Callable(p) | |
279 | + | func rejectTask (r) = if (!(m(p.caller))) | |
280 | + | then throw("grants working group access only") | |
281 | + | else { | |
282 | + | let M = getStringValue(this, (("tasks_" + r) + "_performer")) | |
283 | + | WriteSet([DataEntry((("tasks_" + r) + "_status"), "rejected")]) | |
284 | + | } | |
285 | + | ||
286 | + |
github/deemru/w8io/169f3d6 49.61 ms ◑