tx · 3QWXjmidDNhAh46ZsgFJja4WrNgqGGi1B1p5ABmVCTqG
3N49shcErzZepEy7HDR1fjAce8humpL7QiH: -0.01000000 Waves
2022.12.28 16:29 [2380192] smart account 3N49shcErzZepEy7HDR1fjAce8humpL7QiH > SELF 0.00000000 Waves
{
"type": 13,
"id": "3QWXjmidDNhAh46ZsgFJja4WrNgqGGi1B1p5ABmVCTqG",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1672234227950,
"version": 2,
"chainId": 84,
"sender": "3N49shcErzZepEy7HDR1fjAce8humpL7QiH",
"senderPublicKey": "9frGdXQHcSntKXRWwZ4YJZWnnKREWwYH4cEzMVQwcwYj",
"proofs": [
"2EY8HaHPYy5Zhg6uKUGYGgzMofJZnpyN3FrWNACRt5GJxqnjNaXfiVEm1CdXSxr9Qpx8GNo2rGj7UAgNHBZnfRNg"
],
"script": "base64:BgInCAISACIEY2ZlZSIDaW52IgFpIgJ0eCIGdmVyaWZ5IgckbWF0Y2gwAQEBYQEBYgMJAGcCAKHCHggFAWIDZmVlCQAAAggFAWIKZmVlQXNzZXRJZAUEdW5pdAcBAWMBBGNhbGwACQDMCAIJAQxJbnRlZ2VyRW50cnkCAgNpbnQACgUDbmlsAQFkAQFlAAQBZgUBZAMJAAECBQFmAhdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQBYgUBZgMDCQAAAgkApAgBCAUBYgRkQXBwBQR0aGlzCQEBYQEFAWIHBgkA9AMDCAUBZAlib2R5Qnl0ZXMJAJEDAggFAWQGcHJvb2ZzAAAIBQFkD3NlbmRlclB1YmxpY0tleQkA9AMDCAUBZAlib2R5Qnl0ZXMJAJEDAggFAWQGcHJvb2ZzAAAIBQFkD3NlbmRlclB1YmxpY0tlefSE60I=",
"height": 2380192,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: C8JLEcjZAPefmhvyxPnL4ETjrFStn638EzyFJAgQEZcb
Next: 682BY9XahuoqUCbYtWY8CR4LahuGXA3q6P7pdLQEjN6N
Diff:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 5 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func cfee (inv) = if ((500001 >= inv.fee)) |
---|
| 5 | + | then (inv.feeAssetId == unit) |
---|
| 6 | + | else false |
---|
4 | 7 | | |
---|
5 | 8 | | |
---|
6 | 9 | | @Callable(i) |
---|
7 | | - | func call () = [IntegerEntry("int", 1)] |
---|
| 10 | + | func call () = [IntegerEntry("int", 10)] |
---|
8 | 11 | | |
---|
9 | 12 | | |
---|
10 | 13 | | @Verifier(tx) |
---|
11 | 14 | | func verify () = match tx { |
---|
12 | 15 | | case inv: InvokeScriptTransaction => |
---|
13 | | - | if ((addressFromRecipient(inv.dApp) == this)) |
---|
| 16 | + | if (if ((addressFromRecipient(inv.dApp) == this)) |
---|
| 17 | + | then cfee(inv) |
---|
| 18 | + | else false) |
---|
14 | 19 | | then true |
---|
15 | 20 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
16 | 21 | | case _ => |
---|
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 5 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | func cfee (inv) = if ((500001 >= inv.fee)) |
---|
| 5 | + | then (inv.feeAssetId == unit) |
---|
| 6 | + | else false |
---|
4 | 7 | | |
---|
5 | 8 | | |
---|
6 | 9 | | @Callable(i) |
---|
7 | | - | func call () = [IntegerEntry("int", 1)] |
---|
| 10 | + | func call () = [IntegerEntry("int", 10)] |
---|
8 | 11 | | |
---|
9 | 12 | | |
---|
10 | 13 | | @Verifier(tx) |
---|
11 | 14 | | func verify () = match tx { |
---|
12 | 15 | | case inv: InvokeScriptTransaction => |
---|
13 | | - | if ((addressFromRecipient(inv.dApp) == this)) |
---|
| 16 | + | if (if ((addressFromRecipient(inv.dApp) == this)) |
---|
| 17 | + | then cfee(inv) |
---|
| 18 | + | else false) |
---|
14 | 19 | | then true |
---|
15 | 20 | | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
16 | 21 | | case _ => |
---|
17 | 22 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
18 | 23 | | } |
---|
19 | 24 | | |
---|