tx · CSiYKcbj8rvMWk8iWiSwdAo3JEhQDAQeHuE3jgGSwiyn

3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep:  -0.01400000 Waves

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

{ "type": 13, "id": "CSiYKcbj8rvMWk8iWiSwdAo3JEhQDAQeHuE3jgGSwiyn", "fee": 1400000, "feeAssetId": null, "timestamp": 1562672121014, "version": 1, "sender": "3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep", "senderPublicKey": "BJAeTqNbDSA5FiYihZZaSWvD6XL5XjpqVXbTGerBJjRK", "proofs": [ "4mhc4ema4k1dCyJpZSMnTPQAKPHXJM77geBsQt1tNWka4j3fgvaN7uX1msCRQ35gncCf9eWaSxWAsBUMrZMoeTQ8" ], "script": "base64:AAIDAAAAAAAAAAAAAAABAQAAABJ1c2VySGFzQWRtaW5BY2Nlc3MAAAABAAAADXVzZXJQdWJsaWNLZXkEAAAAC2FkbWluUHViS2V5AQAAACCY+qZRd1gHYRktvSnZH9tBqdE0k+t7zknFMQp1UqdbEgMJAQAAAAIhPQAAAAIFAAAADXVzZXJQdWJsaWNLZXkFAAAAC2FkbWluUHViS2V5BwYAAAACAAAAAWkBAAAAA2JldAAAAAEAAAAFcHJpY2UEAAAACXRpbWVEZWx0YQkAAGUAAAACBQAAAAZoZWlnaHQJAQAAAAdleHRyYWN0AAAAAQkAA+kAAAABAQAAACAIxRZznA4GqsH3MP3x/qvihQRybnQl+dHIDSG43ffBygMJAABmAAAAAgUAAAAJdGltZURlbHRhAAAAAAAAAAACCQAAAgAAAAECAAAAFlRoZSBhdWN0aW9uIHdhcyBjbG9zZWQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAAVwcmljZQUAAAADbmlsAAAAAWkBAAAABXN0YXJ0AAAAAAMJAQAAAAEhAAAAAQkBAAAAEnVzZXJIYXNBZG1pbkFjY2VzcwAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQkAAAIAAAABAgAAABNZb3UgaGF2ZSBubyBhY2Nlc3MhCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAVzdGFydAkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkBQAAAANuaWwAAAAAcVM6iw==", "chainId": 84, "height": 578037, "spentComplexity": 0 } View: original | compacted Prev: Dpakz5uTeKbAhBzCZVqxSkWKhPM8nacKoJQRaaj94vZZ Next: CSkKK65P22CQVKeq1S4vyRRcdBLs4TzqxJfT88JxDxP8 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 timeDelta = (height - extract(transactionHeightById(base58'bEZtCfm7u7sXPP3tCVMQcV5pbRHibKthgNHL8Yt492h')))
1515 if ((timeDelta > 2))
1616 then throw("The auction was closed")
1717 else WriteSet([DataEntry(toBase58String(i.callerPublicKey), price)])
1818 }
1919
2020
2121
2222 @Callable(i)
2323 func start () = if (!(userHasAdminAccess(i.callerPublicKey)))
2424 then throw("You have no access!")
2525 else WriteSet([DataEntry("start", toBase58String(i.transactionId))])
2626
2727

github/deemru/w8io/169f3d6 
29.03 ms