tx · 3YZnAv2N2ud3gyaZpYa28Mm1wWMb2R3aCzLZzTBmYKPy

3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc:  -0.04000000 Waves

2022.07.29 18:31 [2161301] smart account 3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc > SELF 0.00000000 Waves

{ "type": 13, "id": "3YZnAv2N2ud3gyaZpYa28Mm1wWMb2R3aCzLZzTBmYKPy", "fee": 4000000, "feeAssetId": null, "timestamp": 1659108727713, "version": 1, "sender": "3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc", "senderPublicKey": "H3EzJ6fSm7jHKo92xYdNTXaaQYKj9z5q2DJFovRDLJpf", "proofs": [ "22dMP8UH2HVPZT7iWo6BCyrBPypZBs6UidfkMisrrqWEF6Lzs7iGVUDbSyZCSeYbEyLNTFKhf2eQxYnGMBquysP8" ], "script": "base64:AAIFAAAAAAAAACQIAhIECgIICBIECgIIARIDCgEIEgUKAwgBCBIDCgEIEgMKAQgAAAAYAAAAAANTRVACAAAAAl9fAAAAABlJZHhDb250cm9sQ2ZnTmV1dHJpbm9EYXBwAAAAAAAAAAABAAAAABhJZHhDb250cm9sQ2ZnQXVjdGlvbkRhcHAAAAAAAAAAAAIAAAAAFElkeENvbnRyb2xDZmdScGREYXBwAAAAAAAAAAADAAAAABVJZHhDb250cm9sQ2ZnTWF0aERhcHAAAAAAAAAAAAQAAAAAHElkeENvbnRyb2xDZmdMaXF1aWRhdGlvbkRhcHAAAAAAAAAAAAUAAAAAFUlkeENvbnRyb2xDZmdSZXN0RGFwcAAAAAAAAAAABgAAAAAdSWR4Q29udHJvbENmZ05vZGVSZWdpc3RyeURhcHAAAAAAAAAAAAcAAAAAHElkeENvbnRyb2xDZmdOc2J0U3Rha2luZ0RhcHAAAAAAAAAAAAgAAAAAGUlkeENvbnRyb2xDZmdNZWRpYXRvckRhcHAAAAAAAAAAAAkBAAAAD2dldFN0cmluZ09yRmFpbAAAAAIAAAAHYWRkcmVzcwAAAANrZX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AgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgUAAAAFJGFjYzAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAIAAAAAAAAAAAMAAAAAAAAAAAQAAAAAAAAAAAUAAAAAAAAAAAYAAAAAAAAAAAcAAAAAAAAAAAgAAAAAAAAAAAkAAAAAAAAAAAoJAAUUAAAAAgUAAAADbmlsCQEAAAALcHJvZHVjZUpzb24AAAABBQAAAA5pbnZva2VzUmVzdWx0cwAAAAD8iL0j", "chainId": 84, "height": 2161301, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3GQ2zFc8a5xHAhsQe772cUGdCEbMTNAv1YQ2ZH38w4iM Next: FT2Zz43nTz1ycsjvmUA8unJmmMYCZQ3Ya9Pcy52TAaig 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()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx"))
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 @Callable(i)
115115 func constructor (controlAddress58,restAddress58) = if ((i.caller != this))
116116 then throw("not authorized")
117117 else [StringEntry(keyControlAddress(), controlAddress58), StringEntry(keyRestAddress(), restAddress58)]
118118
119119
120120
121121 @Callable(i)
122122 func stakeNsbtPageREADONLY (userAddressStrOpt,nsbtAmtDiff) = {
123123 let gnsbtInfo = asString(invoke(restAcc, "gnsbtInfoREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil))
124124 let swapInfo = asString(invoke(restAcc, "swapInfoREADONLY", [userAddressStrOpt], nil))
125125 $Tuple2(nil, produceJson(["gnsbtInfoREADONLY", gnsbtInfo, "swapInfoREADONLY", swapInfo]))
126126 }
127127
128128
129129
130130 @Callable(i)
131131 func buyNsbtPageREADONLY (userAddressStrOpt) = {
132132 let gnsbtInfo = asString(invoke(restAcc, "gnsbtInfoREADONLY", [userAddressStrOpt, 0], nil))
133133 let neutrinoStats = asString(invoke(restAcc, "neutrinoStatsREADONLY", nil, nil))
134134 $Tuple2(nil, produceJson(["gnsbtInfoREADONLY", gnsbtInfo, "neutrinoStatsREADONLY", neutrinoStats]))
135135 }
136136
137137
138138
139139 @Callable(i)
140140 func buySurfPageREADONLY (userAddressStrOpt,amount,assetIdStr) = {
141141 let neutrinoStats = asString(invoke(restAcc, "neutrinoStatsREADONLY", nil, nil))
142142 let surfBuy = asString(invoke(restAcc, "buySurfREADONLY", [userAddressStrOpt, amount, assetIdStr], nil))
143143 let neutrinoCfg = asString(invoke(restAcc, "neutrinoConfigREADONLY", nil, nil))
144144 $Tuple2(nil, produceJson(["neutrinoStatsREADONLY", neutrinoStats, "buySurfREADONLY", surfBuy, "neutrinoConfigREADONLY", neutrinoCfg]))
145145 }
146146
147147
148148
149149 @Callable(i)
150150 func walletPageREADONLY (userAddressStr) = {
151151 let walletInfo = asString(invoke(restAcc, "walletInfoREADONLY", [userAddressStr], nil))
152152 $Tuple2(nil, produceJson(["walletInfoREADONLY", walletInfo]))
153153 }
154154
155155
156156
157157 @Callable(i)
158158 func genericREADONLY (payload) = {
159159 let funcsIndexes = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
160160 let paramIndexes = [1, 3, 5, 7, 9, 11]
161161 let payloadArr = split(payload, SEP)
162162 let payloadSize = size(payloadArr)
163163 func invokesAgregator (accum,funcIdx) = if ((funcIdx >= payloadSize))
164164 then accum
165165 else {
166166 let call = payloadArr[funcIdx]
167167 let callArr = split(call, "+")
168168 let address = addressFromStringValue(callArr[0])
169169 let funcName = callArr[1]
170170 let paramsArr = split(callArr[2], ":")
171171 let paramsSize = size(paramsArr)
172172 func paramsAgregator (paramsAcc,paramIdx) = if ((paramIdx >= paramsSize))
173173 then paramsAcc
174174 else {
175175 let p = if ((paramsArr[(paramIdx - 1)] == "s"))
176176 then paramsArr[paramIdx]
177177 else parseIntValue(paramsArr[paramIdx])
178178 (paramsAcc :+ p)
179179 }
180180
181181 let params = {
182182 let $l = paramIndexes
183183 let $s = size($l)
184184 let $acc0 = nil
185185 func $f0_1 ($a,$i) = if (($i >= $s))
186186 then $a
187187 else paramsAgregator($a, $l[$i])
188188
189189 func $f0_2 ($a,$i) = if (($i >= $s))
190190 then $a
191191 else throw("List size exceeds 6")
192192
193193 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
194194 }
195195 let result = asString(invoke(address, funcName, params, nil))
196196 (accum ++ [funcName, result])
197197 }
198198
199199 let invokesResults = {
200200 let $l = funcsIndexes
201201 let $s = size($l)
202202 let $acc0 = nil
203203 func $f0_1 ($a,$i) = if (($i >= $s))
204204 then $a
205205 else invokesAgregator($a, $l[$i])
206206
207207 func $f0_2 ($a,$i) = if (($i >= $s))
208208 then $a
209209 else throw("List size exceeds 10")
210210
211211 $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)
212212 }
213213 $Tuple2(nil, produceJson(invokesResults))
214214 }
215215
216216

github/deemru/w8io/026f985 
377.31 ms