tx · 8Tiq9PrpLGFMXBGGABe7MVibryxyyrcnbvTnKbFxbEWk
3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY: -0.01000000 Waves
2024.04.28 14:08 [3082637] smart account 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY > SELF 0.00000000 Waves
{
"type": 13,
"id": "8Tiq9PrpLGFMXBGGABe7MVibryxyyrcnbvTnKbFxbEWk",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1714302541761,
"version": 2,
"chainId": 84,
"sender": "3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY",
"senderPublicKey": "2AWdnJuBMzufXSjTvzVcawBQQhnhF1iXR6QNVgwn33oc",
"proofs": [
"4wJ6pTXkDpSVRGqGJThxPwgwSkVwvm69FdSu1Z4KZG4TNQWj3EF4idHh3kSP7evTNx8zvt9rcAPbFA4UF7oqrTJP"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIBAQAAAAkAAAAADWxheWVyMVdlaWdodHMJAARMAAAAAgkABEwAAAACAAAAAAAACSmwCQAETAAAAAIAAAAAAAAJKp0FAAAAA25pbAkABEwAAAACCQAETAAAAAIAAAAAAAAGUfUJAARMAAAAAgAAAAAAAAZSLQUAAAADbmlsBQAAAANuaWwAAAAADGxheWVyMUJpYXNlcwkABEwAAAACAP///////AwVCQAETAAAAAIA///////2TQsFAAAAA25pbAAAAAANbGF5ZXIyV2VpZ2h0cwkABEwAAAACCQAETAAAAAIAAAAAAAAMtcYJAARMAAAAAgD///////JPigUAAAADbmlsBQAAAANuaWwAAAAADGxheWVyMkJpYXNlcwkABEwAAAACAP//////+i8FBQAAAANuaWwBAAAABmNsYW1wWgAAAAIAAAABegAAAAVsaW1pdAMJAABmAAAAAgUAAAABegUAAAAFbGltaXQFAAAABWxpbWl0AwkAAGYAAAACCQEAAAABLQAAAAEFAAAABWxpbWl0BQAAAAF6CQEAAAABLQAAAAEFAAAABWxpbWl0BQAAAAF6AQAAAApleHBfYXBwcm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dHMJAARMAAAAAgUAAAAMc2NhbGVkSW5wdXQxCQAETAAAAAIFAAAADHNjYWxlZElucHV0MgUAAAADbmlsBAAAAAskdDAyNjQyMjc0MAkBAAAAEWZvcndhcmRQYXNzTGF5ZXIxAAAABAUAAAAGaW5wdXRzBQAAAA1sYXllcjFXZWlnaHRzBQAAAAxsYXllcjFCaWFzZXMCAAAABkxheWVyMQQAAAALZGVidWdMYXllcjEIBQAAAAskdDAyNjQyMjc0MAAAAAJfMQQAAAAMbGF5ZXIxT3V0cHV0CAUAAAALJHQwMjY0MjI3NDAAAAACXzIEAAAACyR0MDI3NDUyODQ5CQEAAAARZm9yd2FyZFBhc3NMYXllcjIAAAAEBQAAAAxsYXllcjFPdXRwdXQFAAAADWxheWVyMldlaWdodHMFAAAADGxheWVyMkJpYXNlcwIAAAAGTGF5ZXIyBAAAAAtkZWJ1Z0xheWVyMggFAAAACyR0MDI3NDUyODQ5AAAAAl8xBAAAAAxsYXllcjJPdXRwdXQIBQAAAAskdDAyNzQ1Mjg0OQAAAAJfMgkABE4AAAACCQAETgAAAAIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABnJlc3VsdAUAAAAMbGF5ZXIyT3V0cHV0BQAAAANuaWwFAAAAC2RlYnVnTGF5ZXIxBQAAAAtkZWJ1Z0xheWVyMgAAAACK0ZeQ",
"height": 3082637,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 5K3SesFjoRF1HkRqSncDmVU95ew5cKw5DxSrJdSM3sXu
Next: GtG7mCapTmYceaRkKY1vhdnd2yLu3vXtwL6gnTomt2N9
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let a = [[600496, 600733], [414197, 414252]] |
---|
| 4 | + | let a = [[600496, 600733], [414197, 414253]] |
---|
5 | 5 | | |
---|
6 | | - | let b = [-259050, -635637] |
---|
| 6 | + | let b = [-259051, -635637] |
---|
7 | 7 | | |
---|
8 | | - | let c = [[832965, -897142]] |
---|
| 8 | + | let c = [[832966, -897142]] |
---|
9 | 9 | | |
---|
10 | 10 | | let d = [-381179] |
---|
11 | 11 | | |
---|
|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | func h (i) = { |
---|
20 | | - | let j = 100000 |
---|
21 | | - | if ((-(j) > i)) |
---|
22 | | - | then 1 |
---|
23 | | - | else if ((i > j)) |
---|
24 | | - | then 1000000000 |
---|
25 | | - | else { |
---|
26 | | - | let k = (i / 10000) |
---|
27 | | - | let l = fraction(k, k, 10000, DOWN) |
---|
28 | | - | let m = ((10000 - k) + (l / 2)) |
---|
29 | | - | (10000 - m) |
---|
30 | | - | } |
---|
| 20 | + | let j = if ((0 > i)) |
---|
| 21 | + | then -(i) |
---|
| 22 | + | else i |
---|
| 23 | + | let k = if ((j > 100000)) |
---|
| 24 | + | then 100000 |
---|
| 25 | + | else j |
---|
| 26 | + | let l = (k / 1000) |
---|
| 27 | + | (100000 - (10 * l)) |
---|
31 | 28 | | } |
---|
32 | 29 | | |
---|
33 | 30 | | |
---|
34 | | - | func n (f,o) = { |
---|
35 | | - | let p = e(f, 100000) |
---|
36 | | - | let q = h(-(p)) |
---|
37 | | - | let r = fraction(10000, (10000 + q), 1, DOWN) |
---|
38 | | - | $Tuple2([IntegerEntry((o + "clampedZ"), p), IntegerEntry((o + "expValue"), q), IntegerEntry((o + "sigValue"), r)], r) |
---|
| 31 | + | func m (f,n) = { |
---|
| 32 | + | let o = e(f, 100000) |
---|
| 33 | + | let p = h(-(o)) |
---|
| 34 | + | let q = fraction(1000000, (1000000 + p), 1, DOWN) |
---|
| 35 | + | $Tuple2([IntegerEntry((n + "inputZ"), f), IntegerEntry((n + "clampedZ"), o), IntegerEntry((n + "expValue"), p), IntegerEntry((n + "sigValue"), q)], q) |
---|
39 | 36 | | } |
---|
40 | 37 | | |
---|
41 | 38 | | |
---|
42 | | - | func s (t,u,v,o) = { |
---|
43 | | - | let w = (((t[0] * u[0][0]) + (t[1] * u[0][1])) + (v[0] * 100000)) |
---|
44 | | - | let x = (((t[0] * u[1][0]) + (t[1] * u[1][1])) + (v[1] * 100000)) |
---|
45 | | - | let y = n(w, "Layer1N0") |
---|
46 | | - | let z = y._1 |
---|
47 | | - | let A = y._2 |
---|
48 | | - | let B = n(x, "Layer1N1") |
---|
49 | | - | let C = B._1 |
---|
50 | | - | let D = B._2 |
---|
51 | | - | let E = (z ++ C) |
---|
52 | | - | let F = [A, D] |
---|
53 | | - | $Tuple2(E, F) |
---|
| 39 | + | func r (s,t,u,n) = { |
---|
| 40 | + | let v = (((s[0] * t[0][0]) + (s[1] * t[0][1])) + (u[0] * 100000)) |
---|
| 41 | + | let w = (((s[0] * t[1][0]) + (s[1] * t[1][1])) + (u[1] * 100000)) |
---|
| 42 | + | let x = m(v, "Layer1N0") |
---|
| 43 | + | let y = x._1 |
---|
| 44 | + | let z = x._2 |
---|
| 45 | + | let A = m(w, "Layer1N1") |
---|
| 46 | + | let B = A._1 |
---|
| 47 | + | let C = A._2 |
---|
| 48 | + | let D = (y ++ B) |
---|
| 49 | + | let E = [z, C] |
---|
| 50 | + | $Tuple2(D, E) |
---|
54 | 51 | | } |
---|
55 | 52 | | |
---|
56 | 53 | | |
---|
57 | | - | func G (t,u,v,o) = { |
---|
58 | | - | let w = (((t[0] * u[0][0]) + (t[1] * u[0][1])) + (v[0] * 100000)) |
---|
59 | | - | let H = n(w, "Layer2N0") |
---|
60 | | - | let z = H._1 |
---|
61 | | - | let A = H._2 |
---|
| 54 | + | func F (s,t,u,n) = { |
---|
| 55 | + | let v = (((s[0] * t[0][0]) + (s[1] * t[0][1])) + (u[0] * 100000)) |
---|
| 56 | + | let G = m(v, "Layer2N0") |
---|
| 57 | + | let y = G._1 |
---|
| 58 | + | let z = G._2 |
---|
| 59 | + | let D = y |
---|
62 | 60 | | let E = z |
---|
63 | | - | let F = A |
---|
64 | | - | $Tuple2(E, F) |
---|
| 61 | + | $Tuple2(D, E) |
---|
65 | 62 | | } |
---|
66 | 63 | | |
---|
67 | 64 | | |
---|
68 | | - | @Callable(I) |
---|
69 | | - | func predict (J,K) = { |
---|
| 65 | + | @Callable(H) |
---|
| 66 | + | func predict (I,J) = { |
---|
| 67 | + | let K = if ((I == 1)) |
---|
| 68 | + | then 1000000 |
---|
| 69 | + | else 0 |
---|
70 | 70 | | let L = if ((J == 1)) |
---|
71 | 71 | | then 1000000 |
---|
72 | 72 | | else 0 |
---|
73 | | - | let M = if ((K == 1)) |
---|
74 | | - | then 1000000 |
---|
75 | | - | else 0 |
---|
76 | | - | let N = [L, M] |
---|
77 | | - | let O = s(N, a, b, "Layer1") |
---|
78 | | - | let P = O._1 |
---|
79 | | - | let Q = O._2 |
---|
80 | | - | let R = G(Q, c, d, "Layer2") |
---|
81 | | - | let S = R._1 |
---|
82 | | - | let T = R._2 |
---|
83 | | - | (([IntegerEntry("result", T)] ++ P) ++ S) |
---|
| 73 | + | let M = [K, L] |
---|
| 74 | + | let N = r(M, a, b, "Layer1") |
---|
| 75 | + | let O = N._1 |
---|
| 76 | + | let P = N._2 |
---|
| 77 | + | let Q = F(P, c, d, "Layer2") |
---|
| 78 | + | let R = Q._1 |
---|
| 79 | + | let S = Q._2 |
---|
| 80 | + | (([IntegerEntry("result", S)] ++ O) ++ R) |
---|
84 | 81 | | } |
---|
85 | 82 | | |
---|
86 | 83 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let a = [[600496, 600733], [414197, 414252]] |
---|
| 4 | + | let a = [[600496, 600733], [414197, 414253]] |
---|
5 | 5 | | |
---|
6 | | - | let b = [-259050, -635637] |
---|
| 6 | + | let b = [-259051, -635637] |
---|
7 | 7 | | |
---|
8 | | - | let c = [[832965, -897142]] |
---|
| 8 | + | let c = [[832966, -897142]] |
---|
9 | 9 | | |
---|
10 | 10 | | let d = [-381179] |
---|
11 | 11 | | |
---|
12 | 12 | | func e (f,g) = if ((f > g)) |
---|
13 | 13 | | then g |
---|
14 | 14 | | else if ((-(g) > f)) |
---|
15 | 15 | | then -(g) |
---|
16 | 16 | | else f |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | func h (i) = { |
---|
20 | | - | let j = 100000 |
---|
21 | | - | if ((-(j) > i)) |
---|
22 | | - | then 1 |
---|
23 | | - | else if ((i > j)) |
---|
24 | | - | then 1000000000 |
---|
25 | | - | else { |
---|
26 | | - | let k = (i / 10000) |
---|
27 | | - | let l = fraction(k, k, 10000, DOWN) |
---|
28 | | - | let m = ((10000 - k) + (l / 2)) |
---|
29 | | - | (10000 - m) |
---|
30 | | - | } |
---|
| 20 | + | let j = if ((0 > i)) |
---|
| 21 | + | then -(i) |
---|
| 22 | + | else i |
---|
| 23 | + | let k = if ((j > 100000)) |
---|
| 24 | + | then 100000 |
---|
| 25 | + | else j |
---|
| 26 | + | let l = (k / 1000) |
---|
| 27 | + | (100000 - (10 * l)) |
---|
31 | 28 | | } |
---|
32 | 29 | | |
---|
33 | 30 | | |
---|
34 | | - | func n (f,o) = { |
---|
35 | | - | let p = e(f, 100000) |
---|
36 | | - | let q = h(-(p)) |
---|
37 | | - | let r = fraction(10000, (10000 + q), 1, DOWN) |
---|
38 | | - | $Tuple2([IntegerEntry((o + "clampedZ"), p), IntegerEntry((o + "expValue"), q), IntegerEntry((o + "sigValue"), r)], r) |
---|
| 31 | + | func m (f,n) = { |
---|
| 32 | + | let o = e(f, 100000) |
---|
| 33 | + | let p = h(-(o)) |
---|
| 34 | + | let q = fraction(1000000, (1000000 + p), 1, DOWN) |
---|
| 35 | + | $Tuple2([IntegerEntry((n + "inputZ"), f), IntegerEntry((n + "clampedZ"), o), IntegerEntry((n + "expValue"), p), IntegerEntry((n + "sigValue"), q)], q) |
---|
39 | 36 | | } |
---|
40 | 37 | | |
---|
41 | 38 | | |
---|
42 | | - | func s (t,u,v,o) = { |
---|
43 | | - | let w = (((t[0] * u[0][0]) + (t[1] * u[0][1])) + (v[0] * 100000)) |
---|
44 | | - | let x = (((t[0] * u[1][0]) + (t[1] * u[1][1])) + (v[1] * 100000)) |
---|
45 | | - | let y = n(w, "Layer1N0") |
---|
46 | | - | let z = y._1 |
---|
47 | | - | let A = y._2 |
---|
48 | | - | let B = n(x, "Layer1N1") |
---|
49 | | - | let C = B._1 |
---|
50 | | - | let D = B._2 |
---|
51 | | - | let E = (z ++ C) |
---|
52 | | - | let F = [A, D] |
---|
53 | | - | $Tuple2(E, F) |
---|
| 39 | + | func r (s,t,u,n) = { |
---|
| 40 | + | let v = (((s[0] * t[0][0]) + (s[1] * t[0][1])) + (u[0] * 100000)) |
---|
| 41 | + | let w = (((s[0] * t[1][0]) + (s[1] * t[1][1])) + (u[1] * 100000)) |
---|
| 42 | + | let x = m(v, "Layer1N0") |
---|
| 43 | + | let y = x._1 |
---|
| 44 | + | let z = x._2 |
---|
| 45 | + | let A = m(w, "Layer1N1") |
---|
| 46 | + | let B = A._1 |
---|
| 47 | + | let C = A._2 |
---|
| 48 | + | let D = (y ++ B) |
---|
| 49 | + | let E = [z, C] |
---|
| 50 | + | $Tuple2(D, E) |
---|
54 | 51 | | } |
---|
55 | 52 | | |
---|
56 | 53 | | |
---|
57 | | - | func G (t,u,v,o) = { |
---|
58 | | - | let w = (((t[0] * u[0][0]) + (t[1] * u[0][1])) + (v[0] * 100000)) |
---|
59 | | - | let H = n(w, "Layer2N0") |
---|
60 | | - | let z = H._1 |
---|
61 | | - | let A = H._2 |
---|
| 54 | + | func F (s,t,u,n) = { |
---|
| 55 | + | let v = (((s[0] * t[0][0]) + (s[1] * t[0][1])) + (u[0] * 100000)) |
---|
| 56 | + | let G = m(v, "Layer2N0") |
---|
| 57 | + | let y = G._1 |
---|
| 58 | + | let z = G._2 |
---|
| 59 | + | let D = y |
---|
62 | 60 | | let E = z |
---|
63 | | - | let F = A |
---|
64 | | - | $Tuple2(E, F) |
---|
| 61 | + | $Tuple2(D, E) |
---|
65 | 62 | | } |
---|
66 | 63 | | |
---|
67 | 64 | | |
---|
68 | | - | @Callable(I) |
---|
69 | | - | func predict (J,K) = { |
---|
| 65 | + | @Callable(H) |
---|
| 66 | + | func predict (I,J) = { |
---|
| 67 | + | let K = if ((I == 1)) |
---|
| 68 | + | then 1000000 |
---|
| 69 | + | else 0 |
---|
70 | 70 | | let L = if ((J == 1)) |
---|
71 | 71 | | then 1000000 |
---|
72 | 72 | | else 0 |
---|
73 | | - | let M = if ((K == 1)) |
---|
74 | | - | then 1000000 |
---|
75 | | - | else 0 |
---|
76 | | - | let N = [L, M] |
---|
77 | | - | let O = s(N, a, b, "Layer1") |
---|
78 | | - | let P = O._1 |
---|
79 | | - | let Q = O._2 |
---|
80 | | - | let R = G(Q, c, d, "Layer2") |
---|
81 | | - | let S = R._1 |
---|
82 | | - | let T = R._2 |
---|
83 | | - | (([IntegerEntry("result", T)] ++ P) ++ S) |
---|
| 73 | + | let M = [K, L] |
---|
| 74 | + | let N = r(M, a, b, "Layer1") |
---|
| 75 | + | let O = N._1 |
---|
| 76 | + | let P = N._2 |
---|
| 77 | + | let Q = F(P, c, d, "Layer2") |
---|
| 78 | + | let R = Q._1 |
---|
| 79 | + | let S = Q._2 |
---|
| 80 | + | (([IntegerEntry("result", S)] ++ O) ++ R) |
---|
84 | 81 | | } |
---|
85 | 82 | | |
---|
86 | 83 | | |
---|