tx · 84k5n7ksXa7RqBgwyQ1GjLRxNZv7mDQ9KrHbX3DHGn75 3NAoJSThEgz12iLrRFSeMZpP1mEYc4QcGa3: -0.01000000 Waves 2023.11.27 17:13 [2861911] smart account 3NAoJSThEgz12iLrRFSeMZpP1mEYc4QcGa3 > SELF 0.00000000 Waves
{ "type": 13, "id": "84k5n7ksXa7RqBgwyQ1GjLRxNZv7mDQ9KrHbX3DHGn75", "fee": 1000000, "feeAssetId": null, "timestamp": 1701094422431, "version": 2, "chainId": 84, "sender": "3NAoJSThEgz12iLrRFSeMZpP1mEYc4QcGa3", "senderPublicKey": "5TXMdPyvDNfxhdixe86fk7Ya8FScpZGfZ6XNawu8sYK4", "proofs": [ "5Fpi1Qt6865oy89a5LuyEoDN786fmgZyCuDoGKEBZid69rfHrUeGT9bcdoetbSUXNk3b3491uQcVPdiEMYAVbJmz" ], "script": "base64:BgIfCAISBwoFEREICAESAwoBCBIGCgQICAgIEgUKAwgBCAYAC0JBSV9BRERSRVNTAiMzTjl0S2l4enFUWVduRVhReHJEUTVwQlRHdlFkNnNGc3ZtVgAEVFlQRQIPY3Jhc2hFdmFsdWF0aW9uAAdCQUlfRkVFAICt4gQAEUFJX1RPS0VOX0FTU0VUX0lEASCT4XI4cQSbauiaYx8EJLdkU5csPrxmC4N0r2i7JI3iQgELcmVtb3ZlTWFya3MBC21hcmtzU3RyaW5nBAFhCQCwAgIFC21hcmtzU3RyaW5nAAEEAWIJALMCAgUBYQABBQFiAQlwYXJzZUpzb24BBGpzb24EDG1vZGlmaWVkSnNvbgkAsAICBQRqc29uAAEEDW1vZGlmaWVkSnNvbjIJALMCAgUMbW9kaWZpZWRKc29uAAEEBnNwbGl0MQkAtQkCBQ1tb2RpZmllZEpzb24yAgEsBAlrZXlWYWx1ZTEJALUJAgkAkQMCBQZzcGxpdDEAAAIBOgQEa2V5MQkBC3JlbW92ZU1hcmtzAQkAkQMCBQlrZXlWYWx1ZTEAAAQGdmFsdWUxCQELcmVtb3ZlTW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AgdfYW1vdW50BQZhbW91bnQJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICBQR0eElkAg5fcHJlZGljdGlvbl9pZAUJcHJlZF90eElkBQNuaWwBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5QHyvzA==", "height": 2861911, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HmYBQbvZdyuwweEovLoRFNfW1DMGabxzsB7UC44iGAUQ Next: DUpZjVFEUpwga8UnQjtWYbjTRQq45uUhqhffqtW6g6sY Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV" | |
5 | 5 | ||
6 | 6 | let b = "crashEvaluation" | |
7 | 7 | ||
8 | 8 | let c = 10000000 | |
9 | 9 | ||
10 | 10 | let d = base58'AxGKQRxKo4F2EbhrRq6N2tdLsxtMnpzQsS4QemV6V1W1' | |
11 | 11 | ||
12 | 12 | func e (f) = { | |
13 | 13 | let g = drop(f, 1) | |
14 | 14 | let h = dropRight(g, 1) | |
15 | 15 | h | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (j) = { | |
20 | 20 | let k = drop(j, 1) | |
21 | 21 | let l = dropRight(k, 1) | |
22 | 22 | let m = split(l, ",") | |
23 | 23 | let n = split(m[0], ":") | |
24 | 24 | let o = e(n[0]) | |
25 | 25 | let p = e(n[1]) | |
26 | 26 | let q = split(m[1], ":") | |
27 | 27 | let r = e(q[0]) | |
28 | 28 | let s = e(q[1]) | |
29 | 29 | let t = split(m[2], ":") | |
30 | 30 | let u = e(t[0]) | |
31 | 31 | let v = e(t[1]) | |
32 | 32 | $Tuple3([o, p], [r, s], [u, v]) | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | @Callable(w) | |
37 | 37 | func registerData (x,y,z,A,B) = { | |
38 | 38 | let C = { | |
39 | 39 | let D = getString(z) | |
40 | 40 | if ($isInstanceOf(D, "String")) | |
41 | 41 | then { | |
42 | 42 | let E = D | |
43 | 43 | E | |
44 | 44 | } | |
45 | 45 | else "no Data exists" | |
46 | 46 | } | |
47 | 47 | if ((C != "no Data exists")) | |
48 | 48 | then throw("There is already existing Data for this case!") | |
49 | 49 | else { | |
50 | 50 | let F = [z, b, "evaluatedDataCallback"] | |
51 | 51 | let G = toString(w.caller) | |
52 | 52 | let H = toBase58String(w.transactionId) | |
53 | 53 | let I = invoke(Address(fromBase58String(a)), "registerTaskCallback", F, [AttachedPayment(d, c)]) | |
54 | 54 | [StringEntry(z, H), IntegerEntry((((z + "_") + G) + "_age"), x[0]), IntegerEntry((((z + "_") + G) + "_sex"), x[1]), IntegerEntry((((z + "_") + G) + "_damage"), x[2]), IntegerEntry((((z + "_") + G) + "_fac1"), x[3]), IntegerEntry((((z + "_") + G) + "_fac2"), x[4]), IntegerEntry((((z + "_") + G) + "_fac3"), x[5]), IntegerEntry((((z + "_") + G) + "_fac4"), x[6]), IntegerEntry((((z + "_") + G) + "_vio1"), x[7]), IntegerEntry((((z + "_") + G) + "_vio2"), x[8]), IntegerEntry((((z + "_") + G) + "_vio3"), x[9]), IntegerEntry((((z + "_") + G) + "_vio4"), x[10]), IntegerEntry((((z + "_") + G) + "_cost"), x[11]), IntegerEntry((((z + "_") + A) + "_age"), y[0]), IntegerEntry((((z + "_") + A) + "_sex"), y[1]), IntegerEntry((((z + "_") + A) + "_damage"), y[2]), IntegerEntry((((z + "_") + A) + "_fac1"), y[3]), IntegerEntry((((z + "_") + A) + "_fac2"), y[4]), IntegerEntry((((z + "_") + A) + "_fac3"), y[5]), IntegerEntry((((z + "_") + A) + "_fac4"), y[6]), IntegerEntry((((z + "_") + A) + "_vio1"), y[7]), IntegerEntry((((z + "_") + A) + "_vio2"), y[8]), IntegerEntry((((z + "_") + A) + "_vio3"), y[9]), IntegerEntry((((z + "_") + A) + "_vio4"), y[10]), IntegerEntry((((z + "_") + A) + "_cost"), y[11]), IntegerEntry((z + "_lgt"), B), StringEntry((z + "_status"), "open"), StringEntry((z + "_sender"), G)] | |
55 | 55 | } | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | ||
60 | 60 | @Callable(w) | |
61 | 61 | func evaluatedDataCallback (J) = { | |
62 | 62 | let H = toBase58String(w.transactionId) | |
63 | 63 | let K = i(J) | |
64 | 64 | let L = K._1[1] | |
65 | 65 | let M = K._2[1] | |
66 | 66 | let N = K._3[1] | |
67 | 67 | let O = { | |
68 | 68 | let D = getString(L) | |
69 | 69 | if ($isInstanceOf(D, "String")) | |
70 | 70 | then { | |
71 | 71 | let E = D | |
72 | 72 | E | |
73 | 73 | } | |
74 | 74 | else "no Data exists" | |
75 | 75 | } | |
76 | 76 | if ((O == "no Data exists")) | |
77 | 77 | then throw("There is no Data for this crashId!") | |
78 | 78 | else { | |
79 | 79 | let P = { | |
80 | 80 | let D = getString((L + "_status")) | |
81 | 81 | if ($isInstanceOf(D, "String")) | |
82 | 82 | then { | |
83 | 83 | let E = D | |
84 | 84 | E | |
85 | 85 | } | |
86 | 86 | else "no Data exists" | |
87 | 87 | } | |
88 | 88 | if ((P == "no Data exists")) | |
89 | 89 | then throw("There is no status for this case!") | |
90 | 90 | else if ((P == "closed")) | |
91 | 91 | then throw("A case should not be evaluated twice!") | |
92 | 92 | else { | |
93 | 93 | let Q = { | |
94 | 94 | let D = getInteger((((O + "_") + M) + "_cost")) | |
95 | 95 | if ($isInstanceOf(D, "Int")) | |
96 | 96 | then { | |
97 | 97 | let E = D | |
98 | 98 | E | |
99 | 99 | } | |
100 | 100 | else "No data Found" | |
101 | 101 | } | |
102 | 102 | if ((Q == "No data Found")) | |
103 | 103 | then throw("There is no data for this address!") | |
104 | 104 | else if ((Q == -1)) | |
105 | 105 | then [StringEntry((L + "_eval"), H), StringEntry((L + "_innocent_address"), M), StringEntry((L + "_guilty_address"), N), StringEntry((L + "_status"), "evaluated")] | |
106 | 106 | else [StringEntry((L + "_eval"), H), StringEntry((L + "_innocent_address"), M), StringEntry((L + "_guilty_address"), N), StringEntry((L + "_status"), "closed"), ScriptTransfer(Address(fromBase58String(M)), 100000000, unit)] | |
107 | 107 | } | |
108 | 108 | } | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | ||
113 | 113 | @Callable(w) | |
114 | 114 | func evaluatedData (R,S,T,U) = { | |
115 | 115 | let H = toBase58String(w.transactionId) | |
116 | 116 | [StringEntry(R, H), StringEntry((H + "_guilty"), U)] | |
117 | 117 | } | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | ||
121 | 121 | @Callable(w) | |
122 | 122 | func requestPayout (V,W,z) = { | |
123 | 123 | let G = toString(w.caller) | |
124 | 124 | let H = toBase58String(w.transactionId) | |
125 | 125 | [StringEntry((z + "_request_payout"), H), IntegerEntry((H + "_amount"), W), StringEntry((H + "_prediction_id"), V)] | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | @Verifier(X) | |
130 | 130 | func Y () = sigVerify(X.bodyBytes, X.proofs[0], X.senderPublicKey) | |
131 | 131 |
github/deemru/w8io/026f985 38.25 ms ◑