tx · 4tYTW9tzLBDmEczkwXP82ajHePxBst5Jg9A97xVYcfY1 3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk: -0.14000000 Waves 2021.02.04 19:51 [1383694] smart account 3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk > SELF 0.00000000 Waves
{ "type": 13, "id": "4tYTW9tzLBDmEczkwXP82ajHePxBst5Jg9A97xVYcfY1", "fee": 14000000, "feeAssetId": null, "timestamp": 1612457479974, "version": 2, "chainId": 84, "sender": "3N7ufBZVuVJtEPVnZAUjpffreNUxCYsb6Vk", "senderPublicKey": "8rDvQxFR9tYKSwAaR4umUxBMj37GmcVY3VtWAjLyJu62", "proofs": [ "2xJ25pML8zk38g74Poz2Mb7ZxozbCyMiXvZfuyfMhSYZnPaXHPWJLD7wsK2nHtRv4NtqnHEjsavZRD3sPa8a1WyU" ], "script": "base64:AAIDAAAAAAAAAAkIARIDCgEBEgAAAAAAAAAAAgAAAAFpAQAAAAdnZXRVbml0AAAAAQAAAAZ1bml0aWQEAAAAC3VuaXRBc3NldElkBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAEdW5pdAkAAaQAAAABBQAAAAZ1bml0aWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAABAAAAARjb3N0BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAFY29zdF8FAAAAC3VuaXRBc3NldElkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAABV3b3JrcyB3aXRoIHdhdmVzIG9ubHkDCQEAAAACIT0AAAACCAUAAAADcG10AAAABmFtb3VudAUAAAAEY29zdAkAAAIAAAABAgAAABhXcm9uZyBzZXJ2aWNlIGZlZSBhbW91bnQJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAR1bml0BQAAAANuaWwAAAABaQEAAAAKc2V0VGV4dERlZgAAAAAJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAABGRlbW8AAAAAAAAAAAwFAAAAA25pbAAAAAD9qvWJ", "height": 1383694, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 77mzXZTLjD5bqoHj7FjSdQBmJ4qPT7p7iaMwT5vikZ9g Next: 4DoVwma7tCR5zNAFmhhh9q64aH8wsMeLvKCmVvQe6pYP Diff:
Old | New | Differences | |
---|---|---|---|
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | + | ||
36 | + | @Callable(a) | |
37 | + | func setTextDef () = WriteSet([DataEntry("demo", 12)]) | |
38 | + | ||
39 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func getUnit (b) = { | |
8 | 8 | let c = { | |
9 | 9 | let d = getString(this, ("unit" + toString(b))) | |
10 | 10 | if ($isInstanceOf(d, "String")) | |
11 | 11 | then { | |
12 | 12 | let e = d | |
13 | 13 | e | |
14 | 14 | } | |
15 | 15 | else "" | |
16 | 16 | } | |
17 | 17 | let f = { | |
18 | 18 | let d = getInteger(this, ("cost_" + c)) | |
19 | 19 | if ($isInstanceOf(d, "Int")) | |
20 | 20 | then { | |
21 | 21 | let e = d | |
22 | 22 | e | |
23 | 23 | } | |
24 | 24 | else 0 | |
25 | 25 | } | |
26 | 26 | let g = extract(a.payment) | |
27 | 27 | if (isDefined(g.assetId)) | |
28 | 28 | then throw("works with waves only") | |
29 | 29 | else if ((g.amount != f)) | |
30 | 30 | then throw("Wrong service fee amount") | |
31 | 31 | else TransferSet([ScriptTransfer(a.caller, 1, unit)]) | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | + | ||
36 | + | @Callable(a) | |
37 | + | func setTextDef () = WriteSet([DataEntry("demo", 12)]) | |
38 | + | ||
39 | + |
github/deemru/w8io/169f3d6 34.18 ms ◑