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