tx · GGcfScEwh2cmRDYPnfPasGwJDv26PCVxFcfTUCAp7xXU 3N1FxFP71D36Bed1SAme2TWNYc8FSKqBABy: -0.05000000 Waves 2021.01.27 18:13 [1372073] smart account 3N1FxFP71D36Bed1SAme2TWNYc8FSKqBABy > SELF 0.00000000 Waves
{ "type": 13, "id": "GGcfScEwh2cmRDYPnfPasGwJDv26PCVxFcfTUCAp7xXU", "fee": 5000000, "feeAssetId": null, "timestamp": 1611760431623, "version": 1, "sender": "3N1FxFP71D36Bed1SAme2TWNYc8FSKqBABy", "senderPublicKey": "E8DsfPo7HTu1f4LgWkzRf7iNuaTqtZn2TwwSgnc2TfQ7", "proofs": [ "5qy64QCVYgyJi4e9Dez2EQ1paZkrM8uQeu1k3zAh79xVqxvubKeG3XY5VYhYU4mJxM5PA9LoBwY7rEDyJtytR1iK" ], "script": "base64:AAIDAAAAAAAAAAIIAQAAAAEAAAAABFVTRE4BAAAAILYmKcME9c5TkaQOS3UkL2SMUbH6369UKb1I0h0qsqrRAAAAAAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAVPcmRlcgQAAAABbwUAAAAHJG1hdGNoMAQAAAAJV2F2ZXNVc2RuAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgIBQAAAAFvAAAACWFzc2V0UGFpcgAAAAthbW91bnRBc3NldAkAAAAAAAACCAgFAAAAAW8AAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQFAAAABFVTRE4HBAAAAAlVc2RuV2F2ZXMDCQAAAAAAAAIICAUAAAABbwAAAAlhc3NldFBhaXIAAAALYW1vdW50QXNzZXQFAAAABFVTRE4JAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEICAUAAAABbwAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAcDCQAB9AAAAAMIBQAAAAFvAAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABbwAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAFvAAAAD3NlbmRlclB1YmxpY0tleQMFAAAACVdhdmVzVXNkbgYFAAAACVVzZG5XYXZlcwcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA3R0eAUAAAAHJG1hdGNoMAMJAAH0AAAAAwgFAAAAA3R0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAA3R0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAN0dHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAAAAAACCAUAAAADdHR4AAAACXJlY2lwaWVudAkBAAAAB0FkZHJlc3MAAAABAQAAABoBVC3uPkGbLjBWJT2MFhbK6nIpmJjgVzeBPgYJAAAAAAAAAggFAAAAA3R0eAAAAAlyZWNpcGllbnQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVR9Hu6kzwooJ8EFraSCve38AAdOWw35nDYHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABcwUAAAAHJG1hdGNoMAYHOBYQcQ==", "chainId": 84, "height": 1372073, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HqhUvTuS9mxk5gnUvCqMotMr1bWbEpJ1BEssUuitNFDb Next: 8z2osASsoTdEeyg4QFrfyzYk9SswjMk6hyUSpg67mbsp Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | - | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | - | match tx { | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
5 | + | ||
6 | + | ||
7 | + | @Verifier(tx) | |
8 | + | func verify () = match tx { | |
9 | + | case o: Order => | |
10 | + | let WavesUsdn = if (!(isDefined(o.assetPair.amountAsset))) | |
11 | + | then (o.assetPair.priceAsset == USDN) | |
12 | + | else false | |
13 | + | let UsdnWaves = if ((o.assetPair.amountAsset == USDN)) | |
14 | + | then !(isDefined(o.assetPair.priceAsset)) | |
15 | + | else false | |
16 | + | if (sigVerify(o.bodyBytes, o.proofs[0], o.senderPublicKey)) | |
17 | + | then if (WavesUsdn) | |
18 | + | then true | |
19 | + | else UsdnWaves | |
20 | + | else false | |
21 | + | case ttx: TransferTransaction => | |
22 | + | if (sigVerify(ttx.bodyBytes, ttx.proofs[0], ttx.senderPublicKey)) | |
23 | + | then if ((ttx.recipient == Address(base58'3Mt6waynUrdiKJT9dAsCq17C8kJksLhKrAZ'))) | |
24 | + | then true | |
25 | + | else (ttx.recipient == Address(base58'3N1KfJ78JmtC1EY8c2c2TwMdqqXFLjuin6R')) | |
26 | + | else false | |
27 | + | case s: SetScriptTransaction => | |
28 | + | true | |
4 | 29 | case _ => | |
5 | - | | |
30 | + | false | |
6 | 31 | } | |
32 | + |
github/deemru/w8io/169f3d6 25.43 ms ◑