tx · EoxizLb6F5hZMmGpSyGYXB3WqFFHjcfbrafhvAVkkQEh

3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK:  -0.01400000 Waves

2022.08.13 15:40 [2182720] smart account 3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK > SELF 0.00000000 Waves

{ "type": 13, "id": "EoxizLb6F5hZMmGpSyGYXB3WqFFHjcfbrafhvAVkkQEh", "fee": 1400000, "feeAssetId": null, "timestamp": 1660394465838, "version": 2, "chainId": 84, "sender": "3N8iygiXd1v34PPaMSQb34SSrBwGxT2DpGK", "senderPublicKey": "FshLkkgzcLs6iQJ1Z8Nnfhm494tC8xZQczf9iXpZep3Y", "proofs": [ "41dTD8Yi8X1N8HZJXgFqpvaF6Cmu5PErELhNeBjArbmFCBGMpqcXi8UMjXeuyru1ZR52nV3NQ32zYD3NrNHXhaiv" ], "script": "base64:AAIDAAAAAAAAABgIARIFCgMBAQgSAwoBCBIDCgEIEgMKAQgAAAABAAAAABJtYXhBdWN0aW9uRHVyYXRpb24AAAAAAAAIBogAAAAEAAAAAWkBAAAADHN0YXJ0QXVjdGlvbgAAAAMAAAAIZHVyYXRpb24AAAAKc3RhcnRQcmljZQAAAAxwcmljZUFzc2V0SWQEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50BAAAAAlhdWN0aW9uSWQJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAQAAAAJZW5kSGVpZ2h0CQAAZAAAAAIIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0BQAAAAhkdXJhdGlvbgQAAAALb3JnYW5pc2VyaWQJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAPQXVjdGlvbmR1cmF0aW9uCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAJYXVjdGlvbklkBQAAAAllbmRIZWlnaHQEAAAACW9yZ2FuaXNlcgkBAAAACURhdGFFbnRyeQAAA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0aW9uSWQCAAAACl9vcmdhbml6ZXIEAAAAD0F1Y3Rpb25kdXJhdGlvbgkBAAAACURhdGFFbnRyeQAAAAIFAAAACWF1Y3Rpb25JZAkAAGQAAAACCAUAAAAJbGFzdEJsb2NrAAAABmhlaWdodAAAAAAAAAAAAQQAAAAEZGlmZgkAAGUAAAACBQAAAAllbmRIZWlnaHQIBQAAAAlsYXN0QmxvY2sAAAAGaGVpZ2h0BAAAAA1vcmdhbml6ZXJBZGRyCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEJAQAAAAV2YWx1ZQAAAAEFAAAACW9yZ2FuaXplcgMJAQAAAAIhPQAAAAIFAAAACW9yZ2FuaXplcgUAAAAQY2FsbGVyQWRkcmVzc1N0cgkAAAIAAAABAgAAAC5Zb3UgYXJlIG5vdCBBbGxvd2RlZCB0byBTaWduIHRoaXMgdHJhbnNhY3Rpb24uAwkAAGYAAAACBQAAAARkaWZmAAAAAAAAAAAPCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIFAAAAD0F1Y3Rpb25kdXJhdGlvbgUAAAADbmlsCQAAAgAAAAECAAAAHEF1Y3Rpb24gaXMgYWxyZWFkeSBmaW5pc2hlZC4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleZF5BA0=", "height": 2182720, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: exAw4zSGYwxBHSdhGiwDvRC7zWGzVYrgy29xXUFscCz Next: 6YA54ZTxz1dJmas96Cycb9vKRYEv23WEfw1HZKbAKtwv Diff:
OldNewDifferences
120120 let j = DataEntry(g, (lastBlock.height + 1))
121121 let E = (h - lastBlock.height)
122122 let C = addressFromStringValue(value(x))
123- if (if ((x != q))
124- then true
125- else (q != "3PJKkEKwuySZDAzFvNouVA5Ke2uLsyx5bAe"))
123+ if ((x != q))
126124 then throw("You are not Allowded to Sign this transaction.")
127125 else if ((E > 15))
128126 then WriteSet([j])
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 525960
55
66 @Callable(b)
77 func startAuction (c,d,e) = {
88 let f = extract(b.payment)
99 let g = toBase58String(b.transactionId)
1010 let h = (lastBlock.height + c)
1111 let i = toBase58String(b.caller.bytes)
1212 let j = DataEntry(g, h)
1313 let k = DataEntry((g + "_organizer"), i)
1414 let l = DataEntry((g + "_lot_assetId"), if (isDefined(f.assetId))
1515 then toBase58String(value(f.assetId))
1616 else "WAVES")
1717 let m = DataEntry((g + "_lot_amount"), f.amount)
1818 let n = DataEntry((g + "_startPrice"), d)
1919 let o = DataEntry((g + "_priceAssetId"), e)
2020 if ((c > a))
2121 then throw(("Duration is too long. Must be less than " + toString(a)))
2222 else WriteSet([j, k, l, m, n, o])
2323 }
2424
2525
2626
2727 @Callable(b)
2828 func bid (g) = {
2929 let f = extract(b.payment)
3030 let p = if (isDefined(f.assetId))
3131 then toBase58String(value(f.assetId))
3232 else "WAVES"
3333 let q = toBase58String(b.caller.bytes)
3434 let h = getIntegerValue(this, g)
3535 let d = getIntegerValue(this, (g + "_startPrice"))
3636 let e = getStringValue(this, (g + "_priceAssetId"))
3737 let r = getInteger(this, (g + "_winAmount"))
3838 let s = getString(this, (g + "_winner"))
3939 let t = if (isDefined(s))
4040 then (value(s) == q)
4141 else false
4242 let u = (f.amount + (if (t)
4343 then value(r)
4444 else 0))
4545 if ((lastBlock.height >= h))
4646 then throw("Auction already finished.")
4747 else if ((e != p))
4848 then throw((("Bid must be in asset '" + e) + "'"))
4949 else if (if (if (isDefined(r))
5050 then (value(r) >= u)
5151 else false)
5252 then true
5353 else if (!(isDefined(r)))
5454 then (d >= u)
5555 else false)
5656 then throw(("Bid must be more then " + toString(if (isDefined(r))
5757 then value(r)
5858 else d)))
5959 else if (if (t)
6060 then true
6161 else !(isDefined(s)))
6262 then WriteSet([DataEntry((g + "_winner"), q), DataEntry((g + "_winAmount"), u)])
6363 else {
6464 let v = addressFromStringValue(value(s))
6565 let w = if (if ((e == "WAVES"))
6666 then true
6767 else (e == ""))
6868 then unit
6969 else fromBase58String(e)
7070 ScriptResult(WriteSet([DataEntry((g + "_winner"), q), DataEntry((g + "_winAmount"), u)]), TransferSet([ScriptTransfer(v, value(r), w)]))
7171 }
7272 }
7373
7474
7575
7676 @Callable(b)
7777 func withdraw (g) = {
7878 let f = extract(b.payment)
7979 let p = if (isDefined(f.assetId))
8080 then toBase58String(value(f.assetId))
8181 else "WAVES"
8282 let q = toBase58String(b.caller.bytes)
8383 let h = getIntegerValue(this, g)
8484 let x = getStringValue(this, (g + "_organizer"))
8585 let s = getString(this, (g + "_winner"))
8686 let y = getStringValue(this, (g + "_lot_assetId"))
8787 let z = getIntegerValue(this, (g + "_lot_amount"))
8888 let e = getStringValue(this, (g + "_priceAssetId"))
8989 let r = getIntegerValue(this, (g + "_winAmount"))
9090 let A = if ((y == "WAVES"))
9191 then unit
9292 else fromBase58String(y)
9393 let w = if (if ((e == "WAVES"))
9494 then true
9595 else (e == ""))
9696 then unit
9797 else fromBase58String(e)
9898 let B = addressFromStringValue(value(s))
9999 let C = addressFromStringValue(value(x))
100100 let D = getInteger(this, ((g + "_bidder_") + q))
101101 if ((h > lastBlock.height))
102102 then throw("Auction is not finished yet")
103103 else if (!(isDefined(s)))
104104 then if (isDefined(getString(this, (g + "_lot_passed"))))
105105 then throw("Organizer has already got his lot back")
106106 else ScriptResult(WriteSet([DataEntry((g + "_lot_passed"), x)]), TransferSet([ScriptTransfer(C, z, A)]))
107107 else if (isDefined(getString(this, (g + "_lot_passed"))))
108108 then throw("Lot is already passed to the winner, and organizer got his reward")
109109 else ScriptResult(WriteSet([DataEntry((g + "_lot_passed"), toBase58String(B.bytes))]), TransferSet([ScriptTransfer(B, z, A), ScriptTransfer(C, ((r * 95) / 100), w), ScriptTransfer(addressFromPublicKey(base58'59q1hHBmeQgfSRst9Dn52VTBbtCu4SQ7AujhGDjHCqn6'), ((r * 5) / 100), w)]))
110110 }
111111
112112
113113
114114 @Callable(b)
115115 func Expedite (g) = {
116116 let f = extract(b.payment)
117117 let q = toBase58String(b.caller.bytes)
118118 let h = getIntegerValue(this, g)
119119 let x = getStringValue(this, (g + "_organizer"))
120120 let j = DataEntry(g, (lastBlock.height + 1))
121121 let E = (h - lastBlock.height)
122122 let C = addressFromStringValue(value(x))
123- if (if ((x != q))
124- then true
125- else (q != "3PJKkEKwuySZDAzFvNouVA5Ke2uLsyx5bAe"))
123+ if ((x != q))
126124 then throw("You are not Allowded to Sign this transaction.")
127125 else if ((E > 15))
128126 then WriteSet([j])
129127 else throw("Auction is already finished.")
130128 }
131129
132130
133131 @Verifier(F)
134132 func G () = sigVerify(F.bodyBytes, F.proofs[0], F.senderPublicKey)
135133

github/deemru/w8io/169f3d6 
34.11 ms