tx · 5hWZLsepoXvNwamkio6Z7wtMra81WUUKP2ng14W488iu 3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8: -0.01400000 Waves 2020.12.12 06:14 [1304892] smart account 3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8 > SELF 0.00000000 Waves
{ "type": 13, "id": "5hWZLsepoXvNwamkio6Z7wtMra81WUUKP2ng14W488iu", "fee": 1400000, "feeAssetId": null, "timestamp": 1607742881527, "version": 2, "chainId": 84, "sender": "3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8", "senderPublicKey": "62prNgRbWHRQAXh3a5sG95EtrJoYEsuUAgwkg3F4Kt6k", "proofs": [ "38sGKxJ2DJ48UpQxhJuA5L49j88Tmw3G9uwaeYtdzE29qAvacrDTZc4DwahPRHbhgmQbbqAFqBQzJ3SxMgQ4jzYX" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAALWnJvYnByemVsZXcAAAAABAAAAAVrb250bwgFAAAAAWkAAAAGY2FsbGVyBAAAAAVJbG9zYwgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAAZ3YWx1dGEICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQEAAAACHN6Y3plcGFuCQACWQAAAAECAAAALEdvSjd4NGJvWXJGTWNuZmZaMmtpcDRtZ0dzRnk0S3lacnlHOWpvb0x0R1hvBAAAABBkZW5vbWlub3dhbmlsb3NjCQAAawAAAAMFAAAABUlsb3NjAAAAAAAAAAABAAAAAAAAD0JABAAAAA9wb29kamVjaXVvcGxhdHkJAABrAAAAAwUAAAAQZGVub21pbm93YW5pbG9zYwAAAAAAAAAAYQAAAAAAAAAAZAQAAAAYZGVub21pbm93YW5pbG9zY29kd3JvdG5hCQAAawAAAAMFAAAABUlsb3NjAAAAAAAAD0JAAAAAAAAAAAABBAAAABBwb29kamVjaXVvcGxhdHkyCQAAawAAAAMFAAAAGGRlbm9taW5vd2FuaWxvc2NvZHdyb3RuYQAAAAAAAAAAYQAAAAAAAAAAZAMJAAAAAAAAAgUAAAAGd2FsdXRhBQAAAAR1bml0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABWtvbnRvBQAAAA9wb29kamVjaXVvcGxhdHkJAAJZAAAAAQIAAAAsR29KN3g0Ym9ZckZNY25mZloya2lwNG1nR3NGeTRLeVpyeUc5am9vTHRHWG8FAAAAA25pbAMJAAAAAAAAAgUAAAAGd2FsdXRhBQAAAAhzemN6ZXBhbgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAVrb250bwUAAAAQcG9vZGplY2l1b3BsYXR5MgUAAAAEdW5pdAUAAAADbmlsCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABWtvbnRvAAAAAAAAAAAABQAAAAR1bml0BQAAAANuaWwAAAAAHxOqDw==", "height": 1304892, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8BX5BACJDthGEAPn7Lcuj1sKTbrQ7WhWWmArxmoRQK7w Next: 7zabXinUtJRXHo8JCdyTPbnuLQkmAXHuoYs3MBdqd46v Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | - | @Callable(inv) | |
7 | - | func default () = [DeleteEntry("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S_q"), DeleteEntry("3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8_a"), DeleteEntry("3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8_q")] | |
6 | + | @Callable(i) | |
7 | + | func Zrobprzelew () = { | |
8 | + | let konto = i.caller | |
9 | + | let Ilosc = i.payments[0].amount | |
10 | + | let waluta = i.payments[0].assetId | |
11 | + | let szczepan = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") | |
12 | + | let denominowanilosc = fraction(Ilosc, 1, 1000000) | |
13 | + | let poodjeciuoplaty = fraction(denominowanilosc, 97, 100) | |
14 | + | let denominowaniloscodwrotna = fraction(Ilosc, 1000000, 1) | |
15 | + | let poodjeciuoplaty2 = fraction(denominowaniloscodwrotna, 97, 100) | |
16 | + | if ((waluta == unit)) | |
17 | + | then [ScriptTransfer(konto, poodjeciuoplaty, fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo"))] | |
18 | + | else if ((waluta == szczepan)) | |
19 | + | then [ScriptTransfer(konto, poodjeciuoplaty2, unit)] | |
20 | + | else [ScriptTransfer(konto, 0, unit)] | |
21 | + | } | |
8 | 22 | ||
9 | 23 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | - | @Callable(inv) | |
7 | - | func default () = [DeleteEntry("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S_q"), DeleteEntry("3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8_a"), DeleteEntry("3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8_q")] | |
6 | + | @Callable(i) | |
7 | + | func Zrobprzelew () = { | |
8 | + | let konto = i.caller | |
9 | + | let Ilosc = i.payments[0].amount | |
10 | + | let waluta = i.payments[0].assetId | |
11 | + | let szczepan = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") | |
12 | + | let denominowanilosc = fraction(Ilosc, 1, 1000000) | |
13 | + | let poodjeciuoplaty = fraction(denominowanilosc, 97, 100) | |
14 | + | let denominowaniloscodwrotna = fraction(Ilosc, 1000000, 1) | |
15 | + | let poodjeciuoplaty2 = fraction(denominowaniloscodwrotna, 97, 100) | |
16 | + | if ((waluta == unit)) | |
17 | + | then [ScriptTransfer(konto, poodjeciuoplaty, fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo"))] | |
18 | + | else if ((waluta == szczepan)) | |
19 | + | then [ScriptTransfer(konto, poodjeciuoplaty2, unit)] | |
20 | + | else [ScriptTransfer(konto, 0, unit)] | |
21 | + | } | |
8 | 22 | ||
9 | 23 |
github/deemru/w8io/026f985 36.62 ms ◑