tx · 93kVRN4X4adLVYAvAZwaYCAuyzTBFn9kDzKNVJzsuH6M

3N8GJgmMBsrwhn6uQstYAmqZBLuupZEGXr9:  -0.01400000 Waves

2019.07.27 16:07 [604511] smart account 3N8GJgmMBsrwhn6uQstYAmqZBLuupZEGXr9 > SELF 0.00000000 Waves

{ "type": 13, "id": "93kVRN4X4adLVYAvAZwaYCAuyzTBFn9kDzKNVJzsuH6M", "fee": 1400000, "feeAssetId": null, "timestamp": 1564232864861, "version": 1, "sender": "3N8GJgmMBsrwhn6uQstYAmqZBLuupZEGXr9", "senderPublicKey": "BUuYfkh9hHixwVUQvqzkLkLbWrQYnWpJ8FXVjZUPxBcm", "proofs": [ "5tUZD6sZZ2jBKKuUiYuiUqd8pxzxgt5Y6jJWN8ZrVENhjPKWPZFHvLkaNLWUajnjgPeDFwSNcAEUTGmV8SbC5n9Q" ], "script": "base64:AAIDAAAAAAAAAAAAAAAFAAAAAAlzbG90Q291bnQAAAAAAAAAAGQAAAAABXNsb3RzCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAExCQAETAAAAAICAAAAATEJAARMAAAAAgIAAAABMQkABEwAAAACAgAAAAEyCQAETAAAAAICAAAAATIJAARMAAAAAgIAAAABMgkABEwAAAACAgAAAAEyCQAETAAAAAICAAAAATIJAARMAAAAAgIAAAABMgkABEwAAAACAgAAAAEyCQAETAAAAAICAAAAATIJAARMAAAAAgIAAAABMgkABEwAAAACAgAAAAEyCQAETAAAAAICAAAAATIJAARMAAAAAgIAAAABMgkABEwAAAACAgAAAAEyCQAETAAAAAICAAAAATIJAARMAAAAAgIAAAABMgkABEwAAAACAgAAAAEyCQAETAAAAAICAAAAATIJAARMAAAAAgIAAAABMgkABEwAAAACAgAAAAEyCQAETAAAAAICAAAAATIJAARMAAAAAgIAAAABMgkABEwAAAACAgAAAAEyCQAETAAAAAICAAAAATIJAARMAAAAAgIAAAABMgkABEwAAAACAgAAAAEyCQAETAAAAAICAAAAATIJAARMAAAAAgIAAAABMgkABEwAAAACAgAAAAEyCQAETAAAAAICAAAAATIJAARMAAAAAgIAAAABMwkABEwAAAACAgAAAAEzCQAETAAAAAICAAAAATMJAARMAAAAAgIAAAABMwkABEwAAAACAgAAAAEzCQAETAAAAAICAAAAATMJAARMAAAAAgIAAAABMwkABEwAAAACAgAAAAEzCQAETAAAAAICAAAAATMJAARMAAAAAgIAAAABMwkABEwAAAACAgAAAAEzCQAETAAAAAICAAAAATMJAARMAAAAAgIAAAABNAkABEwAAAACAgAAAAE0CQAETAAAAAICAAAAATQJAARMAAAAAgIA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heW1lbnQAAAAGYW1vdW50AAAAAAAAAAC+AAAAAAAAAABkBQAAAAR1bml0BQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAARMb29zBQAAAAZwbGF5ZXIFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAQAAAANpbnYBAAAABWxvdHRvAAAAAAkBAAAACnN0YXJ0TG90dG8AAAABBQAAAANpbnYAAAAAp//rKQ==", "chainId": 84, "height": 604511, "spentComplexity": 0 } View: original | compacted Prev: HofZrQDH7ewiwsZGWm7LJzdCLUEL7G5LBKtNUAUMYqNn Next: GVbVvg9H1zsJ7PMJM6cAt249eATSgf8MyhcFc8R1CK42 Diff:
OldNewDifferences
3131 let l = toBase58String(d.caller.bytes)
3232 let m = c(d)
3333 let n = f(d)
34- let o = toString(lastBlock.timestamp)
34+ let o = f(d)
35+ let p = f(d)
36+ let q = toString(lastBlock.timestamp)
3537 if ((500 > (toInt(m) % 1000)))
36- then ScriptResult(WriteSet([DataEntry(("Win_111_" + o), n)]), TransferSet([ScriptTransfer(d.caller, ((k.amount * 190) / 100), unit)]))
38+ then ScriptResult(WriteSet([DataEntry(((((("Win_111_" + q) + "_") + n) + o) + p), n)]), TransferSet([ScriptTransfer(d.caller, ((k.amount * 190) / 100), unit)]))
3739 else ScriptResult(WriteSet([DataEntry("Loos", l)]), TransferSet(nil))
3840 }
3941 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 100
55
66 let b = ["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 c (d) = {
99 let e = ((((d.transactionId + d.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
1010 sha256(e)
1111 }
1212
1313
1414 func f (d) = {
1515 let g = sha256(((((d.transactionId + d.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)))
1616 let h = toInt(g)
1717 b[(h % a)]
1818 }
1919
2020
2121 func i (d) = {
2222 let j = (wavesBalance(this) / 100)
2323 let k = extract(d.payment)
2424 if (!(isDefined(d.payment)))
2525 then throw("Should be with Payment in Waves")
2626 else if (isDefined(k.assetId))
2727 then throw("Payment should be in Waves")
2828 else if ((k.amount > j))
2929 then throw(("Payment should be less than " + toString(j)))
3030 else {
3131 let l = toBase58String(d.caller.bytes)
3232 let m = c(d)
3333 let n = f(d)
34- let o = toString(lastBlock.timestamp)
34+ let o = f(d)
35+ let p = f(d)
36+ let q = toString(lastBlock.timestamp)
3537 if ((500 > (toInt(m) % 1000)))
36- then ScriptResult(WriteSet([DataEntry(("Win_111_" + o), n)]), TransferSet([ScriptTransfer(d.caller, ((k.amount * 190) / 100), unit)]))
38+ then ScriptResult(WriteSet([DataEntry(((((("Win_111_" + q) + "_") + n) + o) + p), n)]), TransferSet([ScriptTransfer(d.caller, ((k.amount * 190) / 100), unit)]))
3739 else ScriptResult(WriteSet([DataEntry("Loos", l)]), TransferSet(nil))
3840 }
3941 }
4042
4143
4244 @Callable(d)
4345 func lotto () = i(d)
4446
4547

github/deemru/w8io/026f985 
29.51 ms