tx · Ec2Xkiirivfc43Q24fXBzGpHJq3hX3fjAVjJXeDAswMK

3MuBASwpgfJm92SpDkyLsdPQPD2tMSoj2WA:  -1.00000000 Waves

2021.05.18 12:39 [1530949] smart account 3MuBASwpgfJm92SpDkyLsdPQPD2tMSoj2WA > SELF 0.00000000 Waves

{ "type": 13, "id": "Ec2Xkiirivfc43Q24fXBzGpHJq3hX3fjAVjJXeDAswMK", "fee": 100000000, "feeAssetId": null, "timestamp": 1621330880810, "version": 2, "chainId": 84, "sender": "3MuBASwpgfJm92SpDkyLsdPQPD2tMSoj2WA", "senderPublicKey": "AvBfKvojixmeNDg4JjhMyQVM56iwkf7z6TXUzXcbSJ5L", "proofs": [ "2eEG3NU8LKdpwhPYnbinqpqGeL1ZhQkVpaAqAoiq1owCNiqb6uBCNiQvGLesFzJYxSpssrM5oFwPEfTBZ6ZpUm7K" ], "script": "base64:AAIDAAAAAAAAACEIARIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggIEgMKAQgAAAAPAQAAAAdpc093bmVyAAAAAQAAAAdhZGRyZXNzCQAAAAAAAAIFAAAAB2FkZHJlc3MFAAAABHRoaXMBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAAGGlzTWVtYmVyc2hpcFdvcmtpbmdHcm91cAAAAAEAAAABYQkAAGYAAAACCQEAAAANdHJ5R2V0SW50ZWdlcgAAAAEJAAEsAAAAAgkAASwAAAACAgAAAAttZW1iZXJzaGlwXwkABCUAAAABBQAAAAFhAgAAAAdfc3RhdHVzAAAAAAAAAAAAAQAAAA5pc1dvcmtpbmdHcm91cAAAAAEAAAABYQkAAGYAAAACCQEAAAANdHJ5R2V0SW50ZWdlcgAAAAEJAAEs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RlRm9yREFPTWVtYmVyQ2FuZGlkYXRlAAAAAQAAABBjYW5kaWRhdGVBZGRyZXNzBAAAABFtZW1iZXJzaGlwQWRkcmVzcwkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIDCQEAAAAYaXNNZW1iZXJzaGlwV29ya2luZ0dyb3VwAAAAAQgFAAAAAWkAAAAGY2FsbGVyAwkBAAAAHWlzTWVtYmVyc2hpcFZvdGVkRm9yQ2FuZGlkYXRlAAAAAgUAAAARbWVtYmVyc2hpcEFkZHJlc3MFAAAAEGNhbmRpZGF0ZUFkZHJlc3MJAAACAAAAAQIAAAAWWW91IGhhdmUgYWxyZWFkeSB2b3RlZAkBAAAAGm1lbWJlcnNoaXBWb3RlRm9yQ2FuZGlkYXRlAAAAAgUAAAARbWVtYmVyc2hpcEFkZHJlc3MFAAAAEGNhbmRpZGF0ZUFkZHJlc3MJAAACAAAAAQIAAAASWW91IGhhdmUgbm8gcmlnaHRzAAAAAK+125Y=", "height": 1530949, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hzs92g88V7EKvippDTJPngRzmQTezifAVUhNYMguTey8 Next: none Diff:
OldNewDifferences
114114 let t = ((s + ";") + b)
115115 let u = c("membership_working_group_members_size")
116116 let v = (u + 1)
117- WriteSet([DataEntry((("membership" + b) + "_status"), 1), DataEntry("membership_working_group_members", t), DataEntry("membership_working_group_members_size", v)])
117+ WriteSet([DataEntry((("membership_" + b) + "_status"), 1), DataEntry("membership_working_group_members", t), DataEntry("membership_working_group_members_size", v)])
118118 }
119119
120120
124124 then 1
125125 else if ((B == "2"))
126126 then 2
127- else throw("You need to vote with '1' or '0' value")
127+ else throw("You need to vote with '0' or '1' or '2' value")
128128
129129
130130 @Callable(C)
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)
7171 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)
117- WriteSet([DataEntry((("membership" + b) + "_status"), 1), DataEntry("membership_working_group_members", t), DataEntry("membership_working_group_members_size", v)])
117+ 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
127- else throw("You need to vote with '1' or '0' value")
127+ else throw("You need to vote with '0' or '1' or '2' value")
128128
129129
130130 @Callable(C)
131131 func proposeCandidateForDAOMember (b) = {
132132 let D = toString(C.caller)
133133 if ((c(("candidates_" + b)) == 1))
134134 then throw("This user already exists")
135135 else WriteSet([DataEntry(("candidates_" + b), "proposed")])
136136 }
137137
138138
139139
140140 @Callable(C)
141141 func ownerAddDAOMember (b) = x(b)
142142
143143
144144
145145 @Callable(C)
146146 func ownerAddWorkingGroup (b) = r(b)
147147
148148
149149
150150 @Callable(C)
151151 func ownerAddMembershioWorkingGroup (b) = z(b)
152152
153153
154154
155155 @Callable(C)
156156 func decisionOnMember (E,F) = if (!(a(C.caller)))
157157 then throw("access only to the owner")
158158 else {
159159 let G = A(F)
160160 if ((G == 1))
161161 then r(E)
162162 else WriteSet([DataEntry((("dao_member_" + E) + "_status"), F)])
163163 }
164164
165165
166166
167167 @Callable(C)
168168 func membershipVoteForDAOMemberCandidate (n) = {
169169 let m = toString(C.caller)
170170 if (h(C.caller))
171171 then if (l(m, n))
172172 then throw("You have already voted")
173173 else o(m, n)
174174 else throw("You have no rights")
175175 }
176176
177177

github/deemru/w8io/169f3d6 
35.52 ms