tx · 56QDn5wZ3SeL2ChmvFX1vWyLeeyg4v1B6tfs6AYukXZ8

3Mynaio8coZLr58tu2AdBEhmCvB17vTBRkA:  -0.01000000 Waves

2023.05.31 23:19 [2602608] smart account 3Mynaio8coZLr58tu2AdBEhmCvB17vTBRkA > SELF 0.00000000 Waves

{ "type": 13, "id": "56QDn5wZ3SeL2ChmvFX1vWyLeeyg4v1B6tfs6AYukXZ8", "fee": 1000000, "feeAssetId": null, "timestamp": 1685564400317, "version": 2, "chainId": 84, "sender": "3Mynaio8coZLr58tu2AdBEhmCvB17vTBRkA", "senderPublicKey": "Dx7cJVhpJb4qUDGiDnSjj6Wfjdj5nmzwVLfaggkbjDtv", "proofs": [ "4sfwgDmXTpWvwHbhbJKaLYvvPnpGsVp2rz7shBp6ftUoNSM26U1bEpbjDJHHqzjhn2ry5E5u5k2Nek2VHQufwuta" ], "script": "base64:BgIGCAISABIABQEKbnVtVG9XYXZlcwEDbnVtCQBoAgUDbnVtAIDC1y8BC2lzUGF5bWVudE9rAQFpBBFhY2NlcHRhYmxlQXNzZXRJZAEgIkSm54hUfVEormpXug9p+nbhDnc37ahHq1IfaU2UQkcDCQAAAgkAkAMBCAUBaQhwYXltZW50cwAACQACAQIUUGF5bWVudCBub3QgYXR0YWNoZWQEAXAJAJEDAggFAWkIcGF5bWVudHMAAAQHJG1hdGNoMAgFAXAHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAdhc3NldElkBQckbWF0Y2gwAwkAAAIFB2Fzc2V0SWQFEWFjY2VwdGFibGVBc3NldElkCQBnAggFAXAGYW1vdW50CQEKbnVtVG9XYXZlcwEAAQcJAGcCCAUBcAZhbW91bnQJAQpudW1Ub1dhdmVzAQABARNnZXRMdWNreVdoZWVsQmV0S2V5AQFpCQCsAgICD2JldF9MdWNreVdoZWVsXwkApQgBCAUBaQZjYWxsZXIBE2dldEx1Y2t5V2hlZWxXb25LZXkBAWkJAKwCAgIPd29uX0x1Y2t5V2hl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ZWFsIHRoaXMgaWQEC3JldmVhbEJsb2NrCQETdmFsdWVPckVycm9yTWVzc2FnZQIJAO0HAQUMY29tbWl0SGVpZ2h0AhF1bmV4Y3BlY3RlZCBlcnJvcgQDdnJmCQETdmFsdWVPckVycm9yTWVzc2FnZQIIBQtyZXZlYWxCbG9jawN2cmYCEXVuZXhjcGVjdGVkIGVycm9yBApyYW5kb21TZWVkCQCxCQEJAPUDAQUDdnJmBAxyYW5kb21OdW1iZXIJAGQCCQBqAgUKcmFuZG9tU2VlZAkAZAIJAGUCAAwAAQABAAEEDXdpbm5pbmdBbW91bnQJARlnYW1lTHVja3lXaGVlbFdoYXRVc2VyV29uAQUMcmFuZG9tTnVtYmVyAwkAZgIFDXdpbm5pbmdBbW91bnQAAAkAzAgCCQELRGVsZXRlRW50cnkBCQETZ2V0THVja3lXaGVlbEJldEtleQEFAWkJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQ13aW5uaW5nQW1vdW50BQR1bml0CQDMCAIJAQxJbnRlZ2VyRW50cnkCCQETZ2V0THVja3lXaGVlbFdvbktleQEFAWkFDXdpbm5pbmdBbW91bnQFA25pbAkAzAgCCQELRGVsZXRlRW50cnkBCQETZ2V0THVja3lXaGVlbEJldEtleQEFAWkJAMwIAgkBDEludGVnZXJFbnRyeQIJARNnZXRMdWNreVdoZWVsV29uS2V5AQUBaQUNd2lubmluZ0Ftb3VudAUDbmlsAFK2WRw=", "height": 2602608, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HoCW69TMjiYjffqCBVVisk7BDQcYdenKwuASUuB7wUxk Next: 3oskqxZztcAUS3PemdsMDntReEcyUDiBH8dV6p8teCoD Diff:
OldNewDifferences
4646 @Callable(d)
4747 func commitLuckyWheel () = if (!(c(d)))
4848 then throw("Wrong payment amount or asset")
49- else [IntegerEntry(i(d), (height + 1))]
49+ else [IntegerEntry(i(d), (height + 1)), DeleteEntry("test"), DeleteEntry("D8qa94GWLRdCYHc4Dheuv4utrosHkpkBuRnrM3dQrvdF_result"), DeleteEntry("D8qa94GWLRdCYHc4Dheuv4utrosHkpkBuRnrM3dQrvdF"), DeleteEntry("BC4YGE9yjUnSok83erUDWwiNHrgNJL7EQx1dHh98eTkW")]
5050
5151
5252
6262 let q = ((p % ((12 - 1) + 1)) + 1)
6363 let r = k(q)
6464 if ((r > 0))
65- then [DeleteEntry(i(d)), DeleteEntry("test"), DeleteEntry("D8qa94GWLRdCYHc4Dheuv4utrosHkpkBuRnrM3dQrvdF_result"), DeleteEntry("D8qa94GWLRdCYHc4Dheuv4utrosHkpkBuRnrM3dQrvdF"), DeleteEntry("BC4YGE9yjUnSok83erUDWwiNHrgNJL7EQx1dHh98eTkW"), ScriptTransfer(d.caller, r, unit), IntegerEntry(j(d), r)]
65+ then [DeleteEntry(i(d)), ScriptTransfer(d.caller, r, unit), IntegerEntry(j(d), r)]
6666 else [DeleteEntry(i(d)), IntegerEntry(j(d), r)]
6767 }
6868 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = (b * 100000000)
55
66
77 func c (d) = {
88 let e = base58'3JmaWyFqWo8YSA8x3DXCBUW7veesxacvKx19dMv7wTMg'
99 if ((size(d.payments) == 0))
1010 then throw("Payment not attached")
1111 else {
1212 let f = d.payments[0]
1313 let g = f.assetId
1414 if ($isInstanceOf(g, "ByteVector"))
1515 then {
1616 let h = g
1717 if ((h == e))
1818 then (f.amount >= a(1))
1919 else false
2020 }
2121 else (f.amount >= a(1))
2222 }
2323 }
2424
2525
2626 func i (d) = ("bet_LuckyWheel_" + toString(d.caller))
2727
2828
2929 func j (d) = ("won_LuckyWheel_" + toString(d.caller))
3030
3131
3232 func k (l) = {
3333 let g = l
3434 if ((1 == g))
3535 then a(2)
3636 else if ((5 == g))
3737 then a(1)
3838 else if ((7 == g))
3939 then a(4)
4040 else if ((11 == g))
4141 then a(1)
4242 else 0
4343 }
4444
4545
4646 @Callable(d)
4747 func commitLuckyWheel () = if (!(c(d)))
4848 then throw("Wrong payment amount or asset")
49- else [IntegerEntry(i(d), (height + 1))]
49+ else [IntegerEntry(i(d), (height + 1)), DeleteEntry("test"), DeleteEntry("D8qa94GWLRdCYHc4Dheuv4utrosHkpkBuRnrM3dQrvdF_result"), DeleteEntry("D8qa94GWLRdCYHc4Dheuv4utrosHkpkBuRnrM3dQrvdF"), DeleteEntry("BC4YGE9yjUnSok83erUDWwiNHrgNJL7EQx1dHh98eTkW")]
5050
5151
5252
5353 @Callable(d)
5454 func revealLuckyWheel () = {
5555 let m = valueOrErrorMessage(getIntegerValue(i(d)), "Bet not found")
5656 if ((m > height))
5757 then throw((("wait " + toString((m - height))) + " blocks to reveal this id"))
5858 else {
5959 let n = valueOrErrorMessage(blockInfoByHeight(m), "unexcpected error")
6060 let o = valueOrErrorMessage(n.vrf, "unexcpected error")
6161 let p = toInt(keccak256(o))
6262 let q = ((p % ((12 - 1) + 1)) + 1)
6363 let r = k(q)
6464 if ((r > 0))
65- then [DeleteEntry(i(d)), DeleteEntry("test"), DeleteEntry("D8qa94GWLRdCYHc4Dheuv4utrosHkpkBuRnrM3dQrvdF_result"), DeleteEntry("D8qa94GWLRdCYHc4Dheuv4utrosHkpkBuRnrM3dQrvdF"), DeleteEntry("BC4YGE9yjUnSok83erUDWwiNHrgNJL7EQx1dHh98eTkW"), ScriptTransfer(d.caller, r, unit), IntegerEntry(j(d), r)]
65+ then [DeleteEntry(i(d)), ScriptTransfer(d.caller, r, unit), IntegerEntry(j(d), r)]
6666 else [DeleteEntry(i(d)), IntegerEntry(j(d), r)]
6767 }
6868 }
6969
7070

github/deemru/w8io/169f3d6 
41.12 ms