tx · GnrJ71dtJszKZJMrPNdPFjBGhmuH8jCdepfAse6wvfDQ

3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep:  -0.01400000 Waves

2019.07.11 13:04 [580888] smart account 3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep > SELF 0.00000000 Waves

{ "type": 13, "id": "GnrJ71dtJszKZJMrPNdPFjBGhmuH8jCdepfAse6wvfDQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1562839448201, "version": 1, "sender": "3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep", "senderPublicKey": "BJAeTqNbDSA5FiYihZZaSWvD6XL5XjpqVXbTGerBJjRK", "proofs": [ "4TjSEGTNjVawjjkHCUU1nprm6b5Tym9yfhAXqtf6kx5C9L115dGLNTxTLRVLKeb1Z2MNLRyudNyVga7NBqMEBNpC" ], "script": "base64:AAIDAAAAAAAAAAAAAAABAQAAABJ1c2VySGFzQWRtaW5BY2Nlc3MAAAABAAAAB2FkZHJlc3MJAAAAAAAAAgUAAAAHYWRkcmVzcwUAAAAEdGhpcwAAAAIAAAABaQEAAAADYmV0AAAAAAQAAAAWc3RhcnRUcmFuc2FjdGlvbkhlaWdodAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAFc3RhcnQEAAAACXRpbWVEZWx0YQkAAGUAAAACBQAAAAZoZWlnaHQFAAAAFnN0YXJ0VHJhbnNhY3Rpb25IZWlnaHQEAAAABm1heEJldAkBAAAAB2V4dHJhY3QAAAABCQAEGgAAAAIFAAAABHRoaXMCAAAABm1heEJldAQAAAALbWF4QmV0T3duZXIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAQAAAAdleHRyYWN0AAAAAQkABBwAAAACBQAAAAR0aGlzAgAAAAttYXhCZXRPd25lcgQAAAADcG10CQEAAAAHZXh0cmFjdAAAAAEIBQAAAAFpAAAAB3BheW1lbnQDCQAAZgAAAAIFAAAACXRpbWVEZWx0YQAA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RQcmljZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAALbWF4QmV0T3duZXIJAAJYAAAAAQgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5BQAAAANuaWwAAAAAvmeJGQ==", "chainId": 84, "height": 580888, "spentComplexity": 0 } View: original | compacted Prev: BHRWCeBQHgFEvASdvSZN6B6dTdxFiXXgL9vWfs5J3ymn Next: 9ouKiSKNFHongyUb1ScXUBQkUcDge3hkRzqRJjgpAovu Diff:
OldNewDifferences
1717 then {
1818 let i = h.amount
1919 if ((i > f))
20- then ScriptResult(WriteSet([DataEntry("maxBet", i), DataEntry("maxBetOwner", toBase58String(c.callerPublicKey)), DataEntry(toBase58String(c.callerPublicKey), i)]), TransferSet([ScriptTransfer(g, f, unit)]))
20+ then ScriptResult(WriteSet([DataEntry("maxBet", i), DataEntry("maxBetOwner", toBase58String(c.callerPublicKey)), DataEntry(toBase58String(c.callerPublicKey), i)]), TransferSet([ScriptTransfer(this, f, unit)]))
2121 else throw("Your bet isn't the max bet")
2222 }
2323 else throw("You need to place a bet using waves currency")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = (b == this)
55
66
77 @Callable(c)
88 func bet () = {
99 let d = getIntegerValue(this, "start")
1010 let e = (height - d)
1111 let f = extract(getInteger(this, "maxBet"))
1212 let g = addressFromPublicKey(extract(getBinary(this, "maxBetOwner")))
1313 let h = extract(c.payment)
1414 if ((e > 2000))
1515 then throw("The betting was closed")
1616 else if (!(isDefined(h.assetId)))
1717 then {
1818 let i = h.amount
1919 if ((i > f))
20- then ScriptResult(WriteSet([DataEntry("maxBet", i), DataEntry("maxBetOwner", toBase58String(c.callerPublicKey)), DataEntry(toBase58String(c.callerPublicKey), i)]), TransferSet([ScriptTransfer(g, f, unit)]))
20+ then ScriptResult(WriteSet([DataEntry("maxBet", i), DataEntry("maxBetOwner", toBase58String(c.callerPublicKey)), DataEntry(toBase58String(c.callerPublicKey), i)]), TransferSet([ScriptTransfer(this, f, unit)]))
2121 else throw("Your bet isn't the max bet")
2222 }
2323 else throw("You need to place a bet using waves currency")
2424 }
2525
2626
2727
2828 @Callable(c)
2929 func start (j) = if (!(a(c.caller)))
3030 then throw("You have no access!")
3131 else WriteSet([DataEntry("start", height), DataEntry("maxBet", j), DataEntry("maxBetOwner", toBase58String(c.callerPublicKey))])
3232
3333

github/deemru/w8io/026f985 
32.80 ms