tx · 2f4HmEEC99VZXZEUokPthak16C8xzando47u55GjPzmT
3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez: -0.00100000 Waves
2023.11.09 15:48 [2835825] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves
{
"type": 13,
"id": "2f4HmEEC99VZXZEUokPthak16C8xzando47u55GjPzmT",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1699534155214,
"version": 2,
"chainId": 84,
"sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez",
"senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf",
"proofs": [
"319Kb3e72sgty8mCcKyFSJC72JA6SBpgP2Vr85ci48x1mbnHpT6PEhcMwRSZcD8dnPaDqt5Ee5fvM8EghvmuZD4o"
],
"script": "base64:BgIGCAISABIAAgENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWIFByRtYXRjaDAFAWIAAAEMdHJ5R2V0U3RyaW5nAQNrZXkEByRtYXRjaDAJAJ0IAgUEdGhpcwUDa2V5AwkAAQIFByRtYXRjaDACBlN0cmluZwQBYgUHJG1hdGNoMAUBYgIAAgFpAQhyZWdpc3RlcgAJAMwIAgkBDEludGVnZXJFbnRyeQICEUFtb3VudCBSZWdpc3RlcmVkCQBkAgkBDXRyeUdldEludGVnZXIBAhFBbW91bnQgUmVnaXN0ZXJlZAABCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgISUmVnaXN0ZXIgYWRkcmVzczogCQCkAwEJAGQCCQENdHJ5R2V0SW50ZWdlcgECEUFtb3VudCBSZWdpc3RlcmVkAAEJAKUIAQgFAWkGY2FsbGVyCQDMCAIJAQtTdHJpbmdFbnRyeQICEkFkZHJlc3MgcmVnaXN0ZXJlZAkArAICCQCsAgIJAQx0cnlHZXRTdHJpbmcBAhJBZGRyZXNzIHJlZ2lzdGVyZWQJAKUIAQgFAWkGY2FsbGVyAgEsBQNuaWwBaQEIbWFrZUxpc3QABAlhZGRyZXNzZXMJAQx0cnlHZXRTdHJpbmcBAhJBZGRyZXNzIHJlZ2lzdGVyZWQEBGxpc3QJALUJAgUJYWRkcmVzc2VzAgEsBAhsaXN0U2l6ZQkAkAMBBQRsaXN0BAtmaXJzdE9mTGlzdAkAkQMCBQRsaXN0AAAECmxhc3RPZkxpc3QJAJEDAgUEbGlzdAkAZQIFCGxpc3RTaXplAAEJAMwIAgkBC1N0cmluZ0VudHJ5AgIJYWRkcmVzc2VzBQlhZGRyZXNzZXMJAMwIAgkBDEludGVnZXJFbnRyeQICCGxpc3RTaXplBQhsaXN0U2l6ZQkAzAgCCQELU3RyaW5nRW50cnkCAgtmaXJzdE9mTGlzdAULZmlyc3RPZkxpc3QJAMwIAgkBC1N0cmluZ0VudHJ5AgIKbGFzdE9mTGlzdAUKbGFzdE9mTGlzdAUDbmlsADfq0Yw=",
"height": 2835825,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: EYHojmoB7Nr2ax4hJH9f7p2hZNU6WT8Z7QEyXjTc2gj
Next: Ee6iQ9UWHHN1pYZYym3KKTFqJ1prt1BxzHRgDUEYhHvq
Diff:
Old | New | | Differences |
---|
28 | 28 | | let list = split(addresses, ",") |
---|
29 | 29 | | let listSize = size(list) |
---|
30 | 30 | | let firstOfList = list[0] |
---|
31 | | - | [StringEntry("addresses", addresses), IntegerEntry("listSize", listSize), StringEntry("firstOfList", firstOfList)] |
---|
| 31 | + | let lastOfList = list[(listSize - 1)] |
---|
| 32 | + | [StringEntry("addresses", addresses), IntegerEntry("listSize", listSize), StringEntry("firstOfList", firstOfList), StringEntry("lastOfList", lastOfList)] |
---|
32 | 33 | | } |
---|
33 | 34 | | |
---|
34 | 35 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func tryGetInteger (key) = match getInteger(this, key) { |
---|
5 | 5 | | case b: Int => |
---|
6 | 6 | | b |
---|
7 | 7 | | case _ => |
---|
8 | 8 | | 0 |
---|
9 | 9 | | } |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | func tryGetString (key) = match getString(this, key) { |
---|
13 | 13 | | case b: String => |
---|
14 | 14 | | b |
---|
15 | 15 | | case _ => |
---|
16 | 16 | | "" |
---|
17 | 17 | | } |
---|
18 | 18 | | |
---|
19 | 19 | | |
---|
20 | 20 | | @Callable(i) |
---|
21 | 21 | | func register () = [IntegerEntry("Amount Registered", (tryGetInteger("Amount Registered") + 1)), StringEntry(("Register address: " + toString((tryGetInteger("Amount Registered") + 1))), toString(i.caller)), StringEntry("Address registered", ((tryGetString("Address registered") + toString(i.caller)) + ","))] |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | @Callable(i) |
---|
26 | 26 | | func makeList () = { |
---|
27 | 27 | | let addresses = tryGetString("Address registered") |
---|
28 | 28 | | let list = split(addresses, ",") |
---|
29 | 29 | | let listSize = size(list) |
---|
30 | 30 | | let firstOfList = list[0] |
---|
31 | | - | [StringEntry("addresses", addresses), IntegerEntry("listSize", listSize), StringEntry("firstOfList", firstOfList)] |
---|
| 31 | + | let lastOfList = list[(listSize - 1)] |
---|
| 32 | + | [StringEntry("addresses", addresses), IntegerEntry("listSize", listSize), StringEntry("firstOfList", firstOfList), StringEntry("lastOfList", lastOfList)] |
---|
32 | 33 | | } |
---|
33 | 34 | | |
---|
34 | 35 | | |
---|