tx · CSkKK65P22CQVKeq1S4vyRRcdBLs4TzqxJfT88JxDxP8

3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep:  -0.01400000 Waves

2019.07.09 14:35 [578038] smart account 3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep > SELF 0.00000000 Waves

{ "type": 13, "id": "CSkKK65P22CQVKeq1S4vyRRcdBLs4TzqxJfT88JxDxP8", "fee": 1400000, "feeAssetId": null, "timestamp": 1562672189983, "version": 1, "sender": "3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep", "senderPublicKey": "BJAeTqNbDSA5FiYihZZaSWvD6XL5XjpqVXbTGerBJjRK", "proofs": [ "26Kou5V9gqpRPCGTUqcVXC9Etobd63ZWsCyLcsxR6CzncXhXuiTrngAjURi2dAZ2uBC4LVALbhMdw2wWfmh8ghLN" ], "script": "base64:AAIDAAAAAAAAAAAAAAABAQAAABJ1c2VySGFzQWRtaW5BY2Nlc3MAAAABAAAADXVzZXJQdWJsaWNLZXkEAAAAC2FkbWluUHViS2V5AQAAACCY+qZRd1gHYRktvSnZH9tBqdE0k+t7zknFMQp1UqdbEgMJAQAAAAIhPQAAAAIFAAAADXVzZXJQdWJsaWNLZXkFAAAAC2FkbWluUHViS2V5BwYAAAACAAAAAWkBAAAAA2JldAAAAAEAAAAFcHJpY2UEAAAAEnN0YXJ0VHJhbnNhY3Rpb25JZAkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAAFc3RhcnQEAAAACXRpbWVEZWx0YQkAAGUAAAACBQAAAAZoZWlnaHQJAQAAAAdleHRyYWN0AAAAAQkAA+kAAAABCQABmwAAAAEFAAAAEnN0YXJ0VHJhbnNhY3Rpb25JZAMJAABmAAAAAgUAAAAJdGltZURlbHRhAAAAAAAAAAACCQAAAgAAAAECAAAAFlRoZSBhdWN0aW9uIHdhcyBjbG9zZWQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAAVwcmljZQUAAAADbmlsAAAAAWkBAAAABXN0YXJ0AAAAAAMJAQAAAAEhAAAAAQkBAAAAEnVzZXJIYXNBZG1pbkFjY2VzcwAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkAAAIAAAABAgAAABNZb3UgaGF2ZSBubyBhY2Nlc3MhCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAVzdGFydAkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkBQAAAANuaWwAAAAA4tAkuw==", "chainId": 84, "height": 578038, "spentComplexity": 0 } View: original | compacted Prev: CSiYKcbj8rvMWk8iWiSwdAo3JEhQDAQeHuE3jgGSwiyn Next: E3mdFayH67Rvo749aGhgMUecGP2KqNeQ4KmWjbHJxLY7 Diff:
OldNewDifferences
1111
1212 @Callable(i)
1313 func bet (price) = {
14- let timeDelta = (height - extract(transactionHeightById(base58'bEZtCfm7u7sXPP3tCVMQcV5pbRHibKthgNHL8Yt492h')))
14+ let startTransactionId = getStringValue(this, "start")
15+ let timeDelta = (height - extract(transactionHeightById(toBytes(startTransactionId))))
1516 if ((timeDelta > 2))
1617 then throw("The auction was closed")
1718 else WriteSet([DataEntry(toBase58String(i.callerPublicKey), price)])
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func userHasAdminAccess (userPublicKey) = {
55 let adminPubKey = base58'BJAeTqNbDSA5FiYihZZaSWvD6XL5XjpqVXbTGerBJjRK'
66 if ((userPublicKey != adminPubKey))
77 then false
88 else true
99 }
1010
1111
1212 @Callable(i)
1313 func bet (price) = {
14- let timeDelta = (height - extract(transactionHeightById(base58'bEZtCfm7u7sXPP3tCVMQcV5pbRHibKthgNHL8Yt492h')))
14+ let startTransactionId = getStringValue(this, "start")
15+ let timeDelta = (height - extract(transactionHeightById(toBytes(startTransactionId))))
1516 if ((timeDelta > 2))
1617 then throw("The auction was closed")
1718 else WriteSet([DataEntry(toBase58String(i.callerPublicKey), price)])
1819 }
1920
2021
2122
2223 @Callable(i)
2324 func start () = if (!(userHasAdminAccess(i.callerPublicKey)))
2425 then throw("You have no access!")
2526 else WriteSet([DataEntry("start", toBase58String(i.transactionId))])
2627
2728

github/deemru/w8io/169f3d6 
19.45 ms