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