tx · BWoKgf7FostUEHJCjgnj9Sqie6x8tbekYLUhcS7MBiRr 3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc: -0.01400000 Waves 2023.03.01 16:44 [2471076] smart account 3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc > SELF 0.00000000 Waves
{ "type": 13, "id": "BWoKgf7FostUEHJCjgnj9Sqie6x8tbekYLUhcS7MBiRr", "fee": 1400000, "feeAssetId": null, "timestamp": 1677678264330, "version": 2, "chainId": 84, "sender": "3MyBtJnMg6n7m1sDczbrijVyosLnRh4FFbc", "senderPublicKey": "H3EzJ6fSm7jHKo92xYdNTXaaQYKj9z5q2DJFovRDLJpf", "proofs": [ "5BkfYgmnHtYjJpP9WmSjwWcB9QCD42vVF6D97zaB9rjZDTTe4grxm1KkVRcF4dJnNWnxqgb2UZ9sw1MKAMAfqyWK" ], "script": "base64:AAIFAAAAAAAAACQIAhIECgIICBIECgIIARIDCgEIEgUKAwgBCBIDCgEIEgMKAQgAAAAZAAAAAANTRVACAAAAAl9fAAAAABlJZHhDb250cm9sQ2ZnTmV1dHJpbm9EYXBwAAAAAAAAAAABAAAAABhJZHhDb250cm9sQ2ZnQXVjdGlvbkRhcHAAAAAAAAAAAAIAAAAAFElkeENvbnRyb2xDZmdScGREYXBwAAAAAAAAAAADAAAAABVJZHhDb250cm9sQ2ZnTWF0aERhcHAAAAAAAAAAAAQAAAAAHElkeENvbnRyb2xDZmdMaXF1aWRhdGlvbkRhcHAAAAAAAAAAAAUAAAAAFUlkeENvbnRyb2xDZmdSZXN0RGFwcAAAAAAAAAAABgAAAAAdSWR4Q29udHJvbENmZ05vZGVSZWdpc3RyeURhcHAAAAAAAAAAAAcAAAAAHElkeENvbnRyb2xDZmdOc2J0U3Rha2luZ0RhcHAAAAAAAAAAAAgAAAAAGUlkeENvbnRyb2xDZmdNZWRpYXRvckRhcHAAAAAAAAAAAAkBAAAAD2dldFN0cmluZ09yRmFpbAAAAAIAAAAHYWRkcmVzcwAAAAN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Ya9Pcy52TAaig Next: 62EEMX3KWwimPW6KbAxp2ak2CgmAGGFtSJJCndPKcypQ Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let IdxControlCfgNeutrinoDapp = 1 | |
7 | 7 | ||
8 | 8 | let IdxControlCfgAuctionDapp = 2 | |
9 | 9 | ||
10 | 10 | let IdxControlCfgRpdDapp = 3 | |
11 | 11 | ||
12 | 12 | let IdxControlCfgMathDapp = 4 | |
13 | 13 | ||
14 | 14 | let IdxControlCfgLiquidationDapp = 5 | |
15 | 15 | ||
16 | 16 | let IdxControlCfgRestDapp = 6 | |
17 | 17 | ||
18 | 18 | let IdxControlCfgNodeRegistryDapp = 7 | |
19 | 19 | ||
20 | 20 | let IdxControlCfgNsbtStakingDapp = 8 | |
21 | 21 | ||
22 | 22 | let IdxControlCfgMediatorDapp = 9 | |
23 | 23 | ||
24 | 24 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined")) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func keyControlAddress () = "%s%s__config__controlAddress" | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func keyControlCfg () = "%s__controlConfig" | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx))) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
40 | 40 | ||
41 | 41 | let controlCfg = readControlCfgOrFail(controlContract) | |
42 | 42 | ||
43 | 43 | let restAcc = getContractAddressOrFail(controlCfg, IdxControlCfgRestDapp) | |
44 | 44 | ||
45 | 45 | func keyRestAddress () = "%s%s__config__restAddress" | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func getStrOrFail (key) = valueOrErrorMessage(getString(this, key), (("Mandatory this." + key) + " is not defined")) | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func getAddressOrFail (key) = valueOrErrorMessage(addressFromString(getStrOrFail(key)), ("fail to parse address for this." + key)) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func asString (val) = match val { | |
55 | 55 | case valStr: String => | |
56 | 56 | valStr | |
57 | 57 | case _ => | |
58 | 58 | throw("fail to cast into String") | |
59 | 59 | } | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func produceJson (strMap) = { | |
63 | 63 | let indexes = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
64 | 64 | let length = size(strMap) | |
65 | 65 | if (((length % 2) != 0)) | |
66 | 66 | then throw("only even args size is accepeted") | |
67 | 67 | else if ((length > size(indexes))) | |
68 | 68 | then throw(("strMap length is greater then " + toString(size(indexes)))) | |
69 | 69 | else { | |
70 | 70 | func produceJson (jsonAccum,nextIdx) = if (if (((nextIdx % 2) == 0)) | |
71 | 71 | then (length >= (nextIdx + 1)) | |
72 | 72 | else false) | |
73 | 73 | then (((((jsonAccum + " | |
74 | 74 | \"") + strMap[nextIdx]) + "\": \"") + strMap[(nextIdx + 1)]) + "\",") | |
75 | 75 | else jsonAccum | |
76 | 76 | ||
77 | 77 | let preJsonResult = { | |
78 | 78 | let $l = indexes | |
79 | 79 | let $s = size($l) | |
80 | 80 | let $acc0 = "" | |
81 | 81 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
82 | 82 | then $a | |
83 | 83 | else produceJson($a, $l[$i]) | |
84 | 84 | ||
85 | 85 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
86 | 86 | then $a | |
87 | 87 | else throw("List size exceeds 20") | |
88 | 88 | ||
89 | 89 | $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) | |
90 | 90 | } | |
91 | 91 | (("{" + dropRight(preJsonResult, 1)) + "}") | |
92 | 92 | } | |
93 | 93 | } | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func genericV2READONLY (x) = { | |
97 | 97 | func call (a,e) = (a :+ invoke(Address(fromBase58String(e._1)), e._2, e._3, nil)) | |
98 | 98 | ||
99 | 99 | let $l = x | |
100 | 100 | let $s = size($l) | |
101 | 101 | let $acc0 = nil | |
102 | 102 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
103 | 103 | then $a | |
104 | 104 | else call($a, $l[$i]) | |
105 | 105 | ||
106 | 106 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
107 | 107 | then $a | |
108 | 108 | else throw("List size exceeds 10") | |
109 | 109 | ||
110 | 110 | $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) | |
111 | 111 | } | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func genericV3READONLY (params) = { | |
115 | 115 | func call (foldResult,foldParams) = { | |
116 | 116 | let dApp = Address(fromBase58String(foldParams._1)) | |
117 | 117 | let operationType = foldParams._2 | |
118 | 118 | let funcOrKeyName = foldParams._3 | |
119 | 119 | let funcParams = foldParams._4 | |
120 | 120 | let operationResult = if ((operationType == "invoke")) | |
121 | 121 | then invoke(dApp, funcOrKeyName, funcParams, nil) | |
122 | 122 | else if ((operationType == "binKey")) | |
123 | 123 | then getBinary(dApp, funcOrKeyName) | |
124 | 124 | else if ((operationType == "boolKey")) | |
125 | 125 | then getBoolean(dApp, funcOrKeyName) | |
126 | 126 | else if ((operationType == "intKey")) | |
127 | 127 | then getInteger(dApp, funcOrKeyName) | |
128 | 128 | else if ((operationType == "strKey")) | |
129 | 129 | then getString(dApp, funcOrKeyName) | |
130 | 130 | else throw(("not supported operation type: " + operationType)) | |
131 | 131 | (foldResult :+ operationResult) | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | let $l = params | |
135 | 135 | let $s = size($l) | |
136 | 136 | let $acc0 = nil | |
137 | 137 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
138 | 138 | then $a | |
139 | 139 | else call($a, $l[$i]) | |
140 | 140 | ||
141 | 141 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
142 | 142 | then $a | |
143 | 143 | else throw("List size exceeds 10") | |
144 | 144 | ||
145 | 145 | $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) | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | @Callable(i) | |
150 | 150 | func constructor (controlAddress58,restAddress58) = if ((i.caller != this)) | |
151 | 151 | then throw("not authorized") | |
152 | 152 | else [StringEntry(keyControlAddress(), controlAddress58), StringEntry(keyRestAddress(), restAddress58)] | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | ||
156 | 156 | @Callable(i) | |
157 | 157 | func stakeNsbtPageREADONLY (userAddressStrOpt,nsbtAmtDiff) = { | |
158 | 158 | let gnsbtInfo = asString(invoke(restAcc, "gnsbtInfoREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
159 | 159 | let swapInfo = asString(invoke(restAcc, "swapInfoREADONLY", [userAddressStrOpt], nil)) | |
160 | 160 | $Tuple2(nil, produceJson(["gnsbtInfoREADONLY", gnsbtInfo, "swapInfoREADONLY", swapInfo])) | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | ||
165 | 165 | @Callable(i) | |
166 | 166 | func buyNsbtPageREADONLY (userAddressStrOpt) = { | |
167 | 167 | let gnsbtInfo = asString(invoke(restAcc, "gnsbtInfoREADONLY", [userAddressStrOpt, 0], nil)) | |
168 | 168 | let neutrinoStats = asString(invoke(restAcc, "neutrinoStatsREADONLY", nil, nil)) | |
169 | 169 | $Tuple2(nil, produceJson(["gnsbtInfoREADONLY", gnsbtInfo, "neutrinoStatsREADONLY", neutrinoStats])) | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | ||
174 | 174 | @Callable(i) | |
175 | 175 | func buySurfPageREADONLY (userAddressStrOpt,amount,assetIdStr) = { | |
176 | 176 | let neutrinoStats = asString(invoke(restAcc, "neutrinoStatsREADONLY", nil, nil)) | |
177 | 177 | let surfBuy = asString(invoke(restAcc, "buySurfREADONLY", [userAddressStrOpt, amount, assetIdStr], nil)) | |
178 | 178 | let neutrinoCfg = asString(invoke(restAcc, "neutrinoConfigREADONLY", nil, nil)) | |
179 | 179 | $Tuple2(nil, produceJson(["neutrinoStatsREADONLY", neutrinoStats, "buySurfREADONLY", surfBuy, "neutrinoConfigREADONLY", neutrinoCfg])) | |
180 | 180 | } | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | ||
184 | 184 | @Callable(i) | |
185 | 185 | func walletPageREADONLY (userAddressStr) = { | |
186 | 186 | let walletInfo = asString(invoke(restAcc, "walletInfoREADONLY", [userAddressStr], nil)) | |
187 | 187 | $Tuple2(nil, produceJson(["walletInfoREADONLY", walletInfo])) | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | ||
192 | 192 | @Callable(i) | |
193 | 193 | func genericREADONLY (payload) = { | |
194 | 194 | let funcsIndexes = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
195 | 195 | let paramIndexes = [1, 3, 5, 7, 9, 11] | |
196 | 196 | let payloadArr = split(payload, SEP) | |
197 | 197 | let payloadSize = size(payloadArr) | |
198 | 198 | func invokesAgregator (accum,funcIdx) = if ((funcIdx >= payloadSize)) | |
199 | 199 | then accum | |
200 | 200 | else { | |
201 | 201 | let call = payloadArr[funcIdx] | |
202 | 202 | let callArr = split(call, "+") | |
203 | 203 | let address = addressFromStringValue(callArr[0]) | |
204 | 204 | let funcName = callArr[1] | |
205 | 205 | let paramsArr = split(callArr[2], ":") | |
206 | 206 | let paramsSize = size(paramsArr) | |
207 | 207 | func paramsAgregator (paramsAcc,paramIdx) = if ((paramIdx >= paramsSize)) | |
208 | 208 | then paramsAcc | |
209 | 209 | else { | |
210 | 210 | let p = if ((paramsArr[(paramIdx - 1)] == "s")) | |
211 | 211 | then paramsArr[paramIdx] | |
212 | 212 | else parseIntValue(paramsArr[paramIdx]) | |
213 | 213 | (paramsAcc :+ p) | |
214 | 214 | } | |
215 | 215 | ||
216 | 216 | let params = { | |
217 | 217 | let $l = paramIndexes | |
218 | 218 | let $s = size($l) | |
219 | 219 | let $acc0 = nil | |
220 | 220 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
221 | 221 | then $a | |
222 | 222 | else paramsAgregator($a, $l[$i]) | |
223 | 223 | ||
224 | 224 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
225 | 225 | then $a | |
226 | 226 | else throw("List size exceeds 6") | |
227 | 227 | ||
228 | 228 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
229 | 229 | } | |
230 | 230 | let result = asString(invoke(address, funcName, params, nil)) | |
231 | 231 | (accum ++ [funcName, result]) | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | let invokesResults = { | |
235 | 235 | let $l = funcsIndexes | |
236 | 236 | let $s = size($l) | |
237 | 237 | let $acc0 = nil | |
238 | 238 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
239 | 239 | then $a | |
240 | 240 | else invokesAgregator($a, $l[$i]) | |
241 | 241 | ||
242 | 242 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
243 | 243 | then $a | |
244 | 244 | else throw("List size exceeds 10") | |
245 | 245 | ||
246 | 246 | $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) | |
247 | 247 | } | |
248 | 248 | $Tuple2(nil, produceJson(invokesResults)) | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 |
github/deemru/w8io/026f985 31.98 ms ◑