tx · shQnctf2SZM4v4DR3auKUetjKZcQpvoY6DRj61KUhic 3NASTFHC1YtW7GLjJc29iqiECnSnqeTA3Ry: -0.10000000 Waves 2021.03.30 18:39 [1460694] smart account 3NASTFHC1YtW7GLjJc29iqiECnSnqeTA3Ry > SELF 0.00000000 Waves
{ "type": 13, "id": "shQnctf2SZM4v4DR3auKUetjKZcQpvoY6DRj61KUhic", "fee": 10000000, "feeAssetId": null, "timestamp": 1617118767850, "version": 2, "chainId": 84, "sender": "3NASTFHC1YtW7GLjJc29iqiECnSnqeTA3Ry", "senderPublicKey": "3nb9JsU2MgGoFtV4Rfm9aMbNRLr8hM9YJ6heMENC8hon", "proofs": [ "43nV7DPFQPpqjzPAsXwQHRYVrVJiHvQuRmghMpUZNUYHTpKyLRcqkCZNLGBFqCKcfXYVg2VXZqG63EwcZRvWMbhe" ], "script": "base64:AAIDAAAAAAAAAAwIARIDCgEIEgMKAQgAAAAHAQAAAA10cnlHZXRJbnRlZ2VyAAAAAQAAAANrZXkEAAAAA3ZhbAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgAAAAAAAAAAAAUAAAADdmFsAQAAAAx0cnlHZXRTdHJpbmcAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAgAAAAAFAAAAA3ZhbAEAAAAHaXNPd25lcgAAAAEAAAAHYWRkcmVzcwkAAAAAAAACBQAAAAdhZGRyZXNzBQAAAAR0aGlzAQAAAAhnZXRHcm91cAAAAAAEAAAAA3ZhbAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzAgAAABV3b3JraW5nX2dyb3VwX21lbWJlcnMD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QAAZAAAAAIFAAAACWdyb3VwU2l6ZQAAAAAAAAAAAQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAVd29ya2luZ19ncm91cF9tZW1iZXJzBQAAAAhuZXdHcm91cAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAASd29ya2luZ19ncm91cF9zaXplBQAAAAxuZXdHcm91cFNpemUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACAgAAABV3b3JraW5nX2dyb3VwX21lbWJlcl8FAAAADW1lbWJlckFkZHJlc3MCAAAAB193ZWlnaHQAAAAAAAAAAAEFAAAAA25pbAAAAAC0Ay8t", "height": 1460694, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: G1cQvyASiH1oJeHT6wACYjaG6epz6QvSStuxWnxq5SXQ Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b) = { | |
5 | + | let c = { | |
6 | + | let d = getInteger(this, b) | |
7 | + | if ($isInstanceOf(d, "Int")) | |
8 | + | then { | |
9 | + | let e = d | |
10 | + | e | |
11 | + | } | |
12 | + | else 0 | |
13 | + | } | |
14 | + | c | |
15 | + | } | |
16 | + | ||
17 | + | ||
18 | + | func f (b) = { | |
19 | + | let c = { | |
20 | + | let d = getString(this, b) | |
21 | + | if ($isInstanceOf(d, "String")) | |
22 | + | then { | |
23 | + | let e = d | |
24 | + | e | |
25 | + | } | |
26 | + | else "" | |
27 | + | } | |
28 | + | c | |
29 | + | } | |
30 | + | ||
31 | + | ||
32 | + | func g (h) = (h == this) | |
33 | + | ||
34 | + | ||
35 | + | func i () = { | |
36 | + | let c = { | |
37 | + | let d = getString(this, "working_group_members") | |
38 | + | if ($isInstanceOf(d, "String")) | |
39 | + | then { | |
40 | + | let e = d | |
41 | + | e | |
42 | + | } | |
43 | + | else "" | |
44 | + | } | |
45 | + | c | |
46 | + | } | |
47 | + | ||
48 | + | ||
49 | + | func j () = { | |
50 | + | let c = { | |
51 | + | let d = getString(this, "dao_members") | |
52 | + | if ($isInstanceOf(d, "String")) | |
53 | + | then { | |
54 | + | let e = d | |
55 | + | e | |
56 | + | } | |
57 | + | else "" | |
58 | + | } | |
59 | + | c | |
60 | + | } | |
61 | + | ||
62 | + | ||
63 | + | func k (l) = (a((("working_group_member_" + toString(l)) + "_weight")) > 0) | |
64 | + | ||
65 | + | ||
66 | + | func m (n) = (a((("dao_member_" + toString(n.caller)) + "_weight")) > 0) | |
67 | + | ||
68 | + | ||
69 | + | @Callable(n) | |
70 | + | func addDAOMember (o) = if (!(g(n.caller))) | |
71 | + | then throw("access only to the DAO owner") | |
72 | + | else if ((a((("dao_member_" + o) + "_weight")) == 1)) | |
73 | + | then throw("This user already exists") | |
74 | + | else { | |
75 | + | let p = j() | |
76 | + | let q = ((p + ";") + o) | |
77 | + | let r = a("dao_size") | |
78 | + | let s = (r + 1) | |
79 | + | WriteSet([DataEntry("dao_members", q), DataEntry("dao_size", s), DataEntry((("dao_member_" + o) + "_weight"), 1)]) | |
80 | + | } | |
81 | + | ||
82 | + | ||
83 | + | ||
84 | + | @Callable(n) | |
85 | + | func addGroupMember (o) = if (!(g(n.caller))) | |
86 | + | then throw("access only to the DAO owner") | |
87 | + | else if ((a((("working_group_member_" + o) + "_weight")) == 1)) | |
88 | + | then throw("This user already exists") | |
89 | + | else { | |
90 | + | let p = i() | |
91 | + | let q = ((p + ";") + o) | |
92 | + | let r = a("working_group_size") | |
93 | + | let s = (r + 1) | |
94 | + | WriteSet([DataEntry("working_group_members", q), DataEntry("working_group_size", s), DataEntry((("working_group_member_" + o) + "_weight"), 1)]) | |
95 | + | } | |
96 | + | ||
97 | + |
github/deemru/w8io/026f985 20.28 ms ◑