tx · 4iEAVjbrx4FCrUT1oBPqqip5mdxLMRqdNqXuahLixfy7

3NCdhfVF5hReR1548UPgrg39DNmB6kuypfK:  -0.01400000 Waves

2019.09.10 15:20 [670011] smart account 3NCdhfVF5hReR1548UPgrg39DNmB6kuypfK > SELF 0.00000000 Waves

{ "type": 13, "id": "4iEAVjbrx4FCrUT1oBPqqip5mdxLMRqdNqXuahLixfy7", "fee": 1400000, "feeAssetId": null, "timestamp": 1568118109449, "version": 1, "sender": "3NCdhfVF5hReR1548UPgrg39DNmB6kuypfK", "senderPublicKey": "GQeJWCTgxvB4oLfb4o7NUbHojmG964yx9DYbyxg9mgZp", "proofs": [ "ZtuyCnrLGjc9ejFCZf5buZHGeAYPN9d4XXAVeAhj8Res53tozeR35SeQnskfw6g5ZxUF1kjQoPEc6gj41e2ApUp" ], "script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAAtiYW5rQWRkcmVzcwIAAAAjM010VEd6OGFERGRYaFZkNUpkY25VRlZuWXlOSkNjVXNFeDUAAAACAAAAAWkBAAAACHJlZ2lzdGVyAAAAAAQAAAAHYWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQdAAAAAgUAAAAEdGhpcwUAAAAHYWRkcmVzcwkAAAIAAAABAgAAAA5hbHJlYWR5IGV4aXN0cwkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAHYWRkcmVzcwIAAAADcmVnBQAAAANuaWwAAAABaQEAAAAIdHJ5VG9XaW4AAAABAAAABHR4aWQDCQEAAAAJaXNEZWZpbmVkAAAAAQkABB0AAAACBQAAAAR0aGlzBQAAAAR0eGlkCQAAAgAAAAECAAAAEVR4IGFscmVhZHkgZXhpc3RzBAAAAAJ0eAkAA+4AAAABCQACWQAAAAEFAAAABHR4aWQEAAAAA3R0eAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAFAAAAAXQJAAACAAAAAQIAAAAYTm90IHRyYW5zZmVyIHRyYW5zYWN0aW9uBAAAAAZpc0JhbmsJAAAAAAAAAgkABCUAAAABCQAEJAAAAAEIBQAAAAN0dHgAAAAJcmVjaXBpZW50BQAAAAtiYW5rQWRkcmVzcwQAAAAIdHhIZWlnaHQEAAAAByRtYXRjaDAJAAPpAAAAAQgFAAAAA3R0eAAAAAJpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFoBQAAAAckbWF0Y2gwCQAAZAAAAAIFAAAAAWgAAAAAAAAAAAEJAAACAAAAAQIAAAAKQmFkIGhlaWdodAQAAAAOYmxvY2tUaW1lc3RhbXAEAAAAByRtYXRjaDAJAAPtAAAAAQUAAAAIdHhIZWlnaHQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACUJsb2NrSW5mbwQAAAACYmkFAAAAByRtYXRjaDAIBQAAAAJiaQAAAAl0aW1lc3RhbXAJAAACAAAAAQIAAAAJQmFkIGJsb2NrBAAAAAhpc1dpbm5lcgkAAAAAAAACCQAAagAAAAIJAASxAAAAAQkAAfcAAAABCQAAywAAAAIIBQAAAAN0dHgAAAACaWQJAAGaAAAAAQUAAAAOYmxvY2tUaW1lc3RhbXAAAAAAAAAAAGQAAAAAAAAAAAAJAAACAAAAAQkAAaQAAAABCQAAagAAAAIAAAAAAAAAAIkAAAAAAAAAAFoAAAAA9fdVQg==", "chainId": 84, "height": 670011, "spentComplexity": 0 } View: original | compacted Prev: FcP3EPn3GLtTDjqtnVAER4Cp3N7iNqnp5882MXh4aqKj Next: DgmvYyPA3Cs95LgwSaXGC96cGhTocztK2ECmgEh4WcHF Diff:
OldNewDifferences
3838 throw("Bad block")
3939 }
4040 let isWinner = ((toInt(sha256((ttx.id + toBytes(blockTimestamp)))) % 100) == 0)
41- throw(toString((-137 % 90)))
41+ throw(toString((137 % 90)))
4242 }
4343
4444
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let bankAddress = "3MtTGz8aDDdXhVd5JdcnUFVnYyNJCcUsEx5"
55
66 @Callable(i)
77 func register () = {
88 let address = toBase58String(i.caller.bytes)
99 if (isDefined(getString(this, address)))
1010 then throw("already exists")
1111 else WriteSet([DataEntry(address, "reg")])
1212 }
1313
1414
1515
1616 @Callable(i)
1717 func tryToWin (txid) = if (isDefined(getString(this, txid)))
1818 then throw("Tx already exists")
1919 else {
2020 let tx = transferTransactionById(fromBase58String(txid))
2121 let ttx = match tx {
2222 case t: TransferTransaction =>
2323 t
2424 case _ =>
2525 throw("Not transfer transaction")
2626 }
2727 let isBank = (toString(addressFromRecipient(ttx.recipient)) == bankAddress)
2828 let txHeight = match transactionHeightById(ttx.id) {
2929 case h: Int =>
3030 (h + 1)
3131 case _ =>
3232 throw("Bad height")
3333 }
3434 let blockTimestamp = match blockInfoByHeight(txHeight) {
3535 case bi: BlockInfo =>
3636 bi.timestamp
3737 case _ =>
3838 throw("Bad block")
3939 }
4040 let isWinner = ((toInt(sha256((ttx.id + toBytes(blockTimestamp)))) % 100) == 0)
41- throw(toString((-137 % 90)))
41+ throw(toString((137 % 90)))
4242 }
4343
4444

github/deemru/w8io/026f985 
44.52 ms