tx · 9VTRsGQ5D61cbzC33c9PojQPmTn8eayd2RqdmqkzSwFm
3N2fQyLpGVGFA7bBuya4k1KEJ4HAQ3uPPeb: -0.01000000 Waves
2023.05.19 19:55 [2585123] smart account 3N2fQyLpGVGFA7bBuya4k1KEJ4HAQ3uPPeb > SELF 0.00000000 Waves
{
"type": 13,
"id": "9VTRsGQ5D61cbzC33c9PojQPmTn8eayd2RqdmqkzSwFm",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1684515375702,
"version": 2,
"chainId": 84,
"sender": "3N2fQyLpGVGFA7bBuya4k1KEJ4HAQ3uPPeb",
"senderPublicKey": "GdwTAyJVhiQAjh3wBktHyKVNze2yykhKKWfiArxQQCtj",
"proofs": [
"4wfjbAnXXRMSPpwgnjZnCE4VE3Y91mTDoXYt2USkrhDRBfkVxPv4rffKhm9XY9GWKdA5TSxcz1uQRd3aUXGjhfum"
],
"script": "base64:BgICCAIAAAEBdAEGdmVyaWZ5AAQHJG1hdGNoMAUBdAMJAAECBQckbWF0Y2gwAhdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQBaQUHJG1hdGNoMAMDAwMJAAACCAUBaQRkQXBwCQEFQWxpYXMBAgRzd2FwCQAAAggFAWkIcGF5bWVudHMFA25pbAcJAAACCAUBaQpmZWVBc3NldElkBQR1bml0BwkAAAIIBQFpA2ZlZQCgwh4HBgkA9AMDCAUBdAlib2R5Qnl0ZXMJAJEDAggFAXQGcHJvb2ZzAAAIBQF0D3NlbmRlclB1YmxpY0tleQkA9AMDCAUBdAlib2R5Qnl0ZXMJAJEDAggFAXQGcHJvb2ZzAAAIBQF0D3NlbmRlclB1YmxpY0tleSy0nlI=",
"height": 2585123,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 9jaxWw5r1YVZiMEZ9T9ymSaLLD9zC3TXW63Z8Wt5bnD2
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | |
---|
| 7 | + | @Verifier(t) |
---|
| 8 | + | func verify () = match t { |
---|
| 9 | + | case i: InvokeScriptTransaction => |
---|
| 10 | + | if (if (if (if ((i.dApp == Alias("swap"))) |
---|
| 11 | + | then (i.payments == nil) |
---|
| 12 | + | else false) |
---|
| 13 | + | then (i.feeAssetId == unit) |
---|
| 14 | + | else false) |
---|
| 15 | + | then (i.fee == 500000) |
---|
| 16 | + | else false) |
---|
| 17 | + | then true |
---|
| 18 | + | else sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) |
---|
| 19 | + | case _ => |
---|
| 20 | + | sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey) |
---|
| 21 | + | } |
---|
| 22 | + | |
---|