tx · GYnc8bBcQJ2TepCFrmDoXQLPYDNjKzPFbxtEVVoQSHNA

3Moz6HJhucpFh4V3VScXhd9efei4Curytfj:  -0.01000000 Waves

2023.11.26 17:59 [2860518] smart account 3Moz6HJhucpFh4V3VScXhd9efei4Curytfj > SELF 0.00000000 Waves

{ "type": 13, "id": "GYnc8bBcQJ2TepCFrmDoXQLPYDNjKzPFbxtEVVoQSHNA", "fee": 1000000, "feeAssetId": null, "timestamp": 1701010814898, "version": 2, "chainId": 84, "sender": "3Moz6HJhucpFh4V3VScXhd9efei4Curytfj", "senderPublicKey": "Ec1VLg3r1E7mwHmaNidmoKrFAUJ55UVJFq3J1YKRy5Zm", "proofs": [ "61Ru29wEtDUaff3wTj9D8oejhSdrqr5pmuhjemXBma6ZweyAvSqco88scZm5fYN38QdcbhEhoSAN5TUHAnzNamcP" ], "script": "base64:BgIfCAISBwoFEREICAESAwoBCBIGCgQICAgIEgUKAwgBCAQAC0JBSV9BRERSRVNTAiMzTjl0S2l4enFUWVduRVhReHJEUTVwQlRHdlFkNnNGc3ZtVgARQUlfVE9LRU5fQVNTRVRfSUQBIJPhcjhxBJtq6JpjHwQkt2RTlyw+vGYLg3SvaLskjeJCAQtyZW1vdmVNYXJrcwELbWFya3NTdHJpbmcEAWEJALACAgULbWFya3NTdHJpbmcAAQQBYgkAswICBQFhAAEFAWIBCXBhcnNlSnNvbgEEanNvbgQMbW9kaWZpZWRKc29uCQCwAgIFBGpzb24AAQQNbW9kaWZpZWRKc29uMgkAswICBQxtb2RpZmllZEpzb24AAQQGc3BsaXQxCQC1CQIFDW1vZGlmaWVkSnNvbjICASwECWtleVZhbHVlMQkAtQkCCQCRAwIFBnNwbGl0MQAAAgE6BARrZXkxCQELcmVtb3ZlTWFya3MBCQCRAwIFCWtleVZhbHVlMQAABAZ2YWx1ZTEJAQtyZW1vdmVNYXJrcwEJAJEDAgUJa2V5VmFsdWUxAAEECWtleVZhbHVlMgkAtQkCCQCRAwIFBnNwbGl0MQABAgE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XNzBAR0eElkCQDYBAEIBQFpDXRyYW5zYWN0aW9uSWQJAMwIAgkBC1N0cmluZ0VudHJ5AgUNcHJlZGljdGlvbl9pZAUEdHhJZAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFBHR4SWQCB19ndWlsdHkFFWd1aWx0eV9wZXJzb25fYWRkcmVzcwUDbmlsAWkBDXJlcXVlc3RQYXlvdXQDCXByZWRfdHhJZAZhbW91bnQCaWQEBmNsaWVudAkApQgBCAUBaQZjYWxsZXIEBHR4SWQJANgEAQgFAWkNdHJhbnNhY3Rpb25JZAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFAmlkAg9fcmVxdWVzdF9wYXlvdXQFBHR4SWQJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUEdHhJZAIHX2Ftb3VudAUGYW1vdW50CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUEdHhJZAIOX3ByZWRpY3Rpb25faWQFCXByZWRfdHhJZAUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleVnde6c=", "height": 2860518, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 45jTmmUp3KVjgPHf2tY4HgRmLq5ioFzCewnfdo7UKGYc Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = "{'test1':'value1','test2':'value2'}"
4+let a = "3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV"
55
6-func b (c) = {
7- let d = drop(c, 1)
8- let e = dropRight(d, 1)
9- e
6+let b = base58'AxGKQRxKo4F2EbhrRq6N2tdLsxtMnpzQsS4QemV6V1W1'
7+
8+func c (d) = {
9+ let e = drop(d, 1)
10+ let f = dropRight(e, 1)
11+ f
1012 }
1113
1214
13-func f (g) = {
14- let h = drop(g, 1)
15- let i = dropRight(h, 1)
16- let j = split(i, ",")
17- let k = split(j[0], ":")
18- let l = b(k[0])
19- let m = b(k[1])
20- let n = split(j[1], ":")
21- let o = b(n[0])
22- let p = b(n[1])
23- $Tuple2([l, m], [o, p])
15+func g (h) = {
16+ let i = drop(h, 1)
17+ let j = dropRight(i, 1)
18+ let k = split(j, ",")
19+ let l = split(k[0], ":")
20+ let m = c(l[0])
21+ let n = c(l[1])
22+ let o = split(k[1], ":")
23+ let p = c(o[0])
24+ let q = c(o[1])
25+ let r = split(k[2], ":")
26+ let s = c(o[0])
27+ let t = c(o[1])
28+ $Tuple3([m, n], [p, q], [s, t])
2429 }
2530
2631
27-@Callable(q)
28-func call () = {
29- let r = fromBase58String("3N73dcv2jkTobdQ9TRLSX4PtvqHbjsiKxiP")
30- let s = f(a)
31- let t = invoke(Address(r), "call", nil, nil)
32- if ((t != t))
33- then throw("Something went wron")
34- else [StringEntry("Test3", "Test4"), StringEntry("Test4", "Test5"), StringEntry(s._1[0], s._1[1]), StringEntry(s._2[0], s._2[1])]
32+@Callable(u)
33+func registerData (v,w,x,y,z) = {
34+ let A = {
35+ let B = getString(x)
36+ if ($isInstanceOf(B, "String"))
37+ then {
38+ let C = B
39+ C
40+ }
41+ else "no Data exists"
42+ }
43+ if ((A != "no Data exists"))
44+ then throw("There is already existing Data for this case!")
45+ else {
46+ let D = toString(u.caller)
47+ let E = toBase58String(u.transactionId)
48+[StringEntry(x, E), IntegerEntry((((E + "_") + D) + "_age"), v[0]), IntegerEntry((((E + "_") + D) + "_sex"), v[1]), IntegerEntry((((E + "_") + D) + "_damage"), v[2]), IntegerEntry((((E + "_") + D) + "_fac1"), v[3]), IntegerEntry((((E + "_") + D) + "_fac2"), v[4]), IntegerEntry((((E + "_") + D) + "_fac3"), v[5]), IntegerEntry((((E + "_") + D) + "_fac4"), v[6]), IntegerEntry((((E + "_") + D) + "_vio1"), v[7]), IntegerEntry((((E + "_") + D) + "_vio2"), v[8]), IntegerEntry((((E + "_") + D) + "_vio3"), v[9]), IntegerEntry((((E + "_") + D) + "_vio4"), v[10]), IntegerEntry((((E + "_") + D) + "_cost"), v[11]), IntegerEntry((((E + "_") + y) + "_age"), w[0]), IntegerEntry((((E + "_") + y) + "_sex"), w[1]), IntegerEntry((((E + "_") + y) + "_damage"), w[2]), IntegerEntry((((E + "_") + y) + "_fac1"), w[3]), IntegerEntry((((E + "_") + y) + "_fac2"), w[4]), IntegerEntry((((E + "_") + y) + "_fac3"), w[5]), IntegerEntry((((E + "_") + y) + "_fac4"), w[6]), IntegerEntry((((E + "_") + y) + "_vio1"), w[7]), IntegerEntry((((E + "_") + y) + "_vio2"), w[8]), IntegerEntry((((E + "_") + y) + "_vio3"), w[9]), IntegerEntry((((E + "_") + y) + "_vio4"), w[10]), IntegerEntry((((E + "_") + y) + "_cost"), w[11]), IntegerEntry((x + "_lgt"), z), StringEntry((x + "_status"), "open")]
49+ }
3550 }
3651
3752
38-@Verifier(u)
39-func v () = sigVerify(u.bodyBytes, u.proofs[0], u.senderPublicKey)
53+
54+@Callable(u)
55+func evaluatedDataCallback (F) = {
56+ let E = toBase58String(u.transactionId)
57+ let G = g(F)
58+ let H = G._1[1]
59+ let I = G._2[1]
60+ let J = G._3[1]
61+ let K = {
62+ let B = getString(H)
63+ if ($isInstanceOf(B, "String"))
64+ then {
65+ let C = B
66+ C
67+ }
68+ else "no Data exists"
69+ }
70+ if ((K == "no Data exists"))
71+ then throw("There is no Data for this crashId!")
72+ else {
73+ let L = {
74+ let B = getInteger((((K + "_") + I) + "_cost"))
75+ if ($isInstanceOf(B, "Int"))
76+ then {
77+ let C = B
78+ C
79+ }
80+ else "No data Found"
81+ }
82+ if ((L == "No data Found"))
83+ then throw("There is no data for this address!")
84+ else if ((L == -1))
85+ then [StringEntry((H + "_eval"), E), StringEntry((H + "_innocent_address"), I), StringEntry((H + "_guilty_address"), J), StringEntry((H + "_status"), "evaluated")]
86+ else [StringEntry((H + "_eval"), E), StringEntry((H + "_innocent_address"), I), StringEntry((H + "_guilty_address"), J), StringEntry((H + "_status"), "closed"), ScriptTransfer(Address(fromBase58String(I)), 100000000, unit)]
87+ }
88+ }
89+
90+
91+
92+@Callable(u)
93+func evaluatedData (M,N,O,P) = {
94+ let E = toBase58String(u.transactionId)
95+[StringEntry(M, E), StringEntry((E + "_guilty"), P)]
96+ }
97+
98+
99+
100+@Callable(u)
101+func requestPayout (Q,R,x) = {
102+ let D = toString(u.caller)
103+ let E = toBase58String(u.transactionId)
104+[StringEntry((x + "_request_payout"), E), IntegerEntry((E + "_amount"), R), StringEntry((E + "_prediction_id"), Q)]
105+ }
106+
107+
108+@Verifier(S)
109+func T () = sigVerify(S.bodyBytes, S.proofs[0], S.senderPublicKey)
40110

github/deemru/w8io/169f3d6 
30.45 ms