tx · AFjVDxvJoiBdik8pa3osy9RKLfkpxoQcGqCsrACEssNh 3N1H9u5NsaU81rjvRAu949SMRGyFz6vqaZC: -0.04300000 Waves 2024.10.28 14:59 [3346696] smart account 3N1H9u5NsaU81rjvRAu949SMRGyFz6vqaZC > SELF 0.00000000 Waves
{ "type": 13, "id": "AFjVDxvJoiBdik8pa3osy9RKLfkpxoQcGqCsrACEssNh", "fee": 4300000, "feeAssetId": null, "timestamp": 1730116759774, "version": 2, "chainId": 84, "sender": "3N1H9u5NsaU81rjvRAu949SMRGyFz6vqaZC", "senderPublicKey": "9aTD84jf1ceby2KXs5yiVosaXECPUxd4Gs3roy4Yncos", "proofs": [ "2i2K4dv3XKMNWjyMLLuHzEEfHADPfSXXHLpBBN9zw1BRw5R2UX7YY6WP127TBXCYiHHU7pkdqYaKu8XPfUmuT9DV" ], "script": "base64:CAJCCAISBwoFCAgCCAESBwoFCAgCCAESCAoGCAgCAQgBEgYKBAgICAESAwoBCBIAEgMKAQgSBgoECBIBARIGCgQIAQgBTQAHSU5UX01BWAD//////////38ABVdBVkVTAIDC1y8AC01JTl9CQUxBTkNFCQBoAgCgnAEFBVdBVkVTAANTRVACASwAD0JMT0NLX0hBU0hfU0laRQAgABRQVUJMSUNfS0VZX0hBU0hfU0laRQAUAA5ST09UX0hBU0hfU0laRQAgABRXSVRIRFJBV19QUk9PRlNfU0laRQAKABRFVEhfQUREUkVTU19TVFJfU0laRQAoABZNQVhfQ0xfVE9fRUxfVFJBTlNGRVJTABAACXplcm9lc1N0cgKACDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA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1MgkAxhMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgEgPA+xIPa5y2eYDRZkHtToAfEwx+9Smn8cRUfuiEo1fFIDBQJ1MAMFAnUxBgUCdTIDBQJ1MQUCdTIHfLPzcw==", "height": 3346696, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 8 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let INT_MAX = 9223372036854775807 | |
5 | + | ||
6 | + | let WAVES = 100000000 | |
7 | + | ||
8 | + | let MIN_BALANCE = (20000 * WAVES) | |
9 | + | ||
10 | + | let SEP = "," | |
11 | + | ||
12 | + | let BLOCK_HASH_SIZE = 32 | |
13 | + | ||
14 | + | let PUBLIC_KEY_HASH_SIZE = 20 | |
15 | + | ||
16 | + | let ROOT_HASH_SIZE = 32 | |
17 | + | ||
18 | + | let WITHDRAW_PROOFS_SIZE = 10 | |
19 | + | ||
20 | + | let ETH_ADDRESS_STR_SIZE = 40 | |
21 | + | ||
22 | + | let MAX_CL_TO_EL_TRANSFERS = 16 | |
23 | + | ||
24 | + | let zeroesStr = "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" | |
25 | + | ||
26 | + | let offsets_100 = split_4C("::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::", "") | |
27 | + | ||
28 | + | let allMinersKey = "allMiners" | |
29 | + | ||
30 | + | let mainChainIdKey = "mainChainId" | |
31 | + | ||
32 | + | let lastChainIdKey = "lastChainId" | |
33 | + | ||
34 | + | let firstValidAltChainIdKey = "firstValidAltChainId" | |
35 | + | ||
36 | + | let minerRewardKey = "minerReward" | |
37 | + | ||
38 | + | let blockMetaK = "block_0x" | |
39 | + | ||
40 | + | let finalizedBlockKey = "finalizedBlock" | |
41 | + | ||
42 | + | let tokenIdKey = "tokenId" | |
43 | + | ||
44 | + | let elBridgeAddressKey = "elBridgeAddress" | |
45 | + | ||
46 | + | let nativeTransfersCountKey = "nativeTransfersCount" | |
47 | + | ||
48 | + | let daoAddressKey = "daoAddress" | |
49 | + | ||
50 | + | let daoRewardKey = "daoReward" | |
51 | + | ||
52 | + | func pad (i) = { | |
53 | + | let s = toString(i) | |
54 | + | match size(s) { | |
55 | + | case _ => | |
56 | + | if ((1 == $match0)) | |
57 | + | then ("0000000" + s) | |
58 | + | else if ((2 == $match0)) | |
59 | + | then ("000000" + s) | |
60 | + | else if ((3 == $match0)) | |
61 | + | then ("00000" + s) | |
62 | + | else if ((4 == $match0)) | |
63 | + | then ("0000" + s) | |
64 | + | else if ((5 == $match0)) | |
65 | + | then ("000" + s) | |
66 | + | else if ((6 == $match0)) | |
67 | + | then ("00" + s) | |
68 | + | else if ((7 == $match0)) | |
69 | + | then ("0" + s) | |
70 | + | else s | |
71 | + | } | |
72 | + | } | |
73 | + | ||
74 | + | ||
75 | + | func blockE2CTransfersKey (blockHashHex) = ("elToClTransfers_0x" + blockHashHex) | |
76 | + | ||
77 | + | ||
78 | + | func epochMetaKey (epoch) = ("epoch_" + pad(epoch)) | |
79 | + | ||
80 | + | ||
81 | + | func chainFirstBlockIdKey (chainId) = (("chain" + toString(chainId)) + "FirstBlock") | |
82 | + | ||
83 | + | ||
84 | + | func chainMetaKey (chainId) = ("chain_" + pad(chainId)) | |
85 | + | ||
86 | + | ||
87 | + | func chainLastHeightKey (chainId,miner) = ((("chain_" + pad(chainId)) + "_") + toString(miner)) | |
88 | + | ||
89 | + | ||
90 | + | func chainForkedHeightKey (chainId) = (("chain_" + pad(chainId)) + "ForkedHeight") | |
91 | + | ||
92 | + | ||
93 | + | func supportersKey (chainId) = (("chain" + toString(chainId)) + "Supporters") | |
94 | + | ||
95 | + | ||
96 | + | func minerRewardAddressKey (minerAddr) = (("miner_" + minerAddr) + "_RewardAddress") | |
97 | + | ||
98 | + | ||
99 | + | func minerPkKey (rewardAddress) = (("miner_0x" + rewardAddress) + "_PK") | |
100 | + | ||
101 | + | ||
102 | + | func minerChainIdKey (miner) = (("miner_" + toString(miner)) + "_ChainId") | |
103 | + | ||
104 | + | ||
105 | + | let nativeTransfersCount = valueOrElse(getInteger(this, nativeTransfersCountKey), 0) | |
106 | + | ||
107 | + | func nativeTransferKey (index) = ("nativeTransfer_" + toString(index)) | |
108 | + | ||
109 | + | ||
110 | + | func mkNativeTransferEntry (index,destElAddressHex,amount) = StringEntry(nativeTransferKey(index), ((("0x" + destElAddressHex) + SEP) + toString(amount))) | |
111 | + | ||
112 | + | ||
113 | + | func ensureCorrectTransfers (refTransferIndex,transferIndex,expectReward) = { | |
114 | + | let maxTransfers = if (expectReward) | |
115 | + | then (MAX_CL_TO_EL_TRANSFERS - 1) | |
116 | + | else MAX_CL_TO_EL_TRANSFERS | |
117 | + | let actualTransfers = (transferIndex - refTransferIndex) | |
118 | + | let checkNumber = if ((actualTransfers > maxTransfers)) | |
119 | + | then throw(((("Allowed only " + toString(maxTransfers)) + " transfers, got ") + toString(actualTransfers))) | |
120 | + | else true | |
121 | + | if ((checkNumber == checkNumber)) | |
122 | + | then if ((transferIndex >= nativeTransfersCount)) | |
123 | + | then throw(((("Attempt to transfer #" + toString(transferIndex)) + ". Available transfers: ") + toString(nativeTransfersCount))) | |
124 | + | else true | |
125 | + | else throw("Strict value is not equal to itself.") | |
126 | + | } | |
127 | + | ||
128 | + | ||
129 | + | func amountGtEq (t,gtEq,queueSize) = if ((t.amount >= gtEq)) | |
130 | + | then true | |
131 | + | else throw((((((("Transferring amount " + toString(t.amount)) + " should be >= ") + toString(gtEq)) + " for queue size of ") + toString(queueSize)) + ". Transfer more or wait")) | |
132 | + | ||
133 | + | ||
134 | + | func generatingBalance (address) = wavesBalance(address).generating | |
135 | + | ||
136 | + | ||
137 | + | func chainMeta (chainId) = { | |
138 | + | let s = getStringValue(chainMetaKey(chainId)) | |
139 | + | let items = split(s, SEP) | |
140 | + | $Tuple2(parseIntValue(items[0]), items[1]) | |
141 | + | } | |
142 | + | ||
143 | + | ||
144 | + | func mkChainMetaEntry (chainId,newChainHeight,blockHashHex) = StringEntry(chainMetaKey(chainId), ((toString(newChainHeight) + SEP) + blockHashHex)) | |
145 | + | ||
146 | + | ||
147 | + | let mainChainId = valueOrElse(getInteger(mainChainIdKey), 0) | |
148 | + | ||
149 | + | let $t052495315 = chainMeta(mainChainId) | |
150 | + | ||
151 | + | let mainChainHeight = $t052495315._1 | |
152 | + | ||
153 | + | let mainChainLastBlock = $t052495315._2 | |
154 | + | ||
155 | + | func epochMeta (epoch) = match getString(epochMetaKey(epoch)) { | |
156 | + | case s: String => | |
157 | + | let fragments = split(s, SEP) | |
158 | + | $Tuple3(addressFromStringValue(fragments[0]), parseIntValue(fragments[1]), fragments[2]) | |
159 | + | case _ => | |
160 | + | unit | |
161 | + | } | |
162 | + | ||
163 | + | ||
164 | + | let $t055465670 = match epochMeta(height) { | |
165 | + | case m: (Address, Int, String) => | |
166 | + | m | |
167 | + | case _ => | |
168 | + | $Tuple2(unit, 0) | |
169 | + | } | |
170 | + | ||
171 | + | let thisEpochMiner = $t055465670._1 | |
172 | + | ||
173 | + | let thisEpochRef = $t055465670._2 | |
174 | + | ||
175 | + | let allMinersStr = valueOrElse(getString(allMinersKey), "") | |
176 | + | ||
177 | + | let allMiners = match allMinersStr { | |
178 | + | case _ => | |
179 | + | if (("" == $match0)) | |
180 | + | then nil | |
181 | + | else if ($isInstanceOf($match0, "String")) | |
182 | + | then { | |
183 | + | let raw = $match0 | |
184 | + | split_4C(raw, SEP) | |
185 | + | } | |
186 | + | else throw("Match error") | |
187 | + | } | |
188 | + | ||
189 | + | func blockMeta (blockId) = { | |
190 | + | let meta = getBinaryValue((blockMetaK + blockId)) | |
191 | + | let metaSize = size(meta) | |
192 | + | let blockHeight = toInt(meta) | |
193 | + | let blockEpoch = toInt(meta, 8) | |
194 | + | let blockParent = take(drop(meta, 16), BLOCK_HASH_SIZE) | |
195 | + | let chainId = toInt(meta, (16 + BLOCK_HASH_SIZE)) | |
196 | + | let baseOffset = (24 + BLOCK_HASH_SIZE) | |
197 | + | let remainingBytes = (metaSize - baseOffset) | |
198 | + | let e2cTransfersRootHash = if ((remainingBytes >= ROOT_HASH_SIZE)) | |
199 | + | then take(drop(meta, baseOffset), ROOT_HASH_SIZE) | |
200 | + | else base58'' | |
201 | + | let lastC2ETransferIndex = if (if ((remainingBytes == 8)) | |
202 | + | then true | |
203 | + | else (remainingBytes > ROOT_HASH_SIZE)) | |
204 | + | then toInt(meta, (baseOffset + size(e2cTransfersRootHash))) | |
205 | + | else -1 | |
206 | + | $Tuple6(blockHeight, blockEpoch, blockParent, chainId, e2cTransfersRootHash, lastC2ETransferIndex) | |
207 | + | } | |
208 | + | ||
209 | + | ||
210 | + | func mkBlockMetaEntry (blockHashHex,blockHeight,blockParentHex,chainId,e2cTransfersRootHashHex,lastC2ETransferIndex) = { | |
211 | + | let e2cTransfersRootHashBytes = fromBase16String(e2cTransfersRootHashHex) | |
212 | + | let rootHashBytesSize = size(e2cTransfersRootHashBytes) | |
213 | + | let checkRootHash = if (if ((rootHashBytesSize == 0)) | |
214 | + | then true | |
215 | + | else (rootHashBytesSize == ROOT_HASH_SIZE)) | |
216 | + | then true | |
217 | + | else throw(((("Transfers root hash should have 0 or " + toString(ROOT_HASH_SIZE)) + " bytes, got ") + toString(rootHashBytesSize))) | |
218 | + | if ((checkRootHash == checkRootHash)) | |
219 | + | then { | |
220 | + | let blockMetaBytes = (((((toBytes(blockHeight) + toBytes(height)) + fromBase16String(blockParentHex)) + toBytes(chainId)) + e2cTransfersRootHashBytes) + toBytes(lastC2ETransferIndex)) | |
221 | + | BinaryEntry((blockMetaK + blockHashHex), blockMetaBytes) | |
222 | + | } | |
223 | + | else throw("Strict value is not equal to itself.") | |
224 | + | } | |
225 | + | ||
226 | + | ||
227 | + | func lastHeightBy (miner,chainId) = match getInteger(chainLastHeightKey(chainId, miner)) { | |
228 | + | case h: Int => | |
229 | + | h | |
230 | + | case _ => | |
231 | + | let blockHash = getStringValue(((("chain" + toString(chainId)) + "LastMinedBy") + toString(miner))) | |
232 | + | blockMeta(blockHash)._1 | |
233 | + | } | |
234 | + | ||
235 | + | ||
236 | + | let $t077108645 = { | |
237 | + | let hitSource = match lastBlock.vrf { | |
238 | + | case vrf: ByteVector => | |
239 | + | vrf | |
240 | + | case _ => | |
241 | + | lastBlock.generationSignature | |
242 | + | } | |
243 | + | func processMiner (prev,miner) = { | |
244 | + | let $t079778040 = prev | |
245 | + | let prevMiner = $t079778040._1 | |
246 | + | let prevTotalBalance = $t079778040._2 | |
247 | + | let prevDelay = $t079778040._3 | |
248 | + | let prevMiners = $t079778040._4 | |
249 | + | let minerAddress = addressFromStringValue(miner) | |
250 | + | let wavesGenBalance = wavesBalance(minerAddress).generating | |
251 | + | let minerBalance = generatingBalance(minerAddress) | |
252 | + | if (if ((MIN_BALANCE > wavesGenBalance)) | |
253 | + | then true | |
254 | + | else (0 >= minerBalance)) | |
255 | + | then prev | |
256 | + | else { | |
257 | + | let nextDelay = calculateDelay(minerAddress, minerBalance) | |
258 | + | if ((prevDelay > nextDelay)) | |
259 | + | then $Tuple4(miner, (prevTotalBalance + minerBalance), nextDelay, (prevMiners :+ miner)) | |
260 | + | else $Tuple4(prevMiner, (prevTotalBalance + minerBalance), prevDelay, (prevMiners :+ miner)) | |
261 | + | } | |
262 | + | } | |
263 | + | ||
264 | + | let $l = allMiners | |
265 | + | let $s = size($l) | |
266 | + | let $acc0 = $Tuple4("", 0, INT_MAX, nil) | |
267 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
268 | + | then $a | |
269 | + | else processMiner($a, $l[$i]) | |
270 | + | ||
271 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
272 | + | then $a | |
273 | + | else throw("List size exceeds 50") | |
274 | + | ||
275 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
276 | + | } | |
277 | + | ||
278 | + | let computedGenerator = $t077108645._1 | |
279 | + | ||
280 | + | let computedTotalBalance = $t077108645._2 | |
281 | + | ||
282 | + | let $t086478713 = blockMeta(mainChainLastBlock) | |
283 | + | ||
284 | + | let mclbIgnored1 = $t086478713._1 | |
285 | + | ||
286 | + | let mainChainEpoch = $t086478713._2 | |
287 | + | ||
288 | + | func calculateFinalizedBlockHashAndEpoch (curMiner,curPrevEpoch,curLastBlockHash) = { | |
289 | + | let halfBalance = (computedTotalBalance / 2) | |
290 | + | func step (prev,next) = { | |
291 | + | let $t089519024 = prev | |
292 | + | let thisEpoch = $t089519024._1 | |
293 | + | let maybeFinalizedBlockHash = $t089519024._2 | |
294 | + | let totalBalance = $t089519024._3 | |
295 | + | let prevMiners = $t089519024._4 | |
296 | + | match maybeFinalizedBlockHash { | |
297 | + | case _: Unit => | |
298 | + | let $t090919257 = if ((thisEpoch == height)) | |
299 | + | then $Tuple3(curMiner, curPrevEpoch, curLastBlockHash) | |
300 | + | else value(epochMeta(thisEpoch)) | |
301 | + | let miner = $t090919257._1 | |
302 | + | let prevEpoch = $t090919257._2 | |
303 | + | let lastBlockHash = $t090919257._3 | |
304 | + | if (if ((prevEpoch == 0)) | |
305 | + | then true | |
306 | + | else ((height - thisEpoch) >= 100)) | |
307 | + | then $Tuple4(thisEpoch, lastBlockHash, totalBalance, allMiners) | |
308 | + | else { | |
309 | + | let $t094119613 = if (containsElement(prevMiners, miner)) | |
310 | + | then $Tuple2(totalBalance, prevMiners) | |
311 | + | else $Tuple2((totalBalance + generatingBalance(miner)), miner :: prevMiners) | |
312 | + | let newTotalBalance = $t094119613._1 | |
313 | + | let newMiners = $t094119613._2 | |
314 | + | if ((newTotalBalance > halfBalance)) | |
315 | + | then $Tuple4(thisEpoch, lastBlockHash, newTotalBalance, allMiners) | |
316 | + | else $Tuple4(prevEpoch, unit, newTotalBalance, newMiners) | |
317 | + | } | |
318 | + | case _ => | |
319 | + | prev | |
320 | + | } | |
321 | + | } | |
322 | + | ||
323 | + | let $t098469943 = { | |
324 | + | let $l = offsets_100 | |
325 | + | let $s = size($l) | |
326 | + | let $acc0 = $Tuple4(height, unit, 0, nil) | |
327 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
328 | + | then $a | |
329 | + | else step($a, $l[$i]) | |
330 | + | ||
331 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
332 | + | then $a | |
333 | + | else throw("List size exceeds 100") | |
334 | + | ||
335 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
336 | + | } | |
337 | + | let finalizedEpoch = $t098469943._1 | |
338 | + | let finalizedBlockHashOpt = $t098469943._2 | |
339 | + | $Tuple2( match finalizedBlockHashOpt { | |
340 | + | case finalizedBlockHash: String => | |
341 | + | finalizedBlockHash | |
342 | + | case _ => | |
343 | + | value(epochMeta(finalizedEpoch))._3 | |
344 | + | }, finalizedEpoch) | |
345 | + | } | |
346 | + | ||
347 | + | ||
348 | + | func supportingBalance (chainId) = { | |
349 | + | func addBalance (acc,generatorStr) = { | |
350 | + | let $t01022610262 = acc | |
351 | + | let totalBalance = $t01022610262._1 | |
352 | + | let generators = $t01022610262._2 | |
353 | + | let generator = addressFromStringValue(generatorStr) | |
354 | + | if (containsElement(generators, generator)) | |
355 | + | then acc | |
356 | + | else { | |
357 | + | let balance = generatingBalance(generator) | |
358 | + | $Tuple2((totalBalance + balance), (generators :+ generator)) | |
359 | + | } | |
360 | + | } | |
361 | + | ||
362 | + | let allGenerators = split_4C(getStringValue(supportersKey(chainId)), SEP) | |
363 | + | let res = { | |
364 | + | let $l = allGenerators | |
365 | + | let $s = size($l) | |
366 | + | let $acc0 = $Tuple2(0, nil) | |
367 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
368 | + | then $a | |
369 | + | else addBalance($a, $l[$i]) | |
370 | + | ||
371 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
372 | + | then $a | |
373 | + | else throw("List size exceeds 100") | |
374 | + | ||
375 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
376 | + | } | |
377 | + | res._1 | |
378 | + | } | |
379 | + | ||
380 | + | ||
381 | + | func isContractSetup () = isDefined(getInteger(minerRewardKey)) | |
382 | + | ||
383 | + | ||
384 | + | func ensureMiningEpoch (generator) = if ((toString(generator) != computedGenerator)) | |
385 | + | then throw(((((toBase58String(generator.bytes) + " is not allowed to mine in ") + toString(height)) + " epoch. Expected ") + computedGenerator)) | |
386 | + | else unit | |
387 | + | ||
388 | + | ||
389 | + | func isReferenceCorrect (reference,lastBlock) = if ((reference == lastBlock)) | |
390 | + | then unit | |
391 | + | else throw(((("Expected a reference to the chain last block: 0x" + lastBlock) + ". Got: 0x") + reference)) | |
392 | + | ||
393 | + | ||
394 | + | func chainIsInactive (chainId) = { | |
395 | + | let firstBlockId = getStringValue(chainFirstBlockIdKey(chainId)) | |
396 | + | let firstValidAltChainId = valueOrElse(getInteger(firstValidAltChainIdKey), 0) | |
397 | + | if ((firstValidAltChainId > chainId)) | |
398 | + | then true | |
399 | + | else (blockMeta(getStringValue(finalizedBlockKey))._1 > blockMeta(firstBlockId)._1) | |
400 | + | } | |
401 | + | ||
402 | + | ||
403 | + | func minerChainId (miner) = valueOrElse(getInteger(minerChainIdKey(miner)), getInteger(("chainIdOf" + toString(miner)))) | |
404 | + | ||
405 | + | ||
406 | + | func ensureExpectedOrInactiveChain (generator,expectedChainId,checkHeightBlock) = { | |
407 | + | let heightIsCorrect = match checkHeightBlock { | |
408 | + | case blockHash: String => | |
409 | + | let lastMinedBlockHeight = lastHeightBy(generator, mainChainId) | |
410 | + | ((blockMeta(blockHash)._1 + 1) > lastMinedBlockHeight) | |
411 | + | case _ => | |
412 | + | true | |
413 | + | } | |
414 | + | match minerChainId(generator) { | |
415 | + | case currentId: Int => | |
416 | + | if (if ((currentId == expectedChainId)) | |
417 | + | then true | |
418 | + | else if (chainIsInactive(currentId)) | |
419 | + | then heightIsCorrect | |
420 | + | else false) | |
421 | + | then unit | |
422 | + | else throw(("miner is mining other chain " + toString(currentId))) | |
423 | + | case _ => | |
424 | + | unit | |
425 | + | } | |
426 | + | } | |
427 | + | ||
428 | + | ||
429 | + | let heightString = (" at height " + toString(height)) | |
430 | + | ||
431 | + | func vrfAt (height) = valueOrErrorMessage(valueOrErrorMessage(blockInfoByHeight(height), ("last block is not available" + heightString)).vrf, ("VRF is not available" + heightString)) | |
432 | + | ||
433 | + | ||
434 | + | func ensureCorrectEpoch (expectedVRF) = { | |
435 | + | let actualVRF = vrfAt(height) | |
436 | + | if ((expectedVRF == actualVRF)) | |
437 | + | then unit | |
438 | + | else throw((((("Expected VRF " + toBase58String(expectedVRF)) + " does not match actual ") + toBase58String(actualVRF)) + heightString)) | |
439 | + | } | |
440 | + | ||
441 | + | ||
442 | + | func addSupporter (chainId,generator) = { | |
443 | + | let supportersStr = getStringValue(supportersKey(chainId)) | |
444 | + | let supporters = split_4C(supportersStr, SEP) | |
445 | + | if (containsElement(supporters, toString(generator))) | |
446 | + | then nil | |
447 | + | else [StringEntry(supportersKey(chainId), ((supportersStr + SEP) + toString(generator)))] | |
448 | + | } | |
449 | + | ||
450 | + | ||
451 | + | func setOrFail (flags,index) = if ((0 > index)) | |
452 | + | then throw(("Can't withdraw at negative index: " + toString(index))) | |
453 | + | else { | |
454 | + | let flagsSize = size(flags) | |
455 | + | if ((index >= flagsSize)) | |
456 | + | then { | |
457 | + | let addZeroes = (index - flagsSize) | |
458 | + | if ((addZeroes > size(zeroesStr))) | |
459 | + | then throw((("Can't add " + toString(addZeroes)) + " empty flags. Contact with developers")) | |
460 | + | else ((flags + take(zeroesStr, addZeroes)) + "1") | |
461 | + | } | |
462 | + | else { | |
463 | + | let tail = drop(flags, index) | |
464 | + | let atIndex = take(tail, 1) | |
465 | + | if ((atIndex == "0")) | |
466 | + | then ((take(flags, index) + "1") + drop(tail, 1)) | |
467 | + | else throw((("Transfer #" + toString(index)) + " has been already taken")) | |
468 | + | } | |
469 | + | } | |
470 | + | ||
471 | + | ||
472 | + | func validateBlockHash (hexStr) = { | |
473 | + | let decodedBytes = fromBase16String(hexStr) | |
474 | + | if ((size(decodedBytes) != BLOCK_HASH_SIZE)) | |
475 | + | then throw("invalid block id length") | |
476 | + | else hexStr | |
477 | + | } | |
478 | + | ||
479 | + | ||
480 | + | func getUpdateFinalizedBlockAction (caller,newBlockHashHex,prevEpoch) = { | |
481 | + | let curFinalizedBlockMeta = blockMeta(getStringValue(finalizedBlockKey)) | |
482 | + | let $t01427314393 = calculateFinalizedBlockHashAndEpoch(caller, prevEpoch, newBlockHashHex) | |
483 | + | let newFinalizedBlockHash = $t01427314393._1 | |
484 | + | let newFinalizedEpoch = $t01427314393._2 | |
485 | + | let rewardActions = match getString(daoAddressKey) { | |
486 | + | case addr: String => | |
487 | + | if ((newFinalizedEpoch == curFinalizedBlockMeta._2)) | |
488 | + | then nil | |
489 | + | else { | |
490 | + | func countNonEmptyEpochs (acc,next) = if ((acc._1 == curFinalizedBlockMeta._2)) | |
491 | + | then acc | |
492 | + | else match epochMeta(acc._1) { | |
493 | + | case m: (Address, Int, String) => | |
494 | + | $Tuple2(m._2, (acc._2 + 1)) | |
495 | + | case _ => | |
496 | + | acc | |
497 | + | } | |
498 | + | ||
499 | + | let startFromEpoch = if ((newFinalizedEpoch == height)) | |
500 | + | then prevEpoch | |
501 | + | else valueOrErrorMessage(epochMeta(newFinalizedEpoch), "no prev epoch for start")._2 | |
502 | + | let daoRewards = { | |
503 | + | let $l = offsets_100 | |
504 | + | let $s = size($l) | |
505 | + | let $acc0 = $Tuple2(startFromEpoch, 1) | |
506 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
507 | + | then $a | |
508 | + | else countNonEmptyEpochs($a, $l[$i]) | |
509 | + | ||
510 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
511 | + | then $a | |
512 | + | else throw("List size exceeds 100") | |
513 | + | ||
514 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
515 | + | } | |
516 | + | let reissueAmount = (daoRewards._2 * getIntegerValue(daoRewardKey)) | |
517 | + | let tokenId = fromBase58String(getStringValue(tokenIdKey)) | |
518 | + | [Reissue(tokenId, reissueAmount, true), ScriptTransfer(Address(fromBase58String(addr)), reissueAmount, tokenId)] | |
519 | + | } | |
520 | + | case _ => | |
521 | + | nil | |
522 | + | } | |
523 | + | (rewardActions ++ (if (if ((newFinalizedBlockHash == newBlockHashHex)) | |
524 | + | then true | |
525 | + | else (blockMeta(newFinalizedBlockHash)._1 > curFinalizedBlockMeta._1)) | |
526 | + | then [StringEntry(finalizedBlockKey, newFinalizedBlockHash)] | |
527 | + | else nil)) | |
528 | + | } | |
529 | + | ||
530 | + | ||
531 | + | @Callable(i) | |
532 | + | func extendMainChain (blockHashHex,referenceHex,vrf,e2cTransfersRootHashHex,lastC2ETransferIndex) = { | |
533 | + | let checkBlockHash = validateBlockHash(blockHashHex) | |
534 | + | if ((checkBlockHash == checkBlockHash)) | |
535 | + | then { | |
536 | + | let checkEpoch = ensureCorrectEpoch(vrf) | |
537 | + | if ((checkEpoch == checkEpoch)) | |
538 | + | then { | |
539 | + | let checkChain = ensureExpectedOrInactiveChain(i.originCaller, mainChainId, unit) | |
540 | + | if ((checkChain == checkChain)) | |
541 | + | then { | |
542 | + | let checkReference = isReferenceCorrect(referenceHex, mainChainLastBlock) | |
543 | + | if ((checkReference == checkReference)) | |
544 | + | then { | |
545 | + | let checkTransfers = ensureCorrectTransfers(blockMeta(referenceHex)._6, lastC2ETransferIndex, true) | |
546 | + | if ((checkTransfers == checkTransfers)) | |
547 | + | then { | |
548 | + | let thisEpochMeta = match epochMeta(height) { | |
549 | + | case _: Unit => | |
550 | + | StringEntry(epochMetaKey(height), ((((toString(i.originCaller) + SEP) + toString(mainChainEpoch)) + SEP) + blockHashHex)) | |
551 | + | case other => | |
552 | + | throw("Epoch already started") | |
553 | + | } | |
554 | + | if ((thisEpochMeta == thisEpochMeta)) | |
555 | + | then { | |
556 | + | let checkGenerator = ensureMiningEpoch(i.originCaller) | |
557 | + | if ((checkGenerator == checkGenerator)) | |
558 | + | then { | |
559 | + | let updateFinalizedBlock = getUpdateFinalizedBlockAction(i.originCaller, blockHashHex, mainChainEpoch) | |
560 | + | let newChainHeight = (mainChainHeight + 1) | |
561 | + | ([mkBlockMetaEntry(blockHashHex, newChainHeight, mainChainLastBlock, mainChainId, e2cTransfersRootHashHex, lastC2ETransferIndex), mkChainMetaEntry(mainChainId, newChainHeight, blockHashHex), IntegerEntry(minerChainIdKey(i.originCaller), mainChainId), IntegerEntry(chainLastHeightKey(mainChainId, i.originCaller), newChainHeight), thisEpochMeta] ++ updateFinalizedBlock) | |
562 | + | } | |
563 | + | else throw("Strict value is not equal to itself.") | |
564 | + | } | |
565 | + | else throw("Strict value is not equal to itself.") | |
566 | + | } | |
567 | + | else throw("Strict value is not equal to itself.") | |
568 | + | } | |
569 | + | else throw("Strict value is not equal to itself.") | |
570 | + | } | |
571 | + | else throw("Strict value is not equal to itself.") | |
572 | + | } | |
573 | + | else throw("Strict value is not equal to itself.") | |
574 | + | } | |
575 | + | else throw("Strict value is not equal to itself.") | |
576 | + | } | |
577 | + | ||
578 | + | ||
579 | + | ||
580 | + | @Callable(i) | |
581 | + | func startAltChain (blockHashHex,referenceHex,vrf,e2cTransfersRootHashHex,lastC2ETransferIndex) = { | |
582 | + | let checkBlockHash = validateBlockHash(blockHashHex) | |
583 | + | if ((checkBlockHash == checkBlockHash)) | |
584 | + | then { | |
585 | + | let checkEpoch = ensureCorrectEpoch(vrf) | |
586 | + | if ((checkEpoch == checkEpoch)) | |
587 | + | then { | |
588 | + | let $t01729017403 = blockMeta(referenceHex) | |
589 | + | let refChainHeight = $t01729017403._1 | |
590 | + | let refEpoch = $t01729017403._2 | |
591 | + | let refIgnored1 = $t01729017403._3 | |
592 | + | let refIgnored2 = $t01729017403._4 | |
593 | + | let refIgnored3 = $t01729017403._5 | |
594 | + | let refTransferIndex = $t01729017403._6 | |
595 | + | let finalizedEpoch = blockMeta(getStringValue(finalizedBlockKey))._2 | |
596 | + | let epochRef = if ((refEpoch >= finalizedEpoch)) | |
597 | + | then refEpoch | |
598 | + | else throw((((("Can not start alt chain from epoch " + toString(refEpoch)) + ", epoch ") + toString(finalizedEpoch)) + " is finalized")) | |
599 | + | let checkChain = ensureExpectedOrInactiveChain(i.originCaller, mainChainId, referenceHex) | |
600 | + | if ((checkChain == checkChain)) | |
601 | + | then { | |
602 | + | let checkTransfers = ensureCorrectTransfers(refTransferIndex, lastC2ETransferIndex, true) | |
603 | + | if ((checkTransfers == checkTransfers)) | |
604 | + | then { | |
605 | + | let newChainId = (valueOrElse(getInteger(lastChainIdKey), 0) + 1) | |
606 | + | let newChainHeight = (refChainHeight + 1) | |
607 | + | let thisEpochMeta = match epochMeta(height) { | |
608 | + | case _: Unit => | |
609 | + | StringEntry(epochMetaKey(height), ((((toString(i.originCaller) + SEP) + toString(epochRef)) + SEP) + blockHashHex)) | |
610 | + | case other => | |
611 | + | throw("Epoch already started") | |
612 | + | } | |
613 | + | let checkGenerator = ensureMiningEpoch(i.originCaller) | |
614 | + | if ((checkGenerator == checkGenerator)) | |
615 | + | then [thisEpochMeta, mkBlockMetaEntry(blockHashHex, newChainHeight, referenceHex, newChainId, e2cTransfersRootHashHex, lastC2ETransferIndex), StringEntry(chainFirstBlockIdKey(newChainId), blockHashHex), mkChainMetaEntry(newChainId, newChainHeight, blockHashHex), IntegerEntry(minerChainIdKey(i.originCaller), newChainId), IntegerEntry(chainLastHeightKey(newChainId, i.originCaller), newChainHeight), IntegerEntry(chainLastHeightKey(mainChainId, i.originCaller), newChainHeight), StringEntry(supportersKey(newChainId), toString(i.originCaller)), IntegerEntry(lastChainIdKey, newChainId)] | |
616 | + | else throw("Strict value is not equal to itself.") | |
617 | + | } | |
618 | + | else throw("Strict value is not equal to itself.") | |
619 | + | } | |
620 | + | else throw("Strict value is not equal to itself.") | |
621 | + | } | |
622 | + | else throw("Strict value is not equal to itself.") | |
623 | + | } | |
624 | + | else throw("Strict value is not equal to itself.") | |
625 | + | } | |
626 | + | ||
627 | + | ||
628 | + | ||
629 | + | @Callable(i) | |
630 | + | func extendAltChain (blockHashHex,referenceHex,vrf,chainId,e2cTransfersRootHashHex,lastC2ETransferIndex) = { | |
631 | + | let checkBlockHash = validateBlockHash(blockHashHex) | |
632 | + | if ((checkBlockHash == checkBlockHash)) | |
633 | + | then { | |
634 | + | let checkEpoch = ensureCorrectEpoch(vrf) | |
635 | + | if ((checkEpoch == checkEpoch)) | |
636 | + | then { | |
637 | + | let chainFirstBlockMeta = blockMeta(getStringValue(chainFirstBlockIdKey(chainId))) | |
638 | + | let checkChain = ensureExpectedOrInactiveChain(i.originCaller, chainId, toBase16String(chainFirstBlockMeta._3)) | |
639 | + | if ((checkChain == checkChain)) | |
640 | + | then { | |
641 | + | let $t01971619770 = chainMeta(chainId) | |
642 | + | let chainHeight = $t01971619770._1 | |
643 | + | let chainLastBlock = $t01971619770._2 | |
644 | + | let checkReference = isReferenceCorrect(referenceHex, chainLastBlock) | |
645 | + | if ((checkReference == checkReference)) | |
646 | + | then { | |
647 | + | let checkTransfers = ensureCorrectTransfers(blockMeta(referenceHex)._6, lastC2ETransferIndex, true) | |
648 | + | if ((checkTransfers == checkTransfers)) | |
649 | + | then { | |
650 | + | let newChainHeight = (chainHeight + 1) | |
651 | + | let prevEpoch = blockMeta(referenceHex)._2 | |
652 | + | let updateMainChainData = if ((supportingBalance(chainId) > (computedTotalBalance / 2))) | |
653 | + | then { | |
654 | + | let lastChainId = valueOrElse(getInteger(lastChainIdKey), 0) | |
655 | + | let updateFinalizedBlock = getUpdateFinalizedBlockAction(i.originCaller, blockHashHex, prevEpoch) | |
656 | + | ([IntegerEntry(chainForkedHeightKey(mainChainId), chainFirstBlockMeta._1), IntegerEntry(mainChainIdKey, chainId), IntegerEntry(firstValidAltChainIdKey, (lastChainId + 1))] ++ updateFinalizedBlock) | |
657 | + | } | |
658 | + | else nil | |
659 | + | let thisEpochMeta = match epochMeta(height) { | |
660 | + | case _: Unit => | |
661 | + | StringEntry(epochMetaKey(height), ((((toString(i.originCaller) + SEP) + toString(prevEpoch)) + SEP) + blockHashHex)) | |
662 | + | case other => | |
663 | + | throw("Epoch already started") | |
664 | + | } | |
665 | + | if ((thisEpochMeta == thisEpochMeta)) | |
666 | + | then { | |
667 | + | let checkGenerator = ensureMiningEpoch(i.originCaller) | |
668 | + | if ((checkGenerator == checkGenerator)) | |
669 | + | then { | |
670 | + | let updateMainChainLastMinedBlock = if (if ((updateMainChainData == nil)) | |
671 | + | then (valueOrElse(minerChainId(i.originCaller), 0) != chainId) | |
672 | + | else false) | |
673 | + | then [IntegerEntry(chainLastHeightKey(mainChainId, i.originCaller), chainFirstBlockMeta._1)] | |
674 | + | else nil | |
675 | + | ((([mkBlockMetaEntry(blockHashHex, newChainHeight, referenceHex, chainId, e2cTransfersRootHashHex, lastC2ETransferIndex), mkChainMetaEntry(chainId, newChainHeight, blockHashHex), thisEpochMeta, IntegerEntry(minerChainIdKey(i.originCaller), chainId), IntegerEntry(chainLastHeightKey(chainId, i.originCaller), newChainHeight)] ++ updateMainChainData) ++ addSupporter(chainId, i.originCaller)) ++ updateMainChainLastMinedBlock) | |
676 | + | } | |
677 | + | else throw("Strict value is not equal to itself.") | |
678 | + | } | |
679 | + | else throw("Strict value is not equal to itself.") | |
680 | + | } | |
681 | + | else throw("Strict value is not equal to itself.") | |
682 | + | } | |
683 | + | else throw("Strict value is not equal to itself.") | |
684 | + | } | |
685 | + | else throw("Strict value is not equal to itself.") | |
686 | + | } | |
687 | + | else throw("Strict value is not equal to itself.") | |
688 | + | } | |
689 | + | else throw("Strict value is not equal to itself.") | |
690 | + | } | |
691 | + | ||
692 | + | ||
693 | + | ||
694 | + | @Callable(i) | |
695 | + | func appendBlock (blockHashHex,referenceHex,e2cTransfersRootHashHex,lastC2ETransferIndex) = { | |
696 | + | let checkCaller = if ((thisEpochMiner == i.originCaller)) | |
697 | + | then true | |
698 | + | else match thisEpochMiner { | |
699 | + | case epochMiner: Address => | |
700 | + | throw(("not allowed to forge blocks in this epoch, expected from " + toString(epochMiner))) | |
701 | + | case _ => | |
702 | + | throw("not allowed to forge blocks in this epoch, epoch miner is absent") | |
703 | + | } | |
704 | + | if ((checkCaller == checkCaller)) | |
705 | + | then { | |
706 | + | let chainId = valueOrElse(minerChainId(i.originCaller), mainChainId) | |
707 | + | let $t02211922170 = chainMeta(chainId) | |
708 | + | let chainHeight = $t02211922170._1 | |
709 | + | let lastBlockId = $t02211922170._2 | |
710 | + | let checkReference = isReferenceCorrect(referenceHex, lastBlockId) | |
711 | + | if ((checkReference == checkReference)) | |
712 | + | then { | |
713 | + | let checkTransfers = ensureCorrectTransfers(blockMeta(referenceHex)._6, lastC2ETransferIndex, false) | |
714 | + | if ((checkTransfers == checkTransfers)) | |
715 | + | then { | |
716 | + | let newChainHeight = (chainHeight + 1) | |
717 | + | let checkBlockHash = validateBlockHash(blockHashHex) | |
718 | + | if ((checkBlockHash == checkBlockHash)) | |
719 | + | then [mkBlockMetaEntry(blockHashHex, newChainHeight, lastBlockId, chainId, e2cTransfersRootHashHex, lastC2ETransferIndex), IntegerEntry(chainLastHeightKey(chainId, i.originCaller), newChainHeight), mkChainMetaEntry(chainId, newChainHeight, blockHashHex), StringEntry(epochMetaKey(height), ((((toString(value(thisEpochMiner)) + SEP) + toString(thisEpochRef)) + SEP) + blockHashHex))] | |
720 | + | else throw("Strict value is not equal to itself.") | |
721 | + | } | |
722 | + | else throw("Strict value is not equal to itself.") | |
723 | + | } | |
724 | + | else throw("Strict value is not equal to itself.") | |
725 | + | } | |
726 | + | else throw("Strict value is not equal to itself.") | |
727 | + | } | |
728 | + | ||
729 | + | ||
730 | + | ||
731 | + | @Callable(i) | |
732 | + | func join (rewardAddressHex) = { | |
733 | + | func ensureNotOverrideOtherMinerPk (elAddressHex) = match getBinary(minerPkKey(elAddressHex)) { | |
734 | + | case pk: ByteVector => | |
735 | + | if ((pk == i.originCallerPublicKey)) | |
736 | + | then unit | |
737 | + | else throw(((("EL miner address " + elAddressHex) + " is already linked with ") + toBase58String(pk))) | |
738 | + | case _ => | |
739 | + | unit | |
740 | + | } | |
741 | + | ||
742 | + | let parts = split(rewardAddressHex, "0x") | |
743 | + | let rewardAddress = fromBase16String(parts[(size(parts) - 1)]) | |
744 | + | let networkIsLaunched = match getInteger("launchHeight") { | |
745 | + | case launchHeight: Int => | |
746 | + | (height >= launchHeight) | |
747 | + | case _ => | |
748 | + | throw("not launched yet") | |
749 | + | } | |
750 | + | if (if (!(isContractSetup())) | |
751 | + | then true | |
752 | + | else !(networkIsLaunched)) | |
753 | + | then throw("The contract has not yet set up") | |
754 | + | else if ((MIN_BALANCE > wavesBalance(i.originCaller).generating)) | |
755 | + | then throw(((("Insufficient generating balance: " + toString(wavesBalance(i.originCaller).generating)) + ". Required: ") + toString(MIN_BALANCE))) | |
756 | + | else if ((size(rewardAddress) != 20)) | |
757 | + | then throw("rewardAddress should be an L2 address") | |
758 | + | else if ((size(allMiners) >= 50)) | |
759 | + | then throw("too many miners") | |
760 | + | else { | |
761 | + | func checkExistence (exists,miner) = if (exists) | |
762 | + | then true | |
763 | + | else (miner == toString(i.originCaller)) | |
764 | + | ||
765 | + | let alreadyExists = { | |
766 | + | let $l = allMiners | |
767 | + | let $s = size($l) | |
768 | + | let $acc0 = false | |
769 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
770 | + | then $a | |
771 | + | else checkExistence($a, $l[$i]) | |
772 | + | ||
773 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
774 | + | then $a | |
775 | + | else throw("List size exceeds 50") | |
776 | + | ||
777 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
778 | + | } | |
779 | + | if (alreadyExists) | |
780 | + | then nil | |
781 | + | else { | |
782 | + | let newMiner = toString(i.originCaller) | |
783 | + | let lowercaseRewardAddress = toBase16String(rewardAddress) | |
784 | + | let check = ensureNotOverrideOtherMinerPk(lowercaseRewardAddress) | |
785 | + | if ((check == check)) | |
786 | + | then { | |
787 | + | let newMiners = if ((size(allMiners) == 0)) | |
788 | + | then newMiner | |
789 | + | else ((allMinersStr + SEP) + newMiner) | |
790 | + | let deletePrevRewardAddressPk = match getString(minerRewardAddressKey(newMiner)) { | |
791 | + | case prevAddress: String => | |
792 | + | if ((prevAddress == toBase16String(rewardAddress))) | |
793 | + | then nil | |
794 | + | else [DeleteEntry(minerPkKey(prevAddress))] | |
795 | + | case _ => | |
796 | + | nil | |
797 | + | } | |
798 | + | ([StringEntry(allMinersKey, newMiners), StringEntry(minerRewardAddressKey(newMiner), ("0x" + lowercaseRewardAddress)), BinaryEntry(minerPkKey(lowercaseRewardAddress), i.originCallerPublicKey)] ++ deletePrevRewardAddressPk) | |
799 | + | } | |
800 | + | else throw("Strict value is not equal to itself.") | |
801 | + | } | |
802 | + | } | |
803 | + | } | |
804 | + | ||
805 | + | ||
806 | + | ||
807 | + | @Callable(i) | |
808 | + | func leave () = { | |
809 | + | let leavingMiner = toString(i.originCaller) | |
810 | + | func skipLeavingMiner (acc,miner) = if ((miner == leavingMiner)) | |
811 | + | then acc | |
812 | + | else (acc :+ miner) | |
813 | + | ||
814 | + | let remainingMiners = { | |
815 | + | let $l = allMiners | |
816 | + | let $s = size($l) | |
817 | + | let $acc0 = nil | |
818 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
819 | + | then $a | |
820 | + | else skipLeavingMiner($a, $l[$i]) | |
821 | + | ||
822 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
823 | + | then $a | |
824 | + | else throw("List size exceeds 50") | |
825 | + | ||
826 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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) | |
827 | + | } | |
828 | + | let rewardAddrKey = minerRewardAddressKey(leavingMiner) | |
829 | + | let prevRewardAddress = valueOrErrorMessage(getString(this, rewardAddrKey), "miner has never joined") | |
830 | + | if ((prevRewardAddress == prevRewardAddress)) | |
831 | + | then if ((thisEpochMiner == i.originCaller)) | |
832 | + | then throw("designated miner can't leave") | |
833 | + | else [StringEntry(allMinersKey, makeString_2C(remainingMiners, SEP))] | |
834 | + | else throw("Strict value is not equal to itself.") | |
835 | + | } | |
836 | + | ||
837 | + | ||
838 | + | ||
839 | + | @Callable(i) | |
840 | + | func transfer (destElAddressHex) = { | |
841 | + | let checkAddress = if ((size(destElAddressHex) == ETH_ADDRESS_STR_SIZE)) | |
842 | + | then fromBase16String(destElAddressHex) | |
843 | + | else throw(((("Address should have " + toString(ETH_ADDRESS_STR_SIZE)) + " characters, got ") + toString(size(destElAddressHex)))) | |
844 | + | if ((checkAddress == checkAddress)) | |
845 | + | then { | |
846 | + | let checkPayment = if ((size(i.payments) == 1)) | |
847 | + | then true | |
848 | + | else throw(("Expected one payment as a transfer amount, got " + toString(size(i.payments)))) | |
849 | + | if ((checkPayment == checkPayment)) | |
850 | + | then { | |
851 | + | let tokenIdStr = getStringValue(tokenIdKey) | |
852 | + | let tokenId = fromBase58String(tokenIdStr) | |
853 | + | let t = i.payments[0] | |
854 | + | let checkAssetId = match t.assetId { | |
855 | + | case assetId: ByteVector => | |
856 | + | if ((assetId == tokenId)) | |
857 | + | then true | |
858 | + | else throw(((("Expected " + tokenIdStr) + " in the payment, got ") + toBase58String(assetId))) | |
859 | + | case _ => | |
860 | + | throw((("Expected " + tokenIdStr) + " in the payment, got Waves")) | |
861 | + | } | |
862 | + | if ((checkAssetId == checkAssetId)) | |
863 | + | then { | |
864 | + | let lastIndex = blockMeta(mainChainLastBlock)._6 | |
865 | + | let queueSize = (nativeTransfersCount - lastIndex) | |
866 | + | let checkQueueLimit = if ((160 > queueSize)) | |
867 | + | then amountGtEq(t, 1000000, queueSize) | |
868 | + | else if ((1600 > queueSize)) | |
869 | + | then amountGtEq(t, 10000000, queueSize) | |
870 | + | else if ((3200 > queueSize)) | |
871 | + | then amountGtEq(t, 100000000, queueSize) | |
872 | + | else if ((6400 > queueSize)) | |
873 | + | then amountGtEq(t, 1000000000, queueSize) | |
874 | + | else throw((("Transfers denied for queue size of " + toString(queueSize)) + ". Wait until current transfers processed")) | |
875 | + | if ((checkQueueLimit == checkQueueLimit)) | |
876 | + | then [IntegerEntry(nativeTransfersCountKey, (nativeTransfersCount + 1)), mkNativeTransferEntry(nativeTransfersCount, destElAddressHex, t.amount), Burn(tokenId, t.amount)] | |
877 | + | else throw("Strict value is not equal to itself.") | |
878 | + | } | |
879 | + | else throw("Strict value is not equal to itself.") | |
880 | + | } | |
881 | + | else throw("Strict value is not equal to itself.") | |
882 | + | } | |
883 | + | else throw("Strict value is not equal to itself.") | |
884 | + | } | |
885 | + | ||
886 | + | ||
887 | + | ||
888 | + | @Callable(i) | |
889 | + | func withdraw (blockHashHex,merkleProof,transferIndexInBlock,amount) = { | |
890 | + | let withdrawBlockMeta = blockMeta(blockHashHex) | |
891 | + | let withdrawBlockHeight = withdrawBlockMeta._1 | |
892 | + | let finalizedBlockHeight = blockMeta(getStringValue(finalizedBlockKey))._1 | |
893 | + | let mainChainLastBlockHeight = blockMeta(mainChainLastBlock)._1 | |
894 | + | if ((withdrawBlockHeight > finalizedBlockHeight)) | |
895 | + | then throw(((("EL block #" + toString(withdrawBlockHeight)) + " is not finalized. The current finalized is #") + toString(finalizedBlockHeight))) | |
896 | + | else if ((size(merkleProof) != WITHDRAW_PROOFS_SIZE)) | |
897 | + | then throw(((("Expected " + toString(WITHDRAW_PROOFS_SIZE)) + " proofs, got ") + toString(size(merkleProof)))) | |
898 | + | else if ((0 > transferIndexInBlock)) | |
899 | + | then throw(("Transfer index in block should be nonnegative, got " + toString(transferIndexInBlock))) | |
900 | + | else if ((0 >= amount)) | |
901 | + | then throw(("Amount should be positive, got " + toString(amount))) | |
902 | + | else { | |
903 | + | let withdrawBlockChainId = withdrawBlockMeta._4 | |
904 | + | let isMainChain = (withdrawBlockChainId == mainChainId) | |
905 | + | let relatesToMainChain = match getInteger(chainForkedHeightKey(withdrawBlockChainId)) { | |
906 | + | case forkedHeight: Int => | |
907 | + | (forkedHeight > withdrawBlockHeight) | |
908 | + | case _ => | |
909 | + | throw((((blockHashHex + " is on an alternative chain #") + toString(withdrawBlockChainId)) + " that was not approved by majority. Wait for some blocks")) | |
910 | + | } | |
911 | + | if (if (isMainChain) | |
912 | + | then true | |
913 | + | else relatesToMainChain) | |
914 | + | then { | |
915 | + | let recipient = i.originCaller | |
916 | + | let recipientPkHash = take(drop(recipient.bytes, 2), PUBLIC_KEY_HASH_SIZE) | |
917 | + | let zeroAmountBytes = base58'11111111111111111111111111111111111111111111' | |
918 | + | let amountBytes = toBytes(amount) | |
919 | + | let elEventData = ((recipientPkHash + take(zeroAmountBytes, (size(zeroAmountBytes) - size(amountBytes)))) + amountBytes) | |
920 | + | let elEventDataDigest = blake2b256_16Kb(elEventData) | |
921 | + | let calculatedRootHash = createMerkleRoot(merkleProof, elEventDataDigest, transferIndexInBlock) | |
922 | + | let expectedRootHash = withdrawBlockMeta._5 | |
923 | + | if ((calculatedRootHash == expectedRootHash)) | |
924 | + | then { | |
925 | + | let tokenId = fromBase58String(getStringValue(tokenIdKey)) | |
926 | + | let transfersKey = blockE2CTransfersKey(blockHashHex) | |
927 | + | [Reissue(tokenId, amount, true), ScriptTransfer(recipient, amount, tokenId), StringEntry(transfersKey, setOrFail(valueOrElse(getString(transfersKey), ""), transferIndexInBlock))] | |
928 | + | } | |
929 | + | else throw((((((("Expected root hash: " + toBase16String(expectedRootHash)) + ", got: ") + toBase16String(calculatedRootHash)) + ". Event data digest: ") + toBase64String(elEventDataDigest)) + ". Check your withdraw arguments")) | |
930 | + | } | |
931 | + | else throw((("Expected " + blockHashHex) + " to be either on the main chain or relate to it")) | |
932 | + | } | |
933 | + | } | |
934 | + | ||
935 | + | ||
936 | + | ||
937 | + | @Callable(i) | |
938 | + | func setup (genesisBlockHashHex,minerRewardInGwei,daoAddress,daoReward) = if (isContractSetup()) | |
939 | + | then throw("The contract has been already set up") | |
940 | + | else if ((0 > minerRewardInGwei)) | |
941 | + | then throw("The miner reward must be nonnegative") | |
942 | + | else { | |
943 | + | let genesisBlockHash = fromBase16String(genesisBlockHashHex) | |
944 | + | let checkGenesisBlockHashSize = if ((size(genesisBlockHash) == BLOCK_HASH_SIZE)) | |
945 | + | then true | |
946 | + | else throw("Wrong genesis block hash") | |
947 | + | if ((checkGenesisBlockHashSize == checkGenesisBlockHashSize)) | |
948 | + | then { | |
949 | + | let emptyPk = base58'11111111111111111111111111111111' | |
950 | + | let genesisMinerAddress = addressFromPublicKey(emptyPk) | |
951 | + | let genesisEthRewardAddress = base58'11111111111111111111' | |
952 | + | let genesisBlockReferenceHash = "0000000000000000000000000000000000000000000000000000000000000000" | |
953 | + | let issue = Issue("UNIT0", "Native token", 0, 8, true) | |
954 | + | let tokenId = calculateAssetId(issue) | |
955 | + | let genesisBlockMeta = mkBlockMetaEntry(genesisBlockHashHex, 0, genesisBlockReferenceHash, 0, toBase16String(base58''), -1) | |
956 | + | let daoEntries = if ((daoAddress == "")) | |
957 | + | then nil | |
958 | + | else [StringEntry(daoAddressKey, toString(Address(fromBase58String(daoAddress)))), IntegerEntry(daoRewardKey, if ((daoReward > 0)) | |
959 | + | then daoReward | |
960 | + | else throw("invalid DAO reward amount"))] | |
961 | + | ([genesisBlockMeta, StringEntry(chainFirstBlockIdKey(0), genesisBlockHashHex), mkChainMetaEntry(0, 0, genesisBlockHashHex), IntegerEntry(minerRewardKey, minerRewardInGwei), StringEntry(epochMetaKey(height), ((toString(genesisMinerAddress) + ",0,") + genesisBlockHashHex)), StringEntry(finalizedBlockKey, genesisBlockHashHex), issue, StringEntry(tokenIdKey, toBase58String(tokenId)), StringEntry(elBridgeAddressKey, "0x0000000000000000000000000000000000006a7e")] ++ daoEntries) | |
962 | + | } | |
963 | + | else throw("Strict value is not equal to itself.") | |
964 | + | } | |
965 | + | ||
966 | + | ||
967 | + | @Verifier(tx) | |
968 | + | func verify () = { | |
969 | + | let u0 = sigVerify_32Kb(tx.bodyBytes, tx.proofs[0], base58'66Fb7Ef34ainTAL887b57BVCNBrtdRyA86dSAXuwt2mn') | |
970 | + | let u1 = sigVerify_32Kb(tx.bodyBytes, tx.proofs[1], base58'F5ComSeqBY46duPnYYh9YkrEAe12Ztaq1rDQqtYZFpKp') | |
971 | + | let u2 = sigVerify_32Kb(tx.bodyBytes, tx.proofs[2], base58'53TLiKfhLWr2tN9DLgEHs8sf42hbUj3JpE6uxsDPZtnM') | |
972 | + | if (u0) | |
973 | + | then if (u1) | |
974 | + | then true | |
975 | + | else u2 | |
976 | + | else if (u1) | |
977 | + | then u2 | |
978 | + | else false | |
979 | + | } | |
980 | + |
github/deemru/w8io/169f3d6 58.68 ms ◑