tx · HP9J7Mp8v3jpficpRcwxbgfD4XacAp6zwgix6DKdPjrk

3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep:  -0.01400000 Waves

2019.07.11 12:47 [580871] smart account 3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep > SELF 0.00000000 Waves

{ "type": 13, "id": "HP9J7Mp8v3jpficpRcwxbgfD4XacAp6zwgix6DKdPjrk", "fee": 1400000, "feeAssetId": null, "timestamp": 1562838506043, "version": 1, "sender": "3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep", "senderPublicKey": "BJAeTqNbDSA5FiYihZZaSWvD6XL5XjpqVXbTGerBJjRK", "proofs": [ "32tRjCGq1veaamfCsHArFmvSkntKs8boiq5avoKdTakVakQYfF1Afyv5pCGwnzwMBcVUz2AoZeLRHKLgXsJ3Rvmc" ], "script": "base64:AAIDAAAAAAAAAAAAAAABAQAAABJ1c2VySGFzQWRtaW5BY2Nlc3MAAAABAAAAB2FkZHJlc3MJAAAAAAAAAgUAAAAHYWRkcmVzcwUAAAAEdGhpcwAAAAIAAAABaQEAAAADYmV0AAAAAQAAAAVwcmljZQQAAAAWc3RhcnRUcmFuc2FjdGlvbkhlaWdodAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAFc3RhcnQEAAAACXRpbWVEZWx0YQkAAGUAAAACBQAAAAZoZWlnaHQFAAAAFnN0YXJ0VHJhbnNhY3Rpb25IZWlnaHQEAAAABm1heEJldAkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABHRoaXMCAAAABm1heEJldAQAAAALbWF4QmV0T3duZXIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAQAAAAdleHRyYWN0AAAAAQkABBwAAAACBQAAAAR0aGlzAgAAAAttYXhCZXRPd25lcgMJAABmAAAAAgUAAAAJdGltZURlbHRhAAAAAAAAAAfQCQAAAgAAAAECAAAAFlRoZSBiZXR0aW5nIHdhcyBjbG9zZWQDCQAAZgAAAAIFAAAABXByaWNlBQAAAAZtYXhCZXQJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAZtYXhCZXQFAAAABXByaWNlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAttYXhCZXRPd25lcgkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAAVwcmljZQUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABHRoaXMFAAAABXByaWNlBQAAAAR1bml0BQAAAANuaWwJAAACAAAAAQIAAAAaWW91ciBiZXQgaXNuJ3QgdGhlIG1heCBiZXQAAAABaQEAAAAFc3RhcnQAAAABAAAACnN0YXJ0UHJpY2UDCQEAAAABIQAAAAEJAQAAABJ1c2VySGFzQWRtaW5BY2Nlc3MAAAABCAUAAAABaQAAAAZjYWxsZXIJAAACAAAAAQIAAAATWW91IGhhdmUgbm8gYWNjZXNzIQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAFc3RhcnQFAAAABmhlaWdodAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAGbWF4QmV0BQAAAApzdGFydFByaWNlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAttYXhCZXRPd25lcgkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkFAAAAA25pbAAAAABEbxrE", "chainId": 84, "height": 580871, "spentComplexity": 0 } View: original | compacted Prev: 6H2JiAeL9eKRhttFqQYTJ8ZrxWrnidxuLDsqUan5VrM2 Next: EAMtQCdpvS5TeQC8sA8tFiHCjyUnC75f85ZQAuY6m5cG Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func userHasAdminAccess (address) = (address == this)
55
66
77 @Callable(i)
88 func bet (price) = {
99 let startTransactionHeight = getIntegerValue(this, "start")
1010 let timeDelta = (height - startTransactionHeight)
1111 let maxBet = extract(getInteger(this, "maxBet"))
1212 let maxBetOwner = addressFromPublicKey(extract(getBinary(this, "maxBetOwner")))
1313 if ((timeDelta > 2000))
1414 then throw("The betting was closed")
1515 else if ((price > maxBet))
1616 then ScriptResult(WriteSet([DataEntry("maxBet", price), DataEntry("maxBetOwner", toBase58String(i.callerPublicKey)), DataEntry(toBase58String(i.callerPublicKey), price)]), TransferSet([ScriptTransfer(this, price, unit)]))
1717 else throw("Your bet isn't the max bet")
1818 }
1919
2020
2121
2222 @Callable(i)
2323 func start (startPrice) = if (!(userHasAdminAccess(i.caller)))
2424 then throw("You have no access!")
2525 else WriteSet([DataEntry("start", height), DataEntry("maxBet", startPrice), DataEntry("maxBetOwner", toBase58String(i.callerPublicKey))])
2626
2727

github/deemru/w8io/169f3d6 
19.06 ms