tx · 6yAxRLVbsBLPffrkgfQy31PsxXFN8ZSgkdsXmWxX41Bd

3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep:  -0.01400000 Waves

2019.07.12 13:16 [582373] smart account 3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep > SELF 0.00000000 Waves

{ "type": 13, "id": "6yAxRLVbsBLPffrkgfQy31PsxXFN8ZSgkdsXmWxX41Bd", "fee": 1400000, "feeAssetId": null, "timestamp": 1562926599454, "version": 1, "sender": "3N2icgpJnXhcYab7KQrwqWsV4LwSF25C1Ep", "senderPublicKey": "BJAeTqNbDSA5FiYihZZaSWvD6XL5XjpqVXbTGerBJjRK", "proofs": [ "V6xmkUjHiGTCzBG6ysRcQwCSaw74hWprKZGx1oXhyiUKoXdNMiJqGhE7M1r46F9m6671SA4mYeh53ixqZviMNbF" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAAd0b2tlbklkAQAAACCU1B7l35UfeySUCJ5Oe8nTMKHr4huFqp+vPk8CQCqTZQEAAAASdXNlckhhc0FkbWluQWNjZXNzAAAAAQAAAAdhZGRyZXNzCQAAAAAAAAIFAAAAB2FkZHJlc3MFAAAABHRoaXMBAAAABGFkZHIAAAACAAAAB3Rva2VuSWQAAAADcGFyCQABLAAAAAIJAAEsAAAAAgkAAlgAAAABBQAAAAd0b2tlbklkAgAAAAFfBQAAAANwYXIAAAADAAAAAWkBAAAAA2JldAAAAAEAAAAHdG9rZW5JZAQAAAAWc3RhcnRUcmFuc2FjdGlvbkhlaWdodAkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwkBAAAABGFkZHIAAAACBQAAAAd0b2tlbklkAgAAAAVzdGFydAQAAAAJdGltZURlbHRhCQAAZQAAAAIFAAAABmhlaWdodAUAAAAWc3RhcnRUcmFuc2FjdGlvbkhlaWdodAQAAAAGbWF4QmV0CQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAgUAAAAEdGhpcwkBAAAABGFkZ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AQAAAAZmaW5pc2gAAAABAAAAB3Rva2VuSWQEAAAABmxlbmd0aAkAAGUAAAACCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzCQEAAAAEYWRkcgAAAAIFAAAAB3Rva2VuSWQCAAAABXN0YXJ0BQAAAAZoZWlnaHQEAAAABWRlbHRhCQAAZQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMJAQAAAARhZGRyAAAAAgUAAAAHdG9rZW5JZAIAAAAIZHVyYXRpb24FAAAABmxlbmd0aAMJAABmAAAAAgUAAAAFZGVsdGEAAAAAAAAAAAAJAAACAAAAAQkAASwAAAACCQABLAAAAAICAAAAJFRoZSBhdWN0aW9uIGNhbm5vdCBiZSBmaW5pc2hlZCB5ZXQhIAkAAaQAAAABBQAAAAVkZWx0YQIAAAASIG1pbnV0ZXMgcmVtYWluaW5nBAAAAAttYXhCZXRPd25lcgkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQkAAZsAAAABCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzCQEAAAAEYWRkcgAAAAIFAAAAB3Rva2VuSWQCAAAAC21heEJldE93bmVyCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAABGFkZHIAAAACBQAAAAd0b2tlbklkAgAAAAVzdGFydAAAAAAAAAAAAAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAC21heEJldE93bmVyAAAAAAAAAAABBQAAAAd0b2tlbklkBQAAAANuaWwAAAAATEvbWw==", "chainId": 84, "height": 582373, "spentComplexity": 0 } View: original | compacted Prev: A8bNzr9FPNdNYqfsPCB55Crq8CD1W83knYwktyjJwMDe Next: 2hkt5YDQnm7DjKPLBFCJFf2CARsRuki8zYJVXrdYFDEi Diff:
OldNewDifferences
1414 let g = getIntegerValue(this, d(a, "start"))
1515 let h = (height - g)
1616 let i = extract(getInteger(this, d(a, "maxBet")))
17+ let j = addressFromPublicKey(toBytes(getStringValue(this, d(a, "maxBetOwner"))))
18+ let k = extract(f.payment)
1719 throw("ok1")
1820 }
1921
2022
2123
2224 @Callable(f)
23-func start (j,k) = {
24- let l = extract(f.payment)
25- let m = l.assetId
25+func start (l,m) = {
26+ let k = extract(f.payment)
27+ let n = k.assetId
2628 if (isDefined(a))
27- then WriteSet([DataEntry(d(a, "start"), height), DataEntry(d(a, "startPrice"), j), DataEntry(d(a, "duration"), k), DataEntry(d(a, "maxBetOwner"), toBase58String(f.callerPublicKey))])
29+ then WriteSet([DataEntry(d(a, "start"), height), DataEntry(d(a, "startPrice"), l), DataEntry(d(a, "duration"), m), DataEntry(d(a, "maxBetOwner"), toBase58String(f.callerPublicKey))])
2830 else throw("You can't sell waves using the auction")
2931 }
3032
3234
3335 @Callable(f)
3436 func finish (a) = {
35- let n = (getIntegerValue(this, d(a, "start")) - height)
36- let o = (getIntegerValue(this, d(a, "duration")) - n)
37- if ((o > 0))
38- then throw((("The auction cannot be finished yet! " + toString(o)) + " minutes remaining"))
37+ let o = (getIntegerValue(this, d(a, "start")) - height)
38+ let p = (getIntegerValue(this, d(a, "duration")) - o)
39+ if ((p > 0))
40+ then throw((("The auction cannot be finished yet! " + toString(p)) + " minutes remaining"))
3941 else {
40- let p = addressFromPublicKey(toBytes(getStringValue(this, d(a, "maxBetOwner"))))
41- ScriptResult(WriteSet([DataEntry(d(a, "start"), 0)]), TransferSet([ScriptTransfer(p, 1, a)]))
42+ let j = addressFromPublicKey(toBytes(getStringValue(this, d(a, "maxBetOwner"))))
43+ ScriptResult(WriteSet([DataEntry(d(a, "start"), 0)]), TransferSet([ScriptTransfer(j, 1, a)]))
4244 }
4345 }
4446
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 (a,e) = ((toBase58String(a) + "_") + e)
1010
1111
1212 @Callable(f)
1313 func bet (a) = {
1414 let g = getIntegerValue(this, d(a, "start"))
1515 let h = (height - g)
1616 let i = extract(getInteger(this, d(a, "maxBet")))
17+ let j = addressFromPublicKey(toBytes(getStringValue(this, d(a, "maxBetOwner"))))
18+ let k = extract(f.payment)
1719 throw("ok1")
1820 }
1921
2022
2123
2224 @Callable(f)
23-func start (j,k) = {
24- let l = extract(f.payment)
25- let m = l.assetId
25+func start (l,m) = {
26+ let k = extract(f.payment)
27+ let n = k.assetId
2628 if (isDefined(a))
27- then WriteSet([DataEntry(d(a, "start"), height), DataEntry(d(a, "startPrice"), j), DataEntry(d(a, "duration"), k), DataEntry(d(a, "maxBetOwner"), toBase58String(f.callerPublicKey))])
29+ then WriteSet([DataEntry(d(a, "start"), height), DataEntry(d(a, "startPrice"), l), DataEntry(d(a, "duration"), m), DataEntry(d(a, "maxBetOwner"), toBase58String(f.callerPublicKey))])
2830 else throw("You can't sell waves using the auction")
2931 }
3032
3133
3234
3335 @Callable(f)
3436 func finish (a) = {
35- let n = (getIntegerValue(this, d(a, "start")) - height)
36- let o = (getIntegerValue(this, d(a, "duration")) - n)
37- if ((o > 0))
38- then throw((("The auction cannot be finished yet! " + toString(o)) + " minutes remaining"))
37+ let o = (getIntegerValue(this, d(a, "start")) - height)
38+ let p = (getIntegerValue(this, d(a, "duration")) - o)
39+ if ((p > 0))
40+ then throw((("The auction cannot be finished yet! " + toString(p)) + " minutes remaining"))
3941 else {
40- let p = addressFromPublicKey(toBytes(getStringValue(this, d(a, "maxBetOwner"))))
41- ScriptResult(WriteSet([DataEntry(d(a, "start"), 0)]), TransferSet([ScriptTransfer(p, 1, a)]))
42+ let j = addressFromPublicKey(toBytes(getStringValue(this, d(a, "maxBetOwner"))))
43+ ScriptResult(WriteSet([DataEntry(d(a, "start"), 0)]), TransferSet([ScriptTransfer(j, 1, a)]))
4244 }
4345 }
4446
4547

github/deemru/w8io/169f3d6 
29.96 ms