tx · Fuqph3uTgyS6qgsxgT2YLKEQtKjoTsUqzhASvKXqFzjD 3N7XWpdx1UJKZp5stTtFMXPEygyfZ7j4PyC: -0.01400000 Waves 2024.05.16 17:39 [3108709] smart account 3N7XWpdx1UJKZp5stTtFMXPEygyfZ7j4PyC > SELF 0.00000000 Waves
{ "type": 13, "id": "Fuqph3uTgyS6qgsxgT2YLKEQtKjoTsUqzhASvKXqFzjD", "fee": 1400000, "feeAssetId": null, "timestamp": 1715870402784, "version": 2, "chainId": 84, "sender": "3N7XWpdx1UJKZp5stTtFMXPEygyfZ7j4PyC", "senderPublicKey": "APsCCjsKHFx7rbr1mG8Pca43pccTbH2G4FZj4keEqKJ5", "proofs": [ "ryVsBzcRnWkwG53wGFocRmdKbJQbdxA22vs3CuzsC6mqLSqQLnUtxKKZXTDKG78zEgS79S8Uzy5TkfdQKai2JZD" ], "script": "base64:BgItCAISAwoBCBIHCgUBAQERGBIHCgUBCAEIARIHCgUBEhERCBIDCgEBEgASABIAJgAHV2F2ZXNJZAIFV0FWRVMACE1pbmVyRmVlAAUAEVBheW91dEVtcHR5U3RhdHVzAAAAFVBheW91dEluaXRpYXRlZFN0YXR1cwABABVQYXlvdXRDb21wbGV0ZWRTdGF0dXMAAgASQmxvY2tzQmF0Y2hNYXhTaXplAAoAFlJlY2lwaWVudHNCYXRjaE1heFNpemUAZAAGSGVpZ2h0BQZoZWlnaHQABUFycjEwCQDMCAIAAAkAzAgCAAEJAMwIAgACCQDMCAIAAwkAzAgCAAQJAMwIAgAFCQDMCAIABgkAzAgCAAcJAMwIAgAICQDMCAIACQUDbmlsABBDb25maWdBZGRyZXNzS2V5Ag1jb25maWdBZGRyZXNzAA1MYXN0UGF5b3V0S2V5AgpsYXN0UGF5b3V0ABNNYXNzVHJhbnNmZXJGZWVzS2V5AhBtYXNzVHJhbnNmZXJGZWVzAApDaGFpbklkS2V5AgdjaGFpbklkABBEYWVtb25BZGRyZXNzS2V5Ag1kYWVtb25BZGRyZXNzABJEY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ndCBiZSBjYXN0IHRvIEFkZHJlc3MED3NpZ25lclB1YmxpY0tleQkBC3ZhbHVlT3JFbHNlAgkAnAgCBQ1jb25maWdBZGRyZXNzBRJTaWduZXJQdWJsaWNLZXlLZXkIBQJ0eA9zZW5kZXJQdWJsaWNLZXkECXB1YmxpY0tleQMJAQlpc0RlZmluZWQBBRBjb25maWdBZGRyZXNzU3RyAwMJAQlpc0RlZmluZWQBBRR1bml0c0NoYWluQWRkcmVzc1N0cgURdmFsaWRGdW5jdGlvbk5hbWUHCAUCdHgPc2VuZGVyUHVibGljS2V5BQ9zaWduZXJQdWJsaWNLZXkIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAMQTAwgFCGludm9rZVR4CWJvZHlCeXRlcwkAkQMCCAUIaW52b2tlVHgGcHJvb2ZzAAAFCXB1YmxpY0tleQQQY29uZmlnQWRkcmVzc1N0cgkAnQgCBQR0aGlzBRBDb25maWdBZGRyZXNzS2V5BA1jb25maWdBZGRyZXNzCQERQGV4dHJOYXRpdmUoMTA2MikBCQEFdmFsdWUBBRBjb25maWdBZGRyZXNzU3RyBAlwdWJsaWNLZXkDCQEJaXNEZWZpbmVkAQUQY29uZmlnQWRkcmVzc1N0cgkBC3ZhbHVlT3JFbHNlAgkAnAgCBQ1jb25maWdBZGRyZXNzBRJTaWduZXJQdWJsaWNLZXlLZXkIBQJ0eA9zZW5kZXJQdWJsaWNLZXkIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAMgTAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFCXB1YmxpY0tlee79/hQ=", "height": 3108709, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HT69Nu1VNhAkR5uYH9mDrp1tzdFvHnxWdmS1P9d5awwS Next: Bw3dyDDD8Uefsw52sC2yRSTsi3KPZdjV7YjWfvZWETL6 Diff:
Old | New | Differences | |
---|---|---|---|
377 | 377 | else if ($isInstanceOf(bi, "InvokeScriptTransaction")) | |
378 | 378 | then { | |
379 | 379 | let bm = bi | |
380 | - | let bn = if (if ((bm.function == "extendMainChain")) | |
380 | + | let bn = if (if (if ((bm.function == "extendMainChain")) | |
381 | + | then true | |
382 | + | else (bm.function == "appendBlock")) | |
381 | 383 | then true | |
382 | 384 | else (bm.function == "startAltChain")) | |
383 | 385 | then true |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "WAVES" | |
5 | 5 | ||
6 | 6 | let b = 5 | |
7 | 7 | ||
8 | 8 | let c = 0 | |
9 | 9 | ||
10 | 10 | let d = 1 | |
11 | 11 | ||
12 | 12 | let e = 2 | |
13 | 13 | ||
14 | 14 | let f = 10 | |
15 | 15 | ||
16 | 16 | let g = 100 | |
17 | 17 | ||
18 | 18 | let h = height | |
19 | 19 | ||
20 | 20 | let i = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
21 | 21 | ||
22 | 22 | let j = "configAddress" | |
23 | 23 | ||
24 | 24 | let k = "lastPayout" | |
25 | 25 | ||
26 | 26 | let l = "massTransferFees" | |
27 | 27 | ||
28 | 28 | let m = "chainId" | |
29 | 29 | ||
30 | 30 | let n = "daemonAddress" | |
31 | 31 | ||
32 | 32 | let o = "daemonPublicKey" | |
33 | 33 | ||
34 | 34 | let p = "maintainerAddress" | |
35 | 35 | ||
36 | 36 | let q = "puzzleAggregatorAddress" | |
37 | 37 | ||
38 | 38 | let r = "puzzleBuybackAddress" | |
39 | 39 | ||
40 | 40 | let s = "settingsAddress" | |
41 | 41 | ||
42 | 42 | let t = "signerPublicKey" | |
43 | 43 | ||
44 | 44 | let u = "wavesDaoFactoryAddress" | |
45 | 45 | ||
46 | 46 | let v = addressFromStringValue(getStringValue(this, j)) | |
47 | 47 | ||
48 | 48 | let w = getIntegerValue(v, m) | |
49 | 49 | ||
50 | 50 | let x = addressFromStringValue(getStringValue(v, n)) | |
51 | 51 | ||
52 | 52 | let y = getBinaryValue(v, o) | |
53 | 53 | ||
54 | 54 | let z = addressFromStringValue(getStringValue(v, p)) | |
55 | 55 | ||
56 | 56 | let A = addressFromStringValue(getStringValue(v, q)) | |
57 | 57 | ||
58 | 58 | let B = addressFromStringValue(getStringValue(v, r)) | |
59 | 59 | ||
60 | 60 | let C = addressFromStringValue(getStringValue(v, s)) | |
61 | 61 | ||
62 | 62 | let D = getBinary(v, t) | |
63 | 63 | ||
64 | 64 | let E = addressFromStringValue(getStringValue(v, u)) | |
65 | 65 | ||
66 | 66 | func F (G) = ("payoutData_" + toString(G)) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func H (G) = ("payoutStatus_" + toString(G)) | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func I (G) = ("payoutAdditionalRewards_" + toString(G)) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func J () = getIntegerValue(this, k) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func K (G) = { | |
79 | 79 | let L = getStringValue(F(G)) | |
80 | 80 | let M = split(L, "_") | |
81 | 81 | let N = parseIntValue(M[0]) | |
82 | 82 | let O = parseIntValue(M[1]) | |
83 | 83 | $Tuple2(N, O) | |
84 | 84 | } | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func P (G) = valueOrElse(getInteger(H(G)), c) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func Q (G) = valueOrElse(getInteger(I(G)), 0) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | @Callable(R) | |
94 | 94 | func setup (S) = if ((R.caller != this)) | |
95 | 95 | then throw("Access denied") | |
96 | 96 | else if ((size(R.payments) != 0)) | |
97 | 97 | then throw("Payments are prohibited") | |
98 | 98 | else if ((addressFromString(S) == unit)) | |
99 | 99 | then throw(("Invalid configAddress: " + S)) | |
100 | 100 | else [StringEntry(j, S)] | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | ||
104 | 104 | @Callable(R) | |
105 | 105 | func initiatePayout (G,N,O,T,U) = if ((R.caller != x)) | |
106 | 106 | then throw("Access denied") | |
107 | 107 | else if ((size(R.payments) != 0)) | |
108 | 108 | then throw("Payments are prohibited") | |
109 | 109 | else { | |
110 | 110 | let V = J() | |
111 | 111 | if ((G != (V + 1))) | |
112 | 112 | then throw(((("Wrong payoutId: " + toString(G)) + ", should be: ") + toString((V + 1)))) | |
113 | 113 | else { | |
114 | 114 | let W = P(V) | |
115 | 115 | if ((W != e)) | |
116 | 116 | then throw((("Last payout: " + toString(V)) + " was not completed")) | |
117 | 117 | else { | |
118 | 118 | let X = K(V) | |
119 | 119 | let Y = X._1 | |
120 | 120 | let Z = X._2 | |
121 | 121 | if ((N != (Z + 1))) | |
122 | 122 | then throw(((("Wrong startHeight: " + toString(N)) + ", should be: ") + toString((Z + 1)))) | |
123 | 123 | else if ((N > O)) | |
124 | 124 | then throw(((("endHeight: " + toString(O)) + " less than startHeight: ") + toString(N))) | |
125 | 125 | else { | |
126 | 126 | let aa = getIntegerValue(C, "inputsQuantity") | |
127 | 127 | let ab = size(T) | |
128 | 128 | let ac = size(U) | |
129 | 129 | if (if ((ab != ac)) | |
130 | 130 | then true | |
131 | 131 | else (ab != aa)) | |
132 | 132 | then throw("Wrong size of amounts or assets") | |
133 | 133 | else { | |
134 | 134 | let ad = valueOrElse(getInteger(E, ("%s%s__available__" + toString(this))), 0) | |
135 | 135 | let ae = getIntegerValue(E, "%s__nextBlockToProcess") | |
136 | 136 | let af = if (if ((ad > 0)) | |
137 | 137 | then ((ae + f) >= h) | |
138 | 138 | else false) | |
139 | 139 | then invoke(E, "claimLP", nil, nil) | |
140 | 140 | else unit | |
141 | 141 | if ((af == af)) | |
142 | 142 | then { | |
143 | 143 | let ag = Q(G) | |
144 | 144 | func ah (ai,aj) = if ((aj >= ac)) | |
145 | 145 | then ai | |
146 | 146 | else { | |
147 | 147 | let ak = U[aj] | |
148 | 148 | if ((getInteger(C, ("inputAssetIndex_" + ak)) == unit)) | |
149 | 149 | then throw(("Unknown input: " + ak)) | |
150 | 150 | else { | |
151 | 151 | let al = if ((ak == a)) | |
152 | 152 | then $Tuple2(unit, (T[aj] + ag)) | |
153 | 153 | else $Tuple2(fromBase58String(ak), T[aj]) | |
154 | 154 | let am = al._1 | |
155 | 155 | let an = al._2 | |
156 | 156 | if ((0 > an)) | |
157 | 157 | then throw((("Wrong asset amount: " + toString(an)) + ", should be positive or zero")) | |
158 | 158 | else { | |
159 | 159 | let ao = fraction(an, b, 100) | |
160 | 160 | let ap = (ao / 2) | |
161 | 161 | let aq = (ao - ap) | |
162 | 162 | let ar = ((an - ap) - aq) | |
163 | 163 | $Tuple2(((ai._1 :+ ScriptTransfer(z, ap, am)) :+ ScriptTransfer(B, aq, am)), (ai._2 :+ toString(ar))) | |
164 | 164 | } | |
165 | 165 | } | |
166 | 166 | } | |
167 | 167 | ||
168 | 168 | let as = { | |
169 | 169 | let at = i | |
170 | 170 | let au = size(at) | |
171 | 171 | let av = $Tuple2(nil, nil) | |
172 | 172 | func aw (ax,ay) = if ((ay >= au)) | |
173 | 173 | then ax | |
174 | 174 | else ah(ax, at[ay]) | |
175 | 175 | ||
176 | 176 | func az (ax,ay) = if ((ay >= au)) | |
177 | 177 | then ax | |
178 | 178 | else throw("List size exceeds 10") | |
179 | 179 | ||
180 | 180 | az(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(av, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
181 | 181 | } | |
182 | 182 | let aA = as._1 | |
183 | 183 | let aB = as._2 | |
184 | 184 | let aC = makeString(([toString(N), toString(O)] ++ aB), "_") | |
185 | 185 | (aA ++ [IntegerEntry(k, G), StringEntry(F(G), aC), IntegerEntry(H(G), d)]) | |
186 | 186 | } | |
187 | 187 | else throw("Strict value is not equal to itself.") | |
188 | 188 | } | |
189 | 189 | } | |
190 | 190 | } | |
191 | 191 | } | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | ||
196 | 196 | @Callable(R) | |
197 | 197 | func swap (G,aD,aE,aF,aG) = if ((R.caller != x)) | |
198 | 198 | then throw("Access denied") | |
199 | 199 | else if ((size(R.payments) != 0)) | |
200 | 200 | then throw("Payments are prohibited") | |
201 | 201 | else { | |
202 | 202 | let V = J() | |
203 | 203 | if ((V != G)) | |
204 | 204 | then throw(((("Wrong payoutId: " + toString(G)) + ", should be: ") + toString(V))) | |
205 | 205 | else { | |
206 | 206 | let aH = P(G) | |
207 | 207 | if ((aH != d)) | |
208 | 208 | then throw((("Wrong payout status: " + toString(aH)) + ", should be 1")) | |
209 | 209 | else { | |
210 | 210 | let aI = if ((aD == a)) | |
211 | 211 | then $Tuple2(wavesBalance(this).available, unit) | |
212 | 212 | else { | |
213 | 213 | let aJ = fromBase58String(aD) | |
214 | 214 | $Tuple2(assetBalance(this, aJ), aJ) | |
215 | 215 | } | |
216 | 216 | let aK = aI._1 | |
217 | 217 | let aL = aI._2 | |
218 | 218 | let aM = invoke(A, "swapWithReferral", [aF, aG, "puzzlenode"], [AttachedPayment(aL, aE)]) | |
219 | 219 | if ((aM == aM)) | |
220 | 220 | then { | |
221 | 221 | let aN = if ((aD == a)) | |
222 | 222 | then wavesBalance(this).available | |
223 | 223 | else assetBalance(this, value(aL)) | |
224 | 224 | let aO = (aN - (aK - aE)) | |
225 | 225 | if ((aO > 10)) | |
226 | 226 | then throw(("Rollback aggregator refund: " + toString(aO))) | |
227 | 227 | else nil | |
228 | 228 | } | |
229 | 229 | else throw("Strict value is not equal to itself.") | |
230 | 230 | } | |
231 | 231 | } | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | ||
236 | 236 | @Callable(R) | |
237 | 237 | func distributeTokens (G,aP,T,U,aQ) = if ((R.caller != x)) | |
238 | 238 | then throw("Access denied") | |
239 | 239 | else if ((size(R.payments) != 0)) | |
240 | 240 | then throw("Payments are prohibited") | |
241 | 241 | else { | |
242 | 242 | let V = J() | |
243 | 243 | if ((V != G)) | |
244 | 244 | then throw(((("Wrong payoutId: " + toString(G)) + ", should be: ") + toString(V))) | |
245 | 245 | else { | |
246 | 246 | let aH = P(G) | |
247 | 247 | if ((aH != d)) | |
248 | 248 | then throw((("Wrong payout status: " + toString(aH)) + ", should be 1")) | |
249 | 249 | else { | |
250 | 250 | let aR = size(aP) | |
251 | 251 | let ab = size(T) | |
252 | 252 | let ac = size(U) | |
253 | 253 | if (if ((aR != ab)) | |
254 | 254 | then true | |
255 | 255 | else (aR != ac)) | |
256 | 256 | then throw(((((("Wrong recipients size: " + toString(aR)) + ", amounts size: ") + toString(ab)) + ", assets size: ") + toString(ac))) | |
257 | 257 | else if ((aR == 0)) | |
258 | 258 | then throw("Recipients list should not be empty") | |
259 | 259 | else if ((aR > g)) | |
260 | 260 | then throw(((("Should be not greater than " + toString(g)) + " recipients, current: ") + toString(aR))) | |
261 | 261 | else { | |
262 | 262 | let aS = drop(toBytes(1), 7) | |
263 | 263 | let aT = drop(toBytes(w), 7) | |
264 | 264 | let aU = (aS + aT) | |
265 | 265 | func aV (ai,aj) = if ((aj >= aR)) | |
266 | 266 | then ai | |
267 | 267 | else { | |
268 | 268 | let aW = aP[aj] | |
269 | 269 | let aX = (aU + aW) | |
270 | 270 | let aY = take(keccak256(blake2b256(aX)), 4) | |
271 | 271 | let aZ = Address((aX + aY)) | |
272 | 272 | let an = T[aj] | |
273 | 273 | let ba = U[aj] | |
274 | 274 | let aJ = getBinaryValue(C, ("assetId_" + toString(ba))) | |
275 | 275 | let am = if ((aJ == base58'')) | |
276 | 276 | then unit | |
277 | 277 | else aJ | |
278 | 278 | (ai :+ ScriptTransfer(aZ, an, am)) | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | let bb = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99] | |
282 | 282 | let at = bb | |
283 | 283 | let au = size(at) | |
284 | 284 | let av = nil | |
285 | 285 | func aw (ax,ay) = if ((ay >= au)) | |
286 | 286 | then ax | |
287 | 287 | else aV(ax, at[ay]) | |
288 | 288 | ||
289 | 289 | func az (ax,ay) = if ((ay >= au)) | |
290 | 290 | then ax | |
291 | 291 | else throw("List size exceeds 100") | |
292 | 292 | ||
293 | 293 | az(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(aw(av, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
294 | 294 | } | |
295 | 295 | } | |
296 | 296 | } | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | ||
301 | 301 | @Callable(R) | |
302 | 302 | func finalizePayout (G) = if ((R.caller != x)) | |
303 | 303 | then throw("Access denied") | |
304 | 304 | else { | |
305 | 305 | let V = J() | |
306 | 306 | if ((V != G)) | |
307 | 307 | then throw(((("Wrong payoutId: " + toString(G)) + ", should be: ") + toString(V))) | |
308 | 308 | else { | |
309 | 309 | let aH = P(V) | |
310 | 310 | if ((aH != d)) | |
311 | 311 | then throw((("Wrong payout status: " + toString(aH)) + ", should be: 1")) | |
312 | 312 | else [IntegerEntry(H(V), e)] | |
313 | 313 | } | |
314 | 314 | } | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | ||
318 | 318 | @Callable(R) | |
319 | 319 | func addAdditionalRewards () = if ((size(R.payments) != 1)) | |
320 | 320 | then throw("At least one payment should be attached") | |
321 | 321 | else if ((R.payments[0].assetId != unit)) | |
322 | 322 | then throw("Only waves can be attached") | |
323 | 323 | else { | |
324 | 324 | let V = J() | |
325 | 325 | let W = P(V) | |
326 | 326 | if ((W != e)) | |
327 | 327 | then throw((("Last payout: " + toString(V)) + " was not completed")) | |
328 | 328 | else { | |
329 | 329 | let bc = (V + 1) | |
330 | 330 | let ag = Q(bc) | |
331 | 331 | let bd = (ag + R.payments[0].amount) | |
332 | 332 | [IntegerEntry(I(bc), bd)] | |
333 | 333 | } | |
334 | 334 | } | |
335 | 335 | ||
336 | 336 | ||
337 | 337 | ||
338 | 338 | @Callable(R) | |
339 | 339 | func addMassTransferFees () = if ((size(R.payments) != 1)) | |
340 | 340 | then throw("At least one payment should be attached") | |
341 | 341 | else if ((R.payments[0].assetId != unit)) | |
342 | 342 | then throw("Only waves can be attached") | |
343 | 343 | else { | |
344 | 344 | let be = valueOrElse(getInteger(l), 0) | |
345 | 345 | let bf = (be + R.payments[0].amount) | |
346 | 346 | [IntegerEntry(l, bf)] | |
347 | 347 | } | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | ||
351 | 351 | @Callable(R) | |
352 | 352 | func withdrawMassTransferFees () = if ((R.caller != z)) | |
353 | 353 | then throw("Access denied") | |
354 | 354 | else if ((size(R.payments) != 0)) | |
355 | 355 | then throw("Payments are prohibited") | |
356 | 356 | else { | |
357 | 357 | let be = valueOrElse(getInteger(l), 0) | |
358 | 358 | if ((be == 0)) | |
359 | 359 | then throw("Nothing to withdraw") | |
360 | 360 | else [IntegerEntry(l, 0), ScriptTransfer(z, be, unit)] | |
361 | 361 | } | |
362 | 362 | ||
363 | 363 | ||
364 | 364 | @Verifier(bg) | |
365 | 365 | func bh () = { | |
366 | 366 | let bi = bg | |
367 | 367 | if ($isInstanceOf(bi, "MassTransferTransaction")) | |
368 | 368 | then { | |
369 | 369 | let bj = bi | |
370 | 370 | let bk = getString(this, j) | |
371 | 371 | let S = addressFromStringValue(value(bk)) | |
372 | 372 | let bl = if (isDefined(bk)) | |
373 | 373 | then valueOrElse(getBinary(S, o), bg.senderPublicKey) | |
374 | 374 | else bg.senderPublicKey | |
375 | 375 | sigVerify_8Kb(bj.bodyBytes, bj.proofs[0], bl) | |
376 | 376 | } | |
377 | 377 | else if ($isInstanceOf(bi, "InvokeScriptTransaction")) | |
378 | 378 | then { | |
379 | 379 | let bm = bi | |
380 | - | let bn = if (if ((bm.function == "extendMainChain")) | |
380 | + | let bn = if (if (if ((bm.function == "extendMainChain")) | |
381 | + | then true | |
382 | + | else (bm.function == "appendBlock")) | |
381 | 383 | then true | |
382 | 384 | else (bm.function == "startAltChain")) | |
383 | 385 | then true | |
384 | 386 | else (bm.function == "extendAltChain") | |
385 | 387 | let bk = getString(this, j) | |
386 | 388 | let S = addressFromStringValue(value(bk)) | |
387 | 389 | let bo = getString(S, ("unitsChain_" + toString({ | |
388 | 390 | let bp = bm.dApp | |
389 | 391 | if ($isInstanceOf(bp, "Address")) | |
390 | 392 | then bp | |
391 | 393 | else throw(($getType(bp) + " couldn't be cast to Address")) | |
392 | 394 | }))) | |
393 | 395 | let bq = valueOrElse(getBinary(S, t), bg.senderPublicKey) | |
394 | 396 | let bl = if (isDefined(bk)) | |
395 | 397 | then if (if (isDefined(bo)) | |
396 | 398 | then bn | |
397 | 399 | else false) | |
398 | 400 | then bg.senderPublicKey | |
399 | 401 | else bq | |
400 | 402 | else bg.senderPublicKey | |
401 | 403 | sigVerify_8Kb(bm.bodyBytes, bm.proofs[0], bl) | |
402 | 404 | } | |
403 | 405 | else { | |
404 | 406 | let bk = getString(this, j) | |
405 | 407 | let S = addressFromStringValue(value(bk)) | |
406 | 408 | let bl = if (isDefined(bk)) | |
407 | 409 | then valueOrElse(getBinary(S, t), bg.senderPublicKey) | |
408 | 410 | else bg.senderPublicKey | |
409 | 411 | sigVerify_128Kb(bg.bodyBytes, bg.proofs[0], bl) | |
410 | 412 | } | |
411 | 413 | } | |
412 | 414 |
github/deemru/w8io/026f985 49.70 ms ◑