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