tx · AEZAwBxLTax1azLk1zgTcXfcmxTXCSR6GxLLhrua4KLz
3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42: -0.00200000 Waves
2022.06.29 15:47 [2117747] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves
{
"type": 13,
"id": "AEZAwBxLTax1azLk1zgTcXfcmxTXCSR6GxLLhrua4KLz",
"fee": 200000,
"feeAssetId": null,
"timestamp": 1656506856555,
"version": 2,
"chainId": 84,
"sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42",
"senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB",
"proofs": [
"2U9srovgDX4ahedeAewsR7h3c6F5bxrXJfmBD5kU6TyWcD2YaGhoPL6uResDDSaVYJYWGSFRzveoRh2A1dNg29vg"
],
"script": "base64:AAIFAAAAAAAAABIIAhIDCgEIEgMKAQESBAoCAQEAAAAGAAAAAAlzZXBhcmF0b3ICAAAAAV8BAAAAFmdldEFkZHJUb0ludE1hcHBpbmdLZXkAAAACAAAAC21hcHBpbmdOYW1lAAAABGFkZHIJAAS5AAAAAgkABEwAAAACBQAAAAttYXBwaW5nTmFtZQkABEwAAAACBQAAAARhZGRyBQAAAANuaWwFAAAACXNlcGFyYXRvcgEAAAAYZ2V0QWRkclRvSW50TWFwcGluZ1ZhbHVlAAAAAgAAAAttYXBwaW5nTmFtZQAAAARhZGRyCQAEtQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMJAQAAABZnZXRBZGRyVG9JbnRNYXBwaW5nS2V5AAAAAgUAAAALbWFwcGluZ05hbWUFAAAABGFkZHICAAAAAV8BAAAAGGdldEFkZHJUb0ludE1hcHBpbmdJbmRleAAAAAIAAAALbWFwcGluZ05hbWUAAAAEYWRkcgkAAZAAAAABCQEAAAAYZ2V0QWRkclRvSW50TWFwcGluZ1ZhbHVlAAAAAgIAAAAJbWFwU3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IAAAAFaW5kZXgAAAAHaW5kZXhJbgMJAABnAAAAAgkBAAAAGmdldEFkZHJUb0ludE1hcHBpbmdJbmRleEluAAAAAQUAAAAHaW5kZXhJbgUAAAAHaW5kZXhJbgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAEyCQABkQAAAAIJAAS1AAAAAgkAAZEAAAACCQEAAAAYZ2V0QWRkclRvSW50TWFwcGluZ1ZhbHVlAAAAAgIAAAAJbWFwU3RyaW5nCQAEJQAAAAEFAAAABHRoaXMFAAAABWluZGV4AgAAAAEvBQAAAAdpbmRleEluBQAAAANuaWwJAAACAAAAAQIAAAAMb3V0IG9mIHJhbmdlAAAAACONfBU=",
"height": 2117747,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: EZQvEE3PMuahrCbsRp33ww9D3w5xMqjd5qxMsUwQRS6T
Next: 74c8uucDboTmsS9E2MosCooGPqdmebGhX3ybLvcM5AQG
Diff:
Old | New | | Differences |
---|
15 | 15 | | func g (h) = size(split(e("mapString", toString(this))[h], "/")) |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | | - | func i (c,d,j) = if ((300 >= size(j))) |
---|
| 18 | + | func i (c,d,j) = if ((150 >= size(j))) |
---|
19 | 19 | | then StringEntry(b("mapString", d), j) |
---|
20 | 20 | | else throw("overcrowded") |
---|
21 | 21 | | |
---|
|
26 | 26 | | |
---|
27 | 27 | | |
---|
28 | 28 | | @Callable(k) |
---|
29 | | - | func getArrayFromStruct (m) = if ((f("mapString", toString(this)) >= (m - 1))) |
---|
30 | | - | then [StringEntry("1", e("mapString", toString(this))[(m - 1)])] |
---|
| 29 | + | func getArrayFromStruct (m) = if ((f("mapString", toString(this)) >= m)) |
---|
| 30 | + | then [StringEntry("1", e("mapString", toString(this))[m])] |
---|
31 | 31 | | else throw("out of range") |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
35 | 35 | | @Callable(k) |
---|
36 | | - | func getElementFromArray (m,h) = if ((g(h) >= (h - 1))) |
---|
37 | | - | then [StringEntry("2", split(e("mapString", toString(this))[(m - 1)], "/")[(h - 1)])] |
---|
| 36 | + | func getElementFromArray (m,h) = if ((g(h) >= h)) |
---|
| 37 | + | then [StringEntry("2", split(e("mapString", toString(this))[m], "/")[h])] |
---|
38 | 38 | | else throw("out of range") |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|
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 | | func b (c,d) = makeString([c, d], a) |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | func e (c,d) = split(getStringValue(this, b(c, d)), "_") |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | func f (c,d) = size(e("mapString", d)) |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | func g (h) = size(split(e("mapString", toString(this))[h], "/")) |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | | - | func i (c,d,j) = if ((300 >= size(j))) |
---|
| 18 | + | func i (c,d,j) = if ((150 >= size(j))) |
---|
19 | 19 | | then StringEntry(b("mapString", d), j) |
---|
20 | 20 | | else throw("overcrowded") |
---|
21 | 21 | | |
---|
22 | 22 | | |
---|
23 | 23 | | @Callable(k) |
---|
24 | 24 | | func setStruct (l) = [i("mapString", toString(this), l)] |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
27 | 27 | | |
---|
28 | 28 | | @Callable(k) |
---|
29 | | - | func getArrayFromStruct (m) = if ((f("mapString", toString(this)) >= (m - 1))) |
---|
30 | | - | then [StringEntry("1", e("mapString", toString(this))[(m - 1)])] |
---|
| 29 | + | func getArrayFromStruct (m) = if ((f("mapString", toString(this)) >= m)) |
---|
| 30 | + | then [StringEntry("1", e("mapString", toString(this))[m])] |
---|
31 | 31 | | else throw("out of range") |
---|
32 | 32 | | |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
35 | 35 | | @Callable(k) |
---|
36 | | - | func getElementFromArray (m,h) = if ((g(h) >= (h - 1))) |
---|
37 | | - | then [StringEntry("2", split(e("mapString", toString(this))[(m - 1)], "/")[(h - 1)])] |
---|
| 36 | + | func getElementFromArray (m,h) = if ((g(h) >= h)) |
---|
| 37 | + | then [StringEntry("2", split(e("mapString", toString(this))[m], "/")[h])] |
---|
38 | 38 | | else throw("out of range") |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|