tx · AvT16XRz5LeDDDYmFhfPZnVEeeoA3VgVrB8wgrF8BCW1

3MxRqURevjNgwbz8kneeUwGPzCtszagdsx4:  -0.01400000 Waves

2020.11.18 17:01 [1270875] smart account 3MxRqURevjNgwbz8kneeUwGPzCtszagdsx4 > SELF 0.00000000 Waves

{ "type": 13, "id": "AvT16XRz5LeDDDYmFhfPZnVEeeoA3VgVrB8wgrF8BCW1", "fee": 1400000, "feeAssetId": null, "timestamp": 1605708109302, "version": 2, "chainId": 84, "sender": "3MxRqURevjNgwbz8kneeUwGPzCtszagdsx4", "senderPublicKey": "2qjcWuL7QitmuhkSTM7CnNxurCYXuqJ9ubswLBGmXfDv", "proofs": [ "44A2KAYY28qW138Qz3tnCD9qrqfp1dkWfixVtifuNqeyEA9AChvnWCQCYzShHYt7FvPfMX5ab3Cijwjj9MFWMTAd" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAwAAAAARYWNjb3VudDFQdWJsaWNLZXkBAAAAIPeNeDDs4TWVhR1bzOk94lFsHOraL9B/FRj0XfVMj0hOAAAAABFhY2NvdW50MlB1YmxpY0tleQEAAAAgG1e/aEwKrtMkcq9WyiLLAHtKPJgLd/oAoUXcKuUDIhUAAAAADm90aGVyUHVibGljS2V5AQAAACDnblGJprjxGAm9jEz8V5M0TOEG6bhNvbMQquBNrx0dWgAAAAEAAAABaQEAAAAIcHVyY2hhc2UAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEIBQAAAAFpAAAACHBheW1lbnRzAwkBAAAACWlzRGVmaW5lZAAAAAEICQABkQAAAAIFAAAAA3BtdAAAAAAAAAAAAAAAAAdhc3NldElkCQAAAgAAAAECAAAACG9ubHkgd3dzBAAAAA9jdXN0b21lckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFcHJpY2UEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwIAAAATaXRlbV9BX2NvdXBvbl9wcmljZQM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1hdGNoMAYDAwUAAAAQYWNjb3VudDFhY2NvdW50MgYFAAAADWFjY291bnQxb3RoZXIGBQAAAA1hY2NvdW50Mm90aGVy7XVrYw==", "height": 1270875, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Buapt4Y8hQds49duX211UexFvSLzeYP4FquMfoDYFzt8 Next: BTT2t6sVT8BKhZmi7qZUTWYJvyUk3kqBvqyXu53uxLjD Diff:
OldNewDifferences
2626 if ((g > e[0].amount))
2727 then throw("moar moeny")
2828 else if ((e[0].amount > g))
29- then throw("tu macz money")
29+ then throw(toString(g))
3030 else if ((size(e) > 1))
3131 then throw("single item only")
3232 else [StringEntry(("status:purchase_item_A_customer_" + f), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + f), g)]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'HfLpRhXtnuCabRyNT6z7soaXcbUpwLUhjyBCVQ4szwzd'
55
66 let b = base58'2qjcWuL7QitmuhkSTM7CnNxurCYXuqJ9ubswLBGmXfDv'
77
88 let c = base58'GaQkBG6yLLAarb8wvPrEKnQhFqWomD2ZGT1T4vVx24qw'
99
1010 @Callable(d)
1111 func purchase () = {
1212 let e = value(d.payments)
1313 if (isDefined(e[0].assetId))
1414 then throw("only wws")
1515 else {
1616 let f = toBase58String(d.caller.bytes)
1717 let g = {
1818 let h = getInteger(this, "item_A_coupon_price")
1919 if ($isInstanceOf(h, "Int"))
2020 then {
2121 let i = h
2222 i
2323 }
2424 else 0
2525 }
2626 if ((g > e[0].amount))
2727 then throw("moar moeny")
2828 else if ((e[0].amount > g))
29- then throw("tu macz money")
29+ then throw(toString(g))
3030 else if ((size(e) > 1))
3131 then throw("single item only")
3232 else [StringEntry(("status:purchase_item_A_customer_" + f), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + f), g)]
3333 }
3434 }
3535
3636
3737 @Verifier(j)
3838 func k () = {
3939 let l = if (if (sigVerify(j.bodyBytes, j.proofs[0], a))
4040 then true
4141 else sigVerify(j.bodyBytes, j.proofs[1], a))
4242 then true
4343 else sigVerify(j.bodyBytes, j.proofs[2], a)
4444 let m = if (if (sigVerify(j.bodyBytes, j.proofs[0], b))
4545 then true
4646 else sigVerify(j.bodyBytes, j.proofs[1], b))
4747 then true
4848 else sigVerify(j.bodyBytes, j.proofs[2], b)
4949 let n = if (if (sigVerify(j.bodyBytes, j.proofs[0], c))
5050 then true
5151 else sigVerify(j.bodyBytes, j.proofs[1], c))
5252 then true
5353 else sigVerify(j.bodyBytes, j.proofs[2], c)
5454 let o = if (l)
5555 then m
5656 else false
5757 let p = if (l)
5858 then n
5959 else false
6060 let q = if (n)
6161 then m
6262 else false
6363 let h = j
6464 if ($isInstanceOf(h, "SetScriptTransaction"))
6565 then {
6666 let r = h
6767 true
6868 }
6969 else if ($isInstanceOf(h, "DataTransaction"))
7070 then {
7171 let r = h
7272 true
7373 }
7474 else if (if (o)
7575 then true
7676 else p)
7777 then true
7878 else q
7979 }
8080

github/deemru/w8io/169f3d6 
49.86 ms