tx · HFskWEnArcjTzSSihpoCWMVWWSkwHhL977bGZu6qcBnm

3N2ewmJdcFYwdM3mPpRapXZ1aaSWTpTGuE5:  -1.00000000 Waves

2021.05.11 18:19 [1521189] smart account 3N2ewmJdcFYwdM3mPpRapXZ1aaSWTpTGuE5 > SELF 0.00000000 Waves

{ "type": 13, "id": "HFskWEnArcjTzSSihpoCWMVWWSkwHhL977bGZu6qcBnm", "fee": 100000000, "feeAssetId": null, "timestamp": 1620746410386, "version": 2, "chainId": 84, "sender": "3N2ewmJdcFYwdM3mPpRapXZ1aaSWTpTGuE5", "senderPublicKey": "2icPa3y8k81CaH7dsVJZZjVYGYkD35waVbs6YAzU1oaL", "proofs": [ "qxDTMMkbDjjUhTBGEQUGpNpzXCCX3HJmcGEczK8LdX2c7fTSai1PfgnhXBWWoYywZp6Xj3gLk8KKNWX41ZGeMec" ], "script": "base64:AAIDAAAAAAAAABcIARIDCgEIEgMKAQgSAwoBCBIECgIICAAAAAYBAAAAB2lzT3duZXIAAAABAAAAB2FkZHJlc3MJAAAAAAAAAgUAAAAHYWRkcmVzcwUAAAAEdGhpcwEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIAAAAAAAAAAAAFAAAAA3ZhbAEAAAAIZ2V0R3JvdXAAAAAABAAAAAN2YWwEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwIAAAAVd29ya2luZ19ncm91cF9tZW1iZXJzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWICAAAAAAUAAAADdmFsAQAAAA1pc0dyb3VwTWVtYmVyAAAAAQAAAAFhCQAAZgAAAAIJAQAAAA10cnlHZXRJbnRlZ2VyA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QkAAAIAAAABAgAAABhUaGlzIHVzZXIgYWxyZWFkeSBleGlzdHMEAAAABWdyb3VwCQEAAAAIZ2V0R3JvdXAAAAAABAAAAAhuZXdHcm91cAkAASwAAAACCQABLAAAAAIFAAAABWdyb3VwAgAAAAE7BQAAAA1tZW1iZXJBZGRyZXNzCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAABV3b3JraW5nX2dyb3VwX21lbWJlcnMFAAAACG5ld0dyb3VwCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAVd29ya2luZ19ncm91cF9tZW1iZXJfBQAAAA1tZW1iZXJBZGRyZXNzAgAAAAdfd2VpZ2h0AAAAAAAAAAABBQAAAANuaWwAAAABaQEAAAAQZGVjaXNpb25Pbk1lbWJlcgAAAAIAAAANbWVtYmVyQWRkcmVzcwAAAA1kZWNpc2lvblZhbHVlAwkBAAAAASEAAAABCQEAAAAHaXNPd25lcgAAAAEIBQAAAAFpAAAABmNhbGxlcgkAAAIAAAABAgAAABhhY2Nlc3Mgb25seSB0byB0aGUgb3duZXIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAALZGFvX21lbWJlcl8FAAAADW1lbWJlckFkZHJlc3MJAQAAABBnZXREZWNpc2lvblZhbHVlAAAAAQUAAAANZGVjaXNpb25WYWx1ZQUAAAADbmlsAAAAAExkbdQ=", "height": 1521189, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8mLTC3JyCWbF5FC8DfuXWxuF7vgtixhKyGzzd7LJry5k Next: none Diff:
OldNewDifferences
5252 let r = toString(n.caller)
5353 if (i(n.caller))
5454 then if ((c(((r + "_voted_working_group_members_for_") + o)) != 1))
55- then WriteSet([DataEntry(p, q), DataEntry(((r + "_voted_working_group_members_for_") + o), 1)])
55+ then WriteSet([DataEntry(p, q), DataEntry(((r + "_voted_for_") + o), 1)])
5656 else throw("You have already voted")
5757 else throw("You have no rights")
5858 }
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 () = {
2222 let e = {
2323 let f = getString(this, "working_group_members")
2424 if ($isInstanceOf(f, "String"))
2525 then {
2626 let g = f
2727 g
2828 }
2929 else ""
3030 }
3131 e
3232 }
3333
3434
3535 func i (j) = (c((("working_group_member_" + toString(j)) + "_weight")) > 0)
3636
3737
3838 func k (j) = (c((("working_group_member_" + toString(j)) + "_weight")) > 0)
3939
4040
4141 func l (m) = if ((m == "rejected"))
4242 then "rejected"
4343 else if ((m == "approved"))
4444 then "approved"
4545 else throw("you need to vote with 'approved' or 'rejected' value")
4646
4747
4848 @Callable(n)
4949 func votesOnMember (o) = {
5050 let p = (("dao_member_" + o) + "_voting_state")
5151 let q = (c(p) + 1)
5252 let r = toString(n.caller)
5353 if (i(n.caller))
5454 then if ((c(((r + "_voted_working_group_members_for_") + o)) != 1))
55- then WriteSet([DataEntry(p, q), DataEntry(((r + "_voted_working_group_members_for_") + o), 1)])
55+ then WriteSet([DataEntry(p, q), DataEntry(((r + "_voted_for_") + o), 1)])
5656 else throw("You have already voted")
5757 else throw("You have no rights")
5858 }
5959
6060
6161
6262 @Callable(n)
6363 func proposeMember (o) = {
6464 let r = toString(n.caller)
6565 if ((c(("dao_member_" + o)) == 1))
6666 then throw("This user already exists")
6767 else WriteSet([DataEntry(("dao_member_" + o), "proposed")])
6868 }
6969
7070
7171
7272 @Callable(n)
7373 func addGroupMember (o) = if (!(a(n.caller)))
7474 then throw("access only to the owner")
7575 else if ((c((("working_group_member_" + o) + "_weight")) == 1))
7676 then throw("This user already exists")
7777 else {
7878 let s = h()
7979 let t = ((s + ";") + o)
8080 WriteSet([DataEntry("working_group_members", t), DataEntry((("working_group_member_" + o) + "_weight"), 1)])
8181 }
8282
8383
8484
8585 @Callable(n)
8686 func decisionOnMember (o,u) = if (!(a(n.caller)))
8787 then throw("access only to the owner")
8888 else WriteSet([DataEntry(("dao_member_" + o), l(u))])
8989
9090

github/deemru/w8io/169f3d6 
29.51 ms