tx · 5YhdTWwJj6MxtqMs5Xs66JY5SVK7AjqN7g2vnZA6Ahhu

3N7hZdm19vhG6oyw7JMbaPaaAgCtsSm4DBt:  -0.00200000 Waves

2022.07.11 14:14 [2135003] smart account 3N7hZdm19vhG6oyw7JMbaPaaAgCtsSm4DBt > SELF 0.00000000 Waves

{ "type": 13, "id": "5YhdTWwJj6MxtqMs5Xs66JY5SVK7AjqN7g2vnZA6Ahhu", "fee": 200000, "feeAssetId": null, "timestamp": 1657538070875, "version": 1, "sender": "3N7hZdm19vhG6oyw7JMbaPaaAgCtsSm4DBt", "senderPublicKey": "BpXfLNT2wU6xicV6KikooLuXm1XTfADayBNivezGqktE", "proofs": [ "5qyixMMQaSeiwBqbhEfuuWYsenta4Rgx245p5w5qNutHA8draxfXqQv1SC6kP6kaPQ4FUNinwR9nAUKVsQNqh7Jq" ], "script": "base64:AAIDAAAAAAAAAAYIARIAEgAAAAACAQAAAApyYW5kb21pemVyAAAAAQAAAANpbnYEAAAACGxhc3RQbGF5BAAAAAckbWF0Y2gwCQAEHAAAAAIFAAAABHRoaXMCAAAACGxhc3RQbGF5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAFzBQAAAAckbWF0Y2gwBQAAAAFzAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0BAAAAAFhBQAAAAckbWF0Y2gwAQAAAAxXYXZlc0xvdHRvVjIJAQAAAAV0aHJvdwAAAAAEAAAABHJhbmQJAADLAAAAAgkAAMsAAAACCQAAywAAAAIJAADLAAAAAgkAAMsAAAACBQAAAAhsYXN0UGxheQgFAAAAA2ludgAAAA10cmFuc2FjdGlvbklkCAUAAAADaW52AAAAD2NhbGxlclB1YmxpY0tleQgFAAAACWxhc3RCbG9jawAAABNnZW5lcmF0aW9uU2lnbmF0dXJlCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wCQABmgAAAAEIBQAAAAlsYXN0QmxvY2sAAA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D6AkBAAAADFNjcmlwdFJlc3VsdAAAAAIFAAAADXdyaXRlTGFzdFBsYXkFAAAAC3dpblRyYW5zZmVyCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgUAAAANd3JpdGVMYXN0UGxheQkBAAAAC1RyYW5zZmVyU2V0AAAAAQUAAAADbmlsAAAAAgAAAANpbnYBAAAABWxvdHRvAAAAAAkBAAAACnN0YXJ0TG90dG8AAAABBQAAAANpbnYAAAADaW52AQAAAAdkZWZhdWx0AAAAAAkBAAAACnN0YXJ0TG90dG8AAAABBQAAAANpbnYAAAAA4XqnJg==", "chainId": 84, "height": 2135003, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FLyD4g6tQzyUe6QUbHcxLsuSf9cG2vwF9rS2UyLxBnPW Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = {
66 let d = getBinary(this, "lastPlay")
77 if ($isInstanceOf(d, "ByteVector"))
88 then {
99 let e = d
1010 e
1111 }
1212 else if ($isInstanceOf(d, "Unit"))
1313 then {
1414 let f = d
1515 base58'2ee4oFDYriWJ9EMeR'
1616 }
1717 else throw()
1818 }
1919 let g = (((((c + b.transactionId) + b.callerPublicKey) + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height))
2020 sha256(g)
2121 }
2222
2323
2424 func h (b) = {
2525 let i = (wavesBalance(this) / 100)
2626 let j = extract(b.payment)
2727 if (!(isDefined(b.payment)))
2828 then throw("Should be with Payment in Waves")
2929 else if (isDefined(j.assetId))
3030 then throw("Payment should be in Waves")
3131 else if ((j.amount > i))
3232 then throw(("Payment should be less than " + toString(i)))
3333 else {
3434 let k = a(b)
3535 let l = TransferSet([ScriptTransfer(b.caller, ((j.amount * 190) / 100), unit)])
3636 let m = WriteSet([DataEntry("lastPlay", k)])
3737 if ((500 > (toInt(k) % 1000)))
3838 then ScriptResult(m, l)
3939 else ScriptResult(m, TransferSet(nil))
4040 }
4141 }
4242
4343
4444 @Callable(b)
4545 func lotto () = h(b)
4646
4747
4848
4949 @Callable(b)
5050 func default () = h(b)
5151
5252

github/deemru/w8io/026f985 
39.08 ms