tx · HDgeSD8uyxLjQ7QMZcHrrThqZsyZwz9AvzzijKs1ZJNw 3NCKxCFvhVBofwUEsDBkqk55mbhYUfL5T5r: -0.01900000 Waves 2021.04.17 20:17 [1486741] smart account 3NCKxCFvhVBofwUEsDBkqk55mbhYUfL5T5r > SELF 0.00000000 Waves
{ "type": 13, "id": "HDgeSD8uyxLjQ7QMZcHrrThqZsyZwz9AvzzijKs1ZJNw", "fee": 1900000, "feeAssetId": null, "timestamp": 1618679886292, "version": 2, "chainId": 84, "sender": "3NCKxCFvhVBofwUEsDBkqk55mbhYUfL5T5r", "senderPublicKey": "esN64qS6iTUbZmuSxxS8bsKaDDJthNYr3zViLVdG8Sc", "proofs": [ "2nzwU9D3N8w923MBS259YjmZv1FZ2i69aViQoscDzZVzY29yBEtdj9PBp1XziLmNrxWt4Siw3GBR2aewZgd4ZYnJ" ], "script": "base64:AAIDAAAAAAAAAAwIARIDCgEIEgMKAQgAAAAIAAAAAAxtYWluQ29udHJhY3QJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM04yYUcybmE2RFp0dDVKb29xNGM5Z2Vuc1lXY2g0TUNTWVMBAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAADdmFsBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAABQAAAAN2YWwBAAAADHRyeUdldFN0cmluZwAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWICAAAAAAUAAAADdmFsAQAAAAdpc093bmVyAAAAAQAAAAdhZGRyZXNzCQAAAAAAAAIFAAAAB2FkZH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AABWdyb3VwAgAAAAE7BQAAAA1tZW1iZXJBZGRyZXNzBAAAAAlncm91cFNpemUJAQAAAA10cnlHZXRJbnRlZ2VyAAAAAQIAAAASd29ya2luZ19ncm91cF9zaXplBAAAAAxuZXdHcm91cFNpemUJAABkAAAAAgUAAAAJZ3JvdXBTaXplAAAAAAAAAAABCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAABV3b3JraW5nX2dyb3VwX21lbWJlcnMFAAAACG5ld0dyb3VwCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAABJ3b3JraW5nX2dyb3VwX3NpemUFAAAADG5ld0dyb3VwU2l6ZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABLAAAAAICAAAAFXdvcmtpbmdfZ3JvdXBfbWVtYmVyXwUAAAANbWVtYmVyQWRkcmVzcwIAAAAHX3dlaWdodAAAAAAAAAAAAQUAAAADbmlsAAAAAKalTFw=", "height": 1486741, "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 = addressFromStringValue("3N2aG2na6DZtt5Jooq4c9gensYWch4MCSYS") | |
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/169f3d6 16.12 ms ◑