tx · 2AgveEhpH3r8mRjE14mozsQKVhE9F77ktymLeTKGKomU
3NB185D8btjAuVbwGGEW4Tea58u8RDmWx4k: -0.01000000 Waves
2023.01.29 22:38 [2426697] smart account 3NB185D8btjAuVbwGGEW4Tea58u8RDmWx4k > SELF 0.00000000 Waves
{
"type": 13,
"id": "2AgveEhpH3r8mRjE14mozsQKVhE9F77ktymLeTKGKomU",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1675021085581,
"version": 2,
"chainId": 84,
"sender": "3NB185D8btjAuVbwGGEW4Tea58u8RDmWx4k",
"senderPublicKey": "DiRuhEevzkmFod2BvA8AwKcXLg2mrrAWoejac2CvAqdv",
"proofs": [
"3mMSQrW5D3MizVTcE1DfhzoUBT7bj3QHBoFXi4j6iwBCcg72cLwV4DCSmxx2TnGSc5YwD6LcM92bd6mh5A5q7LCo"
],
"script": "base64:BQQAAAADQm9iCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFU506jvibr/Cx18D79wl5Us6+snCem1j3dBAAAAAVBbGljZQkBAAAAB0FkZHJlc3MAAAABAQAAABoBVMfX0L26VwPAQ7HJRJ1CfDyE+/CxwG4+FgQAAAAMYmVmb3JlSGVpZ2h0AAAAAAAAJQdIBAAAAAZzZWNyZXQBAAAAIJn8MlJlaAHk/8Jtykja/r0HEDIY7r8iCKxF4PK8yqZUBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAQAAAAHdHhUb0JvYgMDCQAAAAAAAAIIBQAAAAF0AAAACXJlY2lwaWVudAUAAAADQm9iCQAAAAAAAAIJAAH3AAAAAQkAAZEAAAACCAUAAAABdAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAABnNlY3JldAcJAABnAAAAAgkAAGQAAAACAAAAAAAAAAAUBQAAAAxiZWZvcmVIZWlnaHQFAAAABmhlaWdodAcEAAAAFmJhY2tUb0FsaWNlQWZ0ZXJIZWlnaHQDCQAAZwAAAAIFAAAABmhlaWdodAkAAGQAAAACAAAAAAAAAAAVBQAAAAxiZWZvcmVIZWlnaHQJAAAAAAAAAggFAAAAAXQAAAAJcmVjaXBpZW50BQAAAAVBbGljZQcDBQAAAAd0eFRvQm9iBgUAAAAWYmFja1RvQWxpY2VBZnRlckhlaWdodAam17Qd",
"height": 2426697,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6vP8SgzNF565yMyRiPbgoGARiQ4uysRyrA5ypkZVgYKK
Next: none
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let Bob = Address(base58'3NB185D8btjAuVbwGGEW4Tea58u8RDmWx4k') |
---|
4 | 4 | | let Alice = Address(base58'3N88knDD9LtFmMBdmpNFbwHGuGKLSaEseNZ') |
---|
5 | | - | let beforeHeight = 2423675 |
---|
6 | | - | let secret = base58'DiRuhEevzkmFod2BvA8AwKcXLg2mrrAWoejac2CvAqdv' |
---|
| 5 | + | let beforeHeight = 2426696 |
---|
| 6 | + | let secret = base58'BN6RTYGWcwektQfSFzH8raYo9awaLgQ7pLyWLQY4S4F5' |
---|
7 | 7 | | match tx { |
---|
8 | 8 | | case t: TransferTransaction => |
---|
9 | 9 | | let txToBob = if (if ((t.recipient == Bob)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let Bob = Address(base58'3NB185D8btjAuVbwGGEW4Tea58u8RDmWx4k') |
---|
4 | 4 | | let Alice = Address(base58'3N88knDD9LtFmMBdmpNFbwHGuGKLSaEseNZ') |
---|
5 | | - | let beforeHeight = 2423675 |
---|
6 | | - | let secret = base58'DiRuhEevzkmFod2BvA8AwKcXLg2mrrAWoejac2CvAqdv' |
---|
| 5 | + | let beforeHeight = 2426696 |
---|
| 6 | + | let secret = base58'BN6RTYGWcwektQfSFzH8raYo9awaLgQ7pLyWLQY4S4F5' |
---|
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 | | } |
---|