tx · 4y8mgbkhuMgVNkCJ8VnMzgoNS4Zw4x3LgwVHzPsR8XzM

3MvRNiiunRy51KJXcLmZhUzrm9fXfMcapuB:  -0.10650000 Waves

2021.05.20 11:19 [1533746] smart account 3MvRNiiunRy51KJXcLmZhUzrm9fXfMcapuB > SELF 0.00000000 Waves

{ "type": 13, "id": "4y8mgbkhuMgVNkCJ8VnMzgoNS4Zw4x3LgwVHzPsR8XzM", "fee": 10650000, "feeAssetId": null, "timestamp": 1621498770511, "version": 2, "chainId": 84, "sender": "3MvRNiiunRy51KJXcLmZhUzrm9fXfMcapuB", "senderPublicKey": "AJhgEzWrvQYvLJdZ4bDYWy3W5H1h7UqSPwUyzSKsTYuh", "proofs": [ "EnH1KrUKzTpoXehXrJ7ZiDDFoXv6dq9cdbhFWEB3nkZZZBVMXTaZA8sU3sSPpusrryG1DtmrBEgBjuc6K2yQzHh" ], "script": "base64:AAIDAAAAAAAAACEIARIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBAoCCAgAAAAKAQAAAAx0cnlHZXRTdHJpbmcAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAgAAAAAFAAAAA3ZhbAEAAAAJaXNNYW5hZ2VyAAAAAQAAAAdhZGRyZXNzCQAAAAAAAAIFAAAAB2FkZHJlc3MFAAAABHRoaXMBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAAGGlzTWVtYmVyc2hpcFdvcmtpbmdHcm91cAAAAAEAAAABYQkAAAAA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==", "height": 1533746, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F842c7KVBcC5ZbSDz6Ko4yzAk9JTKtZQHDXokCMw6qgG Next: 9GNz3y9KeuLoGBkxksr8kqkUbuw9ESoMgGH6fLKxcg7n Diff:
OldNewDifferences
128128 let v = ((u + ";") + g)
129129 let w = h("dao_wg_size")
130130 let x = (w + 1)
131- WriteSet([DataEntry((("dao_wg_" + g) + "_status"), "approved"), DataEntry("dao_wg_members", v), DataEntry("dao_wg_size", x)])
131+ WriteSet([DataEntry((("dao_wg_member_" + g) + "_status"), "approved"), DataEntry("dao_wg_members", v), DataEntry("dao_wg_size", x)])
132132 }
133133
134134
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = {
66 let d = getString(this, b)
77 if ($isInstanceOf(d, "String"))
88 then {
99 let e = d
1010 e
1111 }
1212 else ""
1313 }
1414 c
1515 }
1616
1717
1818 func f (g) = (g == this)
1919
2020
2121 func h (b) = {
2222 let c = {
2323 let d = getInteger(this, b)
2424 if ($isInstanceOf(d, "Int"))
2525 then {
2626 let e = d
2727 e
2828 }
2929 else 0
3030 }
3131 c
3232 }
3333
3434
3535 func i (j) = (a((("membership_" + toString(j)) + "_status")) == "approved")
3636
3737
3838 func k (j) = (a((("working_group_" + toString(j)) + "_status")) == "approved")
3939
4040
4141 func l (j) = (a((("dao_member_" + toString(j)) + "_status")) == "approved")
4242
4343
4444 func m (n,o) = (h(((n + "_voted_") + o)) > 0)
4545
4646
4747 func p () = {
4848 let c = {
4949 let d = getString(this, "dao_members")
5050 if ($isInstanceOf(d, "String"))
5151 then {
5252 let e = d
5353 e
5454 }
5555 else ""
5656 }
5757 c
5858 }
5959
6060
6161 func q () = {
6262 let c = {
6363 let d = getString(this, "membership_working_group_members")
6464 if ($isInstanceOf(d, "String"))
6565 then {
6666 let e = d
6767 e
6868 }
6969 else ""
7070 }
7171 c
7272 }
7373
7474
7575 func r (s) = if ((s == "like"))
7676 then 1
7777 else if ((s == "dislike"))
7878 then -1
7979 else throw(("You need to vote with 'like' or 'dislike' value. You specified:" + s))
8080
8181
8282 @Callable(t)
8383 func aProposeCandidateForDAOMember (g) = if ((h((("member_" + g) + "_voting_state")) != 0))
8484 then throw("This user already exists")
8585 else {
8686 let u = p()
8787 let v = ((u + ";") + g)
8888 let w = h("dao_members_size")
8989 let x = (w + 1)
9090 WriteSet([DataEntry((("dao_member_" + g) + "_status"), "propose"), DataEntry("dao_members", v), DataEntry("dao_members_size", x)])
9191 }
9292
9393
9494
9595 @Callable(t)
9696 func mRejectDAOMember (g) = if (!(f(t.caller)))
9797 then throw("access only to the DAO Manager")
9898 else WriteSet([DataEntry((("dao_member_" + g) + "_status"), "rejected")])
9999
100100
101101
102102 @Callable(t)
103103 func mAddDAOMember (g) = if (!(f(t.caller)))
104104 then throw("access only to the DAO Manager")
105105 else {
106106 let u = p()
107107 let v = ((u + ";") + g)
108108 let w = h("dao_members_size")
109109 let x = (w + 1)
110110 WriteSet([DataEntry((("dao_member_" + g) + "_status"), "approved"), DataEntry("dao_members", v), DataEntry("dao_members_size", x)])
111111 }
112112
113113
114114
115115 @Callable(t)
116116 func mAddWorkingGroup (g) = if (!(f(t.caller)))
117117 then throw("access only to the DAO Manager")
118118 else {
119119 let u = {
120120 let d = getString(this, "dao_wg_members")
121121 if ($isInstanceOf(d, "String"))
122122 then {
123123 let e = d
124124 e
125125 }
126126 else ""
127127 }
128128 let v = ((u + ";") + g)
129129 let w = h("dao_wg_size")
130130 let x = (w + 1)
131- WriteSet([DataEntry((("dao_wg_" + g) + "_status"), "approved"), DataEntry("dao_wg_members", v), DataEntry("dao_wg_size", x)])
131+ WriteSet([DataEntry((("dao_wg_member_" + g) + "_status"), "approved"), DataEntry("dao_wg_members", v), DataEntry("dao_wg_size", x)])
132132 }
133133
134134
135135
136136 @Callable(t)
137137 func mAddMembershipWorkingGroup (g) = if (!(f(t.caller)))
138138 then throw("access only to the DAO Manager")
139139 else {
140140 let u = q()
141141 let v = ((u + ";") + g)
142142 let w = h("membership_working_group_members_size")
143143 let x = (w + 1)
144144 WriteSet([DataEntry((("membership_" + g) + "_status"), "approved"), DataEntry("membership_working_group_members", v), DataEntry("membership_working_group_members_size", x)])
145145 }
146146
147147
148148
149149 @Callable(t)
150150 func wmgMembershipVoteForDAOMember (o,y) = {
151151 let n = toString(t.caller)
152152 let z = r(y)
153153 let A = (("dao_member_" + o) + "_vote")
154154 let B = (("dao_member_" + o) + "_voted")
155155 let C = {
156156 let d = getString(this, B)
157157 if ($isInstanceOf(d, "String"))
158158 then {
159159 let e = d
160160 e
161161 }
162162 else ""
163163 }
164164 let D = h(A)
165165 let E = (D + z)
166166 if (i(t.caller))
167167 then if (m(n, o))
168168 then throw("You have already voted")
169169 else WriteSet([DataEntry(((n + "_voted_") + o), 1), DataEntry(A, E), DataEntry(B, C)])
170170 else throw("You have no rights")
171171 }
172172
173173

github/deemru/w8io/026f985 
31.30 ms