tx · 6desaBjfAAr3hhSY5uTxGChFZPDkFmRLrTzBFAsqiG2Z 3Mx6qvkHs1kVQHxSYLhfnNap2FJFCLrLvjd: -0.01000000 Waves 2019.11.03 20:22 [748996] smart account 3Mx6qvkHs1kVQHxSYLhfnNap2FJFCLrLvjd > SELF 0.00000000 Waves
{ "type": 13, "id": "6desaBjfAAr3hhSY5uTxGChFZPDkFmRLrTzBFAsqiG2Z", "fee": 1000000, "feeAssetId": null, "timestamp": 1572801777919, "version": 1, "sender": "3Mx6qvkHs1kVQHxSYLhfnNap2FJFCLrLvjd", "senderPublicKey": "6yASXuP87soSL4Ctne39MFVdSzYpzvY3ncDajBMs1vtN", "proofs": [ "i4r2BRFcs1a9tmgQsp2NMzu4evYyEu4jcuEcV2ccGFHoTc3LNnAU9rghX9TE3STHkrkZ1Xzbx8GQWhf4EnQanMx" ], "script": "base64:AAIDAAAAAAAAAB0IARIPCg0ICAgICAgBCAgICAEEEggKBggBAQEBAQAAAAsAAAAAFWdvYWxzSHVudGVyQXBwQWRkcmVzcwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABAgAAACMzTjRQd3MxaFpHTXczcURkUmpoaW5oWHI2S1ZNa2NnZ2pnTAAAAAAXcmVzY3VlVGltZUNvbmRpdGlvbkxlc3MCAAAABGxlc3MAAAAAF3Jlc2N1ZVRpbWVDb25kaXRpb25Nb3JlAgAAAARtb3JlAAAAACByZXNjdWVUaW1lQ2F0ZWdvcnlWZXJ5UHJvZHVjdGl2ZQIAAAAOdmVyeVByb2R1Y3RpdmUAAAAAHHJlc2N1ZVRpbWVDYXRlZ29yeVByb2R1Y3RpdmUCAAAACnByb2R1Y3RpdmUAAAAAGXJlc2N1ZVRpbWVDYXRlZ29yeU5ldXRyYWwCAAAAB25ldXRyYWwAAAAAHXJlc2N1ZVRpbWVDYXRlZ29yeURpc3RyYWN0aW5nAgAAAAtkaXN0cmFjdGluZwAAAAAhcmVzY3VlVGltZUNhdGVnb3J5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EtleQUAAAALZGlzdHJhY3RpbmcJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAIHZlcnlEaXN0cmFjdGluZ0NhdGVnb3J5UmVjb3JkS2V5BQAAAA92ZXJ5RGlzdHJhY3RpbmcJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAIHZlcnlEaXN0cmFjdGluZ0NhdGVnb3J5UmVjb3JkS2V5BQAAAA92ZXJ5RGlzdHJhY3RpbmcJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAD3JlY29yZFN0YXR1c0tleQUAAAARcmVjb3JkU3RhdHVzVmFsdWUFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAGX3T9sA==", "chainId": 84, "height": 748996, "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("3N4Pws1hZGMw3qDdRjhinhXr6KVMkcggjgL") | |
5 | + | ||
6 | + | let b = "less" | |
7 | + | ||
8 | + | let c = "more" | |
9 | + | ||
10 | + | let d = "veryProductive" | |
11 | + | ||
12 | + | let e = "productive" | |
13 | + | ||
14 | + | let f = "neutral" | |
15 | + | ||
16 | + | let g = "distracting" | |
17 | + | ||
18 | + | let h = "veryDistracting" | |
19 | + | ||
20 | + | func i (j,k) = { | |
21 | + | let l = getInteger(j, k) | |
22 | + | if ($isInstanceOf(l, "Int")) | |
23 | + | then { | |
24 | + | let m = l | |
25 | + | m | |
26 | + | } | |
27 | + | else 0 | |
28 | + | } | |
29 | + | ||
30 | + | ||
31 | + | func n (j,k) = { | |
32 | + | let l = getString(j, k) | |
33 | + | if ($isInstanceOf(l, "String")) | |
34 | + | then { | |
35 | + | let m = l | |
36 | + | m | |
37 | + | } | |
38 | + | else "" | |
39 | + | } | |
40 | + | ||
41 | + | ||
42 | + | func o (p,q,r,s,t) = { | |
43 | + | let u = i(this, "conditionAmount") | |
44 | + | let v = n(this, "rescueTimeCondition") | |
45 | + | let w = n(this, "rescueTimeCategory") | |
46 | + | if ((v == b)) | |
47 | + | then if ((w == d)) | |
48 | + | then (u >= p) | |
49 | + | else if ((w == d)) | |
50 | + | then (u >= q) | |
51 | + | else if ((w == e)) | |
52 | + | then (u >= r) | |
53 | + | else if ((w == f)) | |
54 | + | then (u >= s) | |
55 | + | else (u >= t) | |
56 | + | else if ((w == d)) | |
57 | + | then (p >= u) | |
58 | + | else if ((w == d)) | |
59 | + | then (q >= u) | |
60 | + | else if ((w == e)) | |
61 | + | then (r >= u) | |
62 | + | else if ((w == f)) | |
63 | + | then (s >= u) | |
64 | + | else (t >= u) | |
65 | + | } | |
66 | + | ||
67 | + | ||
68 | + | @Callable(m) | |
69 | + | func setup (x,y,z,A,B,C,u,v,w,D,E,F,G) = WriteSet([DataEntry("userAddress", x), DataEntry("status", "active"), DataEntry("integrationServices", y), DataEntry("name", z), DataEntry("description", A), DataEntry("startDate", B), DataEntry("endDate", C), DataEntry("rescueTimeCondition", v), DataEntry("rescueTimeCategory", w), DataEntry("trackDays", D), DataEntry("attempsCount", E), DataEntry("failedAttemptsCount", 0), DataEntry("bet", F), DataEntry("isPrivate", G)]) | |
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | @Callable(m) | |
74 | + | func addRecord (H,p,q,r,s,t) = { | |
75 | + | let I = (("record_<" + H) + ">") | |
76 | + | let J = (("record_<" + H) + ">__category_<veryProductiveCategory>") | |
77 | + | let K = (("record_<" + H) + ">__category_<productiveCategory>") | |
78 | + | let L = (("record_<" + H) + ">__category_<neutralCategory>") | |
79 | + | let M = (("record_<" + H) + ">__category_<distractingCategory>") | |
80 | + | let N = (("record_<" + H) + ">__category_<veryDistractingCategory>") | |
81 | + | let O = o(p, q, r, s, t) | |
82 | + | WriteSet([DataEntry(J, p), DataEntry(K, q), DataEntry(L, r), DataEntry(M, s), DataEntry(N, t), DataEntry(N, t), DataEntry(I, O)]) | |
83 | + | } | |
84 | + | ||
85 | + | ||
86 | + | @Verifier(P) | |
87 | + | func Q () = true | |
88 | + |
github/deemru/w8io/169f3d6 25.80 ms ◑