tx · HgBAhsfCrhbVoMnnmrc9YSkXcbmctqBiKH4cMD4GgCcR

3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez:  -0.00100000 Waves

2023.11.09 15:56 [2835834] smart account 3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez > SELF 0.00000000 Waves

{ "type": 13, "id": "HgBAhsfCrhbVoMnnmrc9YSkXcbmctqBiKH4cMD4GgCcR", "fee": 100000, "feeAssetId": null, "timestamp": 1699534610121, "version": 2, "chainId": 84, "sender": "3MqEAEVk1NcbRAuEPAX7nyzUqMHbhvRofez", "senderPublicKey": "Brp6cacBXyKUcZr5Uc6VDKsnFcaEeQ8nQzrZQyobDsuf", "proofs": [ "3MBTPnrerHeLV95chWMzDTnJLpvWsnR6a2VsgwkzRpxfHteLqdVR4DbjF5UohepoCtWa1qKmyQWTz9UniGFvhnao" ], "script": "base64:BgIGCAISABIAAgENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWIFByRtYXRjaDAFAWIAAAEMdHJ5R2V0U3RyaW5nAQNrZXkEByRtYXRjaDAJAJ0IAgUEdGhpcwUDa2V5AwkAAQIFByRtYXRjaDACBlN0cmluZwQBYgUHJG1hdGNoMAUBYgIAAgFpAQhyZWdpc3RlcgAJAMwIAgkBDEludGVnZXJFbnRyeQICEUFtb3VudCBSZWdpc3RlcmVkCQBkAgkBDXRyeUdldEludGVnZXIBAhFBbW91bnQgUmVnaXN0ZXJlZAABCQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgISUmVnaXN0ZXIgYWRkcmVzczogCQCkAwEJAGQCCQENdHJ5R2V0SW50ZWdlcgECEUFtb3VudCBSZWdpc3RlcmVkAAEJAKUIAQgFAWkGY2FsbGVyCQDMCAIJAQtTdHJpbmdFbnRyeQICEkFkZHJlc3MgcmVnaXN0ZXJlZAkArAICCQCsAgIJAQx0cnlHZXRTdHJpbmcBAhJBZGRyZXNzIHJlZ2lzdGVyZWQJAKUIAQgFAWkGY2FsbGVyAgEsBQNuaWwBaQEIbWFrZUxpc3QABAlhZGRyZXNzZXMJALMCAgkBDHRyeUdldFN0cmluZwECEkFkZHJlc3MgcmVnaXN0ZXJlZAABBARsaXN0CQC1CQIFCWFkZHJlc3NlcwIBLAQIbGlzdFNpemUJAJADAQUEbGlzdAQLZmlyc3RPZkxpc3QJAJEDAgUEbGlzdAAABApsYXN0T2ZMaXN0CQCRAwIFBGxpc3QJAGUCBQhsaXN0U2l6ZQABBAhhZGRyZXNzMQkBBXZhbHVlAQkApggBBQtmaXJzdE9mTGlzdAQIYmFsYW5jZTEICQDvBwEFCGFkZHJlc3MxCWF2YWlsYWJsZQkAzAgCCQELU3RyaW5nRW50cnkCAglhZGRyZXNzZXMFCWFkZHJlc3NlcwkAzAgCCQEMSW50ZWdlckVudHJ5AgIIbGlzdFNpemUFCGxpc3RTaXplCQDMCAIJAQtTdHJpbmdFbnRyeQICC2ZpcnN0T2ZMaXN0BQtmaXJzdE9mTGlzdAkAzAgCCQELU3RyaW5nRW50cnkCAgpsYXN0T2ZMaXN0BQpsYXN0T2ZMaXN0CQDMCAIJAQxJbnRlZ2VyRW50cnkCAghiYWxhbmNlMQUIYmFsYW5jZTEFA25pbAA4H/9/", "height": 2835834, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ee6iQ9UWHHN1pYZYym3KKTFqJ1prt1BxzHRgDUEYhHvq Next: JD1XYdQBNzPFc11KUp5ey2kskimBWLRYkraZ3FRzLHR3 Diff:
OldNewDifferences
2929 let listSize = size(list)
3030 let firstOfList = list[0]
3131 let lastOfList = list[(listSize - 1)]
32-[StringEntry("addresses", addresses), IntegerEntry("listSize", listSize), StringEntry("firstOfList", firstOfList), StringEntry("lastOfList", lastOfList)]
32+ let address1 = value(addressFromString(firstOfList))
33+ let balance1 = wavesBalance(address1).available
34+[StringEntry("addresses", addresses), IntegerEntry("listSize", listSize), StringEntry("firstOfList", firstOfList), StringEntry("lastOfList", lastOfList), IntegerEntry("balance1", balance1)]
3335 }
3436
3537
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func tryGetInteger (key) = match getInteger(this, key) {
55 case b: Int =>
66 b
77 case _ =>
88 0
99 }
1010
1111
1212 func tryGetString (key) = match getString(this, key) {
1313 case b: String =>
1414 b
1515 case _ =>
1616 ""
1717 }
1818
1919
2020 @Callable(i)
2121 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)) + ","))]
2222
2323
2424
2525 @Callable(i)
2626 func makeList () = {
2727 let addresses = dropRight(tryGetString("Address registered"), 1)
2828 let list = split(addresses, ",")
2929 let listSize = size(list)
3030 let firstOfList = list[0]
3131 let lastOfList = list[(listSize - 1)]
32-[StringEntry("addresses", addresses), IntegerEntry("listSize", listSize), StringEntry("firstOfList", firstOfList), StringEntry("lastOfList", lastOfList)]
32+ let address1 = value(addressFromString(firstOfList))
33+ let balance1 = wavesBalance(address1).available
34+[StringEntry("addresses", addresses), IntegerEntry("listSize", listSize), StringEntry("firstOfList", firstOfList), StringEntry("lastOfList", lastOfList), IntegerEntry("balance1", balance1)]
3335 }
3436
3537

github/deemru/w8io/026f985 
23.47 ms