tx · 884RyWSPRNaXVEcyDhYL5Gq4qdqWRk9645Dr5rfv7L2N
3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42: -0.00200000 Waves
2022.07.01 12:03 [2120382] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves
{
"type": 13,
"id": "884RyWSPRNaXVEcyDhYL5Gq4qdqWRk9645Dr5rfv7L2N",
"fee": 200000,
"feeAssetId": null,
"timestamp": 1656666236147,
"version": 2,
"chainId": 84,
"sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42",
"senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB",
"proofs": [
"5kvdPHpsqasgnN7vECTW1vNofDNQZkua67yihPxMuhzLX8pP7a1NptFoKH3ixZdYrRCDeTT5qfdn4etSWRBH6xfi"
],
"script": "base64:AAIFAAAAAAAAABIIAhIDCgEIEgMKAQESBAoCAQEAAAAHAAAAAAlzZXBhcmF0b3ICAAAAAV8AAAAAD3NlY29uZFNlcGFyYXRvcgIAAAABLwEAAAAWZ2V0QWRkclRvSW50TWFwcGluZ0tleQAAAAIAAAALbWFwcGluZ05hbWUAAAAEYWRkcgkABLkAAAACCQAETAAAAAIFAAAAC21hcHBpbmdOYW1lCQAETAAAAAIFAAAABGFkZHIFAAAAA25pbAUAAAAJc2VwYXJhdG9yAQAAAA9nZXRMaXN0T2ZBcnJheXMAAAACAAAAC21hcHBpbmdOYW1lAAAABGFkZHIJAAS1AAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwkBAAAAFmdldEFkZHJUb0ludE1hcHBpbmdLZXkAAAACBQAAAAttYXBwaW5nTmFtZQUAAAAEYWRkcgUAAAAJc2VwYXJhdG9yAQAAABhnZXRBZGRyVG9JbnRNYXBwaW5nSW5kZXgAAAACAAAAC21hcHBpbmdOYW1lAAAABGFkZHIJAAGQAAAAAQkBAAAAD2dldExpc3RPZkF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WVudEZyb21BcnJheQAAAAIAAAAFaW5kZXgAAAAHaW5kZXhJbgMJAABnAAAAAgkBAAAAGmdldEFkZHJUb0ludE1hcHBpbmdJbmRleEluAAAAAQUAAAAHaW5kZXhJbgUAAAAHaW5kZXhJbgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAEyCQABkQAAAAIJAAS1AAAAAgkAAZEAAAACCQEAAAAPZ2V0TGlzdE9mQXJyYXlzAAAAAgIAAAAJbWFwU3RyaW5nCQAEJQAAAAEFAAAABHRoaXMFAAAABWluZGV4BQAAAA9zZWNvbmRTZXBhcmF0b3IFAAAAB2luZGV4SW4FAAAAA25pbAkAAAIAAAABAgAAAAxvdXQgb2YgcmFuZ2UAAAAAWU7fiw==",
"height": 2120382,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: DfKHoJipuSxSrnZxtWh8hgZgnM8XKEPrH1zz8bPnAJn1
Next: DNmMCHxseYyDRjJRbYwghUvEDNco42Hc3rEBRsXvCFon
Diff:
Old | New | | Differences |
---|
5 | 5 | | |
---|
6 | 6 | | let b = "/" |
---|
7 | 7 | | |
---|
8 | | - | func c (d,e,a) = makeString([d, e], a) |
---|
| 8 | + | func c (d,e) = makeString([d, e], a) |
---|
9 | 9 | | |
---|
10 | 10 | | |
---|
11 | | - | func f (d,e,a) = getStringValue(this, c(d, e, a)) |
---|
| 11 | + | func f (d,e) = split(getStringValue(this, c(d, e)), a) |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | | - | func g (d,e) = { |
---|
15 | | - | let h = c(d, e, b) |
---|
16 | | - | StringEntry(c("mapString", e, a), h) |
---|
17 | | - | } |
---|
| 14 | + | func g (d,e) = size(f("mapString", e)) |
---|
18 | 15 | | |
---|
19 | 16 | | |
---|
20 | | - | func i (d,e,j) = if ((150 >= size(j))) |
---|
21 | | - | then StringEntry(c("mapString", e, b), j) |
---|
| 17 | + | func h (i) = size(split(f("mapString", toString(this))[i], b)) |
---|
| 18 | + | |
---|
| 19 | + | |
---|
| 20 | + | func j (d,e,k) = if ((150 >= size(k))) |
---|
| 21 | + | then StringEntry(c("mapString", e), k) |
---|
22 | 22 | | else throw("overcrowded") |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | | - | @Callable(k) |
---|
26 | | - | func setMap () = [g("mapString", toString(this))] |
---|
| 25 | + | @Callable(l) |
---|
| 26 | + | func setStruct (m) = [j("mapString", toString(this), m)] |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|
30 | | - | @Callable(k) |
---|
31 | | - | func setMapInMap (l) = [i("mapString", toString(this), l)] |
---|
| 30 | + | @Callable(l) |
---|
| 31 | + | func getArrayFromStruct (n) = if ((g("mapString", toString(this)) >= n)) |
---|
| 32 | + | then [StringEntry("1", f("mapString", toString(this))[n])] |
---|
| 33 | + | else throw("out of range") |
---|
32 | 34 | | |
---|
33 | 35 | | |
---|
34 | 36 | | |
---|
35 | | - | @Callable(k) |
---|
36 | | - | func getArrayFromStruct () = [StringEntry("1", f("mapString", toString(this), a))] |
---|
37 | | - | |
---|
38 | | - | |
---|
39 | | - | |
---|
40 | | - | @Callable(k) |
---|
41 | | - | func getElementFromArray () = [StringEntry("2", f("mapString", toString(this), b))] |
---|
| 37 | + | @Callable(l) |
---|
| 38 | + | func getElementFromArray (n,i) = if ((h(i) >= i)) |
---|
| 39 | + | then [StringEntry("2", split(f("mapString", toString(this))[n], b)[i])] |
---|
| 40 | + | else throw("out of range") |
---|
42 | 41 | | |
---|
43 | 42 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = "_" |
---|
5 | 5 | | |
---|
6 | 6 | | let b = "/" |
---|
7 | 7 | | |
---|
8 | | - | func c (d,e,a) = makeString([d, e], a) |
---|
| 8 | + | func c (d,e) = makeString([d, e], a) |
---|
9 | 9 | | |
---|
10 | 10 | | |
---|
11 | | - | func f (d,e,a) = getStringValue(this, c(d, e, a)) |
---|
| 11 | + | func f (d,e) = split(getStringValue(this, c(d, e)), a) |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | | - | func g (d,e) = { |
---|
15 | | - | let h = c(d, e, b) |
---|
16 | | - | StringEntry(c("mapString", e, a), h) |
---|
17 | | - | } |
---|
| 14 | + | func g (d,e) = size(f("mapString", e)) |
---|
18 | 15 | | |
---|
19 | 16 | | |
---|
20 | | - | func i (d,e,j) = if ((150 >= size(j))) |
---|
21 | | - | then StringEntry(c("mapString", e, b), j) |
---|
| 17 | + | func h (i) = size(split(f("mapString", toString(this))[i], b)) |
---|
| 18 | + | |
---|
| 19 | + | |
---|
| 20 | + | func j (d,e,k) = if ((150 >= size(k))) |
---|
| 21 | + | then StringEntry(c("mapString", e), k) |
---|
22 | 22 | | else throw("overcrowded") |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | | - | @Callable(k) |
---|
26 | | - | func setMap () = [g("mapString", toString(this))] |
---|
| 25 | + | @Callable(l) |
---|
| 26 | + | func setStruct (m) = [j("mapString", toString(this), m)] |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|
30 | | - | @Callable(k) |
---|
31 | | - | func setMapInMap (l) = [i("mapString", toString(this), l)] |
---|
| 30 | + | @Callable(l) |
---|
| 31 | + | func getArrayFromStruct (n) = if ((g("mapString", toString(this)) >= n)) |
---|
| 32 | + | then [StringEntry("1", f("mapString", toString(this))[n])] |
---|
| 33 | + | else throw("out of range") |
---|
32 | 34 | | |
---|
33 | 35 | | |
---|
34 | 36 | | |
---|
35 | | - | @Callable(k) |
---|
36 | | - | func getArrayFromStruct () = [StringEntry("1", f("mapString", toString(this), a))] |
---|
37 | | - | |
---|
38 | | - | |
---|
39 | | - | |
---|
40 | | - | @Callable(k) |
---|
41 | | - | func getElementFromArray () = [StringEntry("2", f("mapString", toString(this), b))] |
---|
| 37 | + | @Callable(l) |
---|
| 38 | + | func getElementFromArray (n,i) = if ((h(i) >= i)) |
---|
| 39 | + | then [StringEntry("2", split(f("mapString", toString(this))[n], b)[i])] |
---|
| 40 | + | else throw("out of range") |
---|
42 | 41 | | |
---|
43 | 42 | | |
---|