tx · 767Yxd7YLrzxknpE4yevPSn8FiPpnDSy42486KNa9Xi6 3MuhHdDkjQxuQRjVjTJ6Zf6Rf7uC9nKr9EV: -0.01500000 Waves 2024.03.05 10:37 [3004422] smart account 3MuhHdDkjQxuQRjVjTJ6Zf6Rf7uC9nKr9EV > SELF 0.00000000 Waves
{ "type": 13, "id": "767Yxd7YLrzxknpE4yevPSn8FiPpnDSy42486KNa9Xi6", "fee": 1500000, "feeAssetId": null, "timestamp": 1709624278769, "version": 2, "chainId": 84, "sender": "3MuhHdDkjQxuQRjVjTJ6Zf6Rf7uC9nKr9EV", "senderPublicKey": "3dw5GmZgR7YXRaWaz4Wqk1nkqQ1GTX4zkoSHUfJrfnEZ", "proofs": [ "jfPSNZJTx6jJWSVS7Q92eemJ6Qs8B7f9NyQMP4g6m1wV8J1bpRWAcno61yguiw9PVqWQAW5ePi6qxBQ383d2U2M" ], "script": "base64:AAIEAAAAAAAAAAwIAhIICgYICAICAgIAAAAgAAAAAAtQcm90b2NvbFNFUAIAAAABOgAAAAADU0VQAgAAAAJfXwAAAAAScGVyY2VudFByaWNlT2Zmc2V0AAAAAAAAACUcAQAAAAhrZXlQcmljZQAAAAEAAAAGc3ltYm9sCQABLAAAAAICAAAADSVzJXNfX3ByaWNlX18FAAAABnN5bWJvbAEAAAAKa2V5T3JhY2xlcwAAAAACAAAAFSVzJXNfX2NvbmZpZ19fb3JhY2xlcwEAAAAMa2V5R3JvdXBEYXRhAAAAAQAAAAhncm91cE51bQkAASwAAAACAgAAAA0lcyVkX19ncm91cF9fBQAAAAhncm91cE51bQEAAAAPa2V5TWluQ29uc2Vuc3VzAAAAAAIAAAAaJXMlc19fY29uZmlnX19taW5Db25zZW5zdXMBAAAAD2tleVByaWNlRmFpbHVyZQAAAAEAAAAGc3ltYm9sCQAEuQAAAAIJAARMAAAAAgIAAAAbJXMlcyVkX19maW5hbGl6YXRpb25GYWlsdXJlCQAETAAAAAIFAAAABnN5bWJvbAkABEwAAAACCQABpAAAA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dyb3VwRGF0YVN0cgUAAAAIbXNnQXJyYXkFAAAABnNpZ25zMQkBAAAAFWZpbmFsaXplUHJpY2VWMkNvbW1vbgAAAAUAAAAAAAAAAAIFAAAACGdyb3VwTnVtBQAAAAxncm91cERhdGFTdHIFAAAACG1zZ0FycmF5BQAAAAZzaWduczIJAQAAABVmaW5hbGl6ZVByaWNlVjJDb21tb24AAAAFAAAAAAAAAAADBQAAAAhncm91cE51bQUAAAAMZ3JvdXBEYXRhU3RyBQAAAAhtc2dBcnJheQUAAAAGc2lnbnMzCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgkBAAAADmtleUdyb3VwU3RhdHVzAAAAAgUAAAAIZ3JvdXBOdW0FAAAADGZpbkhlaWdodFN0cgYAAAAAM/nDZw==", "height": 3004422, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = ":" | |
5 | + | ||
6 | + | let b = "__" | |
7 | + | ||
8 | + | let c = 9500 | |
9 | + | ||
10 | + | func d (e) = ("%s%s__price__" + e) | |
11 | + | ||
12 | + | ||
13 | + | func f () = "%s%s__config__oracles" | |
14 | + | ||
15 | + | ||
16 | + | func g (h) = ("%s%d__group__" + h) | |
17 | + | ||
18 | + | ||
19 | + | func i () = "%s%s__config__minConsensus" | |
20 | + | ||
21 | + | ||
22 | + | func j (e) = makeString(["%s%s%d__finalizationFailure", e, toString(height)], b) | |
23 | + | ||
24 | + | ||
25 | + | func k (e) = ("%s%s__lastHeight__" + e) | |
26 | + | ||
27 | + | ||
28 | + | func l (e,m) = makeString(["%s%s%d__priceByHeight", e, toString(m)], b) | |
29 | + | ||
30 | + | ||
31 | + | func n (e) = ("%s%s__idxCurrent__" + e) | |
32 | + | ||
33 | + | ||
34 | + | func o (e,p) = makeString(["%s%s%d__idx2Height", e, toString(p)], b) | |
35 | + | ||
36 | + | ||
37 | + | func q (e,m) = makeString(["%s%s%d__height2Idx", e, toString(m)], b) | |
38 | + | ||
39 | + | ||
40 | + | func r (h,s) = makeString(["%s%d%d__groupStatus", h, s], b) | |
41 | + | ||
42 | + | ||
43 | + | func t (e) = ("%s%s__isMarketOpened__" + e) | |
44 | + | ||
45 | + | ||
46 | + | func u (v) = makeString(["%s%d%d__emptyPriceMsg", toString(height), toString(v)], b) | |
47 | + | ||
48 | + | ||
49 | + | func w (e) = ("%s%s__isBlocked__" + e) | |
50 | + | ||
51 | + | ||
52 | + | func x (e) = makeString(["%s%s%s__isBlocked", e, "sender"], b) | |
53 | + | ||
54 | + | ||
55 | + | func y (e) = makeString(["%s%s%s__isBlocked", e, "reason"], b) | |
56 | + | ||
57 | + | ||
58 | + | func z (m,e) = makeString(["%s%s%s%d__isBlocked", e, "blackSwarmPrice", toString(m)], b) | |
59 | + | ||
60 | + | ||
61 | + | func A (h,s) = isDefined(getBoolean(this, r(h, s))) | |
62 | + | ||
63 | + | ||
64 | + | func B (h) = { | |
65 | + | let C = g(h) | |
66 | + | let D = getString(this, C) | |
67 | + | if (isDefined(D)) | |
68 | + | then value(D) | |
69 | + | else throw(("empty group data for key=" + C)) | |
70 | + | } | |
71 | + | ||
72 | + | ||
73 | + | let E = split(getStringValue(this, f()), ",") | |
74 | + | ||
75 | + | let F = size(E) | |
76 | + | ||
77 | + | let G = valueOrElse(getInteger(this, i()), 3) | |
78 | + | ||
79 | + | func H (e,I) = [StringEntry(j(e), I)] | |
80 | + | ||
81 | + | ||
82 | + | func J (s) = throw(((("invalid finalization height: height=" + toString(height)) + " finalizationHeight=") + s)) | |
83 | + | ||
84 | + | ||
85 | + | func K (h,s) = throw((((("prices for groupNum=" + h) + " at ") + s) + " height have been already finalized")) | |
86 | + | ||
87 | + | ||
88 | + | func L (M,N) = throw(((((("invalid signs" + toString(M)) + " parameter: actual.size=") + toString(size(N))) + " base58Val=") + toBase58String(N))) | |
89 | + | ||
90 | + | ||
91 | + | func O () = throw(((("Out of turn finalization: " + toString(height)) + " block should be finalize by ") + E[(height % F)])) | |
92 | + | ||
93 | + | ||
94 | + | func P () = throw("contract is blocked by EMERGENCY SHUTDOWN action") | |
95 | + | ||
96 | + | ||
97 | + | func Q (v,h,R,S,T) = { | |
98 | + | let U = (v * 3) | |
99 | + | if ((U >= size(S))) | |
100 | + | then [StringEntry(u(v), "price data is empty")] | |
101 | + | else { | |
102 | + | let e = S[(U + 0)] | |
103 | + | let V = S[(U + 1)] | |
104 | + | let W = S[(U + 2)] | |
105 | + | let X = parseInt(V) | |
106 | + | let Y = parseInt(W) | |
107 | + | let Z = take(T, 64) | |
108 | + | let aa = take(drop(T, 64), 64) | |
109 | + | let ab = take(drop(T, 128), 64) | |
110 | + | let ac = take(drop(T, 192), 64) | |
111 | + | let ad = takeRightBytes(T, 64) | |
112 | + | let ae = valueOrElse(getBoolean(this, w(e)), false) | |
113 | + | if ((e == "")) | |
114 | + | then nil | |
115 | + | else if (ae) | |
116 | + | then H(e, (e + " is blocked")) | |
117 | + | else if (contains(R, e)) | |
118 | + | then if (if (isDefined(X)) | |
119 | + | then isDefined(Y) | |
120 | + | else false) | |
121 | + | then { | |
122 | + | let af = value(X) | |
123 | + | let ag = if ((value(Y) == 1)) | |
124 | + | then true | |
125 | + | else false | |
126 | + | let ah = makeString(["WAVES-DORA2", h, toString(height), e, V, W], a) | |
127 | + | let ai = toBytes(ah) | |
128 | + | let aj = (((((if (sigVerify_8Kb(ai, Z, fromBase58String(E[0]))) | |
129 | + | then 1 | |
130 | + | else 0) + (if (sigVerify_8Kb(ai, aa, fromBase58String(E[1]))) | |
131 | + | then 1 | |
132 | + | else 0)) + (if (sigVerify_8Kb(ai, ab, fromBase58String(E[2]))) | |
133 | + | then 1 | |
134 | + | else 0)) + (if (sigVerify_8Kb(ai, ac, fromBase58String(E[3]))) | |
135 | + | then 1 | |
136 | + | else 0)) + (if (sigVerify_8Kb(ai, ad, fromBase58String(E[4]))) | |
137 | + | then 1 | |
138 | + | else 0)) | |
139 | + | if ((aj >= G)) | |
140 | + | then { | |
141 | + | let ak = valueOrElse(getInteger(this, d(e)), 0) | |
142 | + | let p = valueOrElse(getInteger(this, n(e)), 0) | |
143 | + | if (if ((ak != 0)) | |
144 | + | then if ((af >= (ak + ((ak * c) / 100)))) | |
145 | + | then true | |
146 | + | else ((ak - ((ak * c) / 100)) >= af) | |
147 | + | else false) | |
148 | + | then { | |
149 | + | let al = "automatic emergency shutdown because of large price variability" | |
150 | + | [BooleanEntry(w(e), true), StringEntry(x(e), toString(this)), StringEntry(y(e), al), IntegerEntry(z(height, e), af)] | |
151 | + | } | |
152 | + | else { | |
153 | + | let am = (p + 1) | |
154 | + | [IntegerEntry(d(e), af), IntegerEntry(k(e), height), IntegerEntry(l(e, height), af), IntegerEntry(n(e), am), IntegerEntry(o(e, am), height), IntegerEntry(q(e, height), am), BooleanEntry(t(e), ag)] | |
155 | + | } | |
156 | + | } | |
157 | + | else H(e, ((((((((("verificationsCount = " + toString(aj)) + "signs0.length=") + toString(size(T))) + " msg0 = ") + ah) + " sig0 = ") + toBase58String(Z)) + " key0 = ") + E[0])) | |
158 | + | } | |
159 | + | else H(e, ((("data parsing error: newPrice=" + V) + " isMarketOpened=") + W)) | |
160 | + | else H(e, ((e + " doesn't exist in group: groupDataStr=") + R)) | |
161 | + | } | |
162 | + | } | |
163 | + | ||
164 | + | ||
165 | + | @Callable(an) | |
166 | + | func finalizeDORA2 (ao,I,ap,aq,ar,as) = { | |
167 | + | let at = split(ao, a) | |
168 | + | let h = at[1] | |
169 | + | let s = at[2] | |
170 | + | let au = parseIntValue(s) | |
171 | + | let av = (64 * F) | |
172 | + | if ((height != au)) | |
173 | + | then J(s) | |
174 | + | else if (A(h, s)) | |
175 | + | then K(h, s) | |
176 | + | else if ((E[(height % F)] != toBase58String(an.callerPublicKey))) | |
177 | + | then O() | |
178 | + | else if ((size(ap) != av)) | |
179 | + | then L(0, ap) | |
180 | + | else if ((size(aq) != av)) | |
181 | + | then L(1, aq) | |
182 | + | else if ((size(ar) != av)) | |
183 | + | then L(2, ar) | |
184 | + | else if ((size(as) != av)) | |
185 | + | then L(3, as) | |
186 | + | else { | |
187 | + | let aw = g(h) | |
188 | + | let R = valueOrErrorMessage(getString(this, aw), ("empty group data for key=" + aw)) | |
189 | + | let S = split(I, a) | |
190 | + | if (((size(S) % 3) != 0)) | |
191 | + | then throw(("msg parameters count must be multiple of 3: msgArray.size=" + toString(size(I)))) | |
192 | + | else ((((Q(0, h, R, S, ap) ++ Q(1, h, R, S, aq)) ++ Q(2, h, R, S, ar)) ++ Q(3, h, R, S, as)) :+ BooleanEntry(r(h, s), true)) | |
193 | + | } | |
194 | + | } | |
195 | + | ||
196 | + |
github/deemru/w8io/169f3d6 27.33 ms ◑