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 |
---|
26 | 26 | | } |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
| 29 | + | |
---|
| 30 | + | @Callable(i) |
---|
| 31 | + | func setTextDef () = WriteSet([DataEntry("demo", 12)]) |
---|
| 32 | + | |
---|
| 33 | + | |
---|
Full:
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(i) |
---|
7 | 7 | | func getUnit (unitid) = { |
---|
8 | 8 | | let unitAssetId = match getString(this, ("unit" + toString(unitid))) { |
---|
9 | 9 | | case a: String => |
---|
10 | 10 | | a |
---|
11 | 11 | | case _ => |
---|
12 | 12 | | "" |
---|
13 | 13 | | } |
---|
14 | 14 | | let cost = match getInteger(this, ("cost_" + unitAssetId)) { |
---|
15 | 15 | | case a: Int => |
---|
16 | 16 | | a |
---|
17 | 17 | | case _ => |
---|
18 | 18 | | 0 |
---|
19 | 19 | | } |
---|
20 | 20 | | let pmt = extract(i.payment) |
---|
21 | 21 | | if (isDefined(pmt.assetId)) |
---|
22 | 22 | | then throw("works with waves only") |
---|
23 | 23 | | else if ((pmt.amount != cost)) |
---|
24 | 24 | | then throw("Wrong service fee amount") |
---|
25 | 25 | | else TransferSet([ScriptTransfer(i.caller, 1, unit)]) |
---|
26 | 26 | | } |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
| 29 | + | |
---|
| 30 | + | @Callable(i) |
---|
| 31 | + | func setTextDef () = WriteSet([DataEntry("demo", 12)]) |
---|
| 32 | + | |
---|
| 33 | + | |
---|