tx · 79Le2YoYZGCByw5tLsJm82bx5iQPxvZeGMHT2MJvJVpg
3NB185D8btjAuVbwGGEW4Tea58u8RDmWx4k: -0.01000000 Waves
2023.01.07 15:13 [2394524] smart account 3NB185D8btjAuVbwGGEW4Tea58u8RDmWx4k > SELF 0.00000000 Waves
{
"type": 13,
"id": "79Le2YoYZGCByw5tLsJm82bx5iQPxvZeGMHT2MJvJVpg",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1673093629786,
"version": 2,
"chainId": 84,
"sender": "3NB185D8btjAuVbwGGEW4Tea58u8RDmWx4k",
"senderPublicKey": "DiRuhEevzkmFod2BvA8AwKcXLg2mrrAWoejac2CvAqdv",
"proofs": [
"5mWvA6kTMshW24cTLFeftaxZdoVGsvM9tFeAMTo89QFuqDpD8CuhuG8uTYn2mBsqDY6UXDNRoghGqCm1u2kfjveT"
],
"script": "base64:BQQAAAADQm9iCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUThE/eo3L3qr/VgWW+f08rluCr9hJHO4dBAAAAAVBbGljZQkBAAAAB0FkZHJlc3MAAAABAQAAABoBVFkzT+/iwDIR5qoi87WTYlhlojYbualtKwQAAAAMYmVmb3JlSGVpZ2h0AAAAAAAAAYagBAAAAAZzZWNyZXQBAAAAILzpOG5Lck5j7hKXssrKaAFCPnEC5jhPb0ozVUBZcrt1BAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAQAAAAHdHhUb0JvYgMDCQAAAAAAAAIIBQAAAAF0AAAACXJlY2lwaWVudAUAAAADQm9iCQAAAAAAAAIJAAH3AAAAAQkAAZEAAAACCAUAAAABdAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAABnNlY3JldAcJAABnAAAAAgkAAGQAAAACAAAAAAAAAAAUBQAAAAxiZWZvcmVIZWlnaHQFAAAABmhlaWdodAcEAAAAFmJhY2tUb0FsaWNlQWZ0ZXJIZWlnaHQDCQAAZwAAAAIFAAAABmhlaWdodAkAAGQAAAACAAAAAAAAAAAVBQAAAAxiZWZvcmVIZWlnaHQJAAAAAAAAAggFAAAAAXQAAAAJcmVjaXBpZW50BQAAAAVBbGljZQcDBQAAAAd0eFRvQm9iBgUAAAAWYmFja1RvQWxpY2VBZnRlckhlaWdodAb9VrxT",
"height": 2394524,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: 6vP8SgzNF565yMyRiPbgoGARiQ4uysRyrA5ypkZVgYKK
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 5 #-} |
---|
| 2 | + | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let Bob = Address(base58'3Mw2s9HwPdXxC7KZzVtnerd684wqSZ2YmHe') |
---|
| 4 | + | let Alice = Address(base58'3Mx3jPENaKAoGqTjXgUW3NuoH4RLUBEDwQn') |
---|
| 5 | + | let beforeHeight = 100000 |
---|
| 6 | + | let secret = base58'DiRuhEevzkmFod2BvA8AwKcXLg2mrrAWoejac2CvAqdv' |
---|
| 7 | + | match tx { |
---|
| 8 | + | case t: TransferTransaction => |
---|
| 9 | + | let txToBob = if (if ((t.recipient == Bob)) |
---|
| 10 | + | then (sha256(t.proofs[0]) == secret) |
---|
| 11 | + | else false) |
---|
| 12 | + | then ((20 + beforeHeight) >= height) |
---|
| 13 | + | else false |
---|
| 14 | + | let backToAliceAfterHeight = if ((height >= (21 + beforeHeight))) |
---|
| 15 | + | then (t.recipient == Alice) |
---|
| 16 | + | else false |
---|
| 17 | + | if (txToBob) |
---|
| 18 | + | then true |
---|
| 19 | + | else backToAliceAfterHeight |
---|
| 20 | + | case _ => |
---|
| 21 | + | true |
---|
| 22 | + | } |
---|