tx · 3BJqnDuXnrnoLxfWkeXrcaSz2nfbUuxZxGHNK1CpL4kL

3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc:  -0.01000000 Waves

2022.04.21 08:43 [2017896] smart account 3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc > SELF 0.00000000 Waves

{ "type": 13, "id": "3BJqnDuXnrnoLxfWkeXrcaSz2nfbUuxZxGHNK1CpL4kL", "fee": 1000000, "feeAssetId": null, "timestamp": 1650519799196, "version": 2, "chainId": 84, "sender": "3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc", "senderPublicKey": "H3EzJ6fSm7jHKo92xYdNTXaaQYKj9z5q2DJFovRDLJpf", "proofs": [ "2pVALxuMz6Zo1Jo1DeB1Bau9t4irzthrxFo2MCCJqxWZQcRKw3EK2F4FbjQRbdCXY85YgpgffmX25j2YejmBFqRG" ], "script": "base64:AAIFAAAAAAAAAA4IAhIECgIICBIECgIIAQAAAAoAAAAAA1NFUAIAAAACX18BAAAAEWtleUNvbnRyb2xBZGRyZXNzAAAAAAIAAAAcJXMlc19fY29uZmlnX19jb250cm9sQWRkcmVzcwEAAAAOa2V5UmVzdEFkZHJlc3MAAAAAAgAAABklcyVzX19jb25maWdfX3Jlc3RBZGRyZXNzAQAAAAxnZXRTdHJPckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQkAASwAAAACCQABLAAAAAICAAAAD01hbmRhdG9yeSB0aGlzLgUAAAADa2V5AgAAAA8gaXMgbm90IGRlZmluZWQBAAAAEGdldEFkZHJlc3NPckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEJgAAAAEJAQAAAAxnZXRTdHJPckZhaWwAAAABBQAAAANrZXkJAAEsAAAAAgIAAAAfZmFpbCB0byBwYXJzZSBhZGRyZXNzIGZvciB0aGlzLgUAAAADa2V5A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AAAAAgUAAAADbmlsCQEAAAALcHJvZHVjZUpzb24AAAABCQAETAAAAAICAAAAEWduc2J0SW5mb1JFQURPTkxZCQAETAAAAAIFAAAACWduc2J0SW5mbwkABEwAAAACAgAAABBzd2FwSW5mb1JFQURPTkxZCQAETAAAAAIFAAAACHN3YXBJbmZvBQAAAANuaWwAAAAAN9fLXA==", "height": 2017896, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 74UBUAKrHFCoSq99AUi2AsvK96x8TGeBhKiARnwV3RUZ Next: HiYMz66R8BGkRkbVVSzGbXo2YUZRgHtgwWBfSPY3W8Nq Diff:
OldNewDifferences
8080 @Callable(i)
8181 func nsbtPageREADONLY (userAddressStrOpt,nsbtAmtDiff) = {
8282 let gnsbtInfo = asString(invoke(restAcc, "gnsbtInfoREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
83- let $t020902178 = parseRestResult(gnsbtInfo)
84- let gNsbtInfoMETA = $t020902178._1
85- let gNsbtInfoDATA = $t020902178._2
83+ let $t020942182 = parseRestResult(gnsbtInfo)
84+ let gNsbtInfoMETA = $t020942182._1
85+ let gNsbtInfoDATA = $t020942182._2
8686 let swapInfo = asString(invoke(restAcc, "swapInfoREADONLY", [userAddressStrOpt], nil))
8787 let swapInfoArray = split(swapInfo, SEP)
8888 let blocks2LmtReset = swapInfoArray[8]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 func keyControlAddress () = "%s%s__config__controlAddress"
77
88
99 func keyRestAddress () = "%s%s__config__restAddress"
1010
1111
1212 func getStrOrFail (key) = valueOrErrorMessage(getString(this, key), (("Mandatory this." + key) + " is not defined"))
1313
1414
1515 func getAddressOrFail (key) = valueOrErrorMessage(addressFromString(getStrOrFail(key)), ("fail to parse address for this." + key))
1616
1717
1818 func asString (val) = match val {
1919 case valStr: String =>
2020 valStr
2121 case _ =>
2222 throw("fail to cast into String")
2323 }
2424
2525
2626 func parseRestResult (restResultStr) = {
2727 let idx = valueOrErrorMessage(indexOf(restResultStr, SEP), "unsupported REST format")
2828 let metaPart = take(restResultStr, idx)
2929 let dataPart = drop(restResultStr, (idx + size(SEP)))
3030 $Tuple2(metaPart, dataPart)
3131 }
3232
3333
3434 func produceJson (strMap) = {
3535 let indexes = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
3636 let length = size(strMap)
3737 if (((length % 2) != 0))
3838 then throw("only even args size is accepeted")
3939 else if ((length > size(indexes)))
4040 then throw(("strMap length is greater then " + toString(size(indexes))))
4141 else {
4242 func produceJson (jsonAccum,nextIdx) = if (if (((nextIdx % 2) == 0))
4343 then (length >= (nextIdx + 1))
4444 else false)
4545 then (((((jsonAccum + "
4646 \"") + strMap[nextIdx]) + "\": \"") + strMap[(nextIdx + 1)]) + "\",
4747 ")
4848 else jsonAccum
4949
5050 let preJsonResult = {
5151 let $l = indexes
5252 let $s = size($l)
5353 let $acc0 = ""
5454 func $f0_1 ($a,$i) = if (($i >= $s))
5555 then $a
5656 else produceJson($a, $l[$i])
5757
5858 func $f0_2 ($a,$i) = if (($i >= $s))
5959 then $a
6060 else throw("List size exceeds 20")
6161
6262 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
6363 }
6464 (("{" + dropRight(preJsonResult, 2)) + "}")
6565 }
6666 }
6767
6868
6969 let controlAcc = getAddressOrFail(keyControlAddress())
7070
7171 let restAcc = getAddressOrFail(keyRestAddress())
7272
7373 @Callable(i)
7474 func constructor (controlAddress58,restAddress58) = if ((i.caller != this))
7575 then throw("not authorized")
7676 else [StringEntry(keyControlAddress(), controlAddress58), StringEntry(keyRestAddress(), restAddress58)]
7777
7878
7979
8080 @Callable(i)
8181 func nsbtPageREADONLY (userAddressStrOpt,nsbtAmtDiff) = {
8282 let gnsbtInfo = asString(invoke(restAcc, "gnsbtInfoREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
83- let $t020902178 = parseRestResult(gnsbtInfo)
84- let gNsbtInfoMETA = $t020902178._1
85- let gNsbtInfoDATA = $t020902178._2
83+ let $t020942182 = parseRestResult(gnsbtInfo)
84+ let gNsbtInfoMETA = $t020942182._1
85+ let gNsbtInfoDATA = $t020942182._2
8686 let swapInfo = asString(invoke(restAcc, "swapInfoREADONLY", [userAddressStrOpt], nil))
8787 let swapInfoArray = split(swapInfo, SEP)
8888 let blocks2LmtReset = swapInfoArray[8]
8989 $Tuple2(nil, produceJson(["gnsbtInfoREADONLY", gnsbtInfo, "swapInfoREADONLY", swapInfo]))
9090 }
9191
9292

github/deemru/w8io/026f985 
47.89 ms