tx · 6wR2GaD9sWATZNww29xUJBKtj81ZpYAMb4xrRFGpdBkW

3NCWSjcUAhGhiYzzraCCnNX4TddwyQwyWth:  -0.10000000 Waves

2021.05.19 18:25 [1532735] smart account 3NCWSjcUAhGhiYzzraCCnNX4TddwyQwyWth > SELF 0.00000000 Waves

{ "type": 13, "id": "6wR2GaD9sWATZNww29xUJBKtj81ZpYAMb4xrRFGpdBkW", "fee": 10000000, "feeAssetId": null, "timestamp": 1621437915734, "version": 2, "chainId": 84, "sender": "3NCWSjcUAhGhiYzzraCCnNX4TddwyQwyWth", "senderPublicKey": "BCg7jdRfQcaboBTzVmr2Eito8UizZHxQ5X7D7nX915vx", "proofs": [ "5Cti55oVSfWeVtJx2up7ttgBCvP5tRjAX3WW9GwACUDF7AQvwFketgePsseP3myT15NAsahZprFbg9gC9f2pi4Pp" ], "script": "base64:AAIDAAAAAAAAACEIARIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBAoCCAgAAAALAQAAAAx0cnlHZXRTdHJpbmcAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAgAAAAAFAAAAA3ZhbAEAAAAJaXNNYW5hZ2VyAAAAAQAAAAdhZGRyZXNzCQAAAAAAAAIFAAAAB2FkZHJlc3MFAAAABHRoaXMBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAAGGlzTWVtYmVyc2hpcFdvcmtpbmdHcm91cAAAAAEAAAABYQkAAAAAAAACCQEAAAAMdHJ5R2V0U3Ry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AHWlzTWVtYmVyc2hpcFZvdGVkRm9yQ2FuZGlkYXRlAAAAAgUAAAARbWVtYmVyc2hpcEFkZHJlc3MFAAAAEGNhbmRpZGF0ZUFkZHJlc3MJAAACAAAAAQIAAAAWWW91IGhhdmUgYWxyZWFkeSB2b3RlZAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIFAAAAEW1lbWJlcnNoaXBBZGRyZXNzAgAAAAdfdm90ZWRfBQAAABBjYW5kaWRhdGVBZGRyZXNzAAAAAAAAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAl2b3RpbmdLZXkFAAAADm5ld1ZvdGluZ1N0YXRlBQAAAANuaWwJAAACAAAAAQIAAAASWW91IGhhdmUgbm8gcmlnaHRzAAAAAIKdUSE=", "height": 1532735, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4PowKbGM3TwQxivTpbGo3qvQWVDdmuXxgoZepVti6JCB Next: none Diff:
OldNewDifferences
101101
102102
103103 @Callable(u)
104-func mRejectedDAOMember (g) = if (!(f(u.caller)))
104+func mRejectDAOMember (g) = if (!(f(u.caller)))
105105 then throw("access only to the DAO Manager")
106106 else WriteSet([DataEntry((("dao_member_" + g) + "_status"), "rejected")])
107107
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, "working_group_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, "dao_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 () = {
7676 let c = {
7777 let d = getString(this, "membership_working_group_members")
7878 if ($isInstanceOf(d, "String"))
7979 then {
8080 let e = d
8181 e
8282 }
8383 else ""
8484 }
8585 c
8686 }
8787
8888
8989 func s (t) = if ((t == "like"))
9090 then 1
9191 else if ((t == "dislike"))
9292 then -1
9393 else throw(("You need to vote with 'like' or 'dislike' value. You specified:" + t))
9494
9595
9696 @Callable(u)
9797 func aProposeCandidateForDAOMember (g) = if ((h((("member_" + g) + "_voting_state")) != 0))
9898 then throw("This user already exists")
9999 else WriteSet([DataEntry((("dao_member_" + g) + "_status"), "propose")])
100100
101101
102102
103103 @Callable(u)
104-func mRejectedDAOMember (g) = if (!(f(u.caller)))
104+func mRejectDAOMember (g) = if (!(f(u.caller)))
105105 then throw("access only to the DAO Manager")
106106 else WriteSet([DataEntry((("dao_member_" + g) + "_status"), "rejected")])
107107
108108
109109
110110 @Callable(u)
111111 func mAddDAOMember (g) = if (!(f(u.caller)))
112112 then throw("access only to the DAO Manager")
113113 else {
114114 let v = q()
115115 let w = ((v + ";") + g)
116116 let x = h("dao_members_size")
117117 let y = (x + 1)
118118 WriteSet([DataEntry((("dao_member_" + g) + "_status"), "approved"), DataEntry("dao_members", w), DataEntry("dao_members_size", y)])
119119 }
120120
121121
122122
123123 @Callable(u)
124124 func mAddWorkingGroup (g) = if (!(f(u.caller)))
125125 then throw("access only to the DAO Manager")
126126 else {
127127 let v = p()
128128 let w = ((v + ";") + g)
129129 let x = h("working_group_size")
130130 let y = (x + 1)
131131 WriteSet([DataEntry((("working_group_member_" + g) + "_status"), "approved"), DataEntry("working_group_members", w), DataEntry("working_group_size", y)])
132132 }
133133
134134
135135
136136 @Callable(u)
137137 func mAddMembershipWorkingGroup (g) = if (!(f(u.caller)))
138138 then throw("access only to the DAO Manager")
139139 else {
140140 let v = r()
141141 let w = ((v + ";") + g)
142142 let x = h("membership_working_group_members_size")
143143 let y = (x + 1)
144144 WriteSet([DataEntry((("membership_" + g) + "_status"), "approved"), DataEntry("membership_working_group_members", w), DataEntry("membership_working_group_members_size", y)])
145145 }
146146
147147
148148
149149 @Callable(u)
150150 func wmgMembershipVoteForDAOMember (o,z) = {
151151 let n = toString(u.caller)
152152 let A = s(z)
153153 let B = (("member_" + o) + "_voting_state")
154154 let C = h(B)
155155 let D = (C + A)
156156 if (i(u.caller))
157157 then if (m(n, o))
158158 then throw("You have already voted")
159159 else WriteSet([DataEntry(((n + "_voted_") + o), 1), DataEntry(B, D)])
160160 else throw("You have no rights")
161161 }
162162
163163

github/deemru/w8io/026f985 
33.43 ms