tx · 5SLaD539orDb2z3ocW7k7WyYfg3aJSef5pvJM6fVRbT2
3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8: -0.01400000 Waves
2020.12.10 15:30 [1302564] smart account 3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8 > SELF 0.00000000 Waves
{
"type": 13,
"id": "5SLaD539orDb2z3ocW7k7WyYfg3aJSef5pvJM6fVRbT2",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1607603441940,
"version": 2,
"chainId": 84,
"sender": "3NCy4rT9no9CGLr89UrnyH8s75P8JjkSap8",
"senderPublicKey": "62prNgRbWHRQAXh3a5sG95EtrJoYEsuUAgwkg3F4Kt6k",
"proofs": [
"LRhEyCnCZGXjoJHtPk8k2qKJ9vPiwmB3Le9ugbSWbCbuTitX6CcGhXG76f8JBhchN78HHMxmyJp4x9CyCF18zFy"
],
"script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAALWnJvYnByemVsZXcAAAAABAAAAAZsaXN0YTEJAARMAAAAAgAAAAAAAAAAAQkABEwAAAACAAAAAAAAAAACCQAETAAAAAIAAAAAAAAAAAMFAAAAA25pbAQAAAAGbGlzdGEyCQAETAAAAAIAAAAAAAAAAAQJAARMAAAAAgAAAAAAAAAABQkABEwAAAACAAAAAAAAAAAGBQAAAANuaWwEAAAABmxpc3RhMwkABEwAAAACBQAAAAZsaXN0YTEJAARMAAAAAgUAAAAGbGlzdGEyBQAAAANuaWwEAAAAAWEJAAGRAAAAAgUAAAAGbGlzdGEzAAAAAAAAAAAABAAAAAVrb250bwgFAAAAAWkAAAAGY2FsbGVyBAAAAAVJbG9zYwgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAAJhYggJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAQAAAAIc3pjemVwYW4JAAJZAAAAAQIAAAAsR29KN3g0Ym9ZckZNY25mZloya2lwNG1nR3NGeTRLeVpyeUc5am9vTHRHWG8EAAAAEGRlbm9taW5vd2FuaWxvc2MJAABrAAAAAwUAAAAFSWxvc2MAAAAAAAAAAAEAAAAAAAAPQkAEAAAAD3Bvb2RqZWNpdW9wbGF0eQkAAGsAAAADBQAAABBkZW5vbWlub3dhbmlsb3NjAAAAAAAAAABhAAAAAAAAAABkBAAAABhkZW5vbWlub3dhbmlsb3Njb2R3cm90bmEJAABrAAAAAwUAAAAFSWxvc2MAAAAAAAAPQkAAAAAAAAAAAAEEAAAAEHBvb2RqZWNpdW9wbGF0eTIJAABrAAAAAwUAAAAYZGVub21pbm93YW5pbG9zY29kd3JvdG5hAAAAAAAAAABhAAAAAAAAAABkAwkAAAAAAAACBQAAAAJhYgUAAAAEdW5pdAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAVrb250bwUAAAAPcG9vZGplY2l1b3BsYXR5CQACWQAAAAECAAAALEdvSjd4NGJvWXJGTWNuZmZaMmtpcDRtZ0dzRnk0S3lacnlHOWpvb0x0R1hvBQAAAANuaWwDCQAAAAAAAAIFAAAAAmFiBQAAAAhzemN6ZXBhbgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAVrb250bwUAAAAQcG9vZGplY2l1b3BsYXR5MgUAAAAEdW5pdAUAAAADbmlsCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABWtvbnRvAAAAAAAAAAAABQAAAAR1bml0BQAAAANuaWwAAAAAaD0IaQ==",
"height": 1302564,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 4iXjN5sAXFqEGAVcYfvZosaXa5qdQ8skZ2BguoUMyYCp
Next: 4i8xGs7pZz5LToD5oqw8568ELj8r3sP33pfsbdf9zZde
Diff:
Old | New | | Differences |
---|
11 | 11 | | let a = lista3[0] |
---|
12 | 12 | | let konto = i.caller |
---|
13 | 13 | | let Ilosc = i.payments[0].amount |
---|
| 14 | + | let ab = i.payments[0].assetId |
---|
| 15 | + | let szczepan = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") |
---|
14 | 16 | | let denominowanilosc = fraction(Ilosc, 1, 1000000) |
---|
15 | 17 | | let poodjeciuoplaty = fraction(denominowanilosc, 97, 100) |
---|
16 | | - | let waluta = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") |
---|
17 | | - | [ScriptTransfer(konto, poodjeciuoplaty, waluta)] |
---|
| 18 | + | let denominowaniloscodwrotna = fraction(Ilosc, 1000000, 1) |
---|
| 19 | + | let poodjeciuoplaty2 = fraction(denominowaniloscodwrotna, 97, 100) |
---|
| 20 | + | if ((ab == unit)) |
---|
| 21 | + | then [ScriptTransfer(konto, poodjeciuoplaty, fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo"))] |
---|
| 22 | + | else if ((ab == szczepan)) |
---|
| 23 | + | then [ScriptTransfer(konto, poodjeciuoplaty2, unit)] |
---|
| 24 | + | else [ScriptTransfer(konto, 0, unit)] |
---|
18 | 25 | | } |
---|
19 | 26 | | |
---|
20 | 27 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func Zrobprzelew () = { |
---|
8 | 8 | | let lista1 = [1, 2, 3] |
---|
9 | 9 | | let lista2 = [4, 5, 6] |
---|
10 | 10 | | let lista3 = [lista1, lista2] |
---|
11 | 11 | | let a = lista3[0] |
---|
12 | 12 | | let konto = i.caller |
---|
13 | 13 | | let Ilosc = i.payments[0].amount |
---|
| 14 | + | let ab = i.payments[0].assetId |
---|
| 15 | + | let szczepan = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") |
---|
14 | 16 | | let denominowanilosc = fraction(Ilosc, 1, 1000000) |
---|
15 | 17 | | let poodjeciuoplaty = fraction(denominowanilosc, 97, 100) |
---|
16 | | - | let waluta = fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo") |
---|
17 | | - | [ScriptTransfer(konto, poodjeciuoplaty, waluta)] |
---|
| 18 | + | let denominowaniloscodwrotna = fraction(Ilosc, 1000000, 1) |
---|
| 19 | + | let poodjeciuoplaty2 = fraction(denominowaniloscodwrotna, 97, 100) |
---|
| 20 | + | if ((ab == unit)) |
---|
| 21 | + | then [ScriptTransfer(konto, poodjeciuoplaty, fromBase58String("GoJ7x4boYrFMcnffZ2kip4mgGsFy4KyZryG9jooLtGXo"))] |
---|
| 22 | + | else if ((ab == szczepan)) |
---|
| 23 | + | then [ScriptTransfer(konto, poodjeciuoplaty2, unit)] |
---|
| 24 | + | else [ScriptTransfer(konto, 0, unit)] |
---|
18 | 25 | | } |
---|
19 | 26 | | |
---|
20 | 27 | | |
---|