tx · FB9qAx2CpZSEjh6jYENuvBy53YSFg12oEJTzyHvt9FRz

3MrRCVmEEFibBZRVYd9YJmVQsgeq4nDkD8h:  -0.10000000 Waves

2021.05.19 10:10 [1532247] smart account 3MrRCVmEEFibBZRVYd9YJmVQsgeq4nDkD8h > SELF 0.00000000 Waves

{ "type": 13, "id": "FB9qAx2CpZSEjh6jYENuvBy53YSFg12oEJTzyHvt9FRz", "fee": 10000000, "feeAssetId": null, "timestamp": 1621408194709, "version": 2, "chainId": 84, "sender": "3MrRCVmEEFibBZRVYd9YJmVQsgeq4nDkD8h", "senderPublicKey": "4QZnLRjP4zw4XkhTfMy5Ynru7Hva1cpghdZ6t3qMBznL", "proofs": [ "5it3BHjVgCmYFtaeBgB8wybc8EasWyuJC1XvZSgrzVqJbbnzGgHhmE11CWGf9quTRRPMHQwdzpdzLjXgCU8K5kjU" ], "script": "base64:AAIDAAAAAAAAACEIARIDCgEIEgMKAQgSAwoBCBIDCgEIEgMKAQgSBAoCCAgAAAALAQAAAAx0cnlHZXRTdHJpbmcAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAgAAAAAFAAAAA3ZhbAEAAAAJaXNNYW5hZ2VyAAAAAQAAAAdhZGRyZXNzCQAAAAAAAAIFAAAAB2FkZHJlc3MFAAAABHRoaXMBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAAGGlzTWVtYmVyc2hpcFdvcmtpbmdHcm91cAAAAAEAAAABYQkAAAAAAAACCQEAAAAM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aXNNZW1iZXJzaGlwVm90ZWRGb3JDYW5kaWRhdGUAAAACBQAAABFtZW1iZXJzaGlwQWRkcmVzcwUAAAAQY2FuZGlkYXRlQWRkcmVzcwkAAAIAAAABAgAAABZZb3UgaGF2ZSBhbHJlYWR5IHZvdGVkCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgUAAAARbWVtYmVyc2hpcEFkZHJlc3MCAAAAB192b3RlZF8FAAAAEGNhbmRpZGF0ZUFkZHJlc3MAAAAAAAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAACXZvdGluZ0tleQUAAAAObmV3Vm90aW5nU3RhdGUFAAAAA25pbAkAAAIAAAABAgAAABJZb3UgaGF2ZSBubyByaWdodHMAAAAAzpICqw==", "height": 1532247, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8WizES1tBA543A9JKi4hFdgRUfG4FsA7syY4V8MkybYx Next: none Diff:
OldNewDifferences
134134
135135
136136 @Callable(u)
137-func mAddMembershioWorkingGroup (g) = if (!(f(u.caller)))
137+func mAddMembershipWorkingGroup (g) = if (!(f(u.caller)))
138138 then throw("access only to the DAO Manager")
139139 else {
140140 let v = r()
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)
104104 func mRejectedDAOMember (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)
137-func mAddMembershioWorkingGroup (g) = if (!(f(u.caller)))
137+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/169f3d6 
31.08 ms