tx · A6RfFxuxYPwVYeDgE1SNvW64EiDpQ2SCafQRKHg3Lb1z

3MvU8vDCk4NkA1Ag4vE3mETA4U9ioFh6VEM:  -0.01500000 Waves

2019.12.14 10:27 [808237] smart account 3MvU8vDCk4NkA1Ag4vE3mETA4U9ioFh6VEM > SELF 0.00000000 Waves

{ "type": 13, "id": "A6RfFxuxYPwVYeDgE1SNvW64EiDpQ2SCafQRKHg3Lb1z", "fee": 1500000, "feeAssetId": null, "timestamp": 1576308456691, "version": 1, "sender": "3MvU8vDCk4NkA1Ag4vE3mETA4U9ioFh6VEM", "senderPublicKey": "LknnJnwRo6xRdriHmjgVbRDgpexijZFTYBU3Lw4HBS1", "proofs": [ "3AUefqyp64C5mg3hwujsyYJ5Q3fNuTqPN1no6TVK3ueeDsPC8VgVHL4jtCH7qKoaSxY1VMHD3Zb82kywXTbTkg5C" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgEIAAAAAAAAAAEAAAABaQEAAAADYmlkAAAAAQAAAAlhdWN0aW9uSWQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAA1jYWxsZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAB2VuZFRpbWUJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAJYXVjdGlvbklkAgAAAAhfZW5kVGltZQQAAAAIbWluUHJpY2UJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAJYXVjdGlvbklkAgAAAAlfbWluUHJpY2UEAAAADWhpZ2hlc3RCaWRBbXQJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACBQAAAAlhdWN0aW9uSWQCAAAADl9oaWdoZXN0QmlkQW10BAAAAA1oaWdoZXN0QmlkZGVyCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAA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GVudF9WYXJpYWJsZQIAAAADc3NzBQAAAANuaWwAAAAAFmRHGQ==", "chainId": 84, "height": 808237, "spentComplexity": 0 } View: original | compacted Prev: FdWcaxSWRPuxR1TzFBZL11CDw7e54y8aeXEb84mrF8Ko Next: CMWvaYFZNFCv4ESzQvghGyArJHZatiereaAriiYuUUZY Diff:
OldNewDifferences
2929 then (value(highestBidAmt) >= totalBidAmount)
3030 else false)
3131 then throw(("Bid must be more then " + (if (!(isDefined(highestBidAmt)))
32- then toString(minPrice)
32+ then "trr"
3333 else "hee")))
3434 else WriteSet([DataEntry("Content_Variable", "sss")])
3535 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func bid (auctionId) = {
88 let pmt = extract(i.payment)
99 let callerAddress = toBase58String(i.caller.bytes)
1010 let endTime = getIntegerValue(this, (auctionId + "_endTime"))
1111 let minPrice = getIntegerValue(this, (auctionId + "_minPrice"))
1212 let highestBidAmt = getInteger(this, (auctionId + "_highestBidAmt"))
1313 let highestBidder = getString(this, (auctionId + "_highestBidder"))
1414 let bidFromTheSameUser = if (isDefined(highestBidder))
1515 then (value(highestBidder) == callerAddress)
1616 else false
1717 let totalBidAmount = (pmt.amount + (if (bidFromTheSameUser)
1818 then value(highestBidAmt)
1919 else 0))
2020 if (!(isDefined(getIntegerValue(this, auctionId))))
2121 then throw("Auction Id not found")
2222 else if ((lastBlock.height >= endTime))
2323 then throw("Auction Completed")
2424 else if (if (if (!(isDefined(highestBidAmt)))
2525 then (minPrice >= totalBidAmount)
2626 else false)
2727 then true
2828 else if (isDefined(highestBidAmt))
2929 then (value(highestBidAmt) >= totalBidAmount)
3030 else false)
3131 then throw(("Bid must be more then " + (if (!(isDefined(highestBidAmt)))
32- then toString(minPrice)
32+ then "trr"
3333 else "hee")))
3434 else WriteSet([DataEntry("Content_Variable", "sss")])
3535 }
3636
3737

github/deemru/w8io/026f985 
20.19 ms