tx · 38b3VGpcZ1oZmCLsoUQJm6Utu4FGXi9uPTjtaaATwH6g 3N3YQhTjmPkrnrwUFGdPUwkE21B3QDs32hv: -0.01000000 Waves 2019.11.03 20:30 [749004] smart account 3N3YQhTjmPkrnrwUFGdPUwkE21B3QDs32hv > SELF 0.00000000 Waves
{ "type": 13, "id": "38b3VGpcZ1oZmCLsoUQJm6Utu4FGXi9uPTjtaaATwH6g", "fee": 1000000, "feeAssetId": null, "timestamp": 1572802221369, "version": 1, "sender": "3N3YQhTjmPkrnrwUFGdPUwkE21B3QDs32hv", "senderPublicKey": "4DnSrQryjsXVjb2Pxs61ttXcmLG221iqScdHw6wzMs8V", "proofs": [ "Mid3US75oWLbszRAjq45GxDm2msjW3Eso9UjCNQjg4jGczJu9Q1JuVuNbTMQDZgwBSLUGmH313afjZyt8wfETLh" ], "script": "base64:AAIDAAAAAAAAAB0IARIPCg0ICAgICAgBCAgICAEEEggKBggBAQEBAQAAAAsAAAAAFWdvYWxzSHVudGVyQXBwQWRkcmVzcwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABAgAAACMzTjRQd3MxaFpHTXczcURkUmpoaW5oWHI2S1ZNa2NnZ2pnTAAAAAAXcmVzY3VlVGltZUNvbmRpdGlvbkxlc3MCAAAABGxlc3MAAAAAF3Jlc2N1ZVRpbWVDb25kaXRpb25Nb3JlAgAAAARtb3JlAAAAACByZXNjdWVUaW1lQ2F0ZWdvcnlWZXJ5UHJvZHVjdGl2ZQIAAAAOdmVyeVByb2R1Y3RpdmUAAAAAHHJlc2N1ZVRpbWVDYXRlZ29yeVByb2R1Y3RpdmUCAAAACnByb2R1Y3RpdmUAAAAAGXJlc2N1ZVRpbWVDYXRlZ29yeU5ldXRyYWwCAAAAB25ldXRyYWwAAAAAHXJlc2N1ZVRpbWVDYXRlZ29yeURpc3RyYWN0aW5nAgAAAAtkaXN0cmFjdGluZwAAAAAhcmVzY3VlVGltZUNhdGVnb3J5VmVyeURpc3R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QAAAA52ZXJ5UHJvZHVjdGl2ZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAbcHJvZHVjdGl2ZUNhdGVnb3J5UmVjb3JkS2V5BQAAAApwcm9kdWN0aXZlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABhuZXV0cmFsQ2F0ZWdvcnlSZWNvcmRLZXkFAAAAB25ldXRyYWwJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAHGRpc3RyYWN0aW5nQ2F0ZWdvcnlSZWNvcmRLZXkFAAAAC2Rpc3RyYWN0aW5nCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAACB2ZXJ5RGlzdHJhY3RpbmdDYXRlZ29yeVJlY29yZEtleQUAAAAPdmVyeURpc3RyYWN0aW5nCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAACB2ZXJ5RGlzdHJhY3RpbmdDYXRlZ29yeVJlY29yZEtleQUAAAAPdmVyeURpc3RyYWN0aW5nCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAA9yZWNvcmRTdGF0dXNLZXkFAAAAEXJlY29yZFN0YXR1c1ZhbHVlBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABiPAnRg=", "chainId": 84, "height": 749004, "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("conditionAmount", u), 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_<") + d) + ">") | |
77 | + | let K = (((("record_<" + H) + ">__category_<") + e) + ">") | |
78 | + | let L = (((("record_<" + H) + ">__category_<") + f) + ">") | |
79 | + | let M = (((("record_<" + H) + ">__category_<") + g) + ">") | |
80 | + | let N = (((("record_<" + H) + ">__category_<") + h) + ">") | |
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 20.08 ms ◑