tx · 4WqTPsAurkDKw5Pw24HKqiqe5NAqsYYxzrQYnp7YWWFq

3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo:  -0.01000000 Waves

2022.12.02 12:16 [2342534] smart account 3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo > SELF 0.00000000 Waves

{ "type": 13, "id": "4WqTPsAurkDKw5Pw24HKqiqe5NAqsYYxzrQYnp7YWWFq", "fee": 1000000, "feeAssetId": null, "timestamp": 1669972582758, "version": 2, "chainId": 84, "sender": "3N72SETEKtTuaA3YNVYWgVEmXKrRrZYXHGo", "senderPublicKey": "Kwu4LYBMntApXv8t7csxV23Kvc3tvak26wMKK56tA4V", "proofs": [ "AYsewqp78B66LqbKJU6qLkrjhjyEpZGXGdS5ER69XGSrEmYKLJQsvJaEyxRqvSxnPhM1SN8qWcDLtXqDSmRDgDu" ], "script": "base64:BgIHCAISAwoBCAABAWkBA2JpZAEJYXVjdGlvbklkBANwbXQJAQV2YWx1ZQEJAJEDAggFAWkIcGF5bWVudHMAAAQNcG10QXNzZXRJZFN0cgMJAQlpc0RlZmluZWQBCAUDcG10B2Fzc2V0SWQJANgEAQkBBXZhbHVlAQgFA3BtdAdhc3NldElkAgVXQVZFUwQQY2FsbGVyQWRkcmVzc1N0cgkA2AQBCAgFAWkGY2FsbGVyBWJ5dGVzBAllbmRIZWlnaHQJARFAZXh0ck5hdGl2ZSgxMDUwKQIFBHRoaXMFCWF1Y3Rpb25JZAQKc3RhcnRQcmljZQkBEUBleHRyTmF0aXZlKDEwNTApAgUEdGhpcwkArAICBQlhdWN0aW9uSWQCC19zdGFydFByaWNlBAxwcmljZUFzc2V0SWQJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMJAKwCAgUJYXVjdGlvbklkAg1fcHJpY2VBc3NldElkBAl3aW5BbW91bnQJAJoIAgUEdGhpcwkArAICBQlhdWN0aW9uSWQCCl93aW5BbW91bnQEBndpbm5lcgkAnQgCBQR0aGlzCQCsAgIFCW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5uZXIECnByaWNlQXNzZXQDAwkAAAIFDHByaWNlQXNzZXRJZAIFV0FWRVMGCQAAAgUMcHJpY2VBc3NldElkAgAFBHVuaXQJANkEAQUMcHJpY2VBc3NldElkCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgUJYXVjdGlvbklkAgdfd2lubmVyBRBjYWxsZXJBZGRyZXNzU3RyCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFCWF1Y3Rpb25JZAIKX3dpbkFtb3VudAUOdG90YWxCaWRBbW91bnQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwUScHJldmlvdXNCaWRkZXJBZGRyCQEFdmFsdWUBBQl3aW5BbW91bnQFCnByaWNlQXNzZXQFA25pbAAfrYLF", "height": 2342534, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J7GbVs4iwNig74pvzgHJemegPjyxxHpEMzUyaeT7Joz8 Next: 7At5dpMZZ2gyjnm6wrSaFSGoMBVj4pBV1azMnTVPAwZd Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func bid (b) = {
88 let c = value(a.payments[0])
99 let d = if (isDefined(c.assetId))
1010 then toBase58String(value(c.assetId))
1111 else "WAVES"
1212 let e = toBase58String(a.caller.bytes)
1313 let f = getIntegerValue(this, b)
1414 let g = getIntegerValue(this, (b + "_startPrice"))
1515 let h = getStringValue(this, (b + "_priceAssetId"))
1616 let i = getInteger(this, (b + "_winAmount"))
1717 let j = getString(this, (b + "_winner"))
1818 let k = if (isDefined(j))
1919 then (value(j) == e)
2020 else false
2121 let l = (c.amount + (if (k)
2222 then value(i)
2323 else 0))
2424 if ((lastBlock.height >= f))
2525 then throw("Auction already finished")
2626 else if ((h != d))
2727 then throw((("Bid must be in asset '" + h) + "'"))
2828 else if (if (if (isDefined(i))
2929 then (value(i) >= l)
3030 else false)
3131 then true
3232 else if (!(isDefined(i)))
3333 then (g >= l)
3434 else false)
3535 then throw(("Bid must be more then " + toString(if (isDefined(i))
3636 then value(i)
3737 else g)))
3838 else if (if (k)
3939 then true
4040 else !(isDefined(j)))
4141 then [StringEntry((b + "_winner"), e), IntegerEntry((b + "_winAmount"), l)]
4242 else {
4343 let m = addressFromStringValue(value(j))
4444 let n = if (if ((h == "WAVES"))
4545 then true
4646 else (h == ""))
4747 then unit
4848 else fromBase58String(h)
4949 [StringEntry((b + "_winner"), e), IntegerEntry((b + "_winAmount"), l), ScriptTransfer(m, value(i), n)]
5050 }
5151 }
5252
5353

github/deemru/w8io/026f985 
19.72 ms