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