tx · EVHRtR9ithvt9cUEiLLq6X42wwNh5nL3V4A4y7Vvezj8

3MyN19SDzDpXyEtabWvag2P5mkeFrdFVd4h:  -0.01100000 Waves

2023.01.02 15:52 [2387377] smart account 3MyN19SDzDpXyEtabWvag2P5mkeFrdFVd4h > SELF 0.00000000 Waves

{ "type": 13, "id": "EVHRtR9ithvt9cUEiLLq6X42wwNh5nL3V4A4y7Vvezj8", "fee": 1100000, "feeAssetId": null, "timestamp": 1672663923350, "version": 2, "chainId": 84, "sender": "3MyN19SDzDpXyEtabWvag2P5mkeFrdFVd4h", "senderPublicKey": "4HqqczFwZHAsxp1oNq8dQkRStfCKBL79X99icQ2B6FYn", "proofs": [ "4AKZYT7GeKDE1pZpcsBQ9rZXzFsiJ1y1gr4Vs5etzLns68p1AonKMAuJRNz6hH54Df1SmzhYbL56zjJUr8e8ioBP" ], "script": "base64:AAIFAAAAAAAAACQIAhIECgIICBIECgIIARIDCgEIEgUKAwgBCBIDCgEIEgMKAQgAAAAZAAAAAANTRVACAAAAAl9fAAAAABlJZHhDb250cm9sQ2ZnTmV1dHJpbm9EYXBwAAAAAAAAAAABAAAAABhJZHhDb250cm9sQ2ZnQXVjdGlvbkRhcHAAAAAAAAAAAAIAAAAAFElkeENvbnRyb2xDZmdScGREYXBwAAAAAAAAAAADAAAAABVJZHhDb250cm9sQ2ZnTWF0aERhcHAAAAAAAAAAAAQAAAAAHElkeENvbnRyb2xDZmdMaXF1aWRhdGlvbkRhcHAAAAAAAAAAAAUAAAAAFUlkeENvbnRyb2xDZmdSZXN0RGFwcAAAAAAAAAAABgAAAAAdSWR4Q29udHJvbENmZ05vZGVSZWdpc3RyeURhcHAAAAAAAAAAAAcAAAAAHElkeENvbnRyb2xDZmdOc2J0U3Rha2luZ0RhcHAAAAAAAAAAAAgAAAAAGUlkeENvbnRyb2xDZmdNZWRpYXRvckRhcHAAAAAAAAAAAAkBAAAAD2dldFN0cmluZ09yRmFpbAAAAAIAAAAHYWRkcmVzcwAAAANr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AAAAAAAAAAFAAAAAAAAAAAGAAAAAAAAAAAHAAAAAAAAAAAIAAAAAAAAAAAJAAAAAAAAAAAKCQAFFAAAAAIFAAAAA25pbAkBAAAAC3Byb2R1Y2VKc29uAAAAAQUAAAAOaW52b2tlc1Jlc3VsdHMAAAAAR0aVow==", "height": 2387377, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EuP2aX2tH2ZQYRYmZmHRg9P7PpKetkVW2xd3gDa6rgaF Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let IdxControlCfgNeutrinoDapp = 1
77
88 let IdxControlCfgAuctionDapp = 2
99
1010 let IdxControlCfgRpdDapp = 3
1111
1212 let IdxControlCfgMathDapp = 4
1313
1414 let IdxControlCfgLiquidationDapp = 5
1515
1616 let IdxControlCfgRestDapp = 6
1717
1818 let IdxControlCfgNodeRegistryDapp = 7
1919
2020 let IdxControlCfgNsbtStakingDapp = 8
2121
2222 let IdxControlCfgMediatorDapp = 9
2323
2424 func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
2525
2626
2727 func keyControlAddress () = "%s%s__config__controlAddress"
2828
2929
3030 func keyControlCfg () = "%s__controlConfig"
3131
3232
3333 func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP)
3434
3535
3636 func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx)))
3737
3838
3939 let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3P5Bfd58PPfNvBM2Hy8QfbcDqMeNtzg7KfP"))
4040
4141 let controlCfg = readControlCfgOrFail(controlContract)
4242
4343 let restAcc = getContractAddressOrFail(controlCfg, IdxControlCfgRestDapp)
4444
4545 func keyRestAddress () = "%s%s__config__restAddress"
4646
4747
4848 func getStrOrFail (key) = valueOrErrorMessage(getString(this, key), (("Mandatory this." + key) + " is not defined"))
4949
5050
5151 func getAddressOrFail (key) = valueOrErrorMessage(addressFromString(getStrOrFail(key)), ("fail to parse address for this." + key))
5252
5353
5454 func asString (val) = match val {
5555 case valStr: String =>
5656 valStr
5757 case _ =>
5858 throw("fail to cast into String")
5959 }
6060
6161
6262 func produceJson (strMap) = {
6363 let indexes = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
6464 let length = size(strMap)
6565 if (((length % 2) != 0))
6666 then throw("only even args size is accepeted")
6767 else if ((length > size(indexes)))
6868 then throw(("strMap length is greater then " + toString(size(indexes))))
6969 else {
7070 func produceJson (jsonAccum,nextIdx) = if (if (((nextIdx % 2) == 0))
7171 then (length >= (nextIdx + 1))
7272 else false)
7373 then (((((jsonAccum + "
7474 \"") + strMap[nextIdx]) + "\": \"") + strMap[(nextIdx + 1)]) + "\",")
7575 else jsonAccum
7676
7777 let preJsonResult = {
7878 let $l = indexes
7979 let $s = size($l)
8080 let $acc0 = ""
8181 func $f0_1 ($a,$i) = if (($i >= $s))
8282 then $a
8383 else produceJson($a, $l[$i])
8484
8585 func $f0_2 ($a,$i) = if (($i >= $s))
8686 then $a
8787 else throw("List size exceeds 20")
8888
8989 $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)
9090 }
9191 (("{" + dropRight(preJsonResult, 1)) + "}")
9292 }
9393 }
9494
9595
9696 func genericV2READONLY (x) = {
9797 func call (a,e) = (a :+ invoke(Address(fromBase58String(e._1)), e._2, e._3, nil))
9898
9999 let $l = x
100100 let $s = size($l)
101101 let $acc0 = nil
102102 func $f0_1 ($a,$i) = if (($i >= $s))
103103 then $a
104104 else call($a, $l[$i])
105105
106106 func $f0_2 ($a,$i) = if (($i >= $s))
107107 then $a
108108 else throw("List size exceeds 10")
109109
110110 $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)
111111 }
112112
113113
114114 func genericV3READONLY (x) = {
115115 func call (a,e) = {
116116 let dApp = Address(fromBase58String(e._1))
117117 let name = e._2
118118 let opType = e._3
119119 let params = e._4
120120 let res = if ((opType == "invoke"))
121121 then invoke(dApp, name, params, nil)
122122 else if ((opType == "binKey"))
123123 then getBinary(dApp, name)
124124 else if ((opType == "binValKey"))
125125 then getBinaryValue(dApp, name)
126126 else if ((opType == "boolKey"))
127127 then getBoolean(dApp, name)
128128 else if ((opType == "boolValKey"))
129129 then getBooleanValue(dApp, name)
130130 else if ((opType == "intKey"))
131131 then getInteger(dApp, name)
132132 else if ((opType == "intValKey"))
133133 then getIntegerValue(dApp, name)
134134 else if ((opType == "strKey"))
135135 then getString(dApp, name)
136136 else if ((opType == "strValKey"))
137137 then getStringValue(dApp, name)
138138 else if ((opType == "hasData"))
139139 then !(isDataStorageUntouched(dApp))
140140 else throw(("not supported operation type: " + opType))
141141 (a :+ res)
142142 }
143143
144144 let $l = x
145145 let $s = size($l)
146146 let $acc0 = nil
147147 func $f0_1 ($a,$i) = if (($i >= $s))
148148 then $a
149149 else call($a, $l[$i])
150150
151151 func $f0_2 ($a,$i) = if (($i >= $s))
152152 then $a
153153 else throw("List size exceeds 10")
154154
155155 $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)
156156 }
157157
158158
159159 @Callable(i)
160160 func constructorV1 (controlAddress58,restAddress58) = if ((i.caller != this))
161161 then throw("not authorized")
162162 else [StringEntry(keyControlAddress(), controlAddress58), StringEntry(keyRestAddress(), restAddress58)]
163163
164164
165165
166166 @Callable(i)
167167 func stakeNsbtPageREADONLY (userAddressStrOpt,nsbtAmtDiff) = {
168168 let gnsbtInfo = asString(invoke(restAcc, "gnsbtInfoREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
169169 let swapInfo = asString(invoke(restAcc, "swapInfoREADONLY", [userAddressStrOpt], nil))
170170 $Tuple2(nil, produceJson(["gnsbtInfoREADONLY", gnsbtInfo, "swapInfoREADONLY", swapInfo]))
171171 }
172172
173173
174174
175175 @Callable(i)
176176 func buyNsbtPageREADONLY (userAddressStrOpt) = {
177177 let gnsbtInfo = asString(invoke(restAcc, "gnsbtInfoREADONLY", [userAddressStrOpt, 0], nil))
178178 let neutrinoStats = asString(invoke(restAcc, "neutrinoStatsREADONLY", nil, nil))
179179 $Tuple2(nil, produceJson(["gnsbtInfoREADONLY", gnsbtInfo, "neutrinoStatsREADONLY", neutrinoStats]))
180180 }
181181
182182
183183
184184 @Callable(i)
185185 func buySurfPageREADONLY (userAddressStrOpt,amount,assetIdStr) = {
186186 let neutrinoStats = asString(invoke(restAcc, "neutrinoStatsREADONLY", nil, nil))
187187 let surfBuy = asString(invoke(restAcc, "buySurfREADONLY", [userAddressStrOpt, amount, assetIdStr], nil))
188188 let neutrinoCfg = asString(invoke(restAcc, "neutrinoConfigREADONLY", nil, nil))
189189 $Tuple2(nil, produceJson(["neutrinoStatsREADONLY", neutrinoStats, "buySurfREADONLY", surfBuy, "neutrinoConfigREADONLY", neutrinoCfg]))
190190 }
191191
192192
193193
194194 @Callable(i)
195195 func walletPageREADONLY (userAddressStr) = {
196196 let walletInfo = asString(invoke(restAcc, "walletInfoREADONLY", [userAddressStr], nil))
197197 $Tuple2(nil, produceJson(["walletInfoREADONLY", walletInfo]))
198198 }
199199
200200
201201
202202 @Callable(i)
203203 func genericREADONLY (payload) = {
204204 let funcsIndexes = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
205205 let paramIndexes = [1, 3, 5, 7, 9, 11]
206206 let payloadArr = split(payload, SEP)
207207 let payloadSize = size(payloadArr)
208208 func invokesAgregator (accum,funcIdx) = if ((funcIdx >= payloadSize))
209209 then accum
210210 else {
211211 let call = payloadArr[funcIdx]
212212 let callArr = split(call, "+")
213213 let address = addressFromStringValue(callArr[0])
214214 let funcName = callArr[1]
215215 let paramsArr = split(callArr[2], ":")
216216 let paramsSize = size(paramsArr)
217217 func paramsAgregator (paramsAcc,paramIdx) = if ((paramIdx >= paramsSize))
218218 then paramsAcc
219219 else {
220220 let p = if ((paramsArr[(paramIdx - 1)] == "s"))
221221 then paramsArr[paramIdx]
222222 else parseIntValue(paramsArr[paramIdx])
223223 (paramsAcc :+ p)
224224 }
225225
226226 let params = {
227227 let $l = paramIndexes
228228 let $s = size($l)
229229 let $acc0 = nil
230230 func $f0_1 ($a,$i) = if (($i >= $s))
231231 then $a
232232 else paramsAgregator($a, $l[$i])
233233
234234 func $f0_2 ($a,$i) = if (($i >= $s))
235235 then $a
236236 else throw("List size exceeds 6")
237237
238238 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
239239 }
240240 let result = asString(invoke(address, funcName, params, nil))
241241 (accum ++ [funcName, result])
242242 }
243243
244244 let invokesResults = {
245245 let $l = funcsIndexes
246246 let $s = size($l)
247247 let $acc0 = nil
248248 func $f0_1 ($a,$i) = if (($i >= $s))
249249 then $a
250250 else invokesAgregator($a, $l[$i])
251251
252252 func $f0_2 ($a,$i) = if (($i >= $s))
253253 then $a
254254 else throw("List size exceeds 10")
255255
256256 $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)
257257 }
258258 $Tuple2(nil, produceJson(invokesResults))
259259 }
260260
261261

github/deemru/w8io/026f985 
51.38 ms