tx · BsyYZRWSKg37TH5xhoNNZxvmdb2hx2L7VenVrq1Rs3LQ 3NC51WzQr2ainENgopPCVVchrVPdYe2M4TF: -0.01000000 Waves 2021.03.13 17:33 [1436038] smart account 3NC51WzQr2ainENgopPCVVchrVPdYe2M4TF > SELF 0.00000000 Waves
{ "type": 13, "id": "BsyYZRWSKg37TH5xhoNNZxvmdb2hx2L7VenVrq1Rs3LQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1615646053759, "version": 2, "chainId": 84, "sender": "3NC51WzQr2ainENgopPCVVchrVPdYe2M4TF", "senderPublicKey": "D2WzjTeyj4MkB8u5wHxUYGZSRizJCy7g8nemQiutznG1", "proofs": [ "i8Gp7nxAFxQ5x4bZ9MxB1oRHYLuS6Qg3CXuAskUdWtXdV2HVDL2b4UKB6UWzzn1ESeZgQXR2Woc5zaL8VRv1iqD" ], "script": "base64:AAIEAAAAAAAAABMIAhIDCgEIEgQKAggIEgQKAggIAAAAAwAAAAALRU1UUFlTVFJJTkcCAAAAAAEAAAAQZ2V0U3RyaW5nRnJvbUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAANzdHIFAAAAByRtYXRjaDAFAAAAA3N0cgUAAAALRU1UUFlTVFJJTkcBAAAADWlzVmFsaWRTZW5kZXIAAAABAAAABnNlbmRlcgQAAAAVZW50cnlGb3JTZW5kZXJBZGRyZXNzCQEAAAAQZ2V0U3RyaW5nRnJvbUtleQAAAAEFAAAABnNlbmRlcgMJAAAAAAAAAgUAAAAVZW50cnlGb3JTZW5kZXJBZGRyZXNzBQAAAAtFTVRQWVNUUklORwcGAAAAAwAAAAFpAQAAAAdhZGRVc2VyAAAAAQAAAARuYW1lBAAAAAZzZW5kZXIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwMJAQAAAA1pc1ZhbGlkU2Vu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AAACCQACWAAAAAEIBQAAAAFpAAAADXRyYW5zYWN0aW9uSWQCAAAADV9yZXF1aXJlbWVudF8FAAAAEnJlcXVpcmVtZW50QWRkcmVzcwIAAAATX2FjY2VwdGFuY2Vjcml0ZXJpYQUAAAASYWNjZXB0YW5jZUNyaXRlcmlhBQAAAANuaWwJAAACAAAAAQIAAAAgU2VuZGVyIG5vdCBhbGxvd2VkIHRvIGFkZCB1c2VycyEAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAfv0iHs", "height": 1436038, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "" | |
5 | + | ||
6 | + | func b (c) = { | |
7 | + | let d = getString(this, c) | |
8 | + | if ($isInstanceOf(d, "String")) | |
9 | + | then { | |
10 | + | let e = d | |
11 | + | e | |
12 | + | } | |
13 | + | else a | |
14 | + | } | |
15 | + | ||
16 | + | ||
17 | + | func f (g) = { | |
18 | + | let h = b(g) | |
19 | + | if ((h == a)) | |
20 | + | then false | |
21 | + | else true | |
22 | + | } | |
23 | + | ||
24 | + | ||
25 | + | @Callable(i) | |
26 | + | func addUser (j) = { | |
27 | + | let g = toBase58String(i.caller.bytes) | |
28 | + | if (f(g)) | |
29 | + | then [StringEntry((toBase58String(i.transactionId) + "_user"), j)] | |
30 | + | else throw("Sender not allowed to add users!") | |
31 | + | } | |
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | @Callable(i) | |
36 | + | func addRequirement (k,l) = { | |
37 | + | let g = toBase58String(i.caller.bytes) | |
38 | + | if (f(g)) | |
39 | + | then [StringEntry((toBase58String(i.transactionId) + "_requirement_name"), k), StringEntry((toBase58String(i.transactionId) + "_requirement_description"), l)] | |
40 | + | else throw("Sender not allowed to add users!") | |
41 | + | } | |
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | @Callable(i) | |
46 | + | func addAcceptanceCriteria (m,n) = { | |
47 | + | let g = toBase58String(i.caller.bytes) | |
48 | + | if (f(g)) | |
49 | + | then [StringEntry((((toBase58String(i.transactionId) + "_requirement_") + m) + "_acceptancecriteria"), n)] | |
50 | + | else throw("Sender not allowed to add users!") | |
51 | + | } | |
52 | + | ||
53 | + | ||
54 | + | @Verifier(o) | |
55 | + | func p () = { | |
56 | + | let d = o | |
57 | + | false | |
58 | + | } | |
59 | + |
github/deemru/w8io/03bedc9 19.47 ms ◑![]()