tx · 9KxkpVTYrrdqgD4PTBueH6qfqZuJqb8a1NMLErtf4nN4

3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc:  -0.04000000 Waves

2022.07.13 15:54 [2137981] smart account 3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc > SELF 0.00000000 Waves

{ "type": 13, "id": "9KxkpVTYrrdqgD4PTBueH6qfqZuJqb8a1NMLErtf4nN4", "fee": 4000000, "feeAssetId": null, "timestamp": 1657716924609, "version": 1, "sender": "3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc", "senderPublicKey": "H3EzJ6fSm7jHKo92xYdNTXaaQYKj9z5q2DJFovRDLJpf", "proofs": [ "bL7Spn72tfCTXGJw7k7tab8by3ZBLt4LzWP8Uu4kN3nkPDeawF5R5aTxHqAPwv1UGrf4onWPwTHTGjJUrJgwWUU" ], "script": "base64:AAIFAAAAAAAAACQIAhIECgIICBIECgIIARIDCgEIEgUKAwgBCBIDCgEIEgMKAQgAAAAJAAAAAANTRVACAAAAAl9fAQAAABFrZXlDb250cm9sQWRkcmVzcwAAAAACAAAAHCVzJXNfX2NvbmZpZ19fY29udHJvbEFkZHJlc3MBAAAADmtleVJlc3RBZGRyZXNzAAAAAAIAAAAZJXMlc19fY29uZmlnX19yZXN0QWRkcmVzcwEAAAAMZ2V0U3RyT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkJAAEsAAAAAgkAASwAAAACAgAAAA9NYW5kYXRvcnkgdGhpcy4FAAAAA2tleQIAAAAPIGlzIG5vdCBkZWZpbmVkAQAAABBnZXRBZGRyZXNzT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABCYAAAABCQEAAAAMZ2V0U3RyT3JGYWlsAAAAAQUAAAADa2V5CQABLAAAAAICAAAAH2ZhaWwgdG8gcGFyc2UgYWRkcmV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AAAAAAgAAAAAAAAAAAkAAAAAAAAAAAoJAAUUAAAAAgUAAAADbmlsCQEAAAALcHJvZHVjZUpzb24AAAABBQAAAA5pbnZva2VzUmVzdWx0cwAAAAAqGQQ8", "chainId": 84, "height": 2137981, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8YptqF3vp7GuUqgbALUMN6ba46xctqbzkUBN56bE18Z5 Next: BGyVMh8ZbVuboEXgDFCZXzTj3s1BQoK9SMvDsvaAz4ZT 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 produceJson (strMap) = {
2727 let indexes = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
2828 let length = size(strMap)
2929 if (((length % 2) != 0))
3030 then throw("only even args size is accepeted")
3131 else if ((length > size(indexes)))
3232 then throw(("strMap length is greater then " + toString(size(indexes))))
3333 else {
3434 func produceJson (jsonAccum,nextIdx) = if (if (((nextIdx % 2) == 0))
3535 then (length >= (nextIdx + 1))
3636 else false)
3737 then (((((jsonAccum + "
3838 \"") + strMap[nextIdx]) + "\": \"") + strMap[(nextIdx + 1)]) + "\",")
3939 else jsonAccum
4040
4141 let preJsonResult = {
4242 let $l = indexes
4343 let $s = size($l)
4444 let $acc0 = ""
4545 func $f0_1 ($a,$i) = if (($i >= $s))
4646 then $a
4747 else produceJson($a, $l[$i])
4848
4949 func $f0_2 ($a,$i) = if (($i >= $s))
5050 then $a
5151 else throw("List size exceeds 20")
5252
5353 $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)
5454 }
5555 (("{" + dropRight(preJsonResult, 1)) + "}")
5656 }
5757 }
5858
5959
6060 let controlAcc = getAddressOrFail(keyControlAddress())
6161
6262 let restAcc = getAddressOrFail(keyRestAddress())
6363
6464 @Callable(i)
6565 func constructor (controlAddress58,restAddress58) = if ((i.caller != this))
6666 then throw("not authorized")
6767 else [StringEntry(keyControlAddress(), controlAddress58), StringEntry(keyRestAddress(), restAddress58)]
6868
6969
7070
7171 @Callable(i)
7272 func stakeNsbtPageREADONLY (userAddressStrOpt,nsbtAmtDiff) = {
7373 let gnsbtInfo = asString(invoke(restAcc, "gnsbtInfoREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
7474 let swapInfo = asString(invoke(restAcc, "swapInfoREADONLY", [userAddressStrOpt], nil))
7575 $Tuple2(nil, produceJson(["gnsbtInfoREADONLY", gnsbtInfo, "swapInfoREADONLY", swapInfo]))
7676 }
7777
7878
7979
8080 @Callable(i)
8181 func buyNsbtPageREADONLY (userAddressStrOpt) = {
8282 let gnsbtInfo = asString(invoke(restAcc, "gnsbtInfoREADONLY", [userAddressStrOpt, 0], nil))
8383 let neutrinoStats = asString(invoke(restAcc, "neutrinoStatsREADONLY", nil, nil))
8484 $Tuple2(nil, produceJson(["gnsbtInfoREADONLY", gnsbtInfo, "neutrinoStatsREADONLY", neutrinoStats]))
8585 }
8686
8787
8888
8989 @Callable(i)
9090 func buySurfPageREADONLY (userAddressStrOpt,amount,assetIdStr) = {
9191 let neutrinoStats = asString(invoke(restAcc, "neutrinoStatsREADONLY", nil, nil))
9292 let surfBuy = asString(invoke(restAcc, "buySurfREADONLY", [userAddressStrOpt, amount, assetIdStr], nil))
9393 let neutrinoCfg = asString(invoke(restAcc, "neutrinoConfigREADONLY", nil, nil))
9494 $Tuple2(nil, produceJson(["neutrinoStatsREADONLY", neutrinoStats, "buySurfREADONLY", surfBuy, "neutrinoConfigREADONLY", neutrinoCfg]))
9595 }
9696
9797
9898
9999 @Callable(i)
100100 func walletPageREADONLY (userAddressStr) = {
101101 let walletInfo = asString(invoke(restAcc, "walletInfoREADONLY", [userAddressStr], nil))
102102 $Tuple2(nil, produceJson(["walletInfoREADONLY", walletInfo]))
103103 }
104104
105105
106106
107107 @Callable(i)
108108 func genericREADONLY (payload) = {
109109 let funcsIndexes = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
110110 let paramIndexes = [1, 3, 5, 7, 9, 11]
111111 let payloadArr = split(payload, SEP)
112112 let payloadSize = size(payloadArr)
113113 func invokesAgregator (accum,funcIdx) = if ((funcIdx >= payloadSize))
114114 then accum
115115 else {
116116 let call = payloadArr[funcIdx]
117117 let callArr = split(call, "+")
118118 let address = addressFromStringValue(callArr[0])
119119 let funcName = callArr[1]
120120 let paramsArr = split(callArr[2], ":")
121121 let paramsSize = size(paramsArr)
122122 func paramsAgregator (paramsAcc,paramIdx) = if ((paramIdx >= paramsSize))
123123 then paramsAcc
124124 else {
125125 let p = if ((paramsArr[(paramIdx - 1)] == "s"))
126126 then paramsArr[paramIdx]
127127 else parseIntValue(paramsArr[paramIdx])
128128 (paramsAcc :+ p)
129129 }
130130
131131 let params = {
132132 let $l = paramIndexes
133133 let $s = size($l)
134134 let $acc0 = nil
135135 func $f0_1 ($a,$i) = if (($i >= $s))
136136 then $a
137137 else paramsAgregator($a, $l[$i])
138138
139139 func $f0_2 ($a,$i) = if (($i >= $s))
140140 then $a
141141 else throw("List size exceeds 6")
142142
143143 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
144144 }
145145 let result = asString(invoke(address, funcName, params, nil))
146146 (accum ++ [funcName, result])
147147 }
148148
149149 let invokesResults = {
150150 let $l = funcsIndexes
151151 let $s = size($l)
152152 let $acc0 = nil
153153 func $f0_1 ($a,$i) = if (($i >= $s))
154154 then $a
155155 else invokesAgregator($a, $l[$i])
156156
157157 func $f0_2 ($a,$i) = if (($i >= $s))
158158 then $a
159159 else throw("List size exceeds 10")
160160
161161 $f0_2($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)
162162 }
163163 $Tuple2(nil, produceJson(invokesResults))
164164 }
165165
166166

github/deemru/w8io/026f985 
41.16 ms