tx · Dxmmapjih7X6uXGeptDJPXbQAP5KbF5nViKqnTLqRAXk

3Mu9qAjmg8fVTxxpwPZnBAH948ujt4m6Xvk:  -0.01000000 Waves

2021.10.15 00:49 [1746502] smart account 3Mu9qAjmg8fVTxxpwPZnBAH948ujt4m6Xvk > SELF 0.00000000 Waves

{ "type": 13, "id": "Dxmmapjih7X6uXGeptDJPXbQAP5KbF5nViKqnTLqRAXk", "fee": 1000000, "feeAssetId": null, "timestamp": 1634248162978, "version": 2, "chainId": 84, "sender": "3Mu9qAjmg8fVTxxpwPZnBAH948ujt4m6Xvk", "senderPublicKey": "8v9pmcXqHz9DTc5k1Z8duTYyDwykFxN3EzdZ9WAn3KXJ", "proofs": [ "5eiqno5QwYseWxwvPsG3GYNXUmUuPbLB4h7xSsKDo67u5wNLNH4gBpwDw4scQV5DpdUjGQckMBS4zupNb32hzErP" ], "script": "base64:AAIDAAAAAAAAAAgIARIECgIBAQAAAAcAAAAADWdhbWVOdW1iZXJLZXkCAAAADCRHQU1FX05VTUJFUgAAAAALbGFzdFBsYXlLZXkCAAAACiRMQVNUX1BMQVkAAAAAA1dPTgAAAAAAAAAAAQAAAAAETE9TRQAAAAAAAAAAAgEAAAAKcGF5b3V0Y2FsYwAAAAEAAAAGbnVtYmVyBAAAAAVob3VzZQAAAAAAAAAABgQAAAAEYmFzZQAAAAAAAAAnEAkAAGkAAAACCQAAaAAAAAIFAAAABGJhc2UJAABpAAAAAgkAAGUAAAACAAAAAAAAAABkAAAAAAAAAAAGAAAAAAAAAABkBQAAAAZudW1iZXIBAAAACnJhbmRvbWl6ZXIAAAABAAAAAWkEAAAACGxhc3RQbGF5BAAAAAckbWF0Y2gwCQAEHAAAAAIFAAAABHRoaXMFAAAAC2xhc3RQbGF5S2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0AQ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QEAAAAKcGF5b3V0Y2FsYwAAAAEJAABkAAAAAgkAAGUAAAACBQAAAAhndWVzc0VuZAUAAAAKZ3Vlc3NTdGFydAAAAAAAAAAAAQAAAAAAAAAAZAUAAAAEdW5pdAUAAAADbmlsBAAAAANzdHIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAANXT04CAAAABl9MT1NFXwUAAAANdHJhbnNhY3Rpb25JZAIAAAABXwUAAAAHZ2FtZUtleQIAAAABXwkAAaQAAAABBQAAAApndWVzc1N0YXJ0AgAAAAEtCQABpAAAAAEFAAAACGd1ZXNzRW5kAgAAAAFfCQABpAAAAAEFAAAABHJhbmQEAAAADXdyaXRlTGFzdFBsYXkJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAC2xhc3RQbGF5S2V5BQAAAARyYW5kCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAdnYW1lS2V5BQAAAANzdHIJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADWdhbWVOdW1iZXJLZXkJAABkAAAAAgUAAAAGZ2FtZUlkAAAAAAAAAAABBQAAAANuaWwJAQAAAAxTY3JpcHRSZXN1bHQAAAACBQAAAA13cml0ZUxhc3RQbGF5CQEAAAALVHJhbnNmZXJTZXQAAAABBQAAAANuaWwAAAABAAAAAWkBAAAACXplcm8yaGVybwAAAAIAAAAKZ3Vlc3NTdGFydAAAAAhndWVzc0VuZAkBAAAACnN0YXJ0TG90dG8AAAADBQAAAAFpBQAAAApndWVzc1N0YXJ0BQAAAAhndWVzc0VuZAAAAABUQHCh", "height": 1746502, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E8cM5giqzw6mscXVhAKh8GjhGNrHukmGYcMWNwMN9tn7 Next: 9zyoZV4p2Zr3MGLcHxtstmu74XuMaaVpxxTzSVyzc19Q Diff:
OldNewDifferences
6868 then 1
6969 else throw("Match error")
7070 }
71+ let y = ((t + "_") + toString(w))
7172 if (if (((q + 1) > n))
7273 then (n > (p - 1))
7374 else false)
7475 then {
75- let y = ((((((((((((toString(c) + "_WON_") + u) + "_") + t) + "_") + toString(w)) + "_") + toString(p)) + "-") + toString(q)) + "_") + toString(n))
76- let z = WriteSet([DataEntry(b, n), DataEntry((t + toString(w)), y), DataEntry(a, (w + 1))])
77- ScriptResult(z, TransferSet([ScriptTransfer(j.caller, ((s.amount * e(((q - p) + 1))) / 100), unit)]))
76+ let z = ((((((((((toString(c) + "_WON_") + u) + "_") + y) + "_") + toString(p)) + "-") + toString(q)) + "_") + toString(n))
77+ let A = WriteSet([DataEntry(b, n), DataEntry(y, z), DataEntry(a, (w + 1))])
78+ ScriptResult(A, TransferSet([ScriptTransfer(j.caller, ((s.amount * e(((q - p) + 1))) / 100), unit)]))
7879 }
7980 else {
80- let y = ((((((((((((toString(c) + "_LOSE_") + u) + "_") + t) + "_") + toString(w)) + "_") + toString(p)) + "-") + toString(q)) + "_") + toString(n))
81- let z = WriteSet([DataEntry(b, n), DataEntry((t + toString(w)), y), DataEntry(a, (w + 1))])
82- ScriptResult(z, TransferSet(nil))
81+ let z = ((((((((((toString(c) + "_LOSE_") + u) + "_") + y) + "_") + toString(p)) + "-") + toString(q)) + "_") + toString(n))
82+ let A = WriteSet([DataEntry(b, n), DataEntry(y, z), DataEntry(a, (w + 1))])
83+ ScriptResult(A, TransferSet(nil))
8384 }
8485 }
8586 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "$GAME_NUMBER"
55
66 let b = "$LAST_PLAY"
77
88 let c = 1
99
1010 let d = 2
1111
1212 func e (f) = {
1313 let g = 6
1414 let h = 10000
1515 ((h * ((100 - 6) / 100)) / f)
1616 }
1717
1818
1919 func i (j) = {
2020 let k = {
2121 let l = getBinary(this, b)
2222 if ($isInstanceOf(l, "ByteVector"))
2323 then {
2424 let m = l
2525 m
2626 }
2727 else if ($isInstanceOf(l, "Unit"))
2828 then base58'2ee4oFDYriWJ9EMeR'
2929 else throw("Match error")
3030 }
3131 let n = (((((k + j.transactionId) + j.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
3232 sha256(n)
3333 }
3434
3535
3636 func o (j,p,q) = {
3737 let r = (wavesBalance(this) / 100)
3838 let s = extract(j.payment)
3939 if (!(isDefined(j.payment)))
4040 then throw("Should be with Payment in Waves")
4141 else if (isDefined(s.assetId))
4242 then throw("Payment should be in Waves")
4343 else if ((s.amount > r))
4444 then throw(("Payment should be less than " + toString(r)))
4545 else if ((0 > p))
4646 then throw("guessStart and guessEnd Must be in between 0-99")
4747 else if ((q > 99))
4848 then throw("guessStart and guessEnd Must be in between 0-99")
4949 else if ((p > q))
5050 then throw("guessStart and guessEnd Must be in between 0-99")
5151 else if ((5 > ((q - p) + 1)))
5252 then throw("guessStart and guessEnd Must be at least 5 apart")
5353 else if ((((q - p) + 1) > 95))
5454 then throw("guessStart and guessEnd Must not be at least 95 apart")
5555 else {
5656 let t = toBase58String(j.caller.bytes)
5757 let u = toBase58String(j.transactionId)
5858 let v = i(j)
5959 let n = (toInt(v) % 100)
6060 let w = {
6161 let l = getInteger(this, a)
6262 if ($isInstanceOf(l, "Int"))
6363 then {
6464 let x = l
6565 x
6666 }
6767 else if ($isInstanceOf(l, "Unit"))
6868 then 1
6969 else throw("Match error")
7070 }
71+ let y = ((t + "_") + toString(w))
7172 if (if (((q + 1) > n))
7273 then (n > (p - 1))
7374 else false)
7475 then {
75- let y = ((((((((((((toString(c) + "_WON_") + u) + "_") + t) + "_") + toString(w)) + "_") + toString(p)) + "-") + toString(q)) + "_") + toString(n))
76- let z = WriteSet([DataEntry(b, n), DataEntry((t + toString(w)), y), DataEntry(a, (w + 1))])
77- ScriptResult(z, TransferSet([ScriptTransfer(j.caller, ((s.amount * e(((q - p) + 1))) / 100), unit)]))
76+ let z = ((((((((((toString(c) + "_WON_") + u) + "_") + y) + "_") + toString(p)) + "-") + toString(q)) + "_") + toString(n))
77+ let A = WriteSet([DataEntry(b, n), DataEntry(y, z), DataEntry(a, (w + 1))])
78+ ScriptResult(A, TransferSet([ScriptTransfer(j.caller, ((s.amount * e(((q - p) + 1))) / 100), unit)]))
7879 }
7980 else {
80- let y = ((((((((((((toString(c) + "_LOSE_") + u) + "_") + t) + "_") + toString(w)) + "_") + toString(p)) + "-") + toString(q)) + "_") + toString(n))
81- let z = WriteSet([DataEntry(b, n), DataEntry((t + toString(w)), y), DataEntry(a, (w + 1))])
82- ScriptResult(z, TransferSet(nil))
81+ let z = ((((((((((toString(c) + "_LOSE_") + u) + "_") + y) + "_") + toString(p)) + "-") + toString(q)) + "_") + toString(n))
82+ let A = WriteSet([DataEntry(b, n), DataEntry(y, z), DataEntry(a, (w + 1))])
83+ ScriptResult(A, TransferSet(nil))
8384 }
8485 }
8586 }
8687
8788
8889 @Callable(j)
8990 func zero2hero (p,q) = o(j, p, q)
9091
9192

github/deemru/w8io/169f3d6 
37.50 ms