tx · Hzs92g88V7EKvippDTJPngRzmQTezifAVUhNYMguTey8

3MuBASwpgfJm92SpDkyLsdPQPD2tMSoj2WA:  -0.10000000 Waves

2021.05.18 12:05 [1530918] smart account 3MuBASwpgfJm92SpDkyLsdPQPD2tMSoj2WA > SELF 0.00000000 Waves

{ "type": 13, "id": "Hzs92g88V7EKvippDTJPngRzmQTezifAVUhNYMguTey8", "fee": 10000000, "feeAssetId": null, "timestamp": 1621328732279, "version": 2, "chainId": 84, "sender": "3MuBASwpgfJm92SpDkyLsdPQPD2tMSoj2WA", "senderPublicKey": "AvBfKvojixmeNDg4JjhMyQVM56iwkf7z6TXUzXcbSJ5L", "proofs": [ "ueEJakSBLW8DawrGsJGLQWHjp9NV9yv2cDfvzF9YZp9E572ygNAxggVJU2FY1vTk7do16rPPzbEtvsvBrU8smR4" ], "script": "base64:AAIDAAAAAAAAACEIARIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgAAAAPAQAAAAdpc093bmVyAAAAAQAAAAdhZGRyZXNzCQAAAAAAAAIFAAAAB2FkZHJlc3MFAAAABHRoaXMBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAAGGlzTWVtYmVyc2hpcFdvcmtpbmdHcm91cAAAAAEAAAABYQkAAGYAAAACCQEAAAANdHJ5R2V0SW50ZWdlcgAAAAEJAAEsAAAAAgkAASwAAAACAgAAAAttZW1iZXJzaGlwXwkABCUAAAABBQAAAAFhAgAAAAdfc3RhdHVzAAAAAAAAAAAAAQAAAA5pc1dvcmtpbmdHcm91cAAAAAEAAAABYQkAAGYAAAACCQEAAAANdHJ5R2V0SW50ZWdlcgAAAAEJAAEsAAAAAgkAASwAAAACAgAAAA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F0ZQAAAAEAAAAQY2FuZGlkYXRlQWRkcmVzcwQAAAARbWVtYmVyc2hpcEFkZHJlc3MJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAwkBAAAAGGlzTWVtYmVyc2hpcFdvcmtpbmdHcm91cAAAAAEIBQAAAAFpAAAABmNhbGxlcgMJAQAAAB1pc01lbWJlcnNoaXBWb3RlZEZvckNhbmRpZGF0ZQAAAAIFAAAAEW1lbWJlcnNoaXBBZGRyZXNzBQAAABBjYW5kaWRhdGVBZGRyZXNzCQAAAgAAAAECAAAAFllvdSBoYXZlIGFscmVhZHkgdm90ZWQJAQAAABptZW1iZXJzaGlwVm90ZUZvckNhbmRpZGF0ZQAAAAIFAAAAEW1lbWJlcnNoaXBBZGRyZXNzBQAAABBjYW5kaWRhdGVBZGRyZXNzCQAAAgAAAAECAAAAEllvdSBoYXZlIG5vIHJpZ2h0cwAAAAA4YgXM", "height": 1530918, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4HZjtvaMENwFH19vGTNSsuCKtnkVwAytaVmsmFaJ28gR Next: Ec2Xkiirivfc43Q24fXBzGpHJq3hX3fjAVjJXeDAswMK Diff:
OldNewDifferences
6868 let t = ((s + ";") + b)
6969 let u = c("working_group_size")
7070 let v = (u + 1)
71- WriteSet([DataEntry((("dao_member_" + b) + "_status"), 1), DataEntry("working_group_members", t), DataEntry("working_group_size", v)])
71+ WriteSet([DataEntry((("working_group_member_" + b) + "_status"), 1), DataEntry("working_group_members", t), DataEntry("working_group_size", v)])
7272 }
7373
7474
127127 else throw("You need to vote with '1' or '0' value")
128128
129129
130-func C (b) = DataEntry((("dao_member_" + b) + "_status"), 1)
131-
132-
133-@Callable(D)
130+@Callable(C)
134131 func proposeCandidateForDAOMember (b) = {
135- let E = toString(D.caller)
132+ let D = toString(C.caller)
136133 if ((c(("candidates_" + b)) == 1))
137134 then throw("This user already exists")
138135 else WriteSet([DataEntry(("candidates_" + b), "proposed")])
140137
141138
142139
143-@Callable(D)
140+@Callable(C)
144141 func ownerAddDAOMember (b) = x(b)
145142
146143
147144
148-@Callable(D)
149-func ownerAddWorkingGroup (b) = WriteSet([DataEntry((("working_group" + b) + "_status"), 1)])
145+@Callable(C)
146+func ownerAddWorkingGroup (b) = r(b)
150147
151148
152149
153-@Callable(D)
150+@Callable(C)
154151 func ownerAddMembershioWorkingGroup (b) = z(b)
155152
156153
157154
158-@Callable(D)
159-func decisionOnMember (F,G) = if (!(a(D.caller)))
155+@Callable(C)
156+func decisionOnMember (E,F) = if (!(a(C.caller)))
160157 then throw("access only to the owner")
161158 else {
162- let H = A(G)
163- if ((H == 1))
164- then r(F)
165- else WriteSet([DataEntry((("dao_member_" + F) + "_status"), G)])
159+ let G = A(F)
160+ if ((G == 1))
161+ then r(E)
162+ else WriteSet([DataEntry((("dao_member_" + E) + "_status"), F)])
166163 }
167164
168165
169166
170-@Callable(D)
167+@Callable(C)
171168 func membershipVoteForDAOMemberCandidate (n) = {
172- let m = toString(D.caller)
173- if (h(D.caller))
169+ let m = toString(C.caller)
170+ if (h(C.caller))
174171 then if (l(m, n))
175172 then throw("You have already voted")
176173 else o(m, n)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = (b == this)
55
66
77 func c (d) = {
88 let e = {
99 let f = getInteger(this, d)
1010 if ($isInstanceOf(f, "Int"))
1111 then {
1212 let g = f
1313 g
1414 }
1515 else 0
1616 }
1717 e
1818 }
1919
2020
2121 func h (i) = (c((("membership_" + toString(i)) + "_status")) > 0)
2222
2323
2424 func j (i) = (c((("working_group_" + toString(i)) + "_status")) > 0)
2525
2626
2727 func k (i) = if ((c((("dao_member_" + toString(i)) + "_status")) > 0))
2828 then (2 > c((("dao_member_" + toString(i)) + "_status")))
2929 else false
3030
3131
3232 func l (m,n) = (c(((m + "_voted_") + n)) > 0)
3333
3434
3535 func o (m,n) = WriteSet([DataEntry(((m + "_voted_") + n), 1)])
3636
3737
3838 func p (d) = {
3939 let e = {
4040 let f = getString(this, d)
4141 if ($isInstanceOf(f, "String"))
4242 then {
4343 let g = f
4444 g
4545 }
4646 else ""
4747 }
4848 e
4949 }
5050
5151
5252 func q () = {
5353 let e = {
5454 let f = getString(this, "working_group_members")
5555 if ($isInstanceOf(f, "String"))
5656 then {
5757 let g = f
5858 g
5959 }
6060 else ""
6161 }
6262 e
6363 }
6464
6565
6666 func r (b) = {
6767 let s = q()
6868 let t = ((s + ";") + b)
6969 let u = c("working_group_size")
7070 let v = (u + 1)
71- WriteSet([DataEntry((("dao_member_" + b) + "_status"), 1), DataEntry("working_group_members", t), DataEntry("working_group_size", v)])
71+ WriteSet([DataEntry((("working_group_member_" + b) + "_status"), 1), DataEntry("working_group_members", t), DataEntry("working_group_size", v)])
7272 }
7373
7474
7575 func w () = {
7676 let e = {
7777 let f = getString(this, "dao_members")
7878 if ($isInstanceOf(f, "String"))
7979 then {
8080 let g = f
8181 g
8282 }
8383 else ""
8484 }
8585 e
8686 }
8787
8888
8989 func x (b) = {
9090 let s = w()
9191 let t = ((s + ";") + b)
9292 let u = c("dao_members_size")
9393 let v = (u + 1)
9494 WriteSet([DataEntry((("dao_member_" + b) + "_status"), 1), DataEntry("dao_members", t), DataEntry("dao_members_size", v)])
9595 }
9696
9797
9898 func y () = {
9999 let e = {
100100 let f = getString(this, "membership_working_group_members")
101101 if ($isInstanceOf(f, "String"))
102102 then {
103103 let g = f
104104 g
105105 }
106106 else ""
107107 }
108108 e
109109 }
110110
111111
112112 func z (b) = {
113113 let s = y()
114114 let t = ((s + ";") + b)
115115 let u = c("membership_working_group_members_size")
116116 let v = (u + 1)
117117 WriteSet([DataEntry((("membership" + b) + "_status"), 1), DataEntry("membership_working_group_members", t), DataEntry("membership_working_group_members_size", v)])
118118 }
119119
120120
121121 func A (B) = if ((B == "0"))
122122 then 0
123123 else if ((B == "1"))
124124 then 1
125125 else if ((B == "2"))
126126 then 2
127127 else throw("You need to vote with '1' or '0' value")
128128
129129
130-func C (b) = DataEntry((("dao_member_" + b) + "_status"), 1)
131-
132-
133-@Callable(D)
130+@Callable(C)
134131 func proposeCandidateForDAOMember (b) = {
135- let E = toString(D.caller)
132+ let D = toString(C.caller)
136133 if ((c(("candidates_" + b)) == 1))
137134 then throw("This user already exists")
138135 else WriteSet([DataEntry(("candidates_" + b), "proposed")])
139136 }
140137
141138
142139
143-@Callable(D)
140+@Callable(C)
144141 func ownerAddDAOMember (b) = x(b)
145142
146143
147144
148-@Callable(D)
149-func ownerAddWorkingGroup (b) = WriteSet([DataEntry((("working_group" + b) + "_status"), 1)])
145+@Callable(C)
146+func ownerAddWorkingGroup (b) = r(b)
150147
151148
152149
153-@Callable(D)
150+@Callable(C)
154151 func ownerAddMembershioWorkingGroup (b) = z(b)
155152
156153
157154
158-@Callable(D)
159-func decisionOnMember (F,G) = if (!(a(D.caller)))
155+@Callable(C)
156+func decisionOnMember (E,F) = if (!(a(C.caller)))
160157 then throw("access only to the owner")
161158 else {
162- let H = A(G)
163- if ((H == 1))
164- then r(F)
165- else WriteSet([DataEntry((("dao_member_" + F) + "_status"), G)])
159+ let G = A(F)
160+ if ((G == 1))
161+ then r(E)
162+ else WriteSet([DataEntry((("dao_member_" + E) + "_status"), F)])
166163 }
167164
168165
169166
170-@Callable(D)
167+@Callable(C)
171168 func membershipVoteForDAOMemberCandidate (n) = {
172- let m = toString(D.caller)
173- if (h(D.caller))
169+ let m = toString(C.caller)
170+ if (h(C.caller))
174171 then if (l(m, n))
175172 then throw("You have already voted")
176173 else o(m, n)
177174 else throw("You have no rights")
178175 }
179176
180177

github/deemru/w8io/169f3d6 
36.19 ms