tx · 3QbMFwqxki32QTvfxr8Gh8cBhRCiW3cMhcSAgGv6ZYwk

3Mzt645zA6u2QG6jRPoo6H6CK89kVggFgNi:  -0.01400000 Waves

2021.02.19 16:41 [1405095] smart account 3Mzt645zA6u2QG6jRPoo6H6CK89kVggFgNi > SELF 0.00000000 Waves

{ "type": 13, "id": "3QbMFwqxki32QTvfxr8Gh8cBhRCiW3cMhcSAgGv6ZYwk", "fee": 1400000, "feeAssetId": null, "timestamp": 1613742087772, "version": 1, "sender": "3Mzt645zA6u2QG6jRPoo6H6CK89kVggFgNi", "senderPublicKey": "7uejFa4bRSfBcedNiZpvC7nH9dnudVtejqqd8Rq4o8Ay", "proofs": [ "diXUx8LLbQMcLzcJGgjbKHtFWnbxfti8HcAE5gi1MZ5kb6ibpM78bWSjrncbViSaKrfbX43gGD97xeyKohFZpJu" ], "script": "base64:AAIEAAAAAAAAACUIAhIHCgUICAgBCBIDCgEBEgASABIFCgMICAgSAwoBCBIDCgEIAAAALAAAAAADU0VQAgAAAAJfXwEAAAAPZ2V0U3RyaW5nT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkJAAEsAAAAAgIAAAAVTm8gZGF0YSBmb3IgdGhpcy5rZXk9BQAAAANrZXkBAAAAEGdldEJvb2xlYW5PckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQkAASwAAAACAgAAABVObyBkYXRhIGZvciB0aGlzLmtleT0FAAAAA2tleQEAAAAOZmFpbEV4ZWN1dGVHZXQAAAAEAAAAA21zZwAAAAxiYXNlQXNzZXRTdHIAAAAOdXNlckFkZHJlc3NTdHIAAAAKZ2V0VHhJZFN0cgkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQ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0aXNpZzogczA9CQABpAAAAAEFAAAAAnMwAgAAAAQgczE9CQABpAAAAAEFAAAAAnMxAgAAAAQgczI9CQABpAAAAAEFAAAAAnMyBufI1C4=", "chainId": 84, "height": 1405095, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7QLjxm5wRhQkp8GJYSo5rTbhmV3ewKjHL4mGFxfb1TtM Next: 9ojjeU7Yj2qtwF4BxPBoqyXcJriNcN7KCzNbD8BsJKX9 Diff:
OldNewDifferences
299299 }
300300
301301
302+@Verifier(tx)
303+func verify () = {
304+ let pubKeyAdminsList = ["kMVLGCwXnETBo7cjirdUTSrrWXCDYFUNY56FyHEvpj1", "GidQ61btQCXZBYeuYqpJphw5hP1o9zyduRTwrEvUzPZ", "DTz4eaCd7UfVtfodw4GrVJ2bE4HQFYW6T94mpGsHMhXz"]
305+ let s0 = if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
306+ then 1
307+ else 0
308+ let s1 = if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
309+ then 1
310+ else 0
311+ let s2 = if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
312+ then 1
313+ else 0
314+ let count = ((s0 + s1) + s2)
315+ if ((2 > count))
316+ then throw(((((("invalid multisig: s0=" + toString(s0)) + " s1=") + toString(s1)) + " s2=") + toString(s2)))
317+ else true
318+ }
319+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
77
88
99 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
1010
1111
1212 func failExecuteGet (msg,baseAssetStr,userAddressStr,getTxIdStr) = throw(((((((msg + ": baseAssetStr=") + baseAssetStr) + " userAddressStr=") + userAddressStr) + " getTxIdStr=") + getTxIdStr))
1313
1414
1515 func keyAssetCfg (baseAssetStr) = ("%s%s%s__config__asset__" + baseAssetStr)
1616
1717
1818 func keyNextInternalAssetId () = "%s__nextInternalAssetId"
1919
2020
2121 func keyPriceLast (internalBasetAssetStr) = ("%s%s%d__price__last__" + internalBasetAssetStr)
2222
2323
2424 func keyPriceHistory (internalBasetAssetStr,h,timestamp) = makeString(["%s%s%d%d%d__price__history", internalBasetAssetStr, toString(h), toString(timestamp)], SEP)
2525
2626
2727 func keyTotalLocked (internalBasetAssetStr) = ("%s%s%d__total__locked__" + internalBasetAssetStr)
2828
2929
3030 func keyTotalLockedByUser (internalBaseAssetStr,userAddressStr) = makeString(["%s%s%d%s__total__locked", internalBaseAssetStr, userAddressStr], SEP)
3131
3232
3333 func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset))
3434
3535
3636 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
3737
3838
3939 func keyMappingsShare2baseAssetId (shareAssetStr) = ("%s%s%s__mappings__share2baseAssetId__" + shareAssetStr)
4040
4141
4242 func keyMappingsBaseAsset2shareId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2shareId__" + baseAssetStr)
4343
4444
4545 func keyShutdownPutOperation (internalBaseAssetStr) = ("%s%s%d__shutdown__put__" + internalBaseAssetStr)
4646
4747
4848 func keyShutdownManager (internalBaseAssetStr) = ("%s%s%d__shutdown__manager__" + internalBaseAssetStr)
4949
5050
5151 let IdxCfgShareAssetId = 1
5252
5353 let IdxCfgInternalBaseAsset = 2
5454
5555 let IdxCfgDecimalsMultBothAssets = 3
5656
5757 let IdxCfgDecimalsMultPrice = 4
5858
5959 let IdxCfgGetDelayBlocks = 5
6060
6161 func dataAssetCfg (shareAssetStr,internalBaseAssetStr,decimalsMultBothAssets,decimalsMultPrice,getDelayInBlocks) = makeString(["%s%d%d%d%d", shareAssetStr, internalBaseAssetStr, toString(decimalsMultBothAssets), toString(decimalsMultPrice), toString(getDelayInBlocks)], SEP)
6262
6363
6464 let IdxTotalLockedShare = 1
6565
6666 let IdxTotalLockedBase = 2
6767
6868 func dataTotalLocked (shareAssetAmount,baseAssetAmount) = makeString(["%d%d", toString(shareAssetAmount), toString(baseAssetAmount)], SEP)
6969
7070
7171 func readTotalLocked (key) = {
7272 let totalLockedArray = split(valueOrElse(getString(this, key), dataTotalLocked(0, 0)), SEP)
7373 [-1, parseIntValue(totalLockedArray[IdxTotalLockedShare]), parseIntValue(totalLockedArray[IdxTotalLockedBase])]
7474 }
7575
7676
7777 func keyOperation (operationType,internalBaseAssetStr,userAddress,txId) = makeString(["%s%d%s%s", operationType, internalBaseAssetStr, userAddress, txId], SEP)
7878
7979
8080 let IdxOperStatus = 1
8181
8282 let IdxOperInAmount = 2
8383
8484 let IdxOperPrice = 3
8585
8686 let IdxOperOutAmount = 4
8787
8888 let IdxOperStartHeight = 5
8989
9090 let IdxOperStartTimestamp = 6
9191
9292 let IdxOperEndHeight = 7
9393
9494 let IdxOperEndTimestamp = 8
9595
9696 func privateDataOperationAllStrings (status,inAssetAmount,price,outAssetAmount,startHeight,startTimestamp,endHeight,endTimestamp) = makeString(["%s%d%d%d%d%d%d%d", status, inAssetAmount, price, outAssetAmount, startHeight, startTimestamp, endHeight, endTimestamp], SEP)
9797
9898
9999 func dataOperation (status,inAssetAmount,price,outAssetAmount,startHeight,startTimestamp,endHeight,endTimestamp) = privateDataOperationAllStrings(status, toString(inAssetAmount), toString(price), toString(outAssetAmount), toString(startHeight), toString(startTimestamp), toString(endHeight), toString(endTimestamp))
100100
101101
102102 func dataOperationExecutionUpdate (currOperArray,newStatus,newEndTimestamp) = privateDataOperationAllStrings(newStatus, currOperArray[IdxOperInAmount], currOperArray[IdxOperPrice], currOperArray[IdxOperOutAmount], currOperArray[IdxOperStartHeight], currOperArray[IdxOperStartTimestamp], currOperArray[IdxOperEndHeight], toString(newEndTimestamp))
103103
104104
105105 func readAssetCfgOrFail (baseAssetStr) = {
106106 let key = keyAssetCfg(baseAssetStr)
107107 split(getStringOrFail(key), SEP)
108108 }
109109
110110
111111 func incrementTotalLocked (key,shareAssetAmount,baseAssetAmount) = {
112112 let dataArray = readTotalLocked(key)
113113 StringEntry(key, dataTotalLocked((dataArray[IdxTotalLockedShare] + shareAssetAmount), (dataArray[IdxTotalLockedBase] + baseAssetAmount)))
114114 }
115115
116116
117117 func decrementTotalLocked (key,shareAssetAmount,baseAssetAmount) = {
118118 let dataArray = readTotalLocked(key)
119119 StringEntry(key, dataTotalLocked((dataArray[IdxTotalLockedShare] - shareAssetAmount), (dataArray[IdxTotalLockedBase] - baseAssetAmount)))
120120 }
121121
122122
123123 func genericCalcPrice (internalBaseAssetStr,baseAssetId,topUpBaseAmount,shareAssetId,decimalsMultBothAssets,decimalsMultPrice) = {
124124 let totalLockedArray = readTotalLocked(keyTotalLocked(internalBaseAssetStr))
125125 let totalLockedBaseAmount = totalLockedArray[IdxTotalLockedBase]
126126 let baseAssetBalance = assetBalance(this, baseAssetId)
127127 let baseAssetBalanceConsideringLock = ((baseAssetBalance - totalLockedBaseAmount) + topUpBaseAmount)
128128 if ((0 > baseAssetBalanceConsideringLock))
129129 then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(baseAssetBalance)) + " baseAssetBalanceConsideringLock=") + toString(baseAssetBalanceConsideringLock)))
130130 else {
131131 let shareEmission = value(assetInfo(shareAssetId)).quantity
132132 let price = if ((shareEmission == 0))
133133 then (1 * decimalsMultPrice)
134134 else fraction(baseAssetBalanceConsideringLock, decimalsMultPrice, shareEmission)
135135 $Tuple5(price, baseAssetBalance, totalLockedBaseAmount, baseAssetBalanceConsideringLock, shareEmission)
136136 }
137137 }
138138
139139
140140 func calcPrice (internalBaseAssetStr,baseAssetId,shareAssetId,decimalsMultBothAssets,decimalsMultPrice) = genericCalcPrice(internalBaseAssetStr, baseAssetId, 0, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)
141141
142142
143143 func privateCurrentSysParamsREST (baseAssetStr) = {
144144 let baseAssetId = fromBase58String(baseAssetStr)
145145 let cfgArray = readAssetCfgOrFail(baseAssetStr)
146146 let shareAssetStr = cfgArray[IdxCfgShareAssetId]
147147 let shareAssetId = fromBase58String(shareAssetStr)
148148 let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets])
149149 let decimalsMultPrice = parseIntValue(cfgArray[IdxCfgDecimalsMultPrice])
150150 let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset]
151151 let sysState = calcPrice(internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)
152152 $Tuple6(IntegerEntry("price", sysState._1), IntegerEntry("decimalsMultPrice", decimalsMultPrice), IntegerEntry("baseAssetBalance", sysState._2), IntegerEntry("totalLockedBaseAmount", sysState._3), IntegerEntry("baseAssetBalanceConsideringLock", sysState._4), IntegerEntry("shareEmission", sysState._5))
153153 }
154154
155155
156156 @Callable(i)
157157 func adminRegisterAsset (baseAssetStr,shareAssetName,shareAssetDescr,getDelayinBlocks,shutdownManagerAddress) = {
158158 let baseAssetId = fromBase58String(baseAssetStr)
159159 let decimals = value(assetInfo(baseAssetId)).decimals
160160 if ((i.caller != this))
161161 then throw("permissions denied")
162162 else if ((toString(addressFromStringValue(shutdownManagerAddress)) != shutdownManagerAddress))
163163 then throw("invalid shutdownManagerAddress")
164164 else if ((0 > getDelayinBlocks))
165165 then throw(("invalid getDelayinBlocks=" + toString(getDelayinBlocks)))
166166 else {
167167 let shareAssetIssueAction = Issue(shareAssetName, shareAssetDescr, 1, decimals, true)
168168 let shareAssetId = calculateAssetId(shareAssetIssueAction)
169169 let shareAssetStr = toBase58String(shareAssetId)
170170 let decimalsMultPrice = ((100 * 1000) * 1000)
171171 let decimalsMultBothAssets = pow(10, 0, decimals, 0, 0, DOWN)
172172 let startPrice = (1 * decimalsMultPrice)
173173 let internalBaseAssettId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
174174 let internalBaseAssetStr = toString(internalBaseAssettId)
175175 [StringEntry(keyAssetCfg(baseAssetStr), dataAssetCfg(shareAssetStr, internalBaseAssetStr, decimalsMultBothAssets, decimalsMultPrice, getDelayinBlocks)), StringEntry(keyMappingsInternal2baseAssetId(internalBaseAssettId), baseAssetStr), StringEntry(keyMappingsBaseAsset2internalId(baseAssetStr), internalBaseAssetStr), StringEntry(keyMappingsShare2baseAssetId(shareAssetStr), baseAssetStr), StringEntry(keyMappingsBaseAsset2shareId(baseAssetStr), shareAssetStr), BooleanEntry(keyShutdownPutOperation(internalBaseAssetStr), false), StringEntry(keyShutdownManager(internalBaseAssetStr), shutdownManagerAddress), IntegerEntry(keyNextInternalAssetId(), (internalBaseAssettId + 1)), IntegerEntry(keyPriceLast(internalBaseAssetStr), startPrice), IntegerEntry(keyPriceHistory(internalBaseAssetStr, height, lastBlock.timestamp), startPrice), shareAssetIssueAction, Burn(shareAssetId, 1)]
176176 }
177177 }
178178
179179
180180
181181 @Callable(i)
182182 func shutdownPut (internalBaseAssetId) = {
183183 let internalBaseAssetIdStr = toString(internalBaseAssetId)
184184 let baseAssetIdStr = getStringOrFail(keyMappingsInternal2baseAssetId(internalBaseAssetId))
185185 let shutdownManagerAddress = getStringOrFail(keyShutdownManager(internalBaseAssetIdStr))
186186 if ((1 > size(baseAssetIdStr)))
187187 then throw("invalid internalBaseAssetId")
188188 else if ((toString(i.caller) != shutdownManagerAddress))
189189 then throw("access denied")
190190 else [BooleanEntry(keyShutdownPutOperation(toString(internalBaseAssetId)), true)]
191191 }
192192
193193
194194
195195 @Callable(i)
196196 func put () = {
197197 let pmt = value(i.payments[0])
198198 let baseAssetId = value(pmt.assetId)
199199 let baseAssetStr = toBase58String(baseAssetId)
200200 let userAddressStr = toString(i.caller)
201201 let cfgArray = readAssetCfgOrFail(baseAssetStr)
202202 let shareAssetStr = cfgArray[IdxCfgShareAssetId]
203203 let shareAssetId = fromBase58String(shareAssetStr)
204204 let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets])
205205 let decimalsMultPrice = parseIntValue(cfgArray[IdxCfgDecimalsMultPrice])
206206 let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset]
207207 let isPutBlocked = getBooleanOrFail(keyShutdownPutOperation(internalBaseAssetStr))
208208 if (isPutBlocked)
209209 then throw("put operation is blocked")
210210 else {
211211 let price = calcPrice(internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1
212212 let shareAssetAmount = fraction(pmt.amount, decimalsMultPrice, price)
213213 [Reissue(shareAssetId, shareAssetAmount, true), ScriptTransfer(i.caller, shareAssetAmount, shareAssetId), StringEntry(keyOperation("P", internalBaseAssetStr, userAddressStr, toBase58String(i.transactionId)), dataOperation("FINISHED", pmt.amount, price, shareAssetAmount, height, lastBlock.timestamp, height, lastBlock.timestamp))]
214214 }
215215 }
216216
217217
218218
219219 @Callable(i)
220220 func submitGetRequest () = {
221221 let pmt = value(i.payments[0])
222222 let shareAssetId = value(pmt.assetId)
223223 let shareAssetStr = toBase58String(shareAssetId)
224224 let callerPubStr = toBase58String(i.callerPublicKey)
225225 let userAddress = i.caller
226226 let userAddressStr = toString(userAddress)
227227 let shareAssetAmount = pmt.amount
228228 let baseAssetStr = getStringOrFail(keyMappingsShare2baseAssetId(shareAssetStr))
229229 let baseAssetId = fromBase58String(baseAssetStr)
230230 let cfgArray = readAssetCfgOrFail(baseAssetStr)
231231 let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets])
232232 let decimalsMultPrice = parseIntValue(cfgArray[IdxCfgDecimalsMultPrice])
233233 let getDelayBlocks = parseIntValue(cfgArray[IdxCfgGetDelayBlocks])
234234 let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset]
235235 let price = calcPrice(internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1
236236 let baseAssetAmount = fraction(shareAssetAmount, price, decimalsMultPrice)
237237 let operationKey = keyOperation("G", internalBaseAssetStr, userAddressStr, toBase58String(i.transactionId))
238238 let operationData = dataOperation("PENDING", shareAssetAmount, price, baseAssetAmount, height, lastBlock.timestamp, (height + getDelayBlocks), 0)
239239 [Burn(shareAssetId, shareAssetAmount), StringEntry(operationKey, operationData), incrementTotalLocked(keyTotalLocked(internalBaseAssetStr), shareAssetAmount, baseAssetAmount), incrementTotalLocked(keyTotalLockedByUser(internalBaseAssetStr, userAddressStr), shareAssetAmount, baseAssetAmount)]
240240 }
241241
242242
243243
244244 @Callable(i)
245245 func executeGetRequest (baseAssetStr,userAddressStr,getTxIdStr) = {
246246 let userAddress = addressFromStringValue(userAddressStr)
247247 let assetCfgArray = readAssetCfgOrFail(baseAssetStr)
248248 let shareAssetId = fromBase58String(assetCfgArray[IdxCfgShareAssetId])
249249 let baseAssetId = fromBase58String(baseAssetStr)
250250 let internalBaseAssetStr = assetCfgArray[IdxCfgInternalBaseAsset]
251251 let operationKey = keyOperation("G", internalBaseAssetStr, userAddressStr, getTxIdStr)
252252 let operationArray = split(getStringOrFail(operationKey), SEP)
253253 let status = operationArray[IdxOperStatus]
254254 let endHeight = parseIntValue(operationArray[IdxOperEndHeight])
255255 let inShareAmount = parseIntValue(operationArray[IdxOperInAmount])
256256 let outBaseAmount = parseIntValue(operationArray[IdxOperOutAmount])
257257 if ((status != "PENDING"))
258258 then failExecuteGet("Status is not PENDING", baseAssetStr, userAddressStr, getTxIdStr)
259259 else if ((endHeight > height))
260260 then failExecuteGet(((("EndHeight[" + toString(endHeight)) + "] > ") + toString(height)), baseAssetStr, userAddressStr, getTxIdStr)
261261 else [ScriptTransfer(userAddress, outBaseAmount, baseAssetId), StringEntry(operationKey, dataOperationExecutionUpdate(operationArray, "FINISHED", lastBlock.timestamp)), decrementTotalLocked(keyTotalLocked(internalBaseAssetStr), inShareAmount, outBaseAmount), decrementTotalLocked(keyTotalLockedByUser(internalBaseAssetStr, userAddressStr), inShareAmount, outBaseAmount)]
262262 }
263263
264264
265265
266266 @Callable(i)
267267 func topUpBalance (baseAssetStr) = {
268268 let assetCfgArray = readAssetCfgOrFail(baseAssetStr)
269269 let pmt = value(i.payments[0])
270270 let pmtAssetId = value(pmt.assetId)
271271 let pmtAssetStr = toBase58String(pmtAssetId)
272272 let shareAssetId = fromBase58String(assetCfgArray[IdxCfgShareAssetId])
273273 let decimalsMultBothAssets = parseIntValue(assetCfgArray[IdxCfgDecimalsMultBothAssets])
274274 let decimalsMultPrice = parseIntValue(assetCfgArray[IdxCfgDecimalsMultPrice])
275275 let internalBaseAssetStr = assetCfgArray[IdxCfgInternalBaseAsset]
276276 if ((baseAssetStr != pmtAssetStr))
277277 then throw("attached payment's asset id is NOT matched passed baseAssetStr")
278278 else if ((size(i.payments) > 1))
279279 then throw("only one payment can be attached")
280280 else {
281281 let price = genericCalcPrice(internalBaseAssetStr, pmtAssetId, pmt.amount, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1
282282 [IntegerEntry(keyPriceLast(internalBaseAssetStr), price), IntegerEntry(keyPriceHistory(internalBaseAssetStr, height, lastBlock.timestamp), price)]
283283 }
284284 }
285285
286286
287287
288288 @Callable(i)
289289 func currentSysParamsREST (baseAssetStr) = {
290290 let sysStateTuple = privateCurrentSysParamsREST(baseAssetStr)
291291 let price = sysStateTuple._1.value
292292 let decimalsMultPrice = sysStateTuple._2.value
293293 let baseAssetBalance = sysStateTuple._3.value
294294 let totalLockedBaseAmount = sysStateTuple._4.value
295295 let baseAssetBalanceConsideringLock = sysStateTuple._5.value
296296 let shareEmission = sysStateTuple._6.value
297297 let restData = makeString(["startCurrentSysParamsREST", toString(price), toString(decimalsMultPrice), toString(baseAssetBalance), toString(totalLockedBaseAmount), toString(baseAssetBalanceConsideringLock), toString(shareEmission), "endCurrentSysParamsREST"], SEP)
298298 throw(restData)
299299 }
300300
301301
302+@Verifier(tx)
303+func verify () = {
304+ let pubKeyAdminsList = ["kMVLGCwXnETBo7cjirdUTSrrWXCDYFUNY56FyHEvpj1", "GidQ61btQCXZBYeuYqpJphw5hP1o9zyduRTwrEvUzPZ", "DTz4eaCd7UfVtfodw4GrVJ2bE4HQFYW6T94mpGsHMhXz"]
305+ let s0 = if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0])))
306+ then 1
307+ else 0
308+ let s1 = if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1])))
309+ then 1
310+ else 0
311+ let s2 = if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2])))
312+ then 1
313+ else 0
314+ let count = ((s0 + s1) + s2)
315+ if ((2 > count))
316+ then throw(((((("invalid multisig: s0=" + toString(s0)) + " s1=") + toString(s1)) + " s2=") + toString(s2)))
317+ else true
318+ }
319+

github/deemru/w8io/026f985 
46.88 ms