tx · 8sGw7rUzPAZxxo4XaC67p8tVgHaMEczDgE5TKNVdhFHr

3ND3aHBYuXrc7nmdgTxT61G7PP96pCho4mZ:  -0.01500000 Waves

2019.12.14 10:30 [808239] smart account 3ND3aHBYuXrc7nmdgTxT61G7PP96pCho4mZ > SELF 0.00000000 Waves

{ "type": 13, "id": "8sGw7rUzPAZxxo4XaC67p8tVgHaMEczDgE5TKNVdhFHr", "fee": 1500000, "feeAssetId": null, "timestamp": 1576308656317, "version": 1, "sender": "3ND3aHBYuXrc7nmdgTxT61G7PP96pCho4mZ", "senderPublicKey": "CVC1vveEA1mZieuvei1mbM7Uwe9tXpo25xmqdZQnkwbE", "proofs": [ "5UYHf2ugqooyAKKa8HNjCupiocoLoGLCGSBxptPDq8CJBn9RTtfKjsHWLa3SMYjMZyrjxVa9F2uQw9oMvLn5dq7o" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAAAAAAEAAAABaQEAAAADYmlkAAAAAQAAAAlhdWN0aW9uSWQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAA1jYWxsZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAB2VuZFRpbWUJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAJYXVjdGlvbklkAgAAAAhfZW5kVGltZQQAAAAIbWluUHJpY2UJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAJYXVjdGlvbklkAgAAAAlfbWluUHJpY2UEAAAADWhpZ2hlc3RCaWRBbXQJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAlhdWN0aW9uSWQCAAAADl9oaWdoZXN0QmlkQW10BAAAAA1oaWdoZXN0QmlkZGVyCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAJYXVjdGlvbklkAgAAAA5faGlnaGVzdEJpZGRlcgQAAAASYmlkRnJvbVRoZVNhbWVVc2VyAwkBAAAACWlzRGVmaW5lZAAAAAEFAAAADWhpZ2hlc3RCaWRkZXIJAAAAAAAAAgkBAAAABXZhbHVlAAAAAQUAAAANaGlnaGVzdEJpZGRlcgUAAAANY2FsbGVyQWRkcmVzcwcEAAAADnRvdGFsQmlkQW1vdW50CQAAZAAAAAIIBQAAAANwbXQAAAAGYW1vdW50AwUAAAASYmlkRnJvbVRoZVNhbWVVc2VyCQEAAAAFdmFsdWUAAAABBQAAAA1oaWdoZXN0QmlkQW10AAAAAAAAAAAAAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwUAAAAJYXVjdGlvbklkCQAAAgAAAAECAAAAFEF1Y3Rpb24gSWQgbm90IGZvdW5kAwkAAGcAAAACCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAUAAAAHZW5kVGltZQkAAAIAAAABAgAAABFBdWN0aW9uIENvbXBsZXRlZAMJAABnAAAAAgUAAAAIbWluUHJpY2UFAAAADnRvdGFsQmlkQW1vdW50CQAAAgAAAAECAAAAFkJpZCBtdXN0IGJlIG1vcmUgdGhlbiAJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAEENvbnRlbnRfVmFyaWFibGUCAAAAA3NzcwUAAAADbmlsAAAAAIv2hjo=", "chainId": 84, "height": 808239, "spentComplexity": 0 } View: original | compacted Prev: DTrAQzRixfH3fqu3zzQzAA3gPqVEjNMjgpiU7kNdh4MK Next: none Diff:
OldNewDifferences
2121 then throw("Auction Id not found")
2222 else if ((lastBlock.height >= e))
2323 then throw("Auction Completed")
24- else if (if (if (!(isDefined(g)))
25- then (f >= j)
26- else false)
27- then true
28- else if (isDefined(g))
29- then (value(g) >= j)
30- else false)
31- then throw(("Bid must be more then " + (if (!(isDefined(g)))
32- then toString(f)
33- else toString(value(g)))))
34- else if (!(isDefined(h)))
35- then WriteSet([DataEntry((b + "_highestBidder"), d), DataEntry((b + "_highestBidAmt"), j)])
36- else if (i)
37- then WriteSet([DataEntry((b + "_highestBidAmt"), j)])
38- else {
39- let k = addressFromStringValue(value(h))
40- ScriptResult(WriteSet([DataEntry((b + "_highestBidder"), d), DataEntry((b + "_highestBidAmt"), j)]), TransferSet([ScriptTransfer(k, value(g), unit)]))
41- }
24+ else if ((f >= j))
25+ then throw("Bid must be more then ")
26+ else WriteSet([DataEntry("Content_Variable", "sss")])
4227 }
4328
4429
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func bid (b) = {
88 let c = extract(a.payment)
99 let d = toBase58String(a.caller.bytes)
1010 let e = getIntegerValue(this, (b + "_endTime"))
1111 let f = getIntegerValue(this, (b + "_minPrice"))
1212 let g = getInteger(this, (b + "_highestBidAmt"))
1313 let h = getString(this, (b + "_highestBidder"))
1414 let i = if (isDefined(h))
1515 then (value(h) == d)
1616 else false
1717 let j = (c.amount + (if (i)
1818 then value(g)
1919 else 0))
2020 if (!(isDefined(getIntegerValue(this, b))))
2121 then throw("Auction Id not found")
2222 else if ((lastBlock.height >= e))
2323 then throw("Auction Completed")
24- else if (if (if (!(isDefined(g)))
25- then (f >= j)
26- else false)
27- then true
28- else if (isDefined(g))
29- then (value(g) >= j)
30- else false)
31- then throw(("Bid must be more then " + (if (!(isDefined(g)))
32- then toString(f)
33- else toString(value(g)))))
34- else if (!(isDefined(h)))
35- then WriteSet([DataEntry((b + "_highestBidder"), d), DataEntry((b + "_highestBidAmt"), j)])
36- else if (i)
37- then WriteSet([DataEntry((b + "_highestBidAmt"), j)])
38- else {
39- let k = addressFromStringValue(value(h))
40- ScriptResult(WriteSet([DataEntry((b + "_highestBidder"), d), DataEntry((b + "_highestBidAmt"), j)]), TransferSet([ScriptTransfer(k, value(g), unit)]))
41- }
24+ else if ((f >= j))
25+ then throw("Bid must be more then ")
26+ else WriteSet([DataEntry("Content_Variable", "sss")])
4227 }
4328
4429

github/deemru/w8io/169f3d6 
50.31 ms