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:
OldNewDifferences
2626 }
2727
2828
29+
30+@Callable(i)
31+func setTextDef () = WriteSet([DataEntry("demo", 12)])
32+
33+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func getUnit (unitid) = {
88 let unitAssetId = match getString(this, ("unit" + toString(unitid))) {
99 case a: String =>
1010 a
1111 case _ =>
1212 ""
1313 }
1414 let cost = match getInteger(this, ("cost_" + unitAssetId)) {
1515 case a: Int =>
1616 a
1717 case _ =>
1818 0
1919 }
2020 let pmt = extract(i.payment)
2121 if (isDefined(pmt.assetId))
2222 then throw("works with waves only")
2323 else if ((pmt.amount != cost))
2424 then throw("Wrong service fee amount")
2525 else TransferSet([ScriptTransfer(i.caller, 1, unit)])
2626 }
2727
2828
29+
30+@Callable(i)
31+func setTextDef () = WriteSet([DataEntry("demo", 12)])
32+
33+

github/deemru/w8io/169f3d6 
31.21 ms