tx · CKXgGZLTpfBRpyvJUqQ1T5Mt8gJ1Q2gym6cGBikirKkq
3MwcvkHMrGjE8JDWkkgaLwNTwpMR1XURWfv: -0.01000000 Waves
2023.02.03 01:02 [2432565] smart account 3MwcvkHMrGjE8JDWkkgaLwNTwpMR1XURWfv > SELF 0.00000000 Waves
{
"type": 13,
"id": "CKXgGZLTpfBRpyvJUqQ1T5Mt8gJ1Q2gym6cGBikirKkq",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1675375413328,
"version": 2,
"chainId": 84,
"sender": "3MwcvkHMrGjE8JDWkkgaLwNTwpMR1XURWfv",
"senderPublicKey": "2reePgwtHXtnUc6dRGMsPZV6bQkSYTnXdRZK4sEHsVwD",
"proofs": [
"3DiXUjA3Y21btRfsP1AJCE1H3W24KnDjDnJvvc6AXwmNnGcYg6Tvas7zPNyKt4GJCvx2iU52yFoVCX5pMXGqLoax"
],
"script": "base64:AwQAAAAPYXBwcm92ZWRBZGRyZXNzCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUj0GM1vOVJBeREjWnilDLbmK/pR7QQsMfBAAAABFvbmVNb250aFRpbWVzdGFtcAkAAGQAAAACBQAAAAZoZWlnaHQJAABoAAAAAgAAAAAAAAAAAwAAAAAAAAAAPAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBAAAABN0cmFuc2ZlclRyYW5zYWN0aW9uBQAAAAJ0eAMDCQAAAAAAAAIIBQAAABN0cmFuc2ZlclRyYW5zYWN0aW9uAAAACXJlY2lwaWVudAUAAAAPYXBwcm92ZWRBZGRyZXNzCQAAZgAAAAIFAAAAEW9uZU1vbnRoVGltZXN0YW1wBQAAAAZoZWlnaHQHCQAAAgAAAAECAAAAK1RyYW5zZmVyIGlzIG5vdCBhbGxvd2VkIGZvciB0aGUgZmlyc3QgbW9udGgDCQEAAAACIT0AAAACCAUAAAATdHJhbnNmZXJUcmFuc2FjdGlvbgAAAAlyZWNpcGllbnQFAAAAD2FwcHJvdmVkQWRkcmVzcwkAAAIAAAABAgAAACxUcmFuc2ZlciBpcyBvbmx5IGFsbG93ZWQgdG8gYXBwcm92ZWQgYWRkcmVzcwYJAAACAAAAAQIAAAAmT25seSB0cmFuc2ZlciB0cmFuc2FjdGlvbnMgYXJlIGFsbG93ZWTDStz2",
"height": 2432565,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let approvedAddress = Address(base58'3N2yYvres8nk2Ei1BWU6R771jEm3h1JVjtz') |
---|
| 4 | + | let oneMonthTimestamp = (height + (3 * 60)) |
---|
| 5 | + | match tx { |
---|
| 6 | + | case tx: TransferTransaction => |
---|
| 7 | + | let transferTransaction = tx |
---|
| 8 | + | if (if ((transferTransaction.recipient == approvedAddress)) |
---|
| 9 | + | then (oneMonthTimestamp > height) |
---|
| 10 | + | else false) |
---|
| 11 | + | then throw("Transfer is not allowed for the first month") |
---|
| 12 | + | else if ((transferTransaction.recipient != approvedAddress)) |
---|
| 13 | + | then throw("Transfer is only allowed to approved address") |
---|
| 14 | + | else true |
---|
| 15 | + | case _ => |
---|
| 16 | + | throw("Only transfer transactions are allowed") |
---|
| 17 | + | } |
---|