tx · BcmZe2czpqBZ6Um7HgP7gfFwudjFW1i9nXV2za8jkGj2

3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep:  -0.01400000 Waves

2019.07.12 14:33 [582453] smart account 3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep > SELF 0.00000000 Waves

{ "type": 13, "id": "BcmZe2czpqBZ6Um7HgP7gfFwudjFW1i9nXV2za8jkGj2", "fee": 1400000, "feeAssetId": null, "timestamp": 1562931230774, "version": 1, "sender": "3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep", "senderPublicKey": "BJAeTqNbDSA5FiYihZZaSWvD6XL5XjpqVXbTGerBJjRK", "proofs": [ "45tK7BKJ5iFwTNpCJ23JypTJ2tkwW3Wm8948osiMjYGVDznDJ3FHSe8b7bDtjoNCe6KcBPznc7VcjhDwjdX9kmwf" ], "script": "base64:AAIDAAAAAAAAAAAAAAAEAAAAAAp0b2tlbklkRGVmAQAAACCU1B7l35UfeySUCJ5Oe8nTMKHr4huFqp+vPk8CQCqTZQEAAAASdXNlckhhc0FkbWluQWNjZXNzAAAAAQAAAAdhZGRyZXNzCQAAAAAAAAIFAAAAB2FkZHJlc3MFAAAABHRoaXMBAAAABGFkZHIAAAACAAAAB3Rva2VuSWQAAAADcGFyCQABLAAAAAIJAAEsAAAAAgkAAlgAAAABBQAAAAd0b2tlbklkAgAAAAFfBQAAAANwYXIBAAAABXNhZGRyAAAAAgAAAAd0b2tlbklkAAAAA3BhcgkAASwAAAACCQABLAAAAAIFAAAAB3Rva2VuSWQCAAAAAV8FAAAAA3BhcgAAAAMAAAABaQEAAAADYmV0AAAAAQAAAA10b2tlbklkU3RyaW5nBAAAABZzdGFydFRyYW5zYWN0aW9uSGVpZ2h0CQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzCQEAAAAFc2FkZHIAAAACBQAAAA10b2tlbklkU3RyaW5nAgAAAAVzdGFydAQAAAAJdGltZURlbHRhCQAAZQAAAAIFA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AAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwkBAAAABGFkZHIAAAACBQAAAAd0b2tlbklkAgAAAAVzdGFydAUAAAAGaGVpZ2h0BAAAAAVkZWx0YQkAAGUAAAACCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzCQEAAAAEYWRkcgAAAAIFAAAAB3Rva2VuSWQCAAAACGR1cmF0aW9uBQAAAAZsZW5ndGgDCQAAZgAAAAIFAAAABWRlbHRhAAAAAAAAAAAACQAAAgAAAAEJAAEsAAAAAgkAASwAAAACAgAAACRUaGUgYXVjdGlvbiBjYW5ub3QgYmUgZmluaXNoZWQgeWV0ISAJAAGkAAAAAQUAAAAFZGVsdGECAAAAEiBtaW51dGVzIHJlbWFpbmluZwQAAAALbWF4QmV0T3duZXIJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAGbAAAAAQkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwkBAAAABGFkZHIAAAACBQAAAAd0b2tlbklkAgAAAAttYXhCZXRPd25lcgkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAARhZGRyAAAAAgUAAAAHdG9rZW5JZAIAAAAFc3RhcnQAAAAAAAAAAAAFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAttYXhCZXRPd25lcgAAAAAAAAAAAQUAAAAHdG9rZW5JZAUAAAADbmlsAAAAANs+cg4=", "chainId": 84, "height": 582453, "spentComplexity": 0 } View: original | compacted Prev: 4zCSvkEVP5wPmJ8orwCggEXATc7r8Wvrr4aqUo7XXQyb Next: FPdSHACnmvFrceHWK4MwA134reFCw23M7Q4jWG3wA5y4 Diff:
OldNewDifferences
1919 let l = getIntegerValue(this, g(i, "maxBet"))
2020 let m = addressFromPublicKey(toBytes(getStringValue(this, g(i, "maxBetOwner"))))
2121 let n = extract(h.payment)
22- if ((k > 20000))
22+ if ((k > getIntegerValue(this, g(i, "startTime"))))
2323 then throw("The betting was closed.")
2424 else if (!(isDefined(n.assetId)))
2525 then {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'B1xwWnBLB7z79VPr4sq1jBb5GDqs8TeT5jHojTdiwxfE'
55
66 func b (c) = (c == this)
77
88
99 func d (e,f) = ((toBase58String(e) + "_") + f)
1010
1111
1212 func g (e,f) = ((e + "_") + f)
1313
1414
1515 @Callable(h)
1616 func bet (i) = {
1717 let j = getIntegerValue(this, g(i, "start"))
1818 let k = (height - j)
1919 let l = getIntegerValue(this, g(i, "maxBet"))
2020 let m = addressFromPublicKey(toBytes(getStringValue(this, g(i, "maxBetOwner"))))
2121 let n = extract(h.payment)
22- if ((k > 20000))
22+ if ((k > getIntegerValue(this, g(i, "startTime"))))
2323 then throw("The betting was closed.")
2424 else if (!(isDefined(n.assetId)))
2525 then {
2626 let o = n.amount
2727 if ((o > l))
2828 then ScriptResult(WriteSet([DataEntry(g(i, "maxBet"), o), DataEntry(g(i, "maxBetOwner"), toBase58String(h.callerPublicKey))]), TransferSet([ScriptTransfer(m, l, unit)]))
2929 else throw("Your bet isn't the max bet")
3030 }
3131 else throw("You need to place a bet using waves currency")
3232 }
3333
3434
3535
3636 @Callable(h)
3737 func start (p,q) = {
3838 let n = extract(h.payment)
3939 let e = extract(n.assetId)
4040 if (isDefined(e))
4141 then WriteSet([DataEntry(d(e, "start"), height), DataEntry(d(e, "maxBet"), p), DataEntry(d(e, "duration"), q), DataEntry(d(e, "maxBetOwner"), toBase58String(h.callerPublicKey))])
4242 else throw("You can't sell waves using the auction")
4343 }
4444
4545
4646
4747 @Callable(h)
4848 func finish (e) = {
4949 let r = (getIntegerValue(this, d(e, "start")) - height)
5050 let s = (getIntegerValue(this, d(e, "duration")) - r)
5151 if ((s > 0))
5252 then throw((("The auction cannot be finished yet! " + toString(s)) + " minutes remaining"))
5353 else {
5454 let m = addressFromPublicKey(toBytes(getStringValue(this, d(e, "maxBetOwner"))))
5555 ScriptResult(WriteSet([DataEntry(d(e, "start"), 0)]), TransferSet([ScriptTransfer(m, 1, e)]))
5656 }
5757 }
5858
5959

github/deemru/w8io/026f985 
19.92 ms