tx · GVHo4STgHvLkf1Fegzs85mioYd9V4fXE9kKbncA27sFv

3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep:  -0.01400000 Waves

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

{ "type": 13, "id": "GVHo4STgHvLkf1Fegzs85mioYd9V4fXE9kKbncA27sFv", "fee": 1400000, "feeAssetId": null, "timestamp": 1562670887620, "version": 1, "sender": "3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep", "senderPublicKey": "BJAeTqNbDSA5FiYihZZaSWvD6XL5XjpqVXbTGerBJjRK", "proofs": [ "4eYcM8SVRmNiM8xTkMZNWLT2QB5C6We3DGwyjbX9j6iPHJ6asKwhpTrcifLTEMD2NfM7m2zsKu8eCWRk1z6pW3VL" ], "script": "base64:AAIDAAAAAAAAAAAAAAABAQAAABJ1c2VySGFzQWRtaW5BY2Nlc3MAAAABAAAADXVzZXJQdWJsaWNLZXkEAAAAC2FkbWluUHViS2V5AQAAACCY+qZRd1gHYRktvSnZH9tBqdE0k+t7zknFMQp1UqdbEgMJAQAAAAIhPQAAAAIFAAAADXVzZXJQdWJsaWNLZXkFAAAAC2FkbWluUHViS2V5BwYAAAACAAAAAWkBAAAAA2JldAAAAAEAAAAFcHJpY2UEAAAAEnN0YXJ0VHJhbnNhY3Rpb25JZAkBAAAAEUBleHRyTmF0aXZlKDEwNTIpAAAAAgUAAAAEdGhpcwIAAAAFc3RhcnQEAAAACXRpbWVEZWx0YQkAAGUAAAACBQAAAAZoZWlnaHQJAQAAAAdleHRyYWN0AAAAAQkAA+kAAAABBQAAABJzdGFydFRyYW5zYWN0aW9uSWQDCQAAZgAAAAIFAAAACXRpbWVEZWx0YQAAAAAAAAAAAgkAAAIAAAABAgAAABZUaGUgYXVjdGlvbiB3YXMgY2xvc2VkCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQACWAAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQUAAAAFcHJpY2UFAAAAA25pbAAAAAFpAQAAAAVzdGFydAAAAAADCQEAAAABIQAAAAEJAQAAABJ1c2VySGFzQWRtaW5BY2Nlc3MAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkJAAACAAAAAQIAAAATWW91IGhhdmUgbm8gYWNjZXNzIQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAFc3RhcnQJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAUAAAADbmlsAAAAAIlb5Xw=", "chainId": 84, "height": 578010, "spentComplexity": 0 } View: original | compacted Prev: G4i7mtZVUgVRAU94KmjGVcLbBNp4ZPCGRr5jEMAQEkqX Next: 5TRpnJsUf1rRW6LSyAwx4KwR55wJm7om2kdQKCDfitf2 Diff:
OldNewDifferences
1212 @Callable(i)
1313 func bet (price) = {
1414 let startTransactionId = getBinaryValue(this, "start")
15- let timeDelta = (extract(transactionHeightById(i.transactionId)) - extract(transactionHeightById(startTransactionId)))
15+ let timeDelta = (height - extract(transactionHeightById(startTransactionId)))
1616 if ((timeDelta > 2))
1717 then throw("The auction was closed")
1818 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) = {
1414 let startTransactionId = getBinaryValue(this, "start")
15- let timeDelta = (extract(transactionHeightById(i.transactionId)) - extract(transactionHeightById(startTransactionId)))
15+ let timeDelta = (height - extract(transactionHeightById(startTransactionId)))
1616 if ((timeDelta > 2))
1717 then throw("The auction was closed")
1818 else WriteSet([DataEntry(toBase58String(i.callerPublicKey), price)])
1919 }
2020
2121
2222
2323 @Callable(i)
2424 func start () = if (!(userHasAdminAccess(i.callerPublicKey)))
2525 then throw("You have no access!")
2626 else WriteSet([DataEntry("start", toBase58String(i.transactionId))])
2727
2828

github/deemru/w8io/169f3d6 
21.34 ms