tx · 7sST2RAzLuqqRwQxRmEfT96cTbYzdB6vsfQyM8EZHEu6 3MvqNgAQonu6nSGGh71ohTyBPhzdJxPK7QA: -0.02100000 Waves 2024.10.07 20:20 [3316716] smart account 3MvqNgAQonu6nSGGh71ohTyBPhzdJxPK7QA > SELF 0.00000000 Waves
{ "type": 13, "id": "7sST2RAzLuqqRwQxRmEfT96cTbYzdB6vsfQyM8EZHEu6", "fee": 2100000, "feeAssetId": null, "timestamp": 1728321679474, "version": 2, "chainId": 84, "sender": "3MvqNgAQonu6nSGGh71ohTyBPhzdJxPK7QA", "senderPublicKey": "8NsurEVYFTqXg5SaPYSSHnnFq7t2j1GbTcdzB3KG9GE8", "proofs": [ "AHvndNxP3PxoUo8PPLtsLrwFSQTpoz6dEx5HCkpXrm8xsB39RHSn6SZLPVotELz373QVZ6Zz3oj4j9jeEEUnjRL" ], "script": "base64:AAIFAAAAAAAAACgIAhIDCgEIEgMKAQgSAwoBCBIECgIICBIECgIICBIAEgASAwoBCBIAAAAAJwEAAAAJaXNUZXN0RW52AAAAAAQAAAAHdGVzdGVudgQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAR0aGlzAgAAAAdURVNURU5WAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAdCb29sZWFuBAAAAAF4BQAAAAckbWF0Y2gwBQAAAAF4BwUAAAAHdGVzdGVudgAAAAAFU2NhbGUAAAAAAAX14QABAAAADXRyeUdldEludGVnZXIAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgAAAAAAAAAAAAEAAAAUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwAAAACAAAAB2FkZHJlc3MAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMA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AAAAD3NpZ25hdHVyZXNDb3VudAkAAGQAAAACCQAAZAAAAAIFAAAAD2ZpcnN0VXNlclNpZ25lZAUAAAAQc2Vjb25kVXNlclNpZ25lZAUAAAAPdGhpcmRVc2VyU2lnbmVkBAAAAAckbWF0Y2gwBQAAAAJ0eAkAAGcAAAACBQAAAA9zaWduYXR1cmVzQ291bnQAAAAAAAAAAAIQ3v5x", "height": 3316716, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func isTestEnv () = { | |
5 | + | let testenv = match getBoolean(this, "TESTENV") { | |
6 | + | case x: Boolean => | |
7 | + | x | |
8 | + | case _ => | |
9 | + | false | |
10 | + | } | |
11 | + | testenv | |
12 | + | } | |
13 | + | ||
14 | + | ||
15 | + | let Scale = 100000000 | |
16 | + | ||
17 | + | func tryGetInteger (key) = match getInteger(this, key) { | |
18 | + | case b: Int => | |
19 | + | b | |
20 | + | case _ => | |
21 | + | 0 | |
22 | + | } | |
23 | + | ||
24 | + | ||
25 | + | func tryGetStringExternal (address,key) = match getString(address, key) { | |
26 | + | case a: String => | |
27 | + | a | |
28 | + | case _ => | |
29 | + | "" | |
30 | + | } | |
31 | + | ||
32 | + | ||
33 | + | func tryGetString (key) = tryGetStringExternal(this, key) | |
34 | + | ||
35 | + | ||
36 | + | func staticKey_oracleAddress () = "static_oracleAddress" | |
37 | + | ||
38 | + | ||
39 | + | func staticKey_eggAssetId () = "static_eggAssetId" | |
40 | + | ||
41 | + | ||
42 | + | func staticKey_burnAddress () = "static_burnAddress" | |
43 | + | ||
44 | + | ||
45 | + | func staticKey_extraFee () = "static_extraFee" | |
46 | + | ||
47 | + | ||
48 | + | func staticKey_feeAggregator () = "static_feeAggregator" | |
49 | + | ||
50 | + | ||
51 | + | func staticKey_turtleIncubatorAddress () = "static_turtleIncubatorAddress" | |
52 | + | ||
53 | + | ||
54 | + | func staticKey_turtleBreederAddress () = "static_turtleBreederAddress" | |
55 | + | ||
56 | + | ||
57 | + | func staticKey_turtleBeachFee () = "static_turtleBeachFee" | |
58 | + | ||
59 | + | ||
60 | + | func staticKey_spiceAssetId () = "static_spiceAssetId" | |
61 | + | ||
62 | + | ||
63 | + | func staticKey_refContractAddress () = "static_refContractAddress" | |
64 | + | ||
65 | + | ||
66 | + | func staticKey_couponsAddress () = "static_couponsAddress" | |
67 | + | ||
68 | + | ||
69 | + | func staticKey_turtleRebirthAddress () = "static_turtleRebirthAddress" | |
70 | + | ||
71 | + | ||
72 | + | func rewardClaimedKey (address) = (toString(address) + "_claimed") | |
73 | + | ||
74 | + | ||
75 | + | func totalStakedKey () = "total_staked" | |
76 | + | ||
77 | + | ||
78 | + | func totalStakedUserKey (address) = ("total_staked_" + address) | |
79 | + | ||
80 | + | ||
81 | + | let keyGlobalLastInterest = "global_lastCheck_interest" | |
82 | + | ||
83 | + | func keyLastCheckInterest (address) = (toString(address) + "_lastCheck_interest") | |
84 | + | ||
85 | + | ||
86 | + | let keyGlobalEarned = "global_earnings" | |
87 | + | ||
88 | + | func getOracle () = Address(fromBase58String(tryGetString(staticKey_oracleAddress()))) | |
89 | + | ||
90 | + | ||
91 | + | func getEggAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_eggAssetId())) | |
92 | + | ||
93 | + | ||
94 | + | func getBurnAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_burnAddress()))) | |
95 | + | ||
96 | + | ||
97 | + | func getFeeAggregator () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_feeAggregator()))) | |
98 | + | ||
99 | + | ||
100 | + | func getTurtleBreederAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleBreederAddress()))) | |
101 | + | ||
102 | + | ||
103 | + | func getTurtleIncubatorAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleIncubatorAddress()))) | |
104 | + | ||
105 | + | ||
106 | + | func getTurtleRebirthAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_turtleRebirthAddress()))) | |
107 | + | ||
108 | + | ||
109 | + | func getSpiceAssetId () = fromBase58String(tryGetStringExternal(getOracle(), staticKey_spiceAssetId())) | |
110 | + | ||
111 | + | ||
112 | + | func getRefContractAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_refContractAddress()))) | |
113 | + | ||
114 | + | ||
115 | + | func getCouponsAddress () = Address(fromBase58String(tryGetStringExternal(getOracle(), staticKey_couponsAddress()))) | |
116 | + | ||
117 | + | ||
118 | + | func checkAdditionalPayment (payment) = if (isDefined(payment.assetId)) | |
119 | + | then throw("FCAP: Please attach waves") | |
120 | + | else { | |
121 | + | let feeAmount = getIntegerValue(getOracle(), staticKey_extraFee()) | |
122 | + | if ((payment.amount != feeAmount)) | |
123 | + | then throw((("FCAP: Please attach exactly " + toString(feeAmount)) + " amount of wavelets")) | |
124 | + | else [ScriptTransfer(getFeeAggregator(), feeAmount, unit)] | |
125 | + | } | |
126 | + | ||
127 | + | ||
128 | + | func asInt (value) = match value { | |
129 | + | case int: Int => | |
130 | + | int | |
131 | + | case _ => | |
132 | + | throw("FAI: wrong type, expected: Int") | |
133 | + | } | |
134 | + | ||
135 | + | ||
136 | + | func claimStakingResult (address) = { | |
137 | + | let currentInterest = tryGetInteger(keyGlobalLastInterest) | |
138 | + | let lastCheckInterest = tryGetInteger(keyLastCheckInterest(address)) | |
139 | + | let stakedAmount = tryGetInteger(totalStakedUserKey(toString(address))) | |
140 | + | let reward = if ((lastCheckInterest > 0)) | |
141 | + | then fraction((currentInterest - lastCheckInterest), stakedAmount, Scale) | |
142 | + | else 0 | |
143 | + | let transfer = if ((reward > 0)) | |
144 | + | then [ScriptTransfer(address, reward, getSpiceAssetId())] | |
145 | + | else nil | |
146 | + | (transfer ++ [IntegerEntry(keyLastCheckInterest(address), currentInterest), IntegerEntry(rewardClaimedKey(address), (tryGetInteger(rewardClaimedKey(address)) + reward))]) | |
147 | + | } | |
148 | + | ||
149 | + | ||
150 | + | func handleStakingTopUp (amount) = { | |
151 | + | let currentInterest = tryGetInteger(keyGlobalLastInterest) | |
152 | + | let totalStakedAmount = tryGetInteger(totalStakedKey()) | |
153 | + | let interestDelta = if ((totalStakedAmount > 0)) | |
154 | + | then fraction(amount, Scale, totalStakedAmount) | |
155 | + | else 0 | |
156 | + | [IntegerEntry(keyGlobalEarned, (tryGetInteger(keyGlobalEarned) + amount)), IntegerEntry(keyGlobalLastInterest, (currentInterest + interestDelta))] | |
157 | + | } | |
158 | + | ||
159 | + | ||
160 | + | func asBoolean (value) = match value { | |
161 | + | case boolean: Boolean => | |
162 | + | boolean | |
163 | + | case _ => | |
164 | + | throw("FAB: wrong type, expected: Boolean") | |
165 | + | } | |
166 | + | ||
167 | + | ||
168 | + | func unstakeNFTInternal (asset,i,claimEgg) = { | |
169 | + | let assetId = fromBase58String(asset) | |
170 | + | let address = toString(i.originCaller) | |
171 | + | let colorFromName = takeRight(value(assetInfo(assetId)).name, 1) | |
172 | + | let color = if ((colorFromName == "U")) | |
173 | + | then "G" | |
174 | + | else colorFromName | |
175 | + | let appendPerches = [IntegerEntry(((("address_" + address) + "_beachesAvailable_") + color), (tryGetInteger(((("address_" + address) + "_beachesAvailable_") + color)) + 1))] | |
176 | + | if ((getStringValue((toBase58String(assetId) + "_owner")) != address)) | |
177 | + | then throw("This is not your turtle to claim!!") | |
178 | + | else { | |
179 | + | let farmingPower = if ((colorFromName == "U")) | |
180 | + | then 2700 | |
181 | + | else asInt(invoke(this, "calculateFarmPower", [toBase58String(assetId)], nil)) | |
182 | + | if ((farmingPower == farmingPower)) | |
183 | + | then { | |
184 | + | let diff = [IntegerEntry(totalStakedKey(), (tryGetInteger(totalStakedKey()) - farmingPower)), IntegerEntry(totalStakedUserKey(address), (tryGetInteger(totalStakedUserKey(address)) - farmingPower)), DeleteEntry((toBase58String(assetId) + "_owner")), DeleteEntry((toBase58String(assetId) + "_power")), DeleteEntry((((("assetId_" + toBase58String(assetId)) + "_owner_") + address) + "_power")), ScriptTransfer(i.caller, 1, assetId)] | |
185 | + | $Tuple2(((appendPerches ++ claimStakingResult(i.caller)) ++ diff), farmingPower) | |
186 | + | } | |
187 | + | else throw("Strict value is not equal to itself.") | |
188 | + | } | |
189 | + | } | |
190 | + | ||
191 | + | ||
192 | + | @Callable(i) | |
193 | + | func configureOracle (oracle) = if ((i.caller != this)) | |
194 | + | then throw("ICU: admin only") | |
195 | + | else [StringEntry("static_oracleAddress", oracle)] | |
196 | + | ||
197 | + | ||
198 | + | ||
199 | + | @Callable(i) | |
200 | + | func calculateFarmPower (assetId) = if (!(if ((value(assetInfo(fromBase58String(assetId))).issuer == getTurtleBreederAddress())) | |
201 | + | then true | |
202 | + | else (value(assetInfo(fromBase58String(assetId))).issuer == getTurtleIncubatorAddress()))) | |
203 | + | then throw("This does not seem like a valid Turtle!") | |
204 | + | else { | |
205 | + | let assetName = value(assetInfo(fromBase58String(assetId))).name | |
206 | + | let genotype = split(dropRight(drop(assetName, 5), 3), "") | |
207 | + | func uniqueArrayFilter (accum,nextGen) = if (!(containsElement(accum, nextGen))) | |
208 | + | then (accum :+ nextGen) | |
209 | + | else accum | |
210 | + | ||
211 | + | let uniqueList = { | |
212 | + | let $l = genotype | |
213 | + | let $s = size($l) | |
214 | + | let $acc0 = nil | |
215 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
216 | + | then $a | |
217 | + | else uniqueArrayFilter($a, $l[$i]) | |
218 | + | ||
219 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
220 | + | then $a | |
221 | + | else throw("List size exceeds 8") | |
222 | + | ||
223 | + | $f0_2($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) | |
224 | + | } | |
225 | + | let totalGenes = size(uniqueList) | |
226 | + | let power = pow(15, 1, totalGenes, 0, 2, DOWN) | |
227 | + | $Tuple2([IntegerEntry(("DEBUG_" + assetName), power)], power) | |
228 | + | } | |
229 | + | ||
230 | + | ||
231 | + | ||
232 | + | @Callable(i) | |
233 | + | func calculateFarmPowerAssetName (assetName) = { | |
234 | + | let genotype = split(dropRight(drop(assetName, 5), 3), "") | |
235 | + | func uniqueArrayFilter (accum,nextGen) = if (!(containsElement(accum, nextGen))) | |
236 | + | then (accum :+ nextGen) | |
237 | + | else accum | |
238 | + | ||
239 | + | let uniqueList = { | |
240 | + | let $l = genotype | |
241 | + | let $s = size($l) | |
242 | + | let $acc0 = nil | |
243 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
244 | + | then $a | |
245 | + | else uniqueArrayFilter($a, $l[$i]) | |
246 | + | ||
247 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
248 | + | then $a | |
249 | + | else throw("List size exceeds 8") | |
250 | + | ||
251 | + | $f0_2($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) | |
252 | + | } | |
253 | + | let totalGenes = size(uniqueList) | |
254 | + | let power = pow(15, 1, totalGenes, 0, 2, DOWN) | |
255 | + | $Tuple2([IntegerEntry(("DEBUG_" + assetName), power)], power) | |
256 | + | } | |
257 | + | ||
258 | + | ||
259 | + | ||
260 | + | @Callable(i) | |
261 | + | func addFreeBeach (address,color) = if ((0 > value(indexOf(["R", "D", "S", "G"], color)))) | |
262 | + | then throw("you need to set color properly") | |
263 | + | else if (if ((i.caller != getTurtleRebirthAddress())) | |
264 | + | then (i.caller != this) | |
265 | + | else false) | |
266 | + | then throw("rebirth and swop promo only") | |
267 | + | else { | |
268 | + | let perchAmountKey = ((("address_" + address) + "_beachesAvailable_") + color) | |
269 | + | let perchAmount = tryGetInteger(perchAmountKey) | |
270 | + | $Tuple2([IntegerEntry(perchAmountKey, (perchAmount + 1))], "") | |
271 | + | } | |
272 | + | ||
273 | + | ||
274 | + | ||
275 | + | @Callable(i) | |
276 | + | func buyBeach (color,refererAddress) = { | |
277 | + | let validPayment = checkAdditionalPayment(i.payments[0]) | |
278 | + | if ((validPayment == validPayment)) | |
279 | + | then if ((0 > value(indexOf(["R", "D", "S", "G"], color)))) | |
280 | + | then throw("you need to set color properly") | |
281 | + | else { | |
282 | + | let exactPrice = getIntegerValue(getOracle(), staticKey_turtleBeachFee()) | |
283 | + | let leftToPay = if ((i.originCaller == i.caller)) | |
284 | + | then { | |
285 | + | let amountPaidByCoupons = asInt(invoke(getCouponsAddress(), "useCoupons", [(exactPrice / 2)], nil)) | |
286 | + | if ((amountPaidByCoupons == amountPaidByCoupons)) | |
287 | + | then (exactPrice - amountPaidByCoupons) | |
288 | + | else throw("Strict value is not equal to itself.") | |
289 | + | } | |
290 | + | else exactPrice | |
291 | + | let payment = if ((leftToPay != 0)) | |
292 | + | then { | |
293 | + | let firstPayment = value(i.payments[1]) | |
294 | + | if ((firstPayment.assetId != getEggAssetId())) | |
295 | + | then throw(("FBP: You can attach only EGG tokens with the following asset id: " + toBase58String(getEggAssetId()))) | |
296 | + | else if ((firstPayment.amount != leftToPay)) | |
297 | + | then throw(((("FBP: To buy a beach you currently need the following amount of EGGlets: " + toString(leftToPay)) + " ") + toString(i.caller))) | |
298 | + | else { | |
299 | + | let refererRewardForbeach = fraction(leftToPay, 5, 100) | |
300 | + | let refCall = asBoolean(invoke(getRefContractAddress(), "refPayment", [refererAddress], [AttachedPayment(getEggAssetId(), refererRewardForbeach)])) | |
301 | + | if ((refCall == refCall)) | |
302 | + | then { | |
303 | + | let toBurn = if (refCall) | |
304 | + | then (leftToPay - refererRewardForbeach) | |
305 | + | else leftToPay | |
306 | + | let burnCall = invoke(getBurnAddress(), "burnAttachedPayments", nil, [AttachedPayment(getEggAssetId(), toBurn)]) | |
307 | + | if ((burnCall == burnCall)) | |
308 | + | then leftToPay | |
309 | + | else throw("Strict value is not equal to itself.") | |
310 | + | } | |
311 | + | else throw("Strict value is not equal to itself.") | |
312 | + | } | |
313 | + | } | |
314 | + | else 0 | |
315 | + | if ((payment == payment)) | |
316 | + | then { | |
317 | + | let beachAmountKey = ((("address_" + toString(i.caller)) + "_beachesAvailable_") + color) | |
318 | + | let beachAmount = tryGetInteger(beachAmountKey) | |
319 | + | ([IntegerEntry(beachAmountKey, (beachAmount + 1))] ++ validPayment) | |
320 | + | } | |
321 | + | else throw("Strict value is not equal to itself.") | |
322 | + | } | |
323 | + | else throw("Strict value is not equal to itself.") | |
324 | + | } | |
325 | + | ||
326 | + | ||
327 | + | ||
328 | + | @Callable(i) | |
329 | + | func stakeNFT () = { | |
330 | + | let validPayment = checkAdditionalPayment(i.payments[0]) | |
331 | + | if ((validPayment == validPayment)) | |
332 | + | then { | |
333 | + | let pmt = value(i.payments[1]) | |
334 | + | let assetId = value(pmt.assetId) | |
335 | + | let address = toString(i.caller) | |
336 | + | let colorFromName = takeRight(value(assetInfo(assetId)).name, 1) | |
337 | + | let color = if ((colorFromName == "U")) | |
338 | + | then "G" | |
339 | + | else colorFromName | |
340 | + | let availablePerches = tryGetInteger(((("address_" + address) + "_beachesAvailable_") + color)) | |
341 | + | if ((pmt.amount != 1)) | |
342 | + | then throw("NFT is not attached") | |
343 | + | else if ((0 >= availablePerches)) | |
344 | + | then throw(("no beach available for the type " + color)) | |
345 | + | else { | |
346 | + | let farmingPower = if ((colorFromName == "U")) | |
347 | + | then 2700 | |
348 | + | else asInt(invoke(this, "calculateFarmPower", [toBase58String(assetId)], nil)) | |
349 | + | if ((farmingPower == farmingPower)) | |
350 | + | then (([IntegerEntry(totalStakedKey(), (tryGetInteger(totalStakedKey()) + farmingPower)), IntegerEntry(totalStakedUserKey(address), (tryGetInteger(totalStakedUserKey(address)) + farmingPower)), IntegerEntry(((("address_" + address) + "_beachesAvailable_") + color), (availablePerches - 1)), StringEntry((toBase58String(assetId) + "_owner"), address), IntegerEntry((toBase58String(assetId) + "_power"), farmingPower), IntegerEntry((((("assetId_" + toBase58String(assetId)) + "_owner_") + address) + "_power"), farmingPower)] ++ claimStakingResult(i.caller)) ++ validPayment) | |
351 | + | else throw("Strict value is not equal to itself.") | |
352 | + | } | |
353 | + | } | |
354 | + | else throw("Strict value is not equal to itself.") | |
355 | + | } | |
356 | + | ||
357 | + | ||
358 | + | ||
359 | + | @Callable(i) | |
360 | + | func topUpReward () = if ((size(i.payments) != 1)) | |
361 | + | then throw("Wrong amount of payments attached") | |
362 | + | else if (!(isDefined(i.payments[0].assetId))) | |
363 | + | then throw("Waves rewards not supported") | |
364 | + | else if ((i.payments[0].assetId != getSpiceAssetId())) | |
365 | + | then throw("Please attach spice!") | |
366 | + | else { | |
367 | + | let resHandleStaking = handleStakingTopUp(i.payments[0].amount) | |
368 | + | $Tuple2(resHandleStaking, true) | |
369 | + | } | |
370 | + | ||
371 | + | ||
372 | + | ||
373 | + | @Callable(i) | |
374 | + | func unstakeNFT (asset) = { | |
375 | + | let validPayment = checkAdditionalPayment(i.payments[0]) | |
376 | + | if ((validPayment == validPayment)) | |
377 | + | then { | |
378 | + | let result = unstakeNFTInternal(asset, i, true) | |
379 | + | $Tuple2((result._1 ++ validPayment), result._2) | |
380 | + | } | |
381 | + | else throw("Strict value is not equal to itself.") | |
382 | + | } | |
383 | + | ||
384 | + | ||
385 | + | ||
386 | + | @Callable(i) | |
387 | + | func claimReward () = { | |
388 | + | let validPayment = checkAdditionalPayment(i.payments[0]) | |
389 | + | if ((validPayment == validPayment)) | |
390 | + | then if ((size(i.payments) > 1)) | |
391 | + | then throw("Please don't add extra payments") | |
392 | + | else (claimStakingResult(i.caller) ++ validPayment) | |
393 | + | else throw("Strict value is not equal to itself.") | |
394 | + | } | |
395 | + | ||
396 | + | ||
397 | + | @Verifier(tx) | |
398 | + | func verify () = if (isTestEnv()) | |
399 | + | then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
400 | + | else { | |
401 | + | let firstUser = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
402 | + | let secondUser = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
403 | + | let thirdUser = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
404 | + | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
405 | + | then 1 | |
406 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
407 | + | then 1 | |
408 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
409 | + | then 1 | |
410 | + | else 0 | |
411 | + | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
412 | + | then 1 | |
413 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
414 | + | then 1 | |
415 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
416 | + | then 1 | |
417 | + | else 0 | |
418 | + | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
419 | + | then 1 | |
420 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
421 | + | then 1 | |
422 | + | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
423 | + | then 1 | |
424 | + | else 0 | |
425 | + | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
426 | + | match tx { | |
427 | + | case _ => | |
428 | + | (signaturesCount >= 2) | |
429 | + | } | |
430 | + | } | |
431 | + |
github/deemru/w8io/026f985 30.05 ms ◑