tx · 3r6TrfRkpxksfL4q2mPvg2hqwmUJMgjdLrBzXhwUHmss
3N71FVEBGAdUZ5644k912MtHHvWZnvSjb9b: -0.01000000 Waves
2023.02.03 11:58 [2433229] smart account 3N71FVEBGAdUZ5644k912MtHHvWZnvSjb9b > SELF 0.00000000 Waves
{
"type": 13,
"id": "3r6TrfRkpxksfL4q2mPvg2hqwmUJMgjdLrBzXhwUHmss",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1675414717190,
"version": 2,
"chainId": 84,
"sender": "3N71FVEBGAdUZ5644k912MtHHvWZnvSjb9b",
"senderPublicKey": "AxEDU2C4uYhuoQsnTNbR5d9boZvUvVhPBtCCFg3CnE3d",
"proofs": [
"4LFhfJhU6rhY8Dw2Jc9PTtK1jSrDzmpachJRbGYQSmc3rf5sMVjByCR62Y1ffdQVBmQt2vgyPsHj3vj5dpXn5Sqm"
],
"script": "base64:AwQAAAAQYXBwcm92ZWRBZGRyZXNzMQkBAAAAB0FkZHJlc3MAAAABAQAAABoBVI9BjNbzlSQXkRI1p4pQy25iv6Ue0ELDHwQAAAAQYXBwcm92ZWRBZGRyZXNzMgkBAAAAB0FkZHJlc3MAAAABAQAAABoBVKOJUPfsvIJP05l//SFaQzSQ9VTxASXdwgQAAAASbGFzdFRyYW5zZmVySGVpZ2h0CQAAZQAAAAIFAAAABmhlaWdodAAAAAAAACUgzAQAAAAIbG9ja1RpbWUAAAAAAAAAALQEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAATdHJhbnNmZXJUcmFuc2FjdGlvbgUAAAACdHgDAwkBAAAAAiE9AAAAAggFAAAAE3RyYW5zZmVyVHJhbnNhY3Rpb24AAAAJcmVjaXBpZW50BQAAABBhcHByb3ZlZEFkZHJlc3MxCQAAZgAAAAIJAABlAAAAAgUAAAAGaGVpZ2h0BQAAABJsYXN0VHJhbnNmZXJIZWlnaHQFAAAACGxvY2tUaW1lBwMJAQAAAAIhPQAAAAIIBQAAABN0cmFuc2ZlclRyYW5zYWN0aW9uAAAACXJlY2lwaWVudAUAAAAQYXBwcm92ZWRBZGRyZXNzMgkAAAIAAAABAgAAAC5UcmFuc2ZlciBpcyBvbmx5IGFsbG93ZWQgdG8gYXBwcm92ZWQgYWRkcmVzc2VzBgYJAAACAAAAAQIAAAAmT25seSB0cmFuc2ZlciB0cmFuc2FjdGlvbnMgYXJlIGFsbG93ZWQ4hyD4",
"height": 2433229,
"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 approvedAddress1 = Address(base58'3N2yYvres8nk2Ei1BWU6R771jEm3h1JVjtz') |
---|
| 4 | + | let approvedAddress2 = Address(base58'3N4pnR6G64ASbwSRrpZKKdfUt5UvXryDN8y') |
---|
| 5 | + | let lastTransferHeight = (height - 2433228) |
---|
| 6 | + | let lockTime = 180 |
---|
| 7 | + | match tx { |
---|
| 8 | + | case tx: TransferTransaction => |
---|
| 9 | + | let transferTransaction = tx |
---|
| 10 | + | if (if ((transferTransaction.recipient != approvedAddress1)) |
---|
| 11 | + | then ((height - lastTransferHeight) > lockTime) |
---|
| 12 | + | else false) |
---|
| 13 | + | then if ((transferTransaction.recipient != approvedAddress2)) |
---|
| 14 | + | then throw("Transfer is only allowed to approved addresses") |
---|
| 15 | + | else true |
---|
| 16 | + | else true |
---|
| 17 | + | case _ => |
---|
| 18 | + | throw("Only transfer transactions are allowed") |
---|
| 19 | + | } |
---|