tx · FD7G7Z3QBrb63cpHzHGgYW9DMybNvU2qQtzeAm4hrViq

3N8GJgmMBsrwhn6uQstYAmqZBLuupZEGXr9:  -0.01400000 Waves

2019.07.28 11:41 [605684] smart account 3N8GJgmMBsrwhn6uQstYAmqZBLuupZEGXr9 > SELF 0.00000000 Waves

{ "type": 13, "id": "FD7G7Z3QBrb63cpHzHGgYW9DMybNvU2qQtzeAm4hrViq", "fee": 1400000, "feeAssetId": null, "timestamp": 1564303304267, "version": 1, "sender": "3N8GJgmMBsrwhn6uQstYAmqZBLuupZEGXr9", "senderPublicKey": "BUuYfkh9hHixwVUQvqzkLkLbWrQYnWpJ8FXVjZUPxBcm", "proofs": [ "3nv45j3iPyvNLVRyaewSfiUF8bnhUd9qt5QMXFh7udVeeVwGSaPEhq5GAntaSJd1AsWxfydYg63KrgyhSQKgnK5U" ], "script": "base64:AAIDAAAAAAAAAAAAAAAHAAAAAAlzbG90Q291bnQAAAAAAAAAAGQAAAAABXNsb3RzCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAA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mFtb3VudAAAAAAAAAAF8AAAAAAAAAAAZAUAAAAEdW5pdAUAAAADbmlsAwMDCQAAAAAAAAIFAAAABHNtdDEAAAAAAAAAAAUJAAAAAAAAAgUAAAAEc210MgAAAAAAAAAABQcJAAAAAAAAAgUAAAAEc210MwAAAAAAAAAABQcJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABXNsb3QxAgAAAAFfBQAAAAVzbG90MgIAAAABXwUAAAAFc2xvdDMJAAEsAAAAAgkAASwAAAACBQAAAAZwbGF5ZXICAAAAAV8FAAAACXRpbWVzdGFtcAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAANpbnYAAAAGY2FsbGVyCQAAaQAAAAIJAABoAAAAAggFAAAAB3BheW1lbnQAAAAGYW1vdW50AAAAAAAAAAvgAAAAAAAAAABkBQAAAAR1bml0BQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABXNsb3QxAgAAAAFfBQAAAAVzbG90MgIAAAABXwUAAAAFc2xvdDMJAAEsAAAAAgkAASwAAAACBQAAAAZwbGF5ZXICAAAAAV8FAAAACXRpbWVzdGFtcAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAABAAAAA2ludgEAAAAFbG90dG8AAAAACQEAAAAKc3RhcnRMb3R0bwAAAAEFAAAAA2ludgAAAAA+1SMf", "chainId": 84, "height": 605684, "spentComplexity": 0 } View: original | compacted Prev: 9sc3kgzBMgdmoWRRQ124cw9gpL5mqbZzdqrSYLdspddK Next: NPHVCU4ueyMUpqB4HN7KF1UShseidy8GpBcNX5dTaFS Diff:
OldNewDifferences
5757 then (smt3 == 1)
5858 else false)
5959 then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet([ScriptTransfer(inv.caller, ((payment.amount * 190) / 100), unit)]))
60- else ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet(nil))
60+ else if (if (if ((smt1 == 2))
61+ then (smt2 == 2)
62+ else false)
63+ then (smt3 == 2)
64+ else false)
65+ then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet([ScriptTransfer(inv.caller, ((payment.amount * 380) / 100), unit)]))
66+ else if (if (if ((smt1 == 3))
67+ then (smt2 == 3)
68+ else false)
69+ then (smt3 == 3)
70+ else false)
71+ then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet([ScriptTransfer(inv.caller, ((payment.amount * 760) / 100), unit)]))
72+ else if (if (if ((smt1 == 4))
73+ then (smt2 == 4)
74+ else false)
75+ then (smt3 == 4)
76+ else false)
77+ then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet([ScriptTransfer(inv.caller, ((payment.amount * 1520) / 100), unit)]))
78+ else if (if (if ((smt1 == 5))
79+ then (smt2 == 5)
80+ else false)
81+ then (smt3 == 5)
82+ else false)
83+ then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet([ScriptTransfer(inv.caller, ((payment.amount * 3040) / 100), unit)]))
84+ else ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet(nil))
6185 }
6286 }
6387
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let slotCount = 100
55
66 let slots = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5]
77
88 func randomizer (inv) = {
99 let rand = ((((inv.transactionId + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
1010 sha256(rand)
1111 }
1212
1313
1414 func getSlot1 (inv) = {
1515 let hash = sha256(((((inv.transactionId + inv.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)))
1616 let index = toInt(hash)
1717 slots[(index % slotCount)]
1818 }
1919
2020
2121 func getSlot2 (inv) = {
2222 let hash = sha256(((((inv.transactionId + lastBlock.generationSignature) + inv.callerPublicKey) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)))
2323 let index = toInt(hash)
2424 slots[(index % slotCount)]
2525 }
2626
2727
2828 func getSlot3 (inv) = {
2929 let hash = sha256(((((inv.callerPublicKey + inv.transactionId) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)))
3030 let index = toInt(hash)
3131 slots[(index % slotCount)]
3232 }
3333
3434
3535 func startLotto (inv) = {
3636 let MaxBet = (wavesBalance(this) / 100)
3737 let payment = extract(inv.payment)
3838 let slot1 = toString(getSlot1(inv))
3939 let slot2 = toString(getSlot2(inv))
4040 let slot3 = toString(getSlot3(inv))
4141 let smt1 = getSlot1(inv)
4242 let smt2 = getSlot2(inv)
4343 let smt3 = getSlot3(inv)
4444 if (!(isDefined(inv.payment)))
4545 then throw("Should be with Payment in Waves")
4646 else if (isDefined(payment.assetId))
4747 then throw("Payment should be in Waves")
4848 else if ((payment.amount > MaxBet))
4949 then throw(("Payment should be less than " + toString(MaxBet)))
5050 else {
5151 let player = toBase58String(inv.caller.bytes)
5252 let randhash = randomizer(inv)
5353 let timestamp = toString(lastBlock.timestamp)
5454 if (if (if ((smt1 == 1))
5555 then (smt2 == 1)
5656 else false)
5757 then (smt3 == 1)
5858 else false)
5959 then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet([ScriptTransfer(inv.caller, ((payment.amount * 190) / 100), unit)]))
60- else ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet(nil))
60+ else if (if (if ((smt1 == 2))
61+ then (smt2 == 2)
62+ else false)
63+ then (smt3 == 2)
64+ else false)
65+ then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet([ScriptTransfer(inv.caller, ((payment.amount * 380) / 100), unit)]))
66+ else if (if (if ((smt1 == 3))
67+ then (smt2 == 3)
68+ else false)
69+ then (smt3 == 3)
70+ else false)
71+ then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet([ScriptTransfer(inv.caller, ((payment.amount * 760) / 100), unit)]))
72+ else if (if (if ((smt1 == 4))
73+ then (smt2 == 4)
74+ else false)
75+ then (smt3 == 4)
76+ else false)
77+ then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet([ScriptTransfer(inv.caller, ((payment.amount * 1520) / 100), unit)]))
78+ else if (if (if ((smt1 == 5))
79+ then (smt2 == 5)
80+ else false)
81+ then (smt3 == 5)
82+ else false)
83+ then ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet([ScriptTransfer(inv.caller, ((payment.amount * 3040) / 100), unit)]))
84+ else ScriptResult(WriteSet([DataEntry(((((slot1 + "_") + slot2) + "_") + slot3), ((player + "_") + timestamp))]), TransferSet(nil))
6185 }
6286 }
6387
6488
6589 @Callable(inv)
6690 func lotto () = startLotto(inv)
6791
6892

github/deemru/w8io/026f985 
31.47 ms