tx · BkVWUdsQ7JYxnNSBQC4rv1kZgMWPBgGeXmi2d41GYYvo 3NAoJSThEgz12iLrRFSeMZpP1mEYc4QcGa3: -0.01000000 Waves 2023.11.26 18:28 [2860550] smart account 3NAoJSThEgz12iLrRFSeMZpP1mEYc4QcGa3 > SELF 0.00000000 Waves
{ "type": 13, "id": "BkVWUdsQ7JYxnNSBQC4rv1kZgMWPBgGeXmi2d41GYYvo", "fee": 1000000, "feeAssetId": null, "timestamp": 1701012536970, "version": 2, "chainId": 84, "sender": "3NAoJSThEgz12iLrRFSeMZpP1mEYc4QcGa3", "senderPublicKey": "5TXMdPyvDNfxhdixe86fk7Ya8FScpZGfZ6XNawu8sYK4", "proofs": [ "7dbXQ8REekcuY4kksF8cSMdgajDF9a6xExSKbaNqcoSwggx15rbLtWouW3eXobATsqHhkEiq4niT1raPXcV1yA2" ], "script": "base64:BgIfCAISBwoFEREICAESAwoBCBIGCgQICAgIEgUKAwgBCAQAC0JBSV9BRERSRVNTAiMzTjl0S2l4enFUWVduRVhReHJEUTVwQlRHdlFkNnNGc3ZtVgARQUlfVE9LRU5fQVNTRVRfSUQBIJPhcjhxBJtq6JpjHwQkt2RTlyw+vGYLg3SvaLskjeJCAQtyZW1vdmVNYXJrcwELbWFya3NTdHJpbmcEAWEJALACAgULbWFya3NTdHJpbmcAAQQBYgkAswICBQFhAAEFAWIBCXBhcnNlSnNvbgEEanNvbgQMbW9kaWZpZWRKc29uCQCwAgIFBGpzb24AAQQNbW9kaWZpZWRKc29uMgkAswICBQxtb2RpZmllZEpzb24AAQQGc3BsaXQxCQC1CQIFDW1vZGlmaWVkSnNvbjICASwECWtleVZhbHVlMQkAtQkCCQCRAwIFBnNwbGl0MQAAAgE6BARrZXkxCQELcmVtb3ZlTWFya3MBCQCRAwIFCWtleVZhbHVlMQAABAZ2YWx1ZTEJAQtyZW1vdmVNYXJrcwEJAJEDAgUJa2V5VmFsdWUxAAEECWtleVZhbHVlMgkAtQkCCQCRAwIFBnNwbGl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9hZGRyZXNzBAR0eElkCQDYBAEIBQFpDXRyYW5zYWN0aW9uSWQJAMwIAgkBC1N0cmluZ0VudHJ5AgUNcHJlZGljdGlvbl9pZAUEdHhJZAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFBHR4SWQCB19ndWlsdHkFFWd1aWx0eV9wZXJzb25fYWRkcmVzcwUDbmlsAWkBDXJlcXVlc3RQYXlvdXQDCXByZWRfdHhJZAZhbW91bnQCaWQEBmNsaWVudAkApQgBCAUBaQZjYWxsZXIEBHR4SWQJANgEAQgFAWkNdHJhbnNhY3Rpb25JZAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIFAmlkAg9fcmVxdWVzdF9wYXlvdXQFBHR4SWQJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUEdHhJZAIHX2Ftb3VudAUGYW1vdW50CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUEdHhJZAIOX3ByZWRpY3Rpb25faWQFCXByZWRfdHhJZAUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleTsQJKo=", "height": 2860550, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FrzYyNDfE7qTFC7Kv3qv9McMVJNjoS7cs7U7CnhjCAf1 Next: FNSH3SSR3B61ky3nG5kXf7G2o3Nu5oArN1SekwVTRZr8 Diff:
Old | New | Differences | |
---|---|---|---|
23 | 23 | let p = c(o[0]) | |
24 | 24 | let q = c(o[1]) | |
25 | 25 | let r = split(k[2], ":") | |
26 | - | let s = c( | |
27 | - | let t = c( | |
26 | + | let s = c(r[0]) | |
27 | + | let t = c(r[1]) | |
28 | 28 | $Tuple3([m, n], [p, q], [s, t]) | |
29 | 29 | } | |
30 | 30 |
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 = base58'AxGKQRxKo4F2EbhrRq6N2tdLsxtMnpzQsS4QemV6V1W1' | |
7 | 7 | ||
8 | 8 | func c (d) = { | |
9 | 9 | let e = drop(d, 1) | |
10 | 10 | let f = dropRight(e, 1) | |
11 | 11 | f | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func g (h) = { | |
16 | 16 | let i = drop(h, 1) | |
17 | 17 | let j = dropRight(i, 1) | |
18 | 18 | let k = split(j, ",") | |
19 | 19 | let l = split(k[0], ":") | |
20 | 20 | let m = c(l[0]) | |
21 | 21 | let n = c(l[1]) | |
22 | 22 | let o = split(k[1], ":") | |
23 | 23 | let p = c(o[0]) | |
24 | 24 | let q = c(o[1]) | |
25 | 25 | let r = split(k[2], ":") | |
26 | - | let s = c( | |
27 | - | let t = c( | |
26 | + | let s = c(r[0]) | |
27 | + | let t = c(r[1]) | |
28 | 28 | $Tuple3([m, n], [p, q], [s, t]) | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | @Callable(u) | |
33 | 33 | func registerData (v,w,x,y,z) = { | |
34 | 34 | let A = { | |
35 | 35 | let B = getString(x) | |
36 | 36 | if ($isInstanceOf(B, "String")) | |
37 | 37 | then { | |
38 | 38 | let C = B | |
39 | 39 | C | |
40 | 40 | } | |
41 | 41 | else "no Data exists" | |
42 | 42 | } | |
43 | 43 | if ((A != "no Data exists")) | |
44 | 44 | then throw("There is already existing Data for this case!") | |
45 | 45 | else { | |
46 | 46 | let D = toString(u.caller) | |
47 | 47 | let E = toBase58String(u.transactionId) | |
48 | 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 | 49 | } | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | ||
54 | 54 | @Callable(u) | |
55 | 55 | func evaluatedDataCallback (F) = { | |
56 | 56 | let E = toBase58String(u.transactionId) | |
57 | 57 | let G = g(F) | |
58 | 58 | let H = G._1[1] | |
59 | 59 | let I = G._2[1] | |
60 | 60 | let J = G._3[1] | |
61 | 61 | let K = { | |
62 | 62 | let B = getString(H) | |
63 | 63 | if ($isInstanceOf(B, "String")) | |
64 | 64 | then { | |
65 | 65 | let C = B | |
66 | 66 | C | |
67 | 67 | } | |
68 | 68 | else "no Data exists" | |
69 | 69 | } | |
70 | 70 | if ((K == "no Data exists")) | |
71 | 71 | then throw("There is no Data for this crashId!") | |
72 | 72 | else { | |
73 | 73 | let L = { | |
74 | 74 | let B = getInteger((((K + "_") + I) + "_cost")) | |
75 | 75 | if ($isInstanceOf(B, "Int")) | |
76 | 76 | then { | |
77 | 77 | let C = B | |
78 | 78 | C | |
79 | 79 | } | |
80 | 80 | else "No data Found" | |
81 | 81 | } | |
82 | 82 | if ((L == "No data Found")) | |
83 | 83 | then throw("There is no data for this address!") | |
84 | 84 | else if ((L == -1)) | |
85 | 85 | then [StringEntry((H + "_eval"), E), StringEntry((H + "_innocent_address"), I), StringEntry((H + "_guilty_address"), J), StringEntry((H + "_status"), "evaluated")] | |
86 | 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 | 87 | } | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | ||
92 | 92 | @Callable(u) | |
93 | 93 | func evaluatedData (M,N,O,P) = { | |
94 | 94 | let E = toBase58String(u.transactionId) | |
95 | 95 | [StringEntry(M, E), StringEntry((E + "_guilty"), P)] | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | ||
100 | 100 | @Callable(u) | |
101 | 101 | func requestPayout (Q,R,x) = { | |
102 | 102 | let D = toString(u.caller) | |
103 | 103 | let E = toBase58String(u.transactionId) | |
104 | 104 | [StringEntry((x + "_request_payout"), E), IntegerEntry((E + "_amount"), R), StringEntry((E + "_prediction_id"), Q)] | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | @Verifier(S) | |
109 | 109 | func T () = sigVerify(S.bodyBytes, S.proofs[0], S.senderPublicKey) | |
110 | 110 |
github/deemru/w8io/026f985 29.06 ms ◑