tx · 5JvnF9HxsNAJeyAVkcnQKnoDz8CqMNa2zbYTCJFAj2kX
3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42: -0.00100000 Waves
2022.06.27 18:28 [2115024] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves
{
"type": 13,
"id": "5JvnF9HxsNAJeyAVkcnQKnoDz8CqMNa2zbYTCJFAj2kX",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1656343772997,
"version": 2,
"chainId": 84,
"sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42",
"senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB",
"proofs": [
"3ZmubJVzYXiv3Gf9b4sSV4TkZFkV2yqVbJViMr2Tc9fpytH8zCzkn4uJLVun56WBbjmHYcptQUVT7qXRf9z1dYsV"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAABAAAAAAJc2VwYXJhdG9yAgAAAAFfAQAAABZnZXRBZGRyVG9JbnRNYXBwaW5nS2V5AAAAAgAAAAttYXBwaW5nTmFtZQAAAARhZGRyCQAEuQAAAAIJAARMAAAAAgUAAAALbWFwcGluZ05hbWUJAARMAAAAAgUAAAAEYWRkcgUAAAADbmlsBQAAAAlzZXBhcmF0b3IBAAAAGGdldEFkZHJUb0ludE1hcHBpbmdWYWx1ZQAAAAIAAAALbWFwcGluZ05hbWUAAAAEYWRkcgkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwkBAAAAFmdldEFkZHJUb0ludE1hcHBpbmdLZXkAAAACBQAAAAttYXBwaW5nTmFtZQUAAAAEYWRkcgEAAAAYc2V0QWRkclRvSW50TWFwcGluZ1ZhbHVlAAAAAwAAAAttYXBwaW5nTmFtZQAAAARhZGRyAAAAA3ZhbAkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAABZnZXRBZGRyVG9JbnRNYXBwaW5nS2V5AAAAAgUAAAALbWFwcGluZ05hbWUFAAAABGFkZHIFAAAAA3ZhbAAAAAEAAAABaQEAAAAJR2V0U3RydWN0AAAAAAQAAAAFZmlyc3QJAQAAABhzZXRBZGRyVG9JbnRNYXBwaW5nVmFsdWUAAAADAgAAAAltYXBTdHJpbmcJAAQlAAAAAQUAAAAEdGhpcwAAAAAAAAAADwQAAAAGc2Vjb25kCQEAAAAWZ2V0QWRkclRvSW50TWFwcGluZ0tleQAAAAICAAAACW1hcFN0cmluZwkABCUAAAABBQAAAAR0aGlzBAAAAAV0aGlyZAkBAAAAGGdldEFkZHJUb0ludE1hcHBpbmdWYWx1ZQAAAAICAAAACW1hcFN0cmluZwkABCUAAAABBQAAAAR0aGlzCQAETAAAAAIFAAAABWZpcnN0CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAABnNlY29uZAUAAAAGc2Vjb25kCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAV0aGlyZAUAAAAFdGhpcmQFAAAAA25pbAAAAABXFIpz",
"height": 2115024,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: EdwviKJ8eLd41emoBA7PDW7AbpicerwsCY4axqJosu3b
Next: HBpndXEm5xBQrcnbtc6ckJfLYuao9muowKdjRaf8f9Dd
Diff:
Old | New | | Differences |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func GetStruct () = { |
---|
17 | | - | let slot = [setAddrToIntMappingValue("mapString", toString(this), 15), getAddrToIntMappingKey("mapString", toString(this)), getAddrToIntMappingValue("mapString", toString(this))] |
---|
18 | | - | throw("Can be used only once") |
---|
| 17 | + | let first = setAddrToIntMappingValue("mapString", toString(this), 15) |
---|
| 18 | + | let second = getAddrToIntMappingKey("mapString", toString(this)) |
---|
| 19 | + | let third = getAddrToIntMappingValue("mapString", toString(this)) |
---|
| 20 | + | [first, StringEntry("second", second), IntegerEntry("third", third)] |
---|
19 | 21 | | } |
---|
20 | 22 | | |
---|
21 | 23 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let separator = "_" |
---|
5 | 5 | | |
---|
6 | 6 | | func getAddrToIntMappingKey (mappingName,addr) = makeString([mappingName, addr], separator) |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | func getAddrToIntMappingValue (mappingName,addr) = getIntegerValue(this, getAddrToIntMappingKey(mappingName, addr)) |
---|
10 | 10 | | |
---|
11 | 11 | | |
---|
12 | 12 | | func setAddrToIntMappingValue (mappingName,addr,val) = IntegerEntry(getAddrToIntMappingKey(mappingName, addr), val) |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Callable(i) |
---|
16 | 16 | | func GetStruct () = { |
---|
17 | | - | let slot = [setAddrToIntMappingValue("mapString", toString(this), 15), getAddrToIntMappingKey("mapString", toString(this)), getAddrToIntMappingValue("mapString", toString(this))] |
---|
18 | | - | throw("Can be used only once") |
---|
| 17 | + | let first = setAddrToIntMappingValue("mapString", toString(this), 15) |
---|
| 18 | + | let second = getAddrToIntMappingKey("mapString", toString(this)) |
---|
| 19 | + | let third = getAddrToIntMappingValue("mapString", toString(this)) |
---|
| 20 | + | [first, StringEntry("second", second), IntegerEntry("third", third)] |
---|
19 | 21 | | } |
---|
20 | 22 | | |
---|
21 | 23 | | |
---|