tx · CL6SrZ8bFKavvhcPFGGLhKFNhG3PQKYEVoFNF18mfFkn 3N7ni1dw1XCaccmTLKspmvtHz2XuNXKYXgU: -0.01000000 Waves 2023.05.15 13:09 [2578931] smart account 3N7ni1dw1XCaccmTLKspmvtHz2XuNXKYXgU > SELF 0.00000000 Waves
{ "type": 13, "id": "CL6SrZ8bFKavvhcPFGGLhKFNhG3PQKYEVoFNF18mfFkn", "fee": 1000000, "feeAssetId": null, "timestamp": 1684145376604, "version": 2, "chainId": 84, "sender": "3N7ni1dw1XCaccmTLKspmvtHz2XuNXKYXgU", "senderPublicKey": "Bgp5YcuFik6hKtwqK2HqJfFzQZq2tiQWt5jevp5Lr7Sw", "proofs": [ "3n8V9hQCeZ3heAaafQgVKLMXh6RuGuGiWDVHWnbadS4DC4GdXZqv3kQRj2bggGMD8BmGyPsUecd4kd88pjqhGVHS" ], "script": "base64:AAIDAAAAAAAAACwIARIECgIICBIECgIICBIDCgEIEgQKAggIEgQKAggIEgQKAggBEgUKAwgIAQAAAAMAAAAAC0VNVFBZU1RSSU5HAgAAAAABAAAAEGdldFN0cmluZ0Zyb21LZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAADc3RyBQAAAAckbWF0Y2gwBQAAAANzdHIFAAAAC0VNVFBZU1RSSU5HAQAAAA1pc1ZhbGlkU2VuZGVyAAAAAQAAAAZzZW5kZXIEAAAAFWVudHJ5Rm9yU2VuZGVyQWRkcmVzcwkBAAAAEGdldFN0cmluZ0Zyb21LZXkAAAABBQAAAAZzZW5kZXIDCQAAAAAAAAIFAAAAFWVudHJ5Rm9yU2VuZGVyQWRkcmVzcwUAAAALRU1UUFlTVFJJTkcHBgAAAAcAAAABaQEAAAAJYWRkT3B0aW9uAAAAAgAAAApuYW1lT3B0aW9uAAAAEWRlc2NyaXB0aW9uT3B0aW9uBAAAAAZzZW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RPcHRpb24AAAAGaWRDcml0AAAACmNvbXBsaWFuY2UEAAAABnNlbmRlcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAADWlzVmFsaWRTZW5kZXIAAAABBQAAAAZzZW5kZXIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAhpZE9wdGlvbgIAAAABXwUAAAAGaWRDcml0AgAAAAFfCQABLwAAAAIJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAAAAAAAAAAACAIAAAACX2MFAAAACmNvbXBsaWFuY2UFAAAAA25pbAkAAAIAAAABAgAAADRTZW5kZXIgbm90IGFsbG93ZWQgdG8gZXZhbHVhdGUgb3IgZXZhbHVhdGVkIGFscmVhZHkhAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgHTrnMBA==", "height": 2578931, "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 = "" | |
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 addOption (j,k) = { | |
27 | + | let g = toBase58String(i.caller.bytes) | |
28 | + | if (f(g)) | |
29 | + | then WriteSet([DataEntry((toBase58String(i.transactionId) + "_name_option"), j), DataEntry((toBase58String(i.transactionId) + "_description_option"), k)]) | |
30 | + | else throw("Sender not allowed to store options!") | |
31 | + | } | |
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | @Callable(i) | |
36 | + | func addCriterion (l,m) = { | |
37 | + | let g = toBase58String(i.caller.bytes) | |
38 | + | if (f(g)) | |
39 | + | then WriteSet([DataEntry((toBase58String(i.transactionId) + "_name_criterion"), l), DataEntry((toBase58String(i.transactionId) + "_description_criterion"), m)]) | |
40 | + | else throw("Sender not allowed to store criteria!") | |
41 | + | } | |
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | @Callable(i) | |
46 | + | func addUser (n) = { | |
47 | + | let g = toBase58String(i.caller.bytes) | |
48 | + | if (f(g)) | |
49 | + | then WriteSet([DataEntry(n, "user")]) | |
50 | + | else throw("Sender not allowed to add users!") | |
51 | + | } | |
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | @Callable(i) | |
56 | + | func addConsolidatedOption (j,k) = { | |
57 | + | let g = toBase58String(i.caller.bytes) | |
58 | + | if (f(g)) | |
59 | + | then WriteSet([DataEntry((toBase58String(i.transactionId) + "_consolidated_option_name"), j), DataEntry((toBase58String(i.transactionId) + "_consolidated_option_description"), k)]) | |
60 | + | else throw("Sender not allowed to consolidate options!") | |
61 | + | } | |
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | @Callable(i) | |
66 | + | func addConsolidatedCriterion (l,m) = { | |
67 | + | let g = toBase58String(i.caller.bytes) | |
68 | + | if (f(g)) | |
69 | + | then WriteSet([DataEntry((toBase58String(i.transactionId) + "_consolidated_criterion_name"), l), DataEntry((toBase58String(i.transactionId) + "_consolidated_criterion_description"), m)]) | |
70 | + | else throw("Sender not allowed to consolidate criteria!") | |
71 | + | } | |
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | @Callable(i) | |
76 | + | func evaluateCriterion (o,p) = { | |
77 | + | let g = toBase58String(i.caller.bytes) | |
78 | + | if (f(g)) | |
79 | + | then WriteSet([DataEntry((((o + "_") + toBase58String(i.transactionId)) + "_imp"), p)]) | |
80 | + | else throw("Sender not allowed to evaluate or evaluated already!") | |
81 | + | } | |
82 | + | ||
83 | + | ||
84 | + | ||
85 | + | @Callable(i) | |
86 | + | func evaluateOption (q,r,s) = { | |
87 | + | let g = toBase58String(i.caller.bytes) | |
88 | + | if (f(g)) | |
89 | + | then WriteSet([DataEntry((((((q + "_") + r) + "_") + take(toBase58String(i.transactionId), 8)) + "_c"), s)]) | |
90 | + | else throw("Sender not allowed to evaluate or evaluated already!") | |
91 | + | } | |
92 | + | ||
93 | + | ||
94 | + | @Verifier(t) | |
95 | + | func u () = { | |
96 | + | let d = t | |
97 | + | false | |
98 | + | } | |
99 | + |
github/deemru/w8io/026f985 14.93 ms ◑